blob: 9bcb3fca7ccf3ea5508d75b1bb55f3af93b0c81e [file] [log] [blame]
Joshua Haberman5cfc9e72024-01-03 13:03:49 -08001syntax = "proto3";
2
3package repeated_field_test_protos;
4
5message TestMessage {
6 optional int32 optional_int32 = 1;
7 optional int64 optional_int64 = 2;
8 optional uint32 optional_uint32 = 3;
9 optional uint64 optional_uint64 = 4;
10 optional bool optional_bool = 5;
11 optional float optional_float = 6;
12 optional double optional_double = 7;
13 optional string optional_string = 8;
14 optional bytes optional_bytes = 9;
15 optional TestMessage2 optional_msg = 10;
16 optional TestEnum optional_enum = 11;
17 repeated int32 repeated_int32 = 12;
18 repeated int64 repeated_int64 = 13;
19 repeated uint32 repeated_uint32 = 14;
20 repeated uint64 repeated_uint64 = 15;
21 repeated bool repeated_bool = 16;
22 repeated float repeated_float = 17;
23 repeated double repeated_double = 18;
24 repeated string repeated_string = 19;
25 repeated bytes repeated_bytes = 20;
26 repeated TestMessage2 repeated_msg = 21;
27 repeated TestEnum repeated_enum = 22;
28}
29
30message TestMessage2 {
31 optional int32 foo = 1;
32}
33
34enum TestEnum {
35 DEFAULT = 0;
36 A = 1;
37 B = 2;
38 C = 3;
39 V0 = 4;
40}