File: nestedtwice.proto

package info (click to toggle)
python-aristaproto 1.2%2Breally0.1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,600 kB
  • sloc: python: 6,521; java: 106; xml: 84; makefile: 6
file content (40 lines) | stat: -rw-r--r-- 817 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
syntax = "proto3";

package nestedtwice;

/* Test doc. */
message Test {
  /* Top doc. */
  message Top {
    /* Middle doc. */
    message Middle {
      /* TopMiddleBottom doc.*/
      message TopMiddleBottom {
        // TopMiddleBottom.a doc.
        string a = 1;
      }
      /* EnumBottom doc. */
      enum EnumBottom{
        /* EnumBottom.A doc. */
        A = 0;
        B = 1;
      }
      /* Bottom doc. */
      message Bottom {
        /* Bottom.foo doc. */
        string foo = 1;
      }
      reserved 1;
      /* Middle.bottom doc. */
      repeated Bottom bottom = 2;
      repeated EnumBottom enumBottom=3;
      repeated TopMiddleBottom topMiddleBottom=4;
      bool bar = 5;
    }
    /* Top.name doc. */
    string name = 1;
    Middle middle = 2;
  }
  /* Test.top doc. */
  Top top = 1;
}