diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-09-30 16:07:27 -0400 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-07 13:18:09 -0500 |
commit | 1820baf320d5831815de35dddbbfc5818a0e004b (patch) | |
tree | b34b51df40f8dcf16832336d5b5f639fecdc6646 /benchmark/proto/openxc.proto | |
parent | d3d7bf0e09ae6a4b8161c19e224742ae3d06d620 (diff) |
Use a container type to be able to stream protobufs.
Diffstat (limited to 'benchmark/proto/openxc.proto')
-rw-r--r-- | benchmark/proto/openxc.proto | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/benchmark/proto/openxc.proto b/benchmark/proto/openxc.proto index 0e39bb6c..1917b0bd 100644 --- a/benchmark/proto/openxc.proto +++ b/benchmark/proto/openxc.proto @@ -1,5 +1,16 @@ package openxc; +message VehicleMessage { + enum Type { RAW = 1; STRING = 2; NUM = 3; BOOL = 4; } + + optional Type type = 1; + + optional RawMessage raw_message = 2; + optional TranslatedStringMessage string_message = 3; + optional TranslatedNumericMessage numerical_message = 4; + optional TranslatedBooleanMessage boolean_message = 5; +} + message RawMessage { optional uint32 message_id = 1; optional double data = 2; |