getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.RelativePosition getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface IMUReadingOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:IMUReading)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * milliseconds
+ *
+ *
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ * @return Whether the acc field is set.
+ */
+ boolean hasAcc();
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ * @return The acc.
+ */
+ com.openpositioning.PositionMe.Traj.Vector3 getAcc();
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ */
+ com.openpositioning.PositionMe.Traj.Vector3OrBuilder getAccOrBuilder();
+
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ * @return Whether the gyr field is set.
+ */
+ boolean hasGyr();
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ * @return The gyr.
+ */
+ com.openpositioning.PositionMe.Traj.Vector3 getGyr();
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ */
+ com.openpositioning.PositionMe.Traj.Vector3OrBuilder getGyrOrBuilder();
+
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ * @return Whether the rotationVector field is set.
+ */
+ boolean hasRotationVector();
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ * @return The rotationVector.
+ */
+ com.openpositioning.PositionMe.Traj.Quaternion getRotationVector();
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ */
+ com.openpositioning.PositionMe.Traj.QuaternionOrBuilder getRotationVectorOrBuilder();
+
+ /**
+ *
+ * Number of steps so far
+ *
+ *
+ * int32 step_count = 5;
+ * @return The stepCount.
+ */
+ int getStepCount();
+ }
+ /**
+ * Protobuf type {@code IMUReading}
+ */
+ public static final class IMUReading extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:IMUReading)
+ IMUReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ IMUReading.class.getName());
+ }
+ // Use IMUReading.newBuilder() to construct.
+ private IMUReading(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private IMUReading() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_IMUReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_IMUReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.IMUReading.class, com.openpositioning.PositionMe.Traj.IMUReading.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_ = 0L;
+ /**
+ *
+ * milliseconds
+ *
+ *
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int ACC_FIELD_NUMBER = 2;
+ private com.openpositioning.PositionMe.Traj.Vector3 acc_;
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ * @return Whether the acc field is set.
+ */
+ @java.lang.Override
+ public boolean hasAcc() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ * @return The acc.
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.Vector3 getAcc() {
+ return acc_ == null ? com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : acc_;
+ }
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.Vector3OrBuilder getAccOrBuilder() {
+ return acc_ == null ? com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : acc_;
+ }
+
+ public static final int GYR_FIELD_NUMBER = 3;
+ private com.openpositioning.PositionMe.Traj.Vector3 gyr_;
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ * @return Whether the gyr field is set.
+ */
+ @java.lang.Override
+ public boolean hasGyr() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ * @return The gyr.
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.Vector3 getGyr() {
+ return gyr_ == null ? com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : gyr_;
+ }
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.Vector3OrBuilder getGyrOrBuilder() {
+ return gyr_ == null ? com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : gyr_;
+ }
+
+ public static final int ROTATION_VECTOR_FIELD_NUMBER = 4;
+ private com.openpositioning.PositionMe.Traj.Quaternion rotationVector_;
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ * @return Whether the rotationVector field is set.
+ */
+ @java.lang.Override
+ public boolean hasRotationVector() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ * @return The rotationVector.
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.Quaternion getRotationVector() {
+ return rotationVector_ == null ? com.openpositioning.PositionMe.Traj.Quaternion.getDefaultInstance() : rotationVector_;
+ }
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.QuaternionOrBuilder getRotationVectorOrBuilder() {
+ return rotationVector_ == null ? com.openpositioning.PositionMe.Traj.Quaternion.getDefaultInstance() : rotationVector_;
+ }
+
+ public static final int STEP_COUNT_FIELD_NUMBER = 5;
+ private int stepCount_ = 0;
+ /**
+ *
+ * Number of steps so far
+ *
+ *
+ * int32 step_count = 5;
+ * @return The stepCount.
+ */
+ @java.lang.Override
+ public int getStepCount() {
+ return stepCount_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (relativeTimestamp_ != 0L) {
+ output.writeInt64(1, relativeTimestamp_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getAcc());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(3, getGyr());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(4, getRotationVector());
+ }
+ if (stepCount_ != 0) {
+ output.writeInt32(5, stepCount_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (relativeTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getAcc());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getGyr());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getRotationVector());
+ }
+ if (stepCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(5, stepCount_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.openpositioning.PositionMe.Traj.IMUReading)) {
+ return super.equals(obj);
+ }
+ com.openpositioning.PositionMe.Traj.IMUReading other = (com.openpositioning.PositionMe.Traj.IMUReading) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (hasAcc() != other.hasAcc()) return false;
+ if (hasAcc()) {
+ if (!getAcc()
+ .equals(other.getAcc())) return false;
+ }
+ if (hasGyr() != other.hasGyr()) return false;
+ if (hasGyr()) {
+ if (!getGyr()
+ .equals(other.getGyr())) return false;
+ }
+ if (hasRotationVector() != other.hasRotationVector()) return false;
+ if (hasRotationVector()) {
+ if (!getRotationVector()
+ .equals(other.getRotationVector())) return false;
+ }
+ if (getStepCount()
+ != other.getStepCount()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRelativeTimestamp());
+ if (hasAcc()) {
+ hash = (37 * hash) + ACC_FIELD_NUMBER;
+ hash = (53 * hash) + getAcc().hashCode();
+ }
+ if (hasGyr()) {
+ hash = (37 * hash) + GYR_FIELD_NUMBER;
+ hash = (53 * hash) + getGyr().hashCode();
+ }
+ if (hasRotationVector()) {
+ hash = (37 * hash) + ROTATION_VECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getRotationVector().hashCode();
+ }
+ hash = (37 * hash) + STEP_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getStepCount();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.IMUReading parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.openpositioning.PositionMe.Traj.IMUReading prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code IMUReading}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:IMUReading)
+ com.openpositioning.PositionMe.Traj.IMUReadingOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_IMUReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_IMUReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.IMUReading.class, com.openpositioning.PositionMe.Traj.IMUReading.Builder.class);
+ }
+
+ // Construct using com.openpositioning.PositionMe.Traj.IMUReading.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
+ getAccFieldBuilder();
+ getGyrFieldBuilder();
+ getRotationVectorFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ relativeTimestamp_ = 0L;
+ acc_ = null;
+ if (accBuilder_ != null) {
+ accBuilder_.dispose();
+ accBuilder_ = null;
+ }
+ gyr_ = null;
+ if (gyrBuilder_ != null) {
+ gyrBuilder_.dispose();
+ gyrBuilder_ = null;
+ }
+ rotationVector_ = null;
+ if (rotationVectorBuilder_ != null) {
+ rotationVectorBuilder_.dispose();
+ rotationVectorBuilder_ = null;
+ }
+ stepCount_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openpositioning.PositionMe.Traj.internal_static_IMUReading_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.IMUReading getDefaultInstanceForType() {
+ return com.openpositioning.PositionMe.Traj.IMUReading.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.IMUReading build() {
+ com.openpositioning.PositionMe.Traj.IMUReading result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.IMUReading buildPartial() {
+ com.openpositioning.PositionMe.Traj.IMUReading result = new com.openpositioning.PositionMe.Traj.IMUReading(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.openpositioning.PositionMe.Traj.IMUReading result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.relativeTimestamp_ = relativeTimestamp_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.acc_ = accBuilder_ == null
+ ? acc_
+ : accBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.gyr_ = gyrBuilder_ == null
+ ? gyr_
+ : gyrBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.rotationVector_ = rotationVectorBuilder_ == null
+ ? rotationVector_
+ : rotationVectorBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.stepCount_ = stepCount_;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openpositioning.PositionMe.Traj.IMUReading) {
+ return mergeFrom((com.openpositioning.PositionMe.Traj.IMUReading)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openpositioning.PositionMe.Traj.IMUReading other) {
+ if (other == com.openpositioning.PositionMe.Traj.IMUReading.getDefaultInstance()) return this;
+ if (other.getRelativeTimestamp() != 0L) {
+ setRelativeTimestamp(other.getRelativeTimestamp());
+ }
+ if (other.hasAcc()) {
+ mergeAcc(other.getAcc());
+ }
+ if (other.hasGyr()) {
+ mergeGyr(other.getGyr());
+ }
+ if (other.hasRotationVector()) {
+ mergeRotationVector(other.getRotationVector());
+ }
+ if (other.getStepCount() != 0) {
+ setStepCount(other.getStepCount());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ relativeTimestamp_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getAccFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getGyrFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ input.readMessage(
+ getRotationVectorFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 40: {
+ stepCount_ = input.readInt32();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long relativeTimestamp_ ;
+ /**
+ *
+ * milliseconds
+ *
+ *
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ *
+ * milliseconds
+ *
+ *
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * milliseconds
+ *
+ *
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.openpositioning.PositionMe.Traj.Vector3 acc_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Vector3, com.openpositioning.PositionMe.Traj.Vector3.Builder, com.openpositioning.PositionMe.Traj.Vector3OrBuilder> accBuilder_;
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ * @return Whether the acc field is set.
+ */
+ public boolean hasAcc() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ * @return The acc.
+ */
+ public com.openpositioning.PositionMe.Traj.Vector3 getAcc() {
+ if (accBuilder_ == null) {
+ return acc_ == null ? com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : acc_;
+ } else {
+ return accBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ */
+ public Builder setAcc(com.openpositioning.PositionMe.Traj.Vector3 value) {
+ if (accBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ acc_ = value;
+ } else {
+ accBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ */
+ public Builder setAcc(
+ com.openpositioning.PositionMe.Traj.Vector3.Builder builderForValue) {
+ if (accBuilder_ == null) {
+ acc_ = builderForValue.build();
+ } else {
+ accBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ */
+ public Builder mergeAcc(com.openpositioning.PositionMe.Traj.Vector3 value) {
+ if (accBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ acc_ != null &&
+ acc_ != com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance()) {
+ getAccBuilder().mergeFrom(value);
+ } else {
+ acc_ = value;
+ }
+ } else {
+ accBuilder_.mergeFrom(value);
+ }
+ if (acc_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ */
+ public Builder clearAcc() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ acc_ = null;
+ if (accBuilder_ != null) {
+ accBuilder_.dispose();
+ accBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ */
+ public com.openpositioning.PositionMe.Traj.Vector3.Builder getAccBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getAccFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ */
+ public com.openpositioning.PositionMe.Traj.Vector3OrBuilder getAccOrBuilder() {
+ if (accBuilder_ != null) {
+ return accBuilder_.getMessageOrBuilder();
+ } else {
+ return acc_ == null ?
+ com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : acc_;
+ }
+ }
+ /**
+ *
+ * Accelerometer [m/s^2]
+ *
+ *
+ * .Vector3 acc = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Vector3, com.openpositioning.PositionMe.Traj.Vector3.Builder, com.openpositioning.PositionMe.Traj.Vector3OrBuilder>
+ getAccFieldBuilder() {
+ if (accBuilder_ == null) {
+ accBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Vector3, com.openpositioning.PositionMe.Traj.Vector3.Builder, com.openpositioning.PositionMe.Traj.Vector3OrBuilder>(
+ getAcc(),
+ getParentForChildren(),
+ isClean());
+ acc_ = null;
+ }
+ return accBuilder_;
+ }
+
+ private com.openpositioning.PositionMe.Traj.Vector3 gyr_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Vector3, com.openpositioning.PositionMe.Traj.Vector3.Builder, com.openpositioning.PositionMe.Traj.Vector3OrBuilder> gyrBuilder_;
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ * @return Whether the gyr field is set.
+ */
+ public boolean hasGyr() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ * @return The gyr.
+ */
+ public com.openpositioning.PositionMe.Traj.Vector3 getGyr() {
+ if (gyrBuilder_ == null) {
+ return gyr_ == null ? com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : gyr_;
+ } else {
+ return gyrBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ */
+ public Builder setGyr(com.openpositioning.PositionMe.Traj.Vector3 value) {
+ if (gyrBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ gyr_ = value;
+ } else {
+ gyrBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ */
+ public Builder setGyr(
+ com.openpositioning.PositionMe.Traj.Vector3.Builder builderForValue) {
+ if (gyrBuilder_ == null) {
+ gyr_ = builderForValue.build();
+ } else {
+ gyrBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ */
+ public Builder mergeGyr(com.openpositioning.PositionMe.Traj.Vector3 value) {
+ if (gyrBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ gyr_ != null &&
+ gyr_ != com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance()) {
+ getGyrBuilder().mergeFrom(value);
+ } else {
+ gyr_ = value;
+ }
+ } else {
+ gyrBuilder_.mergeFrom(value);
+ }
+ if (gyr_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ */
+ public Builder clearGyr() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ gyr_ = null;
+ if (gyrBuilder_ != null) {
+ gyrBuilder_.dispose();
+ gyrBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ */
+ public com.openpositioning.PositionMe.Traj.Vector3.Builder getGyrBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getGyrFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ */
+ public com.openpositioning.PositionMe.Traj.Vector3OrBuilder getGyrOrBuilder() {
+ if (gyrBuilder_ != null) {
+ return gyrBuilder_.getMessageOrBuilder();
+ } else {
+ return gyr_ == null ?
+ com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : gyr_;
+ }
+ }
+ /**
+ *
+ * Gyroscope [radians/s]
+ *
+ *
+ * .Vector3 gyr = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Vector3, com.openpositioning.PositionMe.Traj.Vector3.Builder, com.openpositioning.PositionMe.Traj.Vector3OrBuilder>
+ getGyrFieldBuilder() {
+ if (gyrBuilder_ == null) {
+ gyrBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Vector3, com.openpositioning.PositionMe.Traj.Vector3.Builder, com.openpositioning.PositionMe.Traj.Vector3OrBuilder>(
+ getGyr(),
+ getParentForChildren(),
+ isClean());
+ gyr_ = null;
+ }
+ return gyrBuilder_;
+ }
+
+ private com.openpositioning.PositionMe.Traj.Quaternion rotationVector_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Quaternion, com.openpositioning.PositionMe.Traj.Quaternion.Builder, com.openpositioning.PositionMe.Traj.QuaternionOrBuilder> rotationVectorBuilder_;
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ * @return Whether the rotationVector field is set.
+ */
+ public boolean hasRotationVector() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ * @return The rotationVector.
+ */
+ public com.openpositioning.PositionMe.Traj.Quaternion getRotationVector() {
+ if (rotationVectorBuilder_ == null) {
+ return rotationVector_ == null ? com.openpositioning.PositionMe.Traj.Quaternion.getDefaultInstance() : rotationVector_;
+ } else {
+ return rotationVectorBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ */
+ public Builder setRotationVector(com.openpositioning.PositionMe.Traj.Quaternion value) {
+ if (rotationVectorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ rotationVector_ = value;
+ } else {
+ rotationVectorBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ */
+ public Builder setRotationVector(
+ com.openpositioning.PositionMe.Traj.Quaternion.Builder builderForValue) {
+ if (rotationVectorBuilder_ == null) {
+ rotationVector_ = builderForValue.build();
+ } else {
+ rotationVectorBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ */
+ public Builder mergeRotationVector(com.openpositioning.PositionMe.Traj.Quaternion value) {
+ if (rotationVectorBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0) &&
+ rotationVector_ != null &&
+ rotationVector_ != com.openpositioning.PositionMe.Traj.Quaternion.getDefaultInstance()) {
+ getRotationVectorBuilder().mergeFrom(value);
+ } else {
+ rotationVector_ = value;
+ }
+ } else {
+ rotationVectorBuilder_.mergeFrom(value);
+ }
+ if (rotationVector_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ */
+ public Builder clearRotationVector() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ rotationVector_ = null;
+ if (rotationVectorBuilder_ != null) {
+ rotationVectorBuilder_.dispose();
+ rotationVectorBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ */
+ public com.openpositioning.PositionMe.Traj.Quaternion.Builder getRotationVectorBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getRotationVectorFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ */
+ public com.openpositioning.PositionMe.Traj.QuaternionOrBuilder getRotationVectorOrBuilder() {
+ if (rotationVectorBuilder_ != null) {
+ return rotationVectorBuilder_.getMessageOrBuilder();
+ } else {
+ return rotationVector_ == null ?
+ com.openpositioning.PositionMe.Traj.Quaternion.getDefaultInstance() : rotationVector_;
+ }
+ }
+ /**
+ *
+ * Orientation [unitless], 4 components should square sum to ~1
+ *
+ *
+ * .Quaternion rotation_vector = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Quaternion, com.openpositioning.PositionMe.Traj.Quaternion.Builder, com.openpositioning.PositionMe.Traj.QuaternionOrBuilder>
+ getRotationVectorFieldBuilder() {
+ if (rotationVectorBuilder_ == null) {
+ rotationVectorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Quaternion, com.openpositioning.PositionMe.Traj.Quaternion.Builder, com.openpositioning.PositionMe.Traj.QuaternionOrBuilder>(
+ getRotationVector(),
+ getParentForChildren(),
+ isClean());
+ rotationVector_ = null;
+ }
+ return rotationVectorBuilder_;
+ }
+
+ private int stepCount_ ;
+ /**
+ *
+ * Number of steps so far
+ *
+ *
+ * int32 step_count = 5;
+ * @return The stepCount.
+ */
+ @java.lang.Override
+ public int getStepCount() {
+ return stepCount_;
+ }
+ /**
+ *
+ * Number of steps so far
+ *
+ *
+ * int32 step_count = 5;
+ * @param value The stepCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStepCount(int value) {
+
+ stepCount_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Number of steps so far
+ *
+ *
+ * int32 step_count = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearStepCount() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ stepCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:IMUReading)
+ }
+
+ // @@protoc_insertion_point(class_scope:IMUReading)
+ private static final com.openpositioning.PositionMe.Traj.IMUReading DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.openpositioning.PositionMe.Traj.IMUReading();
+ }
+
+ public static com.openpositioning.PositionMe.Traj.IMUReading getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public IMUReading parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.IMUReading getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface MagnetometerReadingOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:MagnetometerReading)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ * @return Whether the mag field is set.
+ */
+ boolean hasMag();
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ * @return The mag.
+ */
+ com.openpositioning.PositionMe.Traj.Vector3 getMag();
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ */
+ com.openpositioning.PositionMe.Traj.Vector3OrBuilder getMagOrBuilder();
+ }
+ /**
+ * Protobuf type {@code MagnetometerReading}
+ */
+ public static final class MagnetometerReading extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:MagnetometerReading)
+ MagnetometerReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ MagnetometerReading.class.getName());
+ }
+ // Use MagnetometerReading.newBuilder() to construct.
+ private MagnetometerReading(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private MagnetometerReading() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_MagnetometerReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_MagnetometerReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.MagnetometerReading.class, com.openpositioning.PositionMe.Traj.MagnetometerReading.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_ = 0L;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int MAG_FIELD_NUMBER = 2;
+ private com.openpositioning.PositionMe.Traj.Vector3 mag_;
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ * @return Whether the mag field is set.
+ */
+ @java.lang.Override
+ public boolean hasMag() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ * @return The mag.
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.Vector3 getMag() {
+ return mag_ == null ? com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : mag_;
+ }
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.Vector3OrBuilder getMagOrBuilder() {
+ return mag_ == null ? com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : mag_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (relativeTimestamp_ != 0L) {
+ output.writeInt64(1, relativeTimestamp_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getMag());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (relativeTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getMag());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.openpositioning.PositionMe.Traj.MagnetometerReading)) {
+ return super.equals(obj);
+ }
+ com.openpositioning.PositionMe.Traj.MagnetometerReading other = (com.openpositioning.PositionMe.Traj.MagnetometerReading) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (hasMag() != other.hasMag()) return false;
+ if (hasMag()) {
+ if (!getMag()
+ .equals(other.getMag())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRelativeTimestamp());
+ if (hasMag()) {
+ hash = (37 * hash) + MAG_FIELD_NUMBER;
+ hash = (53 * hash) + getMag().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.openpositioning.PositionMe.Traj.MagnetometerReading prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code MagnetometerReading}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:MagnetometerReading)
+ com.openpositioning.PositionMe.Traj.MagnetometerReadingOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_MagnetometerReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_MagnetometerReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.MagnetometerReading.class, com.openpositioning.PositionMe.Traj.MagnetometerReading.Builder.class);
+ }
+
+ // Construct using com.openpositioning.PositionMe.Traj.MagnetometerReading.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
+ getMagFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ relativeTimestamp_ = 0L;
+ mag_ = null;
+ if (magBuilder_ != null) {
+ magBuilder_.dispose();
+ magBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openpositioning.PositionMe.Traj.internal_static_MagnetometerReading_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.MagnetometerReading getDefaultInstanceForType() {
+ return com.openpositioning.PositionMe.Traj.MagnetometerReading.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.MagnetometerReading build() {
+ com.openpositioning.PositionMe.Traj.MagnetometerReading result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.MagnetometerReading buildPartial() {
+ com.openpositioning.PositionMe.Traj.MagnetometerReading result = new com.openpositioning.PositionMe.Traj.MagnetometerReading(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.openpositioning.PositionMe.Traj.MagnetometerReading result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.relativeTimestamp_ = relativeTimestamp_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.mag_ = magBuilder_ == null
+ ? mag_
+ : magBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openpositioning.PositionMe.Traj.MagnetometerReading) {
+ return mergeFrom((com.openpositioning.PositionMe.Traj.MagnetometerReading)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openpositioning.PositionMe.Traj.MagnetometerReading other) {
+ if (other == com.openpositioning.PositionMe.Traj.MagnetometerReading.getDefaultInstance()) return this;
+ if (other.getRelativeTimestamp() != 0L) {
+ setRelativeTimestamp(other.getRelativeTimestamp());
+ }
+ if (other.hasMag()) {
+ mergeMag(other.getMag());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ relativeTimestamp_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getMagFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long relativeTimestamp_ ;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.openpositioning.PositionMe.Traj.Vector3 mag_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Vector3, com.openpositioning.PositionMe.Traj.Vector3.Builder, com.openpositioning.PositionMe.Traj.Vector3OrBuilder> magBuilder_;
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ * @return Whether the mag field is set.
+ */
+ public boolean hasMag() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ * @return The mag.
+ */
+ public com.openpositioning.PositionMe.Traj.Vector3 getMag() {
+ if (magBuilder_ == null) {
+ return mag_ == null ? com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : mag_;
+ } else {
+ return magBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ */
+ public Builder setMag(com.openpositioning.PositionMe.Traj.Vector3 value) {
+ if (magBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mag_ = value;
+ } else {
+ magBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ */
+ public Builder setMag(
+ com.openpositioning.PositionMe.Traj.Vector3.Builder builderForValue) {
+ if (magBuilder_ == null) {
+ mag_ = builderForValue.build();
+ } else {
+ magBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ */
+ public Builder mergeMag(com.openpositioning.PositionMe.Traj.Vector3 value) {
+ if (magBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ mag_ != null &&
+ mag_ != com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance()) {
+ getMagBuilder().mergeFrom(value);
+ } else {
+ mag_ = value;
+ }
+ } else {
+ magBuilder_.mergeFrom(value);
+ }
+ if (mag_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ */
+ public Builder clearMag() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ mag_ = null;
+ if (magBuilder_ != null) {
+ magBuilder_.dispose();
+ magBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ */
+ public com.openpositioning.PositionMe.Traj.Vector3.Builder getMagBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getMagFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ */
+ public com.openpositioning.PositionMe.Traj.Vector3OrBuilder getMagOrBuilder() {
+ if (magBuilder_ != null) {
+ return magBuilder_.getMessageOrBuilder();
+ } else {
+ return mag_ == null ?
+ com.openpositioning.PositionMe.Traj.Vector3.getDefaultInstance() : mag_;
+ }
+ }
+ /**
+ *
+ * Magnetometer [uT]
+ *
+ *
+ * .Vector3 mag = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Vector3, com.openpositioning.PositionMe.Traj.Vector3.Builder, com.openpositioning.PositionMe.Traj.Vector3OrBuilder>
+ getMagFieldBuilder() {
+ if (magBuilder_ == null) {
+ magBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.Vector3, com.openpositioning.PositionMe.Traj.Vector3.Builder, com.openpositioning.PositionMe.Traj.Vector3OrBuilder>(
+ getMag(),
+ getParentForChildren(),
+ isClean());
+ mag_ = null;
+ }
+ return magBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:MagnetometerReading)
+ }
+
+ // @@protoc_insertion_point(class_scope:MagnetometerReading)
+ private static final com.openpositioning.PositionMe.Traj.MagnetometerReading DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.openpositioning.PositionMe.Traj.MagnetometerReading();
+ }
+
+ public static com.openpositioning.PositionMe.Traj.MagnetometerReading getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public MagnetometerReading parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.MagnetometerReading getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface BarometerReadingOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:BarometerReading)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
+ /**
+ *
+ * mbar
+ *
+ *
+ * float pressure = 2;
+ * @return The pressure.
+ */
+ float getPressure();
+ }
+ /**
+ * Protobuf type {@code BarometerReading}
+ */
+ public static final class BarometerReading extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:BarometerReading)
+ BarometerReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ BarometerReading.class.getName());
+ }
+ // Use BarometerReading.newBuilder() to construct.
+ private BarometerReading(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private BarometerReading() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_BarometerReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_BarometerReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.BarometerReading.class, com.openpositioning.PositionMe.Traj.BarometerReading.Builder.class);
+ }
+
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_ = 0L;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int PRESSURE_FIELD_NUMBER = 2;
+ private float pressure_ = 0F;
+ /**
+ *
+ * mbar
+ *
+ *
+ * float pressure = 2;
+ * @return The pressure.
+ */
+ @java.lang.Override
+ public float getPressure() {
+ return pressure_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (relativeTimestamp_ != 0L) {
+ output.writeInt64(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(pressure_) != 0) {
+ output.writeFloat(2, pressure_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (relativeTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(pressure_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(2, pressure_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.openpositioning.PositionMe.Traj.BarometerReading)) {
+ return super.equals(obj);
+ }
+ com.openpositioning.PositionMe.Traj.BarometerReading other = (com.openpositioning.PositionMe.Traj.BarometerReading) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (java.lang.Float.floatToIntBits(getPressure())
+ != java.lang.Float.floatToIntBits(
+ other.getPressure())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRelativeTimestamp());
+ hash = (37 * hash) + PRESSURE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getPressure());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.BarometerReading parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.openpositioning.PositionMe.Traj.BarometerReading prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code BarometerReading}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:BarometerReading)
+ com.openpositioning.PositionMe.Traj.BarometerReadingOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_BarometerReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_BarometerReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.BarometerReading.class, com.openpositioning.PositionMe.Traj.BarometerReading.Builder.class);
+ }
+
+ // Construct using com.openpositioning.PositionMe.Traj.BarometerReading.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ relativeTimestamp_ = 0L;
+ pressure_ = 0F;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openpositioning.PositionMe.Traj.internal_static_BarometerReading_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.BarometerReading getDefaultInstanceForType() {
+ return com.openpositioning.PositionMe.Traj.BarometerReading.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.BarometerReading build() {
+ com.openpositioning.PositionMe.Traj.BarometerReading result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.BarometerReading buildPartial() {
+ com.openpositioning.PositionMe.Traj.BarometerReading result = new com.openpositioning.PositionMe.Traj.BarometerReading(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.openpositioning.PositionMe.Traj.BarometerReading result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.relativeTimestamp_ = relativeTimestamp_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pressure_ = pressure_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openpositioning.PositionMe.Traj.BarometerReading) {
+ return mergeFrom((com.openpositioning.PositionMe.Traj.BarometerReading)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openpositioning.PositionMe.Traj.BarometerReading other) {
+ if (other == com.openpositioning.PositionMe.Traj.BarometerReading.getDefaultInstance()) return this;
+ if (other.getRelativeTimestamp() != 0L) {
+ setRelativeTimestamp(other.getRelativeTimestamp());
+ }
+ if (other.getPressure() != 0F) {
+ setPressure(other.getPressure());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ relativeTimestamp_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 21: {
+ pressure_ = input.readFloat();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 21
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long relativeTimestamp_ ;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private float pressure_ ;
+ /**
+ *
+ * mbar
+ *
+ *
+ * float pressure = 2;
+ * @return The pressure.
+ */
+ @java.lang.Override
+ public float getPressure() {
+ return pressure_;
+ }
+ /**
+ *
+ * mbar
+ *
+ *
+ * float pressure = 2;
+ * @param value The pressure to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPressure(float value) {
+
+ pressure_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * mbar
+ *
+ *
+ * float pressure = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearPressure() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ pressure_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:BarometerReading)
+ }
+
+ // @@protoc_insertion_point(class_scope:BarometerReading)
+ private static final com.openpositioning.PositionMe.Traj.BarometerReading DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.openpositioning.PositionMe.Traj.BarometerReading();
+ }
+
+ public static com.openpositioning.PositionMe.Traj.BarometerReading getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BarometerReading parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.BarometerReading getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface LightReadingOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:LightReading)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
+ /**
+ *
+ * lux
+ *
+ *
+ * float light = 2;
+ * @return The light.
+ */
+ float getLight();
+ }
+ /**
+ * Protobuf type {@code LightReading}
+ */
+ public static final class LightReading extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:LightReading)
+ LightReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ LightReading.class.getName());
+ }
+ // Use LightReading.newBuilder() to construct.
+ private LightReading(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private LightReading() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_LightReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_LightReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.LightReading.class, com.openpositioning.PositionMe.Traj.LightReading.Builder.class);
+ }
+
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_ = 0L;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int LIGHT_FIELD_NUMBER = 2;
+ private float light_ = 0F;
+ /**
+ *
+ * lux
+ *
+ *
+ * float light = 2;
+ * @return The light.
+ */
+ @java.lang.Override
+ public float getLight() {
+ return light_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (relativeTimestamp_ != 0L) {
+ output.writeInt64(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(light_) != 0) {
+ output.writeFloat(2, light_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (relativeTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(light_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(2, light_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.openpositioning.PositionMe.Traj.LightReading)) {
+ return super.equals(obj);
+ }
+ com.openpositioning.PositionMe.Traj.LightReading other = (com.openpositioning.PositionMe.Traj.LightReading) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (java.lang.Float.floatToIntBits(getLight())
+ != java.lang.Float.floatToIntBits(
+ other.getLight())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRelativeTimestamp());
+ hash = (37 * hash) + LIGHT_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getLight());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openpositioning.PositionMe.Traj.LightReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.LightReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.LightReading parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.LightReading parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.LightReading parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.LightReading parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.LightReading parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.LightReading parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.LightReading parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.LightReading parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.LightReading parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.LightReading parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.openpositioning.PositionMe.Traj.LightReading prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code LightReading}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:LightReading)
+ com.openpositioning.PositionMe.Traj.LightReadingOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_LightReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_LightReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.LightReading.class, com.openpositioning.PositionMe.Traj.LightReading.Builder.class);
+ }
+
+ // Construct using com.openpositioning.PositionMe.Traj.LightReading.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ relativeTimestamp_ = 0L;
+ light_ = 0F;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openpositioning.PositionMe.Traj.internal_static_LightReading_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.LightReading getDefaultInstanceForType() {
+ return com.openpositioning.PositionMe.Traj.LightReading.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.LightReading build() {
+ com.openpositioning.PositionMe.Traj.LightReading result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.LightReading buildPartial() {
+ com.openpositioning.PositionMe.Traj.LightReading result = new com.openpositioning.PositionMe.Traj.LightReading(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.openpositioning.PositionMe.Traj.LightReading result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.relativeTimestamp_ = relativeTimestamp_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.light_ = light_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openpositioning.PositionMe.Traj.LightReading) {
+ return mergeFrom((com.openpositioning.PositionMe.Traj.LightReading)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openpositioning.PositionMe.Traj.LightReading other) {
+ if (other == com.openpositioning.PositionMe.Traj.LightReading.getDefaultInstance()) return this;
+ if (other.getRelativeTimestamp() != 0L) {
+ setRelativeTimestamp(other.getRelativeTimestamp());
+ }
+ if (other.getLight() != 0F) {
+ setLight(other.getLight());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ relativeTimestamp_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 21: {
+ light_ = input.readFloat();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 21
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long relativeTimestamp_ ;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private float light_ ;
+ /**
+ *
+ * lux
+ *
+ *
+ * float light = 2;
+ * @return The light.
+ */
+ @java.lang.Override
+ public float getLight() {
+ return light_;
+ }
+ /**
+ *
+ * lux
+ *
+ *
+ * float light = 2;
+ * @param value The light to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLight(float value) {
+
+ light_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * lux
+ *
+ *
+ * float light = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearLight() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ light_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:LightReading)
+ }
+
+ // @@protoc_insertion_point(class_scope:LightReading)
+ private static final com.openpositioning.PositionMe.Traj.LightReading DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.openpositioning.PositionMe.Traj.LightReading();
+ }
+
+ public static com.openpositioning.PositionMe.Traj.LightReading getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public LightReading parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.LightReading getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ProximityReadingOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:ProximityReading)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
+ /**
+ *
+ * cm
+ *
+ *
+ * float distance = 2;
+ * @return The distance.
+ */
+ float getDistance();
+ }
+ /**
+ * Protobuf type {@code ProximityReading}
+ */
+ public static final class ProximityReading extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:ProximityReading)
+ ProximityReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ ProximityReading.class.getName());
+ }
+ // Use ProximityReading.newBuilder() to construct.
+ private ProximityReading(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private ProximityReading() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_ProximityReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_ProximityReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.ProximityReading.class, com.openpositioning.PositionMe.Traj.ProximityReading.Builder.class);
+ }
+
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_ = 0L;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int DISTANCE_FIELD_NUMBER = 2;
+ private float distance_ = 0F;
+ /**
+ *
+ * cm
+ *
+ *
+ * float distance = 2;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public float getDistance() {
+ return distance_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (relativeTimestamp_ != 0L) {
+ output.writeInt64(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(distance_) != 0) {
+ output.writeFloat(2, distance_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (relativeTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(distance_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(2, distance_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.openpositioning.PositionMe.Traj.ProximityReading)) {
+ return super.equals(obj);
+ }
+ com.openpositioning.PositionMe.Traj.ProximityReading other = (com.openpositioning.PositionMe.Traj.ProximityReading) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (java.lang.Float.floatToIntBits(getDistance())
+ != java.lang.Float.floatToIntBits(
+ other.getDistance())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRelativeTimestamp());
+ hash = (37 * hash) + DISTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getDistance());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.ProximityReading parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.openpositioning.PositionMe.Traj.ProximityReading prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ProximityReading}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:ProximityReading)
+ com.openpositioning.PositionMe.Traj.ProximityReadingOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_ProximityReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_ProximityReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.ProximityReading.class, com.openpositioning.PositionMe.Traj.ProximityReading.Builder.class);
+ }
+
+ // Construct using com.openpositioning.PositionMe.Traj.ProximityReading.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ relativeTimestamp_ = 0L;
+ distance_ = 0F;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openpositioning.PositionMe.Traj.internal_static_ProximityReading_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.ProximityReading getDefaultInstanceForType() {
+ return com.openpositioning.PositionMe.Traj.ProximityReading.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.ProximityReading build() {
+ com.openpositioning.PositionMe.Traj.ProximityReading result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.ProximityReading buildPartial() {
+ com.openpositioning.PositionMe.Traj.ProximityReading result = new com.openpositioning.PositionMe.Traj.ProximityReading(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.openpositioning.PositionMe.Traj.ProximityReading result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.relativeTimestamp_ = relativeTimestamp_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.distance_ = distance_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openpositioning.PositionMe.Traj.ProximityReading) {
+ return mergeFrom((com.openpositioning.PositionMe.Traj.ProximityReading)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openpositioning.PositionMe.Traj.ProximityReading other) {
+ if (other == com.openpositioning.PositionMe.Traj.ProximityReading.getDefaultInstance()) return this;
+ if (other.getRelativeTimestamp() != 0L) {
+ setRelativeTimestamp(other.getRelativeTimestamp());
+ }
+ if (other.getDistance() != 0F) {
+ setDistance(other.getDistance());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ relativeTimestamp_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 21: {
+ distance_ = input.readFloat();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 21
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long relativeTimestamp_ ;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private float distance_ ;
+ /**
+ *
+ * cm
+ *
+ *
+ * float distance = 2;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public float getDistance() {
+ return distance_;
+ }
+ /**
+ *
+ * cm
+ *
+ *
+ * float distance = 2;
+ * @param value The distance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDistance(float value) {
+
+ distance_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * cm
+ *
+ *
+ * float distance = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearDistance() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ distance_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:ProximityReading)
+ }
+
+ // @@protoc_insertion_point(class_scope:ProximityReading)
+ private static final com.openpositioning.PositionMe.Traj.ProximityReading DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new Trajectory();
+ DEFAULT_INSTANCE = new com.openpositioning.PositionMe.Traj.ProximityReading();
}
- public static Trajectory getDefaultInstance() {
+ public static com.openpositioning.PositionMe.Traj.ProximityReading getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- public Trajectory parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Trajectory(input, extensionRegistry);
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ProximityReading parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return PARSER;
}
- @Override
- public com.google.protobuf.Parser getParserForType() {
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public Trajectory getDefaultInstanceForType() {
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.ProximityReading getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
- public interface Pdr_SampleOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Pdr_Sample)
- com.google.protobuf.MessageOrBuilder {
+ public interface GNSSPositionOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:GNSSPosition)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
/**
*
- * milliseconds from the start_timestamp
+ * degrees (minimum 6 significant figures)
+ * latitude between -90 and 90
*
*
- * optional int64 relative_timestamp = 1;
+ * double latitude = 2;
+ * @return The latitude.
*/
- long getRelativeTimestamp();
+ double getLatitude();
/**
*
- * Both in metres. You should implement an algorithm to estimate
- * these values. The values are always relative to your start point
- * so the first entry should always be x = 0.0, y = 0.0
+ * longitude between -180 and 180
*
*
- * optional float x = 2;
+ * double longitude = 3;
+ * @return The longitude.
*/
- float getX();
+ double getLongitude();
/**
- * optional float y = 3;
+ *
+ * metres
+ *
+ *
+ * double altitude = 4;
+ * @return The altitude.
*/
- float getY();
+ double getAltitude();
+
+ /**
+ *
+ * floor name
+ *
+ *
+ * optional string floor = 5;
+ * @return Whether the floor field is set.
+ */
+ boolean hasFloor();
+ /**
+ *
+ * floor name
+ *
+ *
+ * optional string floor = 5;
+ * @return The floor.
+ */
+ java.lang.String getFloor();
+ /**
+ *
+ * floor name
+ *
+ *
+ * optional string floor = 5;
+ * @return The bytes for floor.
+ */
+ com.google.protobuf.ByteString
+ getFloorBytes();
}
/**
- * Protobuf type {@code Pdr_Sample}
+ * Protobuf type {@code GNSSPosition}
*/
- public static final class Pdr_Sample extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Pdr_Sample)
- Pdr_SampleOrBuilder {
- // Use Pdr_Sample.newBuilder() to construct.
- private Pdr_Sample(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ public static final class GNSSPosition extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:GNSSPosition)
+ GNSSPositionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ GNSSPosition.class.getName());
+ }
+ // Use GNSSPosition.newBuilder() to construct.
+ private GNSSPosition(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
- private Pdr_Sample() {
- relativeTimestamp_ = 0L;
- x_ = 0F;
- y_ = 0F;
- }
-
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
- }
- private Pdr_Sample(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- int mutable_bitField0_ = 0;
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!input.skipField(tag)) {
- done = true;
- }
- break;
- }
- case 8: {
+ private GNSSPosition() {
+ floor_ = "";
+ }
- relativeTimestamp_ = input.readInt64();
- break;
- }
- case 21: {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_GNSSPosition_descriptor;
+ }
- x_ = input.readFloat();
- break;
- }
- case 29: {
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_GNSSPosition_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.GNSSPosition.class, com.openpositioning.PositionMe.Traj.GNSSPosition.Builder.class);
+ }
- y_ = input.readFloat();
- 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 {
- makeExtensionsImmutable();
- }
+ private int bitField0_;
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_ = 0L;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
}
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Traj.internal_static_Pdr_Sample_descriptor;
+
+ public static final int LATITUDE_FIELD_NUMBER = 2;
+ private double latitude_ = 0D;
+ /**
+ *
+ * degrees (minimum 6 significant figures)
+ * latitude between -90 and 90
+ *
+ *
+ * double latitude = 2;
+ * @return The latitude.
+ */
+ @java.lang.Override
+ public double getLatitude() {
+ return latitude_;
+ }
+
+ public static final int LONGITUDE_FIELD_NUMBER = 3;
+ private double longitude_ = 0D;
+ /**
+ *
+ * longitude between -180 and 180
+ *
+ *
+ * double longitude = 3;
+ * @return The longitude.
+ */
+ @java.lang.Override
+ public double getLongitude() {
+ return longitude_;
}
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Traj.internal_static_Pdr_Sample_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Pdr_Sample.class, Builder.class);
+ public static final int ALTITUDE_FIELD_NUMBER = 4;
+ private double altitude_ = 0D;
+ /**
+ *
+ * metres
+ *
+ *
+ * double altitude = 4;
+ * @return The altitude.
+ */
+ @java.lang.Override
+ public double getAltitude() {
+ return altitude_;
}
- public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
- private long relativeTimestamp_;
+ public static final int FLOOR_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object floor_ = "";
/**
*
- * milliseconds from the start_timestamp
+ * floor name
*
*
- * optional int64 relative_timestamp = 1;
+ * optional string floor = 5;
+ * @return Whether the floor field is set.
*/
- public long getRelativeTimestamp() {
- return relativeTimestamp_;
+ @java.lang.Override
+ public boolean hasFloor() {
+ return ((bitField0_ & 0x00000001) != 0);
}
-
- public static final int X_FIELD_NUMBER = 2;
- private float x_;
/**
*
- * Both in metres. You should implement an algorithm to estimate
- * these values. The values are always relative to your start point
- * so the first entry should always be x = 0.0, y = 0.0
+ * floor name
*
*
- * optional float x = 2;
+ * optional string floor = 5;
+ * @return The floor.
*/
- public float getX() {
- return x_;
+ @java.lang.Override
+ public java.lang.String getFloor() {
+ java.lang.Object ref = floor_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ floor_ = s;
+ return s;
+ }
}
-
- public static final int Y_FIELD_NUMBER = 3;
- private float y_;
/**
- * optional float y = 3;
+ *
+ * floor name
+ *
+ *
+ * optional string floor = 5;
+ * @return The bytes for floor.
*/
- public float getY() {
- return y_;
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getFloorBytes() {
+ java.lang.Object ref = floor_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ floor_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -5027,19 +12292,28 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
+ throws java.io.IOException {
if (relativeTimestamp_ != 0L) {
output.writeInt64(1, relativeTimestamp_);
}
- if (x_ != 0F) {
- output.writeFloat(2, x_);
+ if (java.lang.Double.doubleToRawLongBits(latitude_) != 0) {
+ output.writeDouble(2, latitude_);
}
- if (y_ != 0F) {
- output.writeFloat(3, y_);
+ if (java.lang.Double.doubleToRawLongBits(longitude_) != 0) {
+ output.writeDouble(3, longitude_);
+ }
+ if (java.lang.Double.doubleToRawLongBits(altitude_) != 0) {
+ output.writeDouble(4, altitude_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, floor_);
}
+ getUnknownFields().writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -5047,789 +12321,916 @@ public int getSerializedSize() {
size = 0;
if (relativeTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, relativeTimestamp_);
+ .computeInt64Size(1, relativeTimestamp_);
}
- if (x_ != 0F) {
+ if (java.lang.Double.doubleToRawLongBits(latitude_) != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(2, x_);
+ .computeDoubleSize(2, latitude_);
}
- if (y_ != 0F) {
+ if (java.lang.Double.doubleToRawLongBits(longitude_) != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(3, y_);
+ .computeDoubleSize(3, longitude_);
}
+ if (java.lang.Double.doubleToRawLongBits(altitude_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(4, altitude_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, floor_);
+ }
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
- if (!(obj instanceof Pdr_Sample)) {
+ if (!(obj instanceof com.openpositioning.PositionMe.Traj.GNSSPosition)) {
return super.equals(obj);
}
- Pdr_Sample other = (Pdr_Sample) obj;
-
- boolean result = true;
- result = result && (getRelativeTimestamp()
- == other.getRelativeTimestamp());
- result = result && (
- Float.floatToIntBits(getX())
- == Float.floatToIntBits(
- other.getX()));
- result = result && (
- Float.floatToIntBits(getY())
- == Float.floatToIntBits(
- other.getY()));
- return result;
+ com.openpositioning.PositionMe.Traj.GNSSPosition other = (com.openpositioning.PositionMe.Traj.GNSSPosition) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (java.lang.Double.doubleToLongBits(getLatitude())
+ != java.lang.Double.doubleToLongBits(
+ other.getLatitude())) return false;
+ if (java.lang.Double.doubleToLongBits(getLongitude())
+ != java.lang.Double.doubleToLongBits(
+ other.getLongitude())) return false;
+ if (java.lang.Double.doubleToLongBits(getAltitude())
+ != java.lang.Double.doubleToLongBits(
+ other.getAltitude())) return false;
+ if (hasFloor() != other.hasFloor()) return false;
+ if (hasFloor()) {
+ if (!getFloor()
+ .equals(other.getFloor())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
}
- @Override
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getRelativeTimestamp());
- hash = (37 * hash) + X_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getX());
- hash = (37 * hash) + Y_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getY());
- hash = (29 * hash) + unknownFields.hashCode();
+ getRelativeTimestamp());
+ hash = (37 * hash) + LATITUDE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getLatitude()));
+ hash = (37 * hash) + LONGITUDE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getLongitude()));
+ hash = (37 * hash) + ALTITUDE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getAltitude()));
+ if (hasFloor()) {
+ hash = (37 * hash) + FLOOR_FIELD_NUMBER;
+ hash = (53 * hash) + getFloor().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static Pdr_Sample parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Pdr_Sample parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Pdr_Sample parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Pdr_Sample parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Pdr_Sample parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static Pdr_Sample 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 Pdr_Sample parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static Pdr_Sample 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 Pdr_Sample parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static Pdr_Sample parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(Pdr_Sample prototype) {
+ public static Builder newBuilder(com.openpositioning.PositionMe.Traj.GNSSPosition prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
+ ? new Builder() : new Builder().mergeFrom(this);
}
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code Pdr_Sample}
+ * Protobuf type {@code GNSSPosition}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:Pdr_Sample)
- Pdr_SampleOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:GNSSPosition)
+ com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Traj.internal_static_Pdr_Sample_descriptor;
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_GNSSPosition_descriptor;
}
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Traj.internal_static_Pdr_Sample_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Pdr_Sample.class, Builder.class);
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_GNSSPosition_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.GNSSPosition.class, com.openpositioning.PositionMe.Traj.GNSSPosition.Builder.class);
}
- // Construct using Traj.Pdr_Sample.newBuilder()
+ // Construct using com.openpositioning.PositionMe.Traj.GNSSPosition.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
+
}
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
relativeTimestamp_ = 0L;
-
- x_ = 0F;
-
- y_ = 0F;
-
+ latitude_ = 0D;
+ longitude_ = 0D;
+ altitude_ = 0D;
+ floor_ = "";
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return Traj.internal_static_Pdr_Sample_descriptor;
+ getDescriptorForType() {
+ return com.openpositioning.PositionMe.Traj.internal_static_GNSSPosition_descriptor;
}
- public Pdr_Sample getDefaultInstanceForType() {
- return Pdr_Sample.getDefaultInstance();
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSPosition getDefaultInstanceForType() {
+ return com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance();
}
- public Pdr_Sample build() {
- Pdr_Sample result = buildPartial();
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSPosition build() {
+ com.openpositioning.PositionMe.Traj.GNSSPosition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public Pdr_Sample buildPartial() {
- Pdr_Sample result = new Pdr_Sample(this);
- result.relativeTimestamp_ = relativeTimestamp_;
- result.x_ = x_;
- result.y_ = y_;
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSPosition buildPartial() {
+ com.openpositioning.PositionMe.Traj.GNSSPosition result = new com.openpositioning.PositionMe.Traj.GNSSPosition(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
- public Builder clone() {
- return (Builder) super.clone();
- }
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
- return (Builder) super.setField(field, value);
- }
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ private void buildPartial0(com.openpositioning.PositionMe.Traj.GNSSPosition result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.relativeTimestamp_ = relativeTimestamp_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.latitude_ = latitude_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.longitude_ = longitude_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.altitude_ = altitude_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.floor_ = floor_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof Pdr_Sample) {
- return mergeFrom((Pdr_Sample)other);
+ if (other instanceof com.openpositioning.PositionMe.Traj.GNSSPosition) {
+ return mergeFrom((com.openpositioning.PositionMe.Traj.GNSSPosition)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(Pdr_Sample other) {
- if (other == Pdr_Sample.getDefaultInstance()) return this;
+ public Builder mergeFrom(com.openpositioning.PositionMe.Traj.GNSSPosition other) {
+ if (other == com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance()) return this;
if (other.getRelativeTimestamp() != 0L) {
setRelativeTimestamp(other.getRelativeTimestamp());
}
- if (other.getX() != 0F) {
- setX(other.getX());
+ if (other.getLatitude() != 0D) {
+ setLatitude(other.getLatitude());
}
- if (other.getY() != 0F) {
- setY(other.getY());
+ if (other.getLongitude() != 0D) {
+ setLongitude(other.getLongitude());
}
+ if (other.getAltitude() != 0D) {
+ setAltitude(other.getAltitude());
+ }
+ if (other.hasFloor()) {
+ floor_ = other.floor_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Pdr_Sample parsedMessage = null;
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ relativeTimestamp_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 17: {
+ latitude_ = input.readDouble();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 17
+ case 25: {
+ longitude_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ case 33: {
+ altitude_ = input.readDouble();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 33
+ case 42: {
+ floor_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Pdr_Sample) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
+ private int bitField0_;
private long relativeTimestamp_ ;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private double latitude_ ;
/**
*
- * milliseconds from the start_timestamp
+ * degrees (minimum 6 significant figures)
+ * latitude between -90 and 90
*
*
- * optional int64 relative_timestamp = 1;
+ * double latitude = 2;
+ * @return The latitude.
*/
- public long getRelativeTimestamp() {
- return relativeTimestamp_;
+ @java.lang.Override
+ public double getLatitude() {
+ return latitude_;
}
/**
*
- * milliseconds from the start_timestamp
+ * degrees (minimum 6 significant figures)
+ * latitude between -90 and 90
*
*
- * optional int64 relative_timestamp = 1;
+ * double latitude = 2;
+ * @param value The latitude to set.
+ * @return This builder for chaining.
*/
- public Builder setRelativeTimestamp(long value) {
-
- relativeTimestamp_ = value;
+ public Builder setLatitude(double value) {
+
+ latitude_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
- * milliseconds from the start_timestamp
+ * degrees (minimum 6 significant figures)
+ * latitude between -90 and 90
*
*
- * optional int64 relative_timestamp = 1;
+ * double latitude = 2;
+ * @return This builder for chaining.
*/
- public Builder clearRelativeTimestamp() {
-
- relativeTimestamp_ = 0L;
+ public Builder clearLatitude() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ latitude_ = 0D;
onChanged();
return this;
}
- private float x_ ;
+ private double longitude_ ;
/**
*
- * Both in metres. You should implement an algorithm to estimate
- * these values. The values are always relative to your start point
- * so the first entry should always be x = 0.0, y = 0.0
+ * longitude between -180 and 180
*
*
- * optional float x = 2;
+ * double longitude = 3;
+ * @return The longitude.
*/
- public float getX() {
- return x_;
+ @java.lang.Override
+ public double getLongitude() {
+ return longitude_;
}
/**
*
- * Both in metres. You should implement an algorithm to estimate
- * these values. The values are always relative to your start point
- * so the first entry should always be x = 0.0, y = 0.0
+ * longitude between -180 and 180
*
*
- * optional float x = 2;
+ * double longitude = 3;
+ * @param value The longitude to set.
+ * @return This builder for chaining.
*/
- public Builder setX(float value) {
-
- x_ = value;
+ public Builder setLongitude(double value) {
+
+ longitude_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
- * Both in metres. You should implement an algorithm to estimate
- * these values. The values are always relative to your start point
- * so the first entry should always be x = 0.0, y = 0.0
+ * longitude between -180 and 180
*
*
- * optional float x = 2;
+ * double longitude = 3;
+ * @return This builder for chaining.
*/
- public Builder clearX() {
-
- x_ = 0F;
+ public Builder clearLongitude() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ longitude_ = 0D;
onChanged();
return this;
}
- private float y_ ;
+ private double altitude_ ;
/**
- * optional float y = 3;
+ *
+ * metres
+ *
+ *
+ * double altitude = 4;
+ * @return The altitude.
*/
- public float getY() {
- return y_;
+ @java.lang.Override
+ public double getAltitude() {
+ return altitude_;
}
/**
- * optional float y = 3;
+ *
+ * metres
+ *
+ *
+ * double altitude = 4;
+ * @param value The altitude to set.
+ * @return This builder for chaining.
*/
- public Builder setY(float value) {
-
- y_ = value;
+ public Builder setAltitude(double value) {
+
+ altitude_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
- * optional float y = 3;
+ *
+ * metres
+ *
+ *
+ * double altitude = 4;
+ * @return This builder for chaining.
*/
- public Builder clearY() {
-
- y_ = 0F;
+ public Builder clearAltitude() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ altitude_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object floor_ = "";
+ /**
+ *
+ * floor name
+ *
+ *
+ * optional string floor = 5;
+ * @return Whether the floor field is set.
+ */
+ public boolean hasFloor() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ * floor name
+ *
+ *
+ * optional string floor = 5;
+ * @return The floor.
+ */
+ public java.lang.String getFloor() {
+ java.lang.Object ref = floor_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ floor_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ * floor name
+ *
+ *
+ * optional string floor = 5;
+ * @return The bytes for floor.
+ */
+ public com.google.protobuf.ByteString
+ getFloorBytes() {
+ java.lang.Object ref = floor_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ floor_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ * floor name
+ *
+ *
+ * optional string floor = 5;
+ * @param value The floor to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFloor(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ floor_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+ /**
+ *
+ * floor name
+ *
+ *
+ * optional string floor = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearFloor() {
+ floor_ = getDefaultInstance().getFloor();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
return this;
}
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+ /**
+ *
+ * floor name
+ *
+ *
+ * optional string floor = 5;
+ * @param value The bytes for floor to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFloorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ floor_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
-
- // @@protoc_insertion_point(builder_scope:Pdr_Sample)
+ // @@protoc_insertion_point(builder_scope:GNSSPosition)
}
- // @@protoc_insertion_point(class_scope:Pdr_Sample)
- private static final Pdr_Sample DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:GNSSPosition)
+ private static final com.openpositioning.PositionMe.Traj.GNSSPosition DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new Pdr_Sample();
+ DEFAULT_INSTANCE = new com.openpositioning.PositionMe.Traj.GNSSPosition();
}
- public static Pdr_Sample getDefaultInstance() {
+ public static com.openpositioning.PositionMe.Traj.GNSSPosition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- public Pdr_Sample parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Pdr_Sample(input, extensionRegistry);
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GNSSPosition parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return PARSER;
}
- @Override
- public com.google.protobuf.Parser getParserForType() {
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public Pdr_Sample getDefaultInstanceForType() {
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSPosition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
- }
-
- public interface Motion_SampleOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Motion_Sample)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * milliseconds
- *
- *
- * optional int64 relative_timestamp = 1;
- */
- long getRelativeTimestamp();
-
- /**
- *
- * m/s^2
- *
- *
- * optional float acc_x = 2;
- */
- float getAccX();
-
- /**
- * optional float acc_y = 3;
- */
- float getAccY();
+ }
- /**
- * optional float acc_z = 4;
- */
- float getAccZ();
+ public interface GNSSReadingOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:GNSSReading)
+ com.google.protobuf.MessageOrBuilder {
/**
- *
- * radians/s
- *
- *
- * optional float gyr_x = 5;
+ * .GNSSPosition position = 1;
+ * @return Whether the position field is set.
*/
- float getGyrX();
-
+ boolean hasPosition();
/**
- * optional float gyr_y = 6;
+ * .GNSSPosition position = 1;
+ * @return The position.
*/
- float getGyrY();
-
+ com.openpositioning.PositionMe.Traj.GNSSPosition getPosition();
/**
- * optional float gyr_z = 7;
+ * .GNSSPosition position = 1;
*/
- float getGyrZ();
+ com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder getPositionOrBuilder();
/**
*
- * unitless, 4 components should sum to ~1
+ * metres
*
*
- * optional float rotation_vector_x = 8;
+ * float accuracy = 2;
+ * @return The accuracy.
*/
- float getRotationVectorX();
+ float getAccuracy();
/**
- * optional float rotation_vector_y = 9;
+ *
+ * m/s
+ *
+ *
+ * float speed = 3;
+ * @return The speed.
*/
- float getRotationVectorY();
+ float getSpeed();
/**
- * optional float rotation_vector_z = 10;
+ *
+ * degrees
+ *
+ *
+ * float bearing = 4;
+ * @return The bearing.
*/
- float getRotationVectorZ();
+ float getBearing();
/**
- * optional float rotation_vector_w = 11;
+ *
+ * e.g 'gps' or 'network'
+ *
+ *
+ * string provider = 5;
+ * @return The provider.
*/
- float getRotationVectorW();
-
+ java.lang.String getProvider();
/**
*
- * Integer
+ * e.g 'gps' or 'network'
*
*
- * optional int32 step_count = 12;
+ * string provider = 5;
+ * @return The bytes for provider.
*/
- int getStepCount();
+ com.google.protobuf.ByteString
+ getProviderBytes();
}
/**
- * Protobuf type {@code Motion_Sample}
+ * Protobuf type {@code GNSSReading}
*/
- public static final class Motion_Sample extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Motion_Sample)
- Motion_SampleOrBuilder {
- // Use Motion_Sample.newBuilder() to construct.
- private Motion_Sample(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ public static final class GNSSReading extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:GNSSReading)
+ GNSSReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ GNSSReading.class.getName());
+ }
+ // Use GNSSReading.newBuilder() to construct.
+ private GNSSReading(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
- private Motion_Sample() {
- relativeTimestamp_ = 0L;
- accX_ = 0F;
- accY_ = 0F;
- accZ_ = 0F;
- gyrX_ = 0F;
- gyrY_ = 0F;
- gyrZ_ = 0F;
- rotationVectorX_ = 0F;
- rotationVectorY_ = 0F;
- rotationVectorZ_ = 0F;
- rotationVectorW_ = 0F;
- stepCount_ = 0;
- }
-
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
- }
- private Motion_Sample(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- int mutable_bitField0_ = 0;
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!input.skipField(tag)) {
- done = true;
- }
- break;
- }
- case 8: {
-
- relativeTimestamp_ = input.readInt64();
- break;
- }
- case 21: {
-
- accX_ = input.readFloat();
- break;
- }
- case 29: {
-
- accY_ = input.readFloat();
- break;
- }
- case 37: {
-
- accZ_ = input.readFloat();
- break;
- }
- case 45: {
-
- gyrX_ = input.readFloat();
- break;
- }
- case 53: {
-
- gyrY_ = input.readFloat();
- break;
- }
- case 61: {
-
- gyrZ_ = input.readFloat();
- break;
- }
- case 69: {
-
- rotationVectorX_ = input.readFloat();
- break;
- }
- case 77: {
-
- rotationVectorY_ = input.readFloat();
- break;
- }
- case 85: {
-
- rotationVectorZ_ = input.readFloat();
- break;
- }
- case 93: {
-
- rotationVectorW_ = input.readFloat();
- break;
- }
- case 96: {
-
- stepCount_ = input.readInt32();
- 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 {
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Traj.internal_static_Motion_Sample_descriptor;
+ private GNSSReading() {
+ provider_ = "";
}
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Traj.internal_static_Motion_Sample_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Motion_Sample.class, Builder.class);
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_GNSSReading_descriptor;
}
- public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
- private long relativeTimestamp_;
- /**
- *
- * milliseconds
- *
- *
- * optional int64 relative_timestamp = 1;
- */
- public long getRelativeTimestamp() {
- return relativeTimestamp_;
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_GNSSReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.GNSSReading.class, com.openpositioning.PositionMe.Traj.GNSSReading.Builder.class);
}
- public static final int ACC_X_FIELD_NUMBER = 2;
- private float accX_;
+ private int bitField0_;
+ public static final int POSITION_FIELD_NUMBER = 1;
+ private com.openpositioning.PositionMe.Traj.GNSSPosition position_;
/**
- *
- * m/s^2
- *
- *
- * optional float acc_x = 2;
+ * .GNSSPosition position = 1;
+ * @return Whether the position field is set.
*/
- public float getAccX() {
- return accX_;
+ @java.lang.Override
+ public boolean hasPosition() {
+ return ((bitField0_ & 0x00000001) != 0);
}
-
- public static final int ACC_Y_FIELD_NUMBER = 3;
- private float accY_;
/**
- * optional float acc_y = 3;
+ * .GNSSPosition position = 1;
+ * @return The position.
*/
- public float getAccY() {
- return accY_;
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSPosition getPosition() {
+ return position_ == null ? com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance() : position_;
}
-
- public static final int ACC_Z_FIELD_NUMBER = 4;
- private float accZ_;
/**
- * optional float acc_z = 4;
+ * .GNSSPosition position = 1;
*/
- public float getAccZ() {
- return accZ_;
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder getPositionOrBuilder() {
+ return position_ == null ? com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance() : position_;
}
- public static final int GYR_X_FIELD_NUMBER = 5;
- private float gyrX_;
+ public static final int ACCURACY_FIELD_NUMBER = 2;
+ private float accuracy_ = 0F;
/**
*
- * radians/s
+ * metres
*
*
- * optional float gyr_x = 5;
- */
- public float getGyrX() {
- return gyrX_;
- }
-
- public static final int GYR_Y_FIELD_NUMBER = 6;
- private float gyrY_;
- /**
- * optional float gyr_y = 6;
- */
- public float getGyrY() {
- return gyrY_;
- }
-
- public static final int GYR_Z_FIELD_NUMBER = 7;
- private float gyrZ_;
- /**
- * optional float gyr_z = 7;
+ * float accuracy = 2;
+ * @return The accuracy.
*/
- public float getGyrZ() {
- return gyrZ_;
+ @java.lang.Override
+ public float getAccuracy() {
+ return accuracy_;
}
- public static final int ROTATION_VECTOR_X_FIELD_NUMBER = 8;
- private float rotationVectorX_;
+ public static final int SPEED_FIELD_NUMBER = 3;
+ private float speed_ = 0F;
/**
*
- * unitless, 4 components should sum to ~1
+ * m/s
*
*
- * optional float rotation_vector_x = 8;
+ * float speed = 3;
+ * @return The speed.
*/
- public float getRotationVectorX() {
- return rotationVectorX_;
- }
-
- public static final int ROTATION_VECTOR_Y_FIELD_NUMBER = 9;
- private float rotationVectorY_;
- /**
- * optional float rotation_vector_y = 9;
- */
- public float getRotationVectorY() {
- return rotationVectorY_;
+ @java.lang.Override
+ public float getSpeed() {
+ return speed_;
}
- public static final int ROTATION_VECTOR_Z_FIELD_NUMBER = 10;
- private float rotationVectorZ_;
+ public static final int BEARING_FIELD_NUMBER = 4;
+ private float bearing_ = 0F;
/**
- * optional float rotation_vector_z = 10;
+ *
+ * degrees
+ *
+ *
+ * float bearing = 4;
+ * @return The bearing.
*/
- public float getRotationVectorZ() {
- return rotationVectorZ_;
+ @java.lang.Override
+ public float getBearing() {
+ return bearing_;
}
- public static final int ROTATION_VECTOR_W_FIELD_NUMBER = 11;
- private float rotationVectorW_;
+ public static final int PROVIDER_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object provider_ = "";
/**
- * optional float rotation_vector_w = 11;
+ *
+ * e.g 'gps' or 'network'
+ *
+ *
+ * string provider = 5;
+ * @return The provider.
*/
- public float getRotationVectorW() {
- return rotationVectorW_;
+ @java.lang.Override
+ public java.lang.String getProvider() {
+ java.lang.Object ref = provider_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ provider_ = s;
+ return s;
+ }
}
-
- public static final int STEP_COUNT_FIELD_NUMBER = 12;
- private int stepCount_;
/**
*
- * Integer
+ * e.g 'gps' or 'network'
*
*
- * optional int32 step_count = 12;
+ * string provider = 5;
+ * @return The bytes for provider.
*/
- public int getStepCount() {
- return stepCount_;
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getProviderBytes() {
+ java.lang.Object ref = provider_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ provider_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -5839,1058 +13240,931 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (relativeTimestamp_ != 0L) {
- output.writeInt64(1, relativeTimestamp_);
- }
- if (accX_ != 0F) {
- output.writeFloat(2, accX_);
- }
- if (accY_ != 0F) {
- output.writeFloat(3, accY_);
- }
- if (accZ_ != 0F) {
- output.writeFloat(4, accZ_);
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getPosition());
}
- if (gyrX_ != 0F) {
- output.writeFloat(5, gyrX_);
+ if (java.lang.Float.floatToRawIntBits(accuracy_) != 0) {
+ output.writeFloat(2, accuracy_);
}
- if (gyrY_ != 0F) {
- output.writeFloat(6, gyrY_);
+ if (java.lang.Float.floatToRawIntBits(speed_) != 0) {
+ output.writeFloat(3, speed_);
}
- if (gyrZ_ != 0F) {
- output.writeFloat(7, gyrZ_);
+ if (java.lang.Float.floatToRawIntBits(bearing_) != 0) {
+ output.writeFloat(4, bearing_);
}
- if (rotationVectorX_ != 0F) {
- output.writeFloat(8, rotationVectorX_);
- }
- if (rotationVectorY_ != 0F) {
- output.writeFloat(9, rotationVectorY_);
- }
- if (rotationVectorZ_ != 0F) {
- output.writeFloat(10, rotationVectorZ_);
- }
- if (rotationVectorW_ != 0F) {
- output.writeFloat(11, rotationVectorW_);
- }
- if (stepCount_ != 0) {
- output.writeInt32(12, stepCount_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(provider_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, provider_);
}
+ getUnknownFields().writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (relativeTimestamp_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, relativeTimestamp_);
- }
- if (accX_ != 0F) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(2, accX_);
+ .computeMessageSize(1, getPosition());
}
- if (accY_ != 0F) {
+ if (java.lang.Float.floatToRawIntBits(accuracy_) != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(3, accY_);
+ .computeFloatSize(2, accuracy_);
}
- if (accZ_ != 0F) {
+ if (java.lang.Float.floatToRawIntBits(speed_) != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(4, accZ_);
+ .computeFloatSize(3, speed_);
}
- if (gyrX_ != 0F) {
+ if (java.lang.Float.floatToRawIntBits(bearing_) != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(5, gyrX_);
+ .computeFloatSize(4, bearing_);
}
- if (gyrY_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(6, gyrY_);
- }
- if (gyrZ_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(7, gyrZ_);
- }
- if (rotationVectorX_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(8, rotationVectorX_);
- }
- if (rotationVectorY_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(9, rotationVectorY_);
- }
- if (rotationVectorZ_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(10, rotationVectorZ_);
- }
- if (rotationVectorW_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(11, rotationVectorW_);
- }
- if (stepCount_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(12, stepCount_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(provider_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, provider_);
}
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
- if (!(obj instanceof Motion_Sample)) {
+ if (!(obj instanceof com.openpositioning.PositionMe.Traj.GNSSReading)) {
return super.equals(obj);
}
- Motion_Sample other = (Motion_Sample) obj;
-
- boolean result = true;
- result = result && (getRelativeTimestamp()
- == other.getRelativeTimestamp());
- result = result && (
- Float.floatToIntBits(getAccX())
- == Float.floatToIntBits(
- other.getAccX()));
- result = result && (
- Float.floatToIntBits(getAccY())
- == Float.floatToIntBits(
- other.getAccY()));
- result = result && (
- Float.floatToIntBits(getAccZ())
- == Float.floatToIntBits(
- other.getAccZ()));
- result = result && (
- Float.floatToIntBits(getGyrX())
- == Float.floatToIntBits(
- other.getGyrX()));
- result = result && (
- Float.floatToIntBits(getGyrY())
- == Float.floatToIntBits(
- other.getGyrY()));
- result = result && (
- Float.floatToIntBits(getGyrZ())
- == Float.floatToIntBits(
- other.getGyrZ()));
- result = result && (
- Float.floatToIntBits(getRotationVectorX())
- == Float.floatToIntBits(
- other.getRotationVectorX()));
- result = result && (
- Float.floatToIntBits(getRotationVectorY())
- == Float.floatToIntBits(
- other.getRotationVectorY()));
- result = result && (
- Float.floatToIntBits(getRotationVectorZ())
- == Float.floatToIntBits(
- other.getRotationVectorZ()));
- result = result && (
- Float.floatToIntBits(getRotationVectorW())
- == Float.floatToIntBits(
- other.getRotationVectorW()));
- result = result && (getStepCount()
- == other.getStepCount());
- return result;
- }
-
- @Override
+ com.openpositioning.PositionMe.Traj.GNSSReading other = (com.openpositioning.PositionMe.Traj.GNSSReading) obj;
+
+ if (hasPosition() != other.hasPosition()) return false;
+ if (hasPosition()) {
+ if (!getPosition()
+ .equals(other.getPosition())) return false;
+ }
+ if (java.lang.Float.floatToIntBits(getAccuracy())
+ != java.lang.Float.floatToIntBits(
+ other.getAccuracy())) return false;
+ if (java.lang.Float.floatToIntBits(getSpeed())
+ != java.lang.Float.floatToIntBits(
+ other.getSpeed())) return false;
+ if (java.lang.Float.floatToIntBits(getBearing())
+ != java.lang.Float.floatToIntBits(
+ other.getBearing())) return false;
+ if (!getProvider()
+ .equals(other.getProvider())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
- hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getRelativeTimestamp());
- hash = (37 * hash) + ACC_X_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getAccX());
- hash = (37 * hash) + ACC_Y_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getAccY());
- hash = (37 * hash) + ACC_Z_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getAccZ());
- hash = (37 * hash) + GYR_X_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getGyrX());
- hash = (37 * hash) + GYR_Y_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getGyrY());
- hash = (37 * hash) + GYR_Z_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getGyrZ());
- hash = (37 * hash) + ROTATION_VECTOR_X_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getRotationVectorX());
- hash = (37 * hash) + ROTATION_VECTOR_Y_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getRotationVectorY());
- hash = (37 * hash) + ROTATION_VECTOR_Z_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getRotationVectorZ());
- hash = (37 * hash) + ROTATION_VECTOR_W_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getRotationVectorW());
- hash = (37 * hash) + STEP_COUNT_FIELD_NUMBER;
- hash = (53 * hash) + getStepCount();
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasPosition()) {
+ hash = (37 * hash) + POSITION_FIELD_NUMBER;
+ hash = (53 * hash) + getPosition().hashCode();
+ }
+ hash = (37 * hash) + ACCURACY_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getAccuracy());
+ hash = (37 * hash) + SPEED_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getSpeed());
+ hash = (37 * hash) + BEARING_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getBearing());
+ hash = (37 * hash) + PROVIDER_FIELD_NUMBER;
+ hash = (53 * hash) + getProvider().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static Motion_Sample parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Motion_Sample parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Motion_Sample parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Motion_Sample parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Motion_Sample parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static Motion_Sample 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 Motion_Sample parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static Motion_Sample 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 Motion_Sample parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static Motion_Sample parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.GNSSReading parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(Motion_Sample prototype) {
+ public static Builder newBuilder(com.openpositioning.PositionMe.Traj.GNSSReading prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
+ ? new Builder() : new Builder().mergeFrom(this);
}
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code Motion_Sample}
+ * Protobuf type {@code GNSSReading}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:Motion_Sample)
- Motion_SampleOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:GNSSReading)
+ com.openpositioning.PositionMe.Traj.GNSSReadingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Traj.internal_static_Motion_Sample_descriptor;
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_GNSSReading_descriptor;
}
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Traj.internal_static_Motion_Sample_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Motion_Sample.class, Builder.class);
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_GNSSReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.GNSSReading.class, com.openpositioning.PositionMe.Traj.GNSSReading.Builder.class);
}
- // Construct using Traj.Motion_Sample.newBuilder()
+ // Construct using com.openpositioning.PositionMe.Traj.GNSSReading.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
+ if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
+ getPositionFieldBuilder();
}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
- relativeTimestamp_ = 0L;
-
- accX_ = 0F;
-
- accY_ = 0F;
-
- accZ_ = 0F;
-
- gyrX_ = 0F;
-
- gyrY_ = 0F;
-
- gyrZ_ = 0F;
-
- rotationVectorX_ = 0F;
-
- rotationVectorY_ = 0F;
-
- rotationVectorZ_ = 0F;
-
- rotationVectorW_ = 0F;
-
- stepCount_ = 0;
-
+ bitField0_ = 0;
+ position_ = null;
+ if (positionBuilder_ != null) {
+ positionBuilder_.dispose();
+ positionBuilder_ = null;
+ }
+ accuracy_ = 0F;
+ speed_ = 0F;
+ bearing_ = 0F;
+ provider_ = "";
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return Traj.internal_static_Motion_Sample_descriptor;
+ getDescriptorForType() {
+ return com.openpositioning.PositionMe.Traj.internal_static_GNSSReading_descriptor;
}
- public Motion_Sample getDefaultInstanceForType() {
- return Motion_Sample.getDefaultInstance();
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSReading getDefaultInstanceForType() {
+ return com.openpositioning.PositionMe.Traj.GNSSReading.getDefaultInstance();
}
- public Motion_Sample build() {
- Motion_Sample result = buildPartial();
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSReading build() {
+ com.openpositioning.PositionMe.Traj.GNSSReading result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public Motion_Sample buildPartial() {
- Motion_Sample result = new Motion_Sample(this);
- result.relativeTimestamp_ = relativeTimestamp_;
- result.accX_ = accX_;
- result.accY_ = accY_;
- result.accZ_ = accZ_;
- result.gyrX_ = gyrX_;
- result.gyrY_ = gyrY_;
- result.gyrZ_ = gyrZ_;
- result.rotationVectorX_ = rotationVectorX_;
- result.rotationVectorY_ = rotationVectorY_;
- result.rotationVectorZ_ = rotationVectorZ_;
- result.rotationVectorW_ = rotationVectorW_;
- result.stepCount_ = stepCount_;
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSReading buildPartial() {
+ com.openpositioning.PositionMe.Traj.GNSSReading result = new com.openpositioning.PositionMe.Traj.GNSSReading(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
- public Builder clone() {
- return (Builder) super.clone();
- }
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
- return (Builder) super.setField(field, value);
- }
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ private void buildPartial0(com.openpositioning.PositionMe.Traj.GNSSReading result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.position_ = positionBuilder_ == null
+ ? position_
+ : positionBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.accuracy_ = accuracy_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.speed_ = speed_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.bearing_ = bearing_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.provider_ = provider_;
+ }
+ result.bitField0_ |= to_bitField0_;
}
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof Motion_Sample) {
- return mergeFrom((Motion_Sample)other);
+ if (other instanceof com.openpositioning.PositionMe.Traj.GNSSReading) {
+ return mergeFrom((com.openpositioning.PositionMe.Traj.GNSSReading)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(Motion_Sample other) {
- if (other == Motion_Sample.getDefaultInstance()) return this;
- if (other.getRelativeTimestamp() != 0L) {
- setRelativeTimestamp(other.getRelativeTimestamp());
- }
- if (other.getAccX() != 0F) {
- setAccX(other.getAccX());
- }
- if (other.getAccY() != 0F) {
- setAccY(other.getAccY());
- }
- if (other.getAccZ() != 0F) {
- setAccZ(other.getAccZ());
- }
- if (other.getGyrX() != 0F) {
- setGyrX(other.getGyrX());
- }
- if (other.getGyrY() != 0F) {
- setGyrY(other.getGyrY());
- }
- if (other.getGyrZ() != 0F) {
- setGyrZ(other.getGyrZ());
- }
- if (other.getRotationVectorX() != 0F) {
- setRotationVectorX(other.getRotationVectorX());
+ public Builder mergeFrom(com.openpositioning.PositionMe.Traj.GNSSReading other) {
+ if (other == com.openpositioning.PositionMe.Traj.GNSSReading.getDefaultInstance()) return this;
+ if (other.hasPosition()) {
+ mergePosition(other.getPosition());
}
- if (other.getRotationVectorY() != 0F) {
- setRotationVectorY(other.getRotationVectorY());
+ if (other.getAccuracy() != 0F) {
+ setAccuracy(other.getAccuracy());
}
- if (other.getRotationVectorZ() != 0F) {
- setRotationVectorZ(other.getRotationVectorZ());
+ if (other.getSpeed() != 0F) {
+ setSpeed(other.getSpeed());
}
- if (other.getRotationVectorW() != 0F) {
- setRotationVectorW(other.getRotationVectorW());
+ if (other.getBearing() != 0F) {
+ setBearing(other.getBearing());
}
- if (other.getStepCount() != 0) {
- setStepCount(other.getStepCount());
+ if (!other.getProvider().isEmpty()) {
+ provider_ = other.provider_;
+ bitField0_ |= 0x00000010;
+ onChanged();
}
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Motion_Sample parsedMessage = null;
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getPositionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 21: {
+ accuracy_ = input.readFloat();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 21
+ case 29: {
+ speed_ = input.readFloat();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 29
+ case 37: {
+ bearing_ = input.readFloat();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 37
+ case 42: {
+ provider_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Motion_Sample) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private long relativeTimestamp_ ;
- /**
- *
- * milliseconds
- *
- *
- * optional int64 relative_timestamp = 1;
- */
- public long getRelativeTimestamp() {
- return relativeTimestamp_;
- }
- /**
- *
- * milliseconds
- *
- *
- * optional int64 relative_timestamp = 1;
- */
- public Builder setRelativeTimestamp(long value) {
-
- relativeTimestamp_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * milliseconds
- *
- *
- * optional int64 relative_timestamp = 1;
- */
- public Builder clearRelativeTimestamp() {
-
- relativeTimestamp_ = 0L;
- onChanged();
+ onChanged();
+ } // finally
return this;
}
+ private int bitField0_;
- private float accX_ ;
+ private com.openpositioning.PositionMe.Traj.GNSSPosition position_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.GNSSPosition, com.openpositioning.PositionMe.Traj.GNSSPosition.Builder, com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder> positionBuilder_;
/**
- *
- * m/s^2
- *
- *
- * optional float acc_x = 2;
+ * .GNSSPosition position = 1;
+ * @return Whether the position field is set.
*/
- public float getAccX() {
- return accX_;
+ public boolean hasPosition() {
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- *
- * m/s^2
- *
- *
- * optional float acc_x = 2;
+ * .GNSSPosition position = 1;
+ * @return The position.
*/
- public Builder setAccX(float value) {
-
- accX_ = value;
- onChanged();
- return this;
+ public com.openpositioning.PositionMe.Traj.GNSSPosition getPosition() {
+ if (positionBuilder_ == null) {
+ return position_ == null ? com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance() : position_;
+ } else {
+ return positionBuilder_.getMessage();
+ }
}
/**
- *
- * m/s^2
- *
- *
- * optional float acc_x = 2;
+ * .GNSSPosition position = 1;
*/
- public Builder clearAccX() {
-
- accX_ = 0F;
+ public Builder setPosition(com.openpositioning.PositionMe.Traj.GNSSPosition value) {
+ if (positionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ position_ = value;
+ } else {
+ positionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
-
- private float accY_ ;
/**
- * optional float acc_y = 3;
+ * .GNSSPosition position = 1;
*/
- public float getAccY() {
- return accY_;
+ public Builder setPosition(
+ com.openpositioning.PositionMe.Traj.GNSSPosition.Builder builderForValue) {
+ if (positionBuilder_ == null) {
+ position_ = builderForValue.build();
+ } else {
+ positionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
}
/**
- * optional float acc_y = 3;
+ * .GNSSPosition position = 1;
*/
- public Builder setAccY(float value) {
-
- accY_ = value;
- onChanged();
+ public Builder mergePosition(com.openpositioning.PositionMe.Traj.GNSSPosition value) {
+ if (positionBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ position_ != null &&
+ position_ != com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance()) {
+ getPositionBuilder().mergeFrom(value);
+ } else {
+ position_ = value;
+ }
+ } else {
+ positionBuilder_.mergeFrom(value);
+ }
+ if (position_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
- * optional float acc_y = 3;
+ * .GNSSPosition position = 1;
*/
- public Builder clearAccY() {
-
- accY_ = 0F;
+ public Builder clearPosition() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ position_ = null;
+ if (positionBuilder_ != null) {
+ positionBuilder_.dispose();
+ positionBuilder_ = null;
+ }
onChanged();
return this;
}
-
- private float accZ_ ;
/**
- * optional float acc_z = 4;
+ * .GNSSPosition position = 1;
*/
- public float getAccZ() {
- return accZ_;
+ public com.openpositioning.PositionMe.Traj.GNSSPosition.Builder getPositionBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getPositionFieldBuilder().getBuilder();
}
/**
- * optional float acc_z = 4;
+ * .GNSSPosition position = 1;
*/
- public Builder setAccZ(float value) {
-
- accZ_ = value;
- onChanged();
- return this;
+ public com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder getPositionOrBuilder() {
+ if (positionBuilder_ != null) {
+ return positionBuilder_.getMessageOrBuilder();
+ } else {
+ return position_ == null ?
+ com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance() : position_;
+ }
}
/**
- * optional float acc_z = 4;
+ * .GNSSPosition position = 1;
*/
- public Builder clearAccZ() {
-
- accZ_ = 0F;
- onChanged();
- return this;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.GNSSPosition, com.openpositioning.PositionMe.Traj.GNSSPosition.Builder, com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder>
+ getPositionFieldBuilder() {
+ if (positionBuilder_ == null) {
+ positionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.GNSSPosition, com.openpositioning.PositionMe.Traj.GNSSPosition.Builder, com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder>(
+ getPosition(),
+ getParentForChildren(),
+ isClean());
+ position_ = null;
+ }
+ return positionBuilder_;
}
- private float gyrX_ ;
+ private float accuracy_ ;
/**
*
- * radians/s
+ * metres
*
*
- * optional float gyr_x = 5;
+ * float accuracy = 2;
+ * @return The accuracy.
*/
- public float getGyrX() {
- return gyrX_;
+ @java.lang.Override
+ public float getAccuracy() {
+ return accuracy_;
}
/**
*
- * radians/s
+ * metres
*
*
- * optional float gyr_x = 5;
+ * float accuracy = 2;
+ * @param value The accuracy to set.
+ * @return This builder for chaining.
*/
- public Builder setGyrX(float value) {
-
- gyrX_ = value;
+ public Builder setAccuracy(float value) {
+
+ accuracy_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
- * radians/s
+ * metres
*
*
- * optional float gyr_x = 5;
- */
- public Builder clearGyrX() {
-
- gyrX_ = 0F;
- onChanged();
- return this;
- }
-
- private float gyrY_ ;
- /**
- * optional float gyr_y = 6;
- */
- public float getGyrY() {
- return gyrY_;
- }
- /**
- * optional float gyr_y = 6;
- */
- public Builder setGyrY(float value) {
-
- gyrY_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float gyr_y = 6;
- */
- public Builder clearGyrY() {
-
- gyrY_ = 0F;
- onChanged();
- return this;
- }
-
- private float gyrZ_ ;
- /**
- * optional float gyr_z = 7;
- */
- public float getGyrZ() {
- return gyrZ_;
- }
- /**
- * optional float gyr_z = 7;
- */
- public Builder setGyrZ(float value) {
-
- gyrZ_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float gyr_z = 7;
+ * float accuracy = 2;
+ * @return This builder for chaining.
*/
- public Builder clearGyrZ() {
-
- gyrZ_ = 0F;
+ public Builder clearAccuracy() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ accuracy_ = 0F;
onChanged();
return this;
}
- private float rotationVectorX_ ;
+ private float speed_ ;
/**
*
- * unitless, 4 components should sum to ~1
+ * m/s
*
*
- * optional float rotation_vector_x = 8;
+ * float speed = 3;
+ * @return The speed.
*/
- public float getRotationVectorX() {
- return rotationVectorX_;
+ @java.lang.Override
+ public float getSpeed() {
+ return speed_;
}
/**
*
- * unitless, 4 components should sum to ~1
+ * m/s
*
*
- * optional float rotation_vector_x = 8;
+ * float speed = 3;
+ * @param value The speed to set.
+ * @return This builder for chaining.
*/
- public Builder setRotationVectorX(float value) {
-
- rotationVectorX_ = value;
+ public Builder setSpeed(float value) {
+
+ speed_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
- * unitless, 4 components should sum to ~1
+ * m/s
*
*
- * optional float rotation_vector_x = 8;
+ * float speed = 3;
+ * @return This builder for chaining.
*/
- public Builder clearRotationVectorX() {
-
- rotationVectorX_ = 0F;
+ public Builder clearSpeed() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ speed_ = 0F;
onChanged();
return this;
}
- private float rotationVectorY_ ;
- /**
- * optional float rotation_vector_y = 9;
- */
- public float getRotationVectorY() {
- return rotationVectorY_;
- }
+ private float bearing_ ;
/**
- * optional float rotation_vector_y = 9;
+ *
+ * degrees
+ *
+ *
+ * float bearing = 4;
+ * @return The bearing.
*/
- public Builder setRotationVectorY(float value) {
-
- rotationVectorY_ = value;
- onChanged();
- return this;
+ @java.lang.Override
+ public float getBearing() {
+ return bearing_;
}
/**
- * optional float rotation_vector_y = 9;
+ *
+ * degrees
+ *
+ *
+ * float bearing = 4;
+ * @param value The bearing to set.
+ * @return This builder for chaining.
*/
- public Builder clearRotationVectorY() {
-
- rotationVectorY_ = 0F;
- onChanged();
- return this;
- }
+ public Builder setBearing(float value) {
- private float rotationVectorZ_ ;
- /**
- * optional float rotation_vector_z = 10;
- */
- public float getRotationVectorZ() {
- return rotationVectorZ_;
- }
- /**
- * optional float rotation_vector_z = 10;
- */
- public Builder setRotationVectorZ(float value) {
-
- rotationVectorZ_ = value;
+ bearing_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
- * optional float rotation_vector_z = 10;
+ *
+ * degrees
+ *
+ *
+ * float bearing = 4;
+ * @return This builder for chaining.
*/
- public Builder clearRotationVectorZ() {
-
- rotationVectorZ_ = 0F;
+ public Builder clearBearing() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ bearing_ = 0F;
onChanged();
return this;
}
- private float rotationVectorW_ ;
- /**
- * optional float rotation_vector_w = 11;
- */
- public float getRotationVectorW() {
- return rotationVectorW_;
- }
+ private java.lang.Object provider_ = "";
/**
- * optional float rotation_vector_w = 11;
+ *
+ * e.g 'gps' or 'network'
+ *
+ *
+ * string provider = 5;
+ * @return The provider.
*/
- public Builder setRotationVectorW(float value) {
-
- rotationVectorW_ = value;
- onChanged();
- return this;
+ public java.lang.String getProvider() {
+ java.lang.Object ref = provider_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ provider_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
- * optional float rotation_vector_w = 11;
+ *
+ * e.g 'gps' or 'network'
+ *
+ *
+ * string provider = 5;
+ * @return The bytes for provider.
*/
- public Builder clearRotationVectorW() {
-
- rotationVectorW_ = 0F;
- onChanged();
- return this;
+ public com.google.protobuf.ByteString
+ getProviderBytes() {
+ java.lang.Object ref = provider_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ provider_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
-
- private int stepCount_ ;
/**
*
- * Integer
+ * e.g 'gps' or 'network'
*
*
- * optional int32 step_count = 12;
+ * string provider = 5;
+ * @param value The provider to set.
+ * @return This builder for chaining.
*/
- public int getStepCount() {
- return stepCount_;
+ public Builder setProvider(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ provider_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
}
/**
*
- * Integer
+ * e.g 'gps' or 'network'
*
*
- * optional int32 step_count = 12;
+ * string provider = 5;
+ * @return This builder for chaining.
*/
- public Builder setStepCount(int value) {
-
- stepCount_ = value;
+ public Builder clearProvider() {
+ provider_ = getDefaultInstance().getProvider();
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
- * Integer
+ * e.g 'gps' or 'network'
*
*
- * optional int32 step_count = 12;
+ * string provider = 5;
+ * @param value The bytes for provider to set.
+ * @return This builder for chaining.
*/
- public Builder clearStepCount() {
-
- stepCount_ = 0;
+ public Builder setProviderBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ provider_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return this;
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:Motion_Sample)
+ // @@protoc_insertion_point(builder_scope:GNSSReading)
}
- // @@protoc_insertion_point(class_scope:Motion_Sample)
- private static final Motion_Sample DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:GNSSReading)
+ private static final com.openpositioning.PositionMe.Traj.GNSSReading DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new Motion_Sample();
+ DEFAULT_INSTANCE = new com.openpositioning.PositionMe.Traj.GNSSReading();
}
- public static Motion_Sample getDefaultInstance() {
+ public static com.openpositioning.PositionMe.Traj.GNSSReading getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- public Motion_Sample parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Motion_Sample(input, extensionRegistry);
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GNSSReading parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return PARSER;
}
- @Override
- public com.google.protobuf.Parser getParserForType() {
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public Motion_Sample getDefaultInstanceForType() {
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSReading getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
- public interface Position_SampleOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Position_Sample)
- com.google.protobuf.MessageOrBuilder {
+ public interface FingerprintOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Fingerprint)
+ com.google.protobuf.MessageOrBuilder {
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
*/
long getRelativeTimestamp();
/**
- *
- * uT
- *
- *
- * optional float mag_x = 2;
+ * repeated .RFScan rf_scans = 2;
*/
- float getMagX();
-
+ java.util.List
+ getRfScansList();
/**
- * optional float mag_y = 3;
+ * repeated .RFScan rf_scans = 2;
*/
- float getMagY();
-
+ com.openpositioning.PositionMe.Traj.RFScan getRfScans(int index);
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ int getRfScansCount();
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ java.util.List extends com.openpositioning.PositionMe.Traj.RFScanOrBuilder>
+ getRfScansOrBuilderList();
/**
- * optional float mag_z = 4;
+ * repeated .RFScan rf_scans = 2;
*/
- float getMagZ();
+ com.openpositioning.PositionMe.Traj.RFScanOrBuilder getRfScansOrBuilder(
+ int index);
}
/**
- * Protobuf type {@code Position_Sample}
+ * Protobuf type {@code Fingerprint}
*/
- public static final class Position_Sample extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Position_Sample)
- Position_SampleOrBuilder {
- // Use Position_Sample.newBuilder() to construct.
- private Position_Sample(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ public static final class Fingerprint extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Fingerprint)
+ FingerprintOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ Fingerprint.class.getName());
+ }
+ // Use Fingerprint.newBuilder() to construct.
+ private Fingerprint(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
- private Position_Sample() {
- relativeTimestamp_ = 0L;
- magX_ = 0F;
- magY_ = 0F;
- magZ_ = 0F;
- }
-
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
- }
- private Position_Sample(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- int mutable_bitField0_ = 0;
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!input.skipField(tag)) {
- done = true;
- }
- break;
- }
- case 8: {
-
- relativeTimestamp_ = input.readInt64();
- break;
- }
- case 21: {
-
- magX_ = input.readFloat();
- break;
- }
- case 29: {
-
- magY_ = input.readFloat();
- break;
- }
- case 37: {
-
- magZ_ = input.readFloat();
- 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 {
- makeExtensionsImmutable();
- }
+ private Fingerprint() {
+ rfScans_ = java.util.Collections.emptyList();
}
+
public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Traj.internal_static_Position_Sample_descriptor;
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_Fingerprint_descriptor;
}
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Traj.internal_static_Position_Sample_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Position_Sample.class, Builder.class);
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_Fingerprint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.Fingerprint.class, com.openpositioning.PositionMe.Traj.Fingerprint.Builder.class);
}
public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
- private long relativeTimestamp_;
+ private long relativeTimestamp_ = 0L;
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
*/
+ @java.lang.Override
public long getRelativeTimestamp() {
return relativeTimestamp_;
}
- public static final int MAG_X_FIELD_NUMBER = 2;
- private float magX_;
+ public static final int RF_SCANS_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private java.util.List rfScans_;
/**
- *
- * uT
- *
- *
- * optional float mag_x = 2;
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagX() {
- return magX_;
+ @java.lang.Override
+ public java.util.List getRfScansList() {
+ return rfScans_;
}
-
- public static final int MAG_Y_FIELD_NUMBER = 3;
- private float magY_;
/**
- * optional float mag_y = 3;
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagY() {
- return magY_;
+ @java.lang.Override
+ public java.util.List extends com.openpositioning.PositionMe.Traj.RFScanOrBuilder>
+ getRfScansOrBuilderList() {
+ return rfScans_;
}
-
- public static final int MAG_Z_FIELD_NUMBER = 4;
- private float magZ_;
/**
- * optional float mag_z = 4;
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagZ() {
- return magZ_;
+ @java.lang.Override
+ public int getRfScansCount() {
+ return rfScans_.size();
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.RFScan getRfScans(int index) {
+ return rfScans_.get(index);
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.RFScanOrBuilder getRfScansOrBuilder(
+ int index) {
+ return rfScans_.get(index);
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -6900,22 +14174,19 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
+ throws java.io.IOException {
if (relativeTimestamp_ != 0L) {
output.writeInt64(1, relativeTimestamp_);
}
- if (magX_ != 0F) {
- output.writeFloat(2, magX_);
- }
- if (magY_ != 0F) {
- output.writeFloat(3, magY_);
- }
- if (magZ_ != 0F) {
- output.writeFloat(4, magZ_);
+ for (int i = 0; i < rfScans_.size(); i++) {
+ output.writeMessage(2, rfScans_.get(i));
}
+ getUnknownFields().writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -6923,582 +14194,844 @@ public int getSerializedSize() {
size = 0;
if (relativeTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, relativeTimestamp_);
+ .computeInt64Size(1, relativeTimestamp_);
}
- if (magX_ != 0F) {
+ for (int i = 0; i < rfScans_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(2, magX_);
- }
- if (magY_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(3, magY_);
- }
- if (magZ_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(4, magZ_);
+ .computeMessageSize(2, rfScans_.get(i));
}
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
- if (!(obj instanceof Position_Sample)) {
+ if (!(obj instanceof com.openpositioning.PositionMe.Traj.Fingerprint)) {
return super.equals(obj);
}
- Position_Sample other = (Position_Sample) obj;
-
- boolean result = true;
- result = result && (getRelativeTimestamp()
- == other.getRelativeTimestamp());
- result = result && (
- Float.floatToIntBits(getMagX())
- == Float.floatToIntBits(
- other.getMagX()));
- result = result && (
- Float.floatToIntBits(getMagY())
- == Float.floatToIntBits(
- other.getMagY()));
- result = result && (
- Float.floatToIntBits(getMagZ())
- == Float.floatToIntBits(
- other.getMagZ()));
- return result;
- }
-
- @Override
+ com.openpositioning.PositionMe.Traj.Fingerprint other = (com.openpositioning.PositionMe.Traj.Fingerprint) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (!getRfScansList()
+ .equals(other.getRfScansList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getRelativeTimestamp());
- hash = (37 * hash) + MAG_X_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getMagX());
- hash = (37 * hash) + MAG_Y_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getMagY());
- hash = (37 * hash) + MAG_Z_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getMagZ());
- hash = (29 * hash) + unknownFields.hashCode();
+ getRelativeTimestamp());
+ if (getRfScansCount() > 0) {
+ hash = (37 * hash) + RF_SCANS_FIELD_NUMBER;
+ hash = (53 * hash) + getRfScansList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static Position_Sample parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Position_Sample parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Position_Sample parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Position_Sample parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Position_Sample parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static Position_Sample 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 Position_Sample parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static Position_Sample 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 Position_Sample parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static Position_Sample parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.Fingerprint parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(Position_Sample prototype) {
+ public static Builder newBuilder(com.openpositioning.PositionMe.Traj.Fingerprint prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
+ ? new Builder() : new Builder().mergeFrom(this);
}
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code Position_Sample}
+ * Protobuf type {@code Fingerprint}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:Position_Sample)
- Position_SampleOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:Fingerprint)
+ com.openpositioning.PositionMe.Traj.FingerprintOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Traj.internal_static_Position_Sample_descriptor;
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_Fingerprint_descriptor;
}
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Traj.internal_static_Position_Sample_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Position_Sample.class, Builder.class);
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_Fingerprint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.Fingerprint.class, com.openpositioning.PositionMe.Traj.Fingerprint.Builder.class);
}
- // Construct using Traj.Position_Sample.newBuilder()
+ // Construct using com.openpositioning.PositionMe.Traj.Fingerprint.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
+
}
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
relativeTimestamp_ = 0L;
-
- magX_ = 0F;
-
- magY_ = 0F;
-
- magZ_ = 0F;
-
+ if (rfScansBuilder_ == null) {
+ rfScans_ = java.util.Collections.emptyList();
+ } else {
+ rfScans_ = null;
+ rfScansBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return Traj.internal_static_Position_Sample_descriptor;
+ getDescriptorForType() {
+ return com.openpositioning.PositionMe.Traj.internal_static_Fingerprint_descriptor;
}
- public Position_Sample getDefaultInstanceForType() {
- return Position_Sample.getDefaultInstance();
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.Fingerprint getDefaultInstanceForType() {
+ return com.openpositioning.PositionMe.Traj.Fingerprint.getDefaultInstance();
}
- public Position_Sample build() {
- Position_Sample result = buildPartial();
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.Fingerprint build() {
+ com.openpositioning.PositionMe.Traj.Fingerprint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public Position_Sample buildPartial() {
- Position_Sample result = new Position_Sample(this);
- result.relativeTimestamp_ = relativeTimestamp_;
- result.magX_ = magX_;
- result.magY_ = magY_;
- result.magZ_ = magZ_;
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.Fingerprint buildPartial() {
+ com.openpositioning.PositionMe.Traj.Fingerprint result = new com.openpositioning.PositionMe.Traj.Fingerprint(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
- public Builder clone() {
- return (Builder) super.clone();
- }
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
- return (Builder) super.setField(field, value);
- }
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ private void buildPartialRepeatedFields(com.openpositioning.PositionMe.Traj.Fingerprint result) {
+ if (rfScansBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ rfScans_ = java.util.Collections.unmodifiableList(rfScans_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.rfScans_ = rfScans_;
+ } else {
+ result.rfScans_ = rfScansBuilder_.build();
+ }
}
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
- return (Builder) super.addRepeatedField(field, value);
+
+ private void buildPartial0(com.openpositioning.PositionMe.Traj.Fingerprint result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.relativeTimestamp_ = relativeTimestamp_;
+ }
}
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof Position_Sample) {
- return mergeFrom((Position_Sample)other);
+ if (other instanceof com.openpositioning.PositionMe.Traj.Fingerprint) {
+ return mergeFrom((com.openpositioning.PositionMe.Traj.Fingerprint)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(Position_Sample other) {
- if (other == Position_Sample.getDefaultInstance()) return this;
+ public Builder mergeFrom(com.openpositioning.PositionMe.Traj.Fingerprint other) {
+ if (other == com.openpositioning.PositionMe.Traj.Fingerprint.getDefaultInstance()) return this;
if (other.getRelativeTimestamp() != 0L) {
setRelativeTimestamp(other.getRelativeTimestamp());
}
- if (other.getMagX() != 0F) {
- setMagX(other.getMagX());
- }
- if (other.getMagY() != 0F) {
- setMagY(other.getMagY());
- }
- if (other.getMagZ() != 0F) {
- setMagZ(other.getMagZ());
+ if (rfScansBuilder_ == null) {
+ if (!other.rfScans_.isEmpty()) {
+ if (rfScans_.isEmpty()) {
+ rfScans_ = other.rfScans_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureRfScansIsMutable();
+ rfScans_.addAll(other.rfScans_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.rfScans_.isEmpty()) {
+ if (rfScansBuilder_.isEmpty()) {
+ rfScansBuilder_.dispose();
+ rfScansBuilder_ = null;
+ rfScans_ = other.rfScans_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ rfScansBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getRfScansFieldBuilder() : null;
+ } else {
+ rfScansBuilder_.addAllMessages(other.rfScans_);
+ }
+ }
}
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Position_Sample parsedMessage = null;
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ relativeTimestamp_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ com.openpositioning.PositionMe.Traj.RFScan m =
+ input.readMessage(
+ com.openpositioning.PositionMe.Traj.RFScan.parser(),
+ extensionRegistry);
+ if (rfScansBuilder_ == null) {
+ ensureRfScansIsMutable();
+ rfScans_.add(m);
+ } else {
+ rfScansBuilder_.addMessage(m);
+ }
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Position_Sample) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
+ private int bitField0_;
private long relativeTimestamp_ ;
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
*/
+ @java.lang.Override
public long getRelativeTimestamp() {
return relativeTimestamp_;
}
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
*/
public Builder setRelativeTimestamp(long value) {
-
+
relativeTimestamp_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
*/
public Builder clearRelativeTimestamp() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
relativeTimestamp_ = 0L;
onChanged();
return this;
}
- private float magX_ ;
+ private java.util.List rfScans_ =
+ java.util.Collections.emptyList();
+ private void ensureRfScansIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ rfScans_ = new java.util.ArrayList(rfScans_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.openpositioning.PositionMe.Traj.RFScan, com.openpositioning.PositionMe.Traj.RFScan.Builder, com.openpositioning.PositionMe.Traj.RFScanOrBuilder> rfScansBuilder_;
+
/**
- *
- * uT
- *
- *
- * optional float mag_x = 2;
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagX() {
- return magX_;
+ public java.util.List getRfScansList() {
+ if (rfScansBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(rfScans_);
+ } else {
+ return rfScansBuilder_.getMessageList();
+ }
}
/**
- *
- * uT
- *
- *
- * optional float mag_x = 2;
+ * repeated .RFScan rf_scans = 2;
*/
- public Builder setMagX(float value) {
-
- magX_ = value;
- onChanged();
- return this;
+ public int getRfScansCount() {
+ if (rfScansBuilder_ == null) {
+ return rfScans_.size();
+ } else {
+ return rfScansBuilder_.getCount();
+ }
}
/**
- *
- * uT
- *
- *
- * optional float mag_x = 2;
+ * repeated .RFScan rf_scans = 2;
*/
- public Builder clearMagX() {
-
- magX_ = 0F;
- onChanged();
+ public com.openpositioning.PositionMe.Traj.RFScan getRfScans(int index) {
+ if (rfScansBuilder_ == null) {
+ return rfScans_.get(index);
+ } else {
+ return rfScansBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Builder setRfScans(
+ int index, com.openpositioning.PositionMe.Traj.RFScan value) {
+ if (rfScansBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRfScansIsMutable();
+ rfScans_.set(index, value);
+ onChanged();
+ } else {
+ rfScansBuilder_.setMessage(index, value);
+ }
return this;
}
-
- private float magY_ ;
/**
- * optional float mag_y = 3;
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagY() {
- return magY_;
+ public Builder setRfScans(
+ int index, com.openpositioning.PositionMe.Traj.RFScan.Builder builderForValue) {
+ if (rfScansBuilder_ == null) {
+ ensureRfScansIsMutable();
+ rfScans_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ rfScansBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
}
/**
- * optional float mag_y = 3;
+ * repeated .RFScan rf_scans = 2;
*/
- public Builder setMagY(float value) {
-
- magY_ = value;
- onChanged();
+ public Builder addRfScans(com.openpositioning.PositionMe.Traj.RFScan value) {
+ if (rfScansBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRfScansIsMutable();
+ rfScans_.add(value);
+ onChanged();
+ } else {
+ rfScansBuilder_.addMessage(value);
+ }
return this;
}
/**
- * optional float mag_y = 3;
+ * repeated .RFScan rf_scans = 2;
*/
- public Builder clearMagY() {
-
- magY_ = 0F;
- onChanged();
+ public Builder addRfScans(
+ int index, com.openpositioning.PositionMe.Traj.RFScan value) {
+ if (rfScansBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRfScansIsMutable();
+ rfScans_.add(index, value);
+ onChanged();
+ } else {
+ rfScansBuilder_.addMessage(index, value);
+ }
return this;
}
-
- private float magZ_ ;
/**
- * optional float mag_z = 4;
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagZ() {
- return magZ_;
+ public Builder addRfScans(
+ com.openpositioning.PositionMe.Traj.RFScan.Builder builderForValue) {
+ if (rfScansBuilder_ == null) {
+ ensureRfScansIsMutable();
+ rfScans_.add(builderForValue.build());
+ onChanged();
+ } else {
+ rfScansBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
}
/**
- * optional float mag_z = 4;
+ * repeated .RFScan rf_scans = 2;
*/
- public Builder setMagZ(float value) {
-
- magZ_ = value;
- onChanged();
+ public Builder addRfScans(
+ int index, com.openpositioning.PositionMe.Traj.RFScan.Builder builderForValue) {
+ if (rfScansBuilder_ == null) {
+ ensureRfScansIsMutable();
+ rfScans_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ rfScansBuilder_.addMessage(index, builderForValue.build());
+ }
return this;
}
/**
- * optional float mag_z = 4;
+ * repeated .RFScan rf_scans = 2;
*/
- public Builder clearMagZ() {
-
- magZ_ = 0F;
- onChanged();
+ public Builder addAllRfScans(
+ java.lang.Iterable extends com.openpositioning.PositionMe.Traj.RFScan> values) {
+ if (rfScansBuilder_ == null) {
+ ensureRfScansIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, rfScans_);
+ onChanged();
+ } else {
+ rfScansBuilder_.addAllMessages(values);
+ }
return this;
}
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Builder clearRfScans() {
+ if (rfScansBuilder_ == null) {
+ rfScans_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ rfScansBuilder_.clear();
+ }
return this;
}
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Builder removeRfScans(int index) {
+ if (rfScansBuilder_ == null) {
+ ensureRfScansIsMutable();
+ rfScans_.remove(index);
+ onChanged();
+ } else {
+ rfScansBuilder_.remove(index);
+ }
return this;
}
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public com.openpositioning.PositionMe.Traj.RFScan.Builder getRfScansBuilder(
+ int index) {
+ return getRfScansFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public com.openpositioning.PositionMe.Traj.RFScanOrBuilder getRfScansOrBuilder(
+ int index) {
+ if (rfScansBuilder_ == null) {
+ return rfScans_.get(index); } else {
+ return rfScansBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public java.util.List extends com.openpositioning.PositionMe.Traj.RFScanOrBuilder>
+ getRfScansOrBuilderList() {
+ if (rfScansBuilder_ != null) {
+ return rfScansBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(rfScans_);
+ }
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public com.openpositioning.PositionMe.Traj.RFScan.Builder addRfScansBuilder() {
+ return getRfScansFieldBuilder().addBuilder(
+ com.openpositioning.PositionMe.Traj.RFScan.getDefaultInstance());
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public com.openpositioning.PositionMe.Traj.RFScan.Builder addRfScansBuilder(
+ int index) {
+ return getRfScansFieldBuilder().addBuilder(
+ index, com.openpositioning.PositionMe.Traj.RFScan.getDefaultInstance());
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public java.util.List
+ getRfScansBuilderList() {
+ return getRfScansFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.openpositioning.PositionMe.Traj.RFScan, com.openpositioning.PositionMe.Traj.RFScan.Builder, com.openpositioning.PositionMe.Traj.RFScanOrBuilder>
+ getRfScansFieldBuilder() {
+ if (rfScansBuilder_ == null) {
+ rfScansBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.openpositioning.PositionMe.Traj.RFScan, com.openpositioning.PositionMe.Traj.RFScan.Builder, com.openpositioning.PositionMe.Traj.RFScanOrBuilder>(
+ rfScans_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ rfScans_ = null;
+ }
+ return rfScansBuilder_;
+ }
-
- // @@protoc_insertion_point(builder_scope:Position_Sample)
+ // @@protoc_insertion_point(builder_scope:Fingerprint)
}
- // @@protoc_insertion_point(class_scope:Position_Sample)
- private static final Position_Sample DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:Fingerprint)
+ private static final com.openpositioning.PositionMe.Traj.Fingerprint DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new Position_Sample();
+ DEFAULT_INSTANCE = new com.openpositioning.PositionMe.Traj.Fingerprint();
}
- public static Position_Sample getDefaultInstance() {
+ public static com.openpositioning.PositionMe.Traj.Fingerprint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- public Position_Sample parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Position_Sample(input, extensionRegistry);
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Fingerprint parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return PARSER;
}
- @Override
- public com.google.protobuf.Parser getParserForType() {
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public Position_Sample getDefaultInstanceForType() {
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.Fingerprint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
- public interface Pressure_SampleOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Pressure_Sample)
- com.google.protobuf.MessageOrBuilder {
+ public interface RFScanOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:RFScan)
+ com.google.protobuf.MessageOrBuilder {
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
*/
long getRelativeTimestamp();
/**
*
- * mbar
+ * Integer encoding of the hex mac address (BSSID)
+ * e.g. 207394925843984
*
*
- * optional float pressure = 2;
+ * int64 mac = 2;
+ * @return The mac.
*/
- float getPressure();
+ long getMac();
+
+ /**
+ *
+ * rssi integer in dBm.
+ * typically between -120 and -10
+ *
+ *
+ * int32 rssi = 3;
+ * @return The rssi.
+ */
+ int getRssi();
+
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ * @return Whether the position field is set.
+ */
+ boolean hasPosition();
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ * @return The position.
+ */
+ com.openpositioning.PositionMe.Traj.GNSSPosition getPosition();
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ */
+ com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder getPositionOrBuilder();
}
/**
- * Protobuf type {@code Pressure_Sample}
+ * Protobuf type {@code RFScan}
*/
- public static final class Pressure_Sample extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Pressure_Sample)
- Pressure_SampleOrBuilder {
- // Use Pressure_Sample.newBuilder() to construct.
- private Pressure_Sample(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ public static final class RFScan extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:RFScan)
+ RFScanOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ RFScan.class.getName());
+ }
+ // Use RFScan.newBuilder() to construct.
+ private RFScan(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
- private Pressure_Sample() {
- relativeTimestamp_ = 0L;
- pressure_ = 0F;
- }
-
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
- }
- private Pressure_Sample(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- int mutable_bitField0_ = 0;
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!input.skipField(tag)) {
- done = true;
- }
- break;
- }
- case 8: {
-
- relativeTimestamp_ = input.readInt64();
- break;
- }
- case 21: {
-
- pressure_ = input.readFloat();
- 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 {
- makeExtensionsImmutable();
- }
+ private RFScan() {
}
+
public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Traj.internal_static_Pressure_Sample_descriptor;
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_RFScan_descriptor;
}
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Traj.internal_static_Pressure_Sample_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Pressure_Sample.class, Builder.class);
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_RFScan_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.RFScan.class, com.openpositioning.PositionMe.Traj.RFScan.Builder.class);
}
+ private int bitField0_;
public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
- private long relativeTimestamp_;
+ private long relativeTimestamp_ = 0L;
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
*/
+ @java.lang.Override
public long getRelativeTimestamp() {
return relativeTimestamp_;
}
- public static final int PRESSURE_FIELD_NUMBER = 2;
- private float pressure_;
+ public static final int MAC_FIELD_NUMBER = 2;
+ private long mac_ = 0L;
/**
*
- * mbar
+ * Integer encoding of the hex mac address (BSSID)
+ * e.g. 207394925843984
*
*
- * optional float pressure = 2;
+ * int64 mac = 2;
+ * @return The mac.
*/
- public float getPressure() {
- return pressure_;
+ @java.lang.Override
+ public long getMac() {
+ return mac_;
+ }
+
+ public static final int RSSI_FIELD_NUMBER = 3;
+ private int rssi_ = 0;
+ /**
+ *
+ * rssi integer in dBm.
+ * typically between -120 and -10
+ *
+ *
+ * int32 rssi = 3;
+ * @return The rssi.
+ */
+ @java.lang.Override
+ public int getRssi() {
+ return rssi_;
+ }
+
+ public static final int POSITION_FIELD_NUMBER = 4;
+ private com.openpositioning.PositionMe.Traj.GNSSPosition position_;
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ * @return Whether the position field is set.
+ */
+ @java.lang.Override
+ public boolean hasPosition() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ * @return The position.
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSPosition getPosition() {
+ return position_ == null ? com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance() : position_;
+ }
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ */
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder getPositionOrBuilder() {
+ return position_ == null ? com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance() : position_;
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -7508,16 +15041,25 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
+ throws java.io.IOException {
if (relativeTimestamp_ != 0L) {
output.writeInt64(1, relativeTimestamp_);
}
- if (pressure_ != 0F) {
- output.writeFloat(2, pressure_);
+ if (mac_ != 0L) {
+ output.writeInt64(2, mac_);
+ }
+ if (rssi_ != 0) {
+ output.writeInt32(3, rssi_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getPosition());
}
+ getUnknownFields().writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -7525,496 +15067,853 @@ public int getSerializedSize() {
size = 0;
if (relativeTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, relativeTimestamp_);
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (mac_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, mac_);
+ }
+ if (rssi_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, rssi_);
}
- if (pressure_ != 0F) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(2, pressure_);
+ .computeMessageSize(4, getPosition());
}
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
- if (!(obj instanceof Pressure_Sample)) {
+ if (!(obj instanceof com.openpositioning.PositionMe.Traj.RFScan)) {
return super.equals(obj);
}
- Pressure_Sample other = (Pressure_Sample) obj;
+ com.openpositioning.PositionMe.Traj.RFScan other = (com.openpositioning.PositionMe.Traj.RFScan) obj;
- boolean result = true;
- result = result && (getRelativeTimestamp()
- == other.getRelativeTimestamp());
- result = result && (
- Float.floatToIntBits(getPressure())
- == Float.floatToIntBits(
- other.getPressure()));
- return result;
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (getMac()
+ != other.getMac()) return false;
+ if (getRssi()
+ != other.getRssi()) return false;
+ if (hasPosition() != other.hasPosition()) return false;
+ if (hasPosition()) {
+ if (!getPosition()
+ .equals(other.getPosition())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
}
- @Override
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getRelativeTimestamp());
- hash = (37 * hash) + PRESSURE_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getPressure());
- hash = (29 * hash) + unknownFields.hashCode();
+ getRelativeTimestamp());
+ hash = (37 * hash) + MAC_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMac());
+ hash = (37 * hash) + RSSI_FIELD_NUMBER;
+ hash = (53 * hash) + getRssi();
+ if (hasPosition()) {
+ hash = (37 * hash) + POSITION_FIELD_NUMBER;
+ hash = (53 * hash) + getPosition().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static Pressure_Sample parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.RFScan parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openpositioning.PositionMe.Traj.RFScan parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.RFScan parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Pressure_Sample parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.RFScan parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Pressure_Sample parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.RFScan parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Pressure_Sample parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.openpositioning.PositionMe.Traj.RFScan parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Pressure_Sample parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static Pressure_Sample 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 Pressure_Sample parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static Pressure_Sample 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 Pressure_Sample parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static Pressure_Sample parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
+ public static com.openpositioning.PositionMe.Traj.RFScan parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.RFScan parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.RFScan parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.openpositioning.PositionMe.Traj.RFScan parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.openpositioning.PositionMe.Traj.RFScan parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openpositioning.PositionMe.Traj.RFScan parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(Pressure_Sample prototype) {
+ public static Builder newBuilder(com.openpositioning.PositionMe.Traj.RFScan prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
+ ? new Builder() : new Builder().mergeFrom(this);
}
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code Pressure_Sample}
+ * Protobuf type {@code RFScan}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:Pressure_Sample)
- Pressure_SampleOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:RFScan)
+ com.openpositioning.PositionMe.Traj.RFScanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Traj.internal_static_Pressure_Sample_descriptor;
+ getDescriptor() {
+ return com.openpositioning.PositionMe.Traj.internal_static_RFScan_descriptor;
}
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Traj.internal_static_Pressure_Sample_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Pressure_Sample.class, Builder.class);
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openpositioning.PositionMe.Traj.internal_static_RFScan_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openpositioning.PositionMe.Traj.RFScan.class, com.openpositioning.PositionMe.Traj.RFScan.Builder.class);
}
- // Construct using Traj.Pressure_Sample.newBuilder()
+ // Construct using com.openpositioning.PositionMe.Traj.RFScan.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
+ if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
+ getPositionFieldBuilder();
}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
relativeTimestamp_ = 0L;
-
- pressure_ = 0F;
-
+ mac_ = 0L;
+ rssi_ = 0;
+ position_ = null;
+ if (positionBuilder_ != null) {
+ positionBuilder_.dispose();
+ positionBuilder_ = null;
+ }
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return Traj.internal_static_Pressure_Sample_descriptor;
+ getDescriptorForType() {
+ return com.openpositioning.PositionMe.Traj.internal_static_RFScan_descriptor;
}
- public Pressure_Sample getDefaultInstanceForType() {
- return Pressure_Sample.getDefaultInstance();
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.RFScan getDefaultInstanceForType() {
+ return com.openpositioning.PositionMe.Traj.RFScan.getDefaultInstance();
}
- public Pressure_Sample build() {
- Pressure_Sample result = buildPartial();
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.RFScan build() {
+ com.openpositioning.PositionMe.Traj.RFScan result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public Pressure_Sample buildPartial() {
- Pressure_Sample result = new Pressure_Sample(this);
- result.relativeTimestamp_ = relativeTimestamp_;
- result.pressure_ = pressure_;
+ @java.lang.Override
+ public com.openpositioning.PositionMe.Traj.RFScan buildPartial() {
+ com.openpositioning.PositionMe.Traj.RFScan result = new com.openpositioning.PositionMe.Traj.RFScan(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
- public Builder clone() {
- return (Builder) super.clone();
- }
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
- return (Builder) super.setField(field, value);
- }
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ private void buildPartial0(com.openpositioning.PositionMe.Traj.RFScan result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.relativeTimestamp_ = relativeTimestamp_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.mac_ = mac_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.rssi_ = rssi_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.position_ = positionBuilder_ == null
+ ? position_
+ : positionBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof Pressure_Sample) {
- return mergeFrom((Pressure_Sample)other);
+ if (other instanceof com.openpositioning.PositionMe.Traj.RFScan) {
+ return mergeFrom((com.openpositioning.PositionMe.Traj.RFScan)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(Pressure_Sample other) {
- if (other == Pressure_Sample.getDefaultInstance()) return this;
+ public Builder mergeFrom(com.openpositioning.PositionMe.Traj.RFScan other) {
+ if (other == com.openpositioning.PositionMe.Traj.RFScan.getDefaultInstance()) return this;
if (other.getRelativeTimestamp() != 0L) {
setRelativeTimestamp(other.getRelativeTimestamp());
}
- if (other.getPressure() != 0F) {
- setPressure(other.getPressure());
+ if (other.getMac() != 0L) {
+ setMac(other.getMac());
}
+ if (other.getRssi() != 0) {
+ setRssi(other.getRssi());
+ }
+ if (other.hasPosition()) {
+ mergePosition(other.getPosition());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Pressure_Sample parsedMessage = null;
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ relativeTimestamp_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ mac_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24: {
+ rssi_ = input.readInt32();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 34: {
+ input.readMessage(
+ getPositionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Pressure_Sample) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
+ private int bitField0_;
private long relativeTimestamp_ ;
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
*/
+ @java.lang.Override
public long getRelativeTimestamp() {
return relativeTimestamp_;
}
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
*/
public Builder setRelativeTimestamp(long value) {
-
+
relativeTimestamp_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
*/
public Builder clearRelativeTimestamp() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
relativeTimestamp_ = 0L;
onChanged();
return this;
}
- private float pressure_ ;
+ private long mac_ ;
/**
*
- * mbar
+ * Integer encoding of the hex mac address (BSSID)
+ * e.g. 207394925843984
*
*
- * optional float pressure = 2;
+ * int64 mac = 2;
+ * @return The mac.
*/
- public float getPressure() {
- return pressure_;
+ @java.lang.Override
+ public long getMac() {
+ return mac_;
}
/**
*
- * mbar
+ * Integer encoding of the hex mac address (BSSID)
+ * e.g. 207394925843984
*
*
- * optional float pressure = 2;
+ * int64 mac = 2;
+ * @param value The mac to set.
+ * @return This builder for chaining.
*/
- public Builder setPressure(float value) {
-
- pressure_ = value;
+ public Builder setMac(long value) {
+
+ mac_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
- * mbar
+ * Integer encoding of the hex mac address (BSSID)
+ * e.g. 207394925843984
*
*
- * optional float pressure = 2;
+ * int64 mac = 2;
+ * @return This builder for chaining.
*/
- public Builder clearPressure() {
-
- pressure_ = 0F;
+ public Builder clearMac() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ mac_ = 0L;
onChanged();
return this;
}
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return this;
+
+ private int rssi_ ;
+ /**
+ *
+ * rssi integer in dBm.
+ * typically between -120 and -10
+ *
+ *
+ * int32 rssi = 3;
+ * @return The rssi.
+ */
+ @java.lang.Override
+ public int getRssi() {
+ return rssi_;
}
+ /**
+ *
+ * rssi integer in dBm.
+ * typically between -120 and -10
+ *
+ *
+ * int32 rssi = 3;
+ * @param value The rssi to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRssi(int value) {
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+ rssi_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * rssi integer in dBm.
+ * typically between -120 and -10
+ *
+ *
+ * int32 rssi = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearRssi() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ rssi_ = 0;
+ onChanged();
return this;
}
+ private com.openpositioning.PositionMe.Traj.GNSSPosition position_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.GNSSPosition, com.openpositioning.PositionMe.Traj.GNSSPosition.Builder, com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder> positionBuilder_;
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ * @return Whether the position field is set.
+ */
+ public boolean hasPosition() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ * @return The position.
+ */
+ public com.openpositioning.PositionMe.Traj.GNSSPosition getPosition() {
+ if (positionBuilder_ == null) {
+ return position_ == null ? com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance() : position_;
+ } else {
+ return positionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ */
+ public Builder setPosition(com.openpositioning.PositionMe.Traj.GNSSPosition value) {
+ if (positionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ position_ = value;
+ } else {
+ positionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ */
+ public Builder setPosition(
+ com.openpositioning.PositionMe.Traj.GNSSPosition.Builder builderForValue) {
+ if (positionBuilder_ == null) {
+ position_ = builderForValue.build();
+ } else {
+ positionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ */
+ public Builder mergePosition(com.openpositioning.PositionMe.Traj.GNSSPosition value) {
+ if (positionBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0) &&
+ position_ != null &&
+ position_ != com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance()) {
+ getPositionBuilder().mergeFrom(value);
+ } else {
+ position_ = value;
+ }
+ } else {
+ positionBuilder_.mergeFrom(value);
+ }
+ if (position_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ */
+ public Builder clearPosition() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ position_ = null;
+ if (positionBuilder_ != null) {
+ positionBuilder_.dispose();
+ positionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ */
+ public com.openpositioning.PositionMe.Traj.GNSSPosition.Builder getPositionBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getPositionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ */
+ public com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder getPositionOrBuilder() {
+ if (positionBuilder_ != null) {
+ return positionBuilder_.getMessageOrBuilder();
+ } else {
+ return position_ == null ?
+ com.openpositioning.PositionMe.Traj.GNSSPosition.getDefaultInstance() : position_;
+ }
+ }
+ /**
+ *
+ * returned position
+ *
+ *
+ * optional .GNSSPosition position = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.GNSSPosition, com.openpositioning.PositionMe.Traj.GNSSPosition.Builder, com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder>
+ getPositionFieldBuilder() {
+ if (positionBuilder_ == null) {
+ positionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ com.openpositioning.PositionMe.Traj.GNSSPosition, com.openpositioning.PositionMe.Traj.GNSSPosition.Builder, com.openpositioning.PositionMe.Traj.GNSSPositionOrBuilder>(
+ getPosition(),
+ getParentForChildren(),
+ isClean());
+ position_ = null;
+ }
+ return positionBuilder_;
+ }
- // @@protoc_insertion_point(builder_scope:Pressure_Sample)
+ // @@protoc_insertion_point(builder_scope:RFScan)
}
- // @@protoc_insertion_point(class_scope:Pressure_Sample)
- private static final Pressure_Sample DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:RFScan)
+ private static final com.openpositioning.PositionMe.Traj.RFScan DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new Pressure_Sample();
+ DEFAULT_INSTANCE = new com.openpositioning.PositionMe.Traj.RFScan();
}
- public static Pressure_Sample getDefaultInstance() {
+ public static com.openpositioning.PositionMe.Traj.RFScan getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- public Pressure_Sample parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Pressure_Sample(input, extensionRegistry);
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public RFScan parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return PARSER;
}
- @Override
- public com.google.protobuf.Parser