Skip to content

Commit

Permalink
Merge pull request #87 from luminize/add_sample_msg
Browse files Browse the repository at this point in the history
sample.proto: add message
  • Loading branch information
ArcEye authored May 16, 2019
2 parents 6ca7c99 + 4ed3cd3 commit 9eb9763
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/machinetalk/protobuf/sample.proto
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;
}

0 comments on commit 9eb9763

Please sign in to comment.