File: nested.proto

package info (click to toggle)
python-aristaproto 1.2%2B20240521-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,484 kB
  • sloc: python: 5,915; java: 106; xml: 84; makefile: 6
file content (26 lines) | stat: -rw-r--r-- 446 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";

package nested;

// A test message with a nested message inside of it.
message Test {
    // This is the nested type.
    message Nested {
        // Stores a simple counter.
        int32 count = 1;
    }
    // This is the nested enum.
    enum Msg {
        NONE = 0;
        THIS = 1;
    }

    Nested nested = 1;
    Sibling sibling = 2;
    Sibling sibling2 = 3;
    Msg msg = 4;
}

message Sibling {
  int32 foo = 1;
}