Welcome to mirror list, hosted at ThFree Co, Russian Federation.

message.proto « cxx_descriptor « tests - github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 74f6b67a43a3139c18e4289ba1dfc064a0ec4729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Test CPP descriptor generation */

syntax = "proto2";

import "nanopb.proto";

message MyEmptyMessage {
}

message MyNonEmptyMessage {
    optional uint32 field = 1;
}

message MyMessageWithMsgid {
    option (nanopb_msgopt).msgid = 42;
    optional uint32 field = 1;
}

message MyMessageWithoutMsgid {
    optional uint32 field = 1;
}