Imported Upstream version 1.41.0
[platform/upstream/grpc.git] / third_party / upb / tests / bindings / lua / test.proto
1
2 syntax = "proto2";
3
4 import "google/protobuf/timestamp.proto";
5
6 package upb_test;
7
8 message MapTest {
9   map<string, double> map_string_double = 1;
10 }
11
12 message PackedTest {
13   repeated bool bool_packed = 1 [packed = true];
14   repeated int32 i32_packed = 2 [packed = true];
15   repeated int64 i64_packed = 3 [packed = true];
16   repeated fixed32 f32_packed = 4 [packed = true];
17   repeated fixed64 f64_packed = 5 [packed = true];
18 }
19
20 message UnpackedTest {
21   repeated bool bool_packed = 1 [packed = false];
22   repeated int32 i32_packed = 2 [packed = false];
23   repeated int64 i64_packed = 3 [packed = false];
24   repeated fixed32 f32_packed = 4 [packed = false];
25   repeated fixed64 f64_packed = 5 [packed = false];
26 }
27
28 message TestLargeFieldNumber {
29   optional int32 i32 = 456214797;
30 }
31
32 message TestTimestamp {
33   optional google.protobuf.Timestamp ts = 1;
34 }