diff --git a/build.gradle b/build.gradle index 8d4a520..6ba8fb1 100644 --- a/build.gradle +++ b/build.gradle @@ -40,7 +40,7 @@ plugins { } group = 'de.cyface' -version = '0.1.0' +version = '0.2.0' tasks.withType(JavaCompile) { options.encoding = 'UTF-8' diff --git a/src/main/proto/de/cyface/protos/model/measurement.proto b/src/main/proto/de/cyface/protos/model/measurement.proto index 28e422f..60795aa 100644 --- a/src/main/proto/de/cyface/protos/model/measurement.proto +++ b/src/main/proto/de/cyface/protos/model/measurement.proto @@ -56,24 +56,19 @@ message Measurement { * We use a packed encoding here, so this is a non repeated field. */ LocationRecords location_records = 17; + /* - * Collection of acceleration point batches. - * - * The sensor points are stored in batches to simplify the client code. + * Acceleration data stored during capturing. */ - repeated Accelerations accelerations = 18; + AccelerationsFile accelerations_file = 18; /* - * Collection of rotation point batches. - * - * The sensor points are stored in batches to simplify the client code. + * Rotation data stored during capturing. */ - repeated Rotations rotations = 19; + RotationsFile rotations_file = 19; /* - * Collection of direction point batches. - * - * The sensor points are stored in batches to simplify the client code. + * Direction data stored during capturing. */ - repeated Directions directions = 20; + DirectionsFile directions_file = 20; /* * Collection of events. @@ -121,17 +116,17 @@ message MeasurementBytes { */ LocationRecords location_records = 17; /* - * Collection of acceleration points. + * Acceleration data stored during capturing. */ - bytes accelerations = 18; + bytes accelerations_file = 18; /* - * Collection of rotation points. + * Rotation data stored during capturing. */ - bytes rotations = 19; + bytes rotations_file = 19; /* - * Collection of direction points. + * Direction data stored during capturing. */ - bytes directions = 20; + bytes directions_file = 20; /* * Collection of events. */ @@ -150,6 +145,48 @@ message MeasurementBytes { File capturing_log = 24; } +/* + * A message type which wraps the `Accelerations` batches captured in a `cyfa` file of a measurement. + * + * This allows to inject the bytes from a `cyfa` file on the client without parsing the data [DAT-642]. + */ +message AccelerationsFile { + /* + * Collection of acceleration point batches. + * + * The sensor points are stored in batches to simplify the client code. + */ + repeated Accelerations accelerations = 1; +} + +/* + * A message type which wraps the `Accelerations` batches captured in a `cyfa` file of a measurement. + * + * This allows to inject the bytes from a `cyfa` file on the client without parsing the data [DAT-642]. + */ +message RotationsFile { + /* + * Collection of rotation point batches. + * + * The sensor points are stored in batches to simplify the client code. + */ + repeated Rotations rotations = 1; +} + +/* + * A message type which wraps the `Accelerations` batches captured in a `cyfa` file of a measurement. + * + * This allows to inject the bytes from a `cyfa` file on the client without parsing the data [DAT-642]. + */ +message DirectionsFile { + /* + * Collection of direction point batches. + * + * The sensor points are stored in batches to simplify the client code. + */ + repeated Directions directions = 1; +} + /* * A message type which wraps all geo-locations captured for one measurement. *