File: enum_mapping.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 (26 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (2)
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
26
syntax = "proto3";

enum TestEnum1
{
    A = 0;
    B = 2;
    C = -3;
}

enum TestEnum2
{
    X = 0;
    Y = 5;
}

message TestMsg
{
    TestEnum1 test1 = 1;
    
    oneof oneof1
    {
        TestEnum2 test2 = 2;
    }
}