File: msgid_example.proto

package info (click to toggle)
nanopb 0.4.9.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,676 kB
  • sloc: ansic: 12,144; python: 2,795; cpp: 190; sh: 163; makefile: 85
file content (25 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
syntax = "proto3";

import "nanopb.proto";

message MyMessage1
{
    option (nanopb_msgopt).msgid = 1;

    int32 intvalue = 1;
}

message MyMessage2
{
    option (nanopb_msgopt).msgid = 2;

    int32 intvalue = 1;
    string strvalue = 2 [(nanopb).max_size = 16];
}

message MyMessage3
{
    option (nanopb_msgopt).msgid = 3;

    bool boolvalue = 1;
}