mirror of
https://github.com/firebase/nanopb
synced 2026-11-10 22:35:59 +05:45
25 lines
354 B
Protocol Buffer
25 lines
354 B
Protocol Buffer
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;
|
||
|
|
}
|