File: oneof_enum.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 (20 lines) | stat: -rw-r--r-- 211 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
syntax = "proto3";

package oneof_enum;

message Test {
  oneof action {
    Signal signal = 1;
    Move move = 2;
  }
}

enum Signal {
  PASS = 0;
  RESIGN = 1;
}

message Move {
  int32 x = 1;
  int32 y = 2;
}