From 1820baf320d5831815de35dddbbfc5818a0e004b Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Mon, 30 Sep 2013 16:07:27 -0400 Subject: Use a container type to be able to stream protobufs. --- benchmark/proto/openxc.proto | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'benchmark/proto/openxc.proto') 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; -- cgit 1.2.3-korg