-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from luminize/add_sample_msg
sample.proto: add message
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
syntax = "proto2"; | ||
package machinetalk; | ||
|
||
// This message contains a Sample. | ||
// A sample is a value of a type. | ||
// A sample can contain a timestamp | ||
|
||
// see README.msgid | ||
// msgid base: 360 | ||
|
||
import "machinetalk/protobuf/nanopb.proto"; | ||
import "machinetalk/protobuf/value.proto"; | ||
|
||
|
||
message Sample { | ||
option (nanopb_msgopt).msgid = 361; | ||
|
||
optional fixed64 timestamp = 1; | ||
optional bytes v_bytes = 2; | ||
optional sfixed32 v_int32 = 3; | ||
optional sfixed64 v_int64 = 4; | ||
optional fixed32 v_uint32 = 5; | ||
optional fixed64 v_uint64 = 6; | ||
optional double v_double = 7; | ||
optional string v_string = 8 [(nanopb).max_size = 41]; | ||
optional bool v_bool = 9; | ||
} |