forked from googleapis/java-bigquerystorage
/
jsonTest.proto
54 lines (45 loc) · 1.17 KB
/
jsonTest.proto
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
syntax = "proto2";
package com.google.cloud.bigquery.storage.test;
message ComplexRoot {
optional int64 test_int = 1;
repeated string test_string = 2;
required bytes test_bytes = 3;
optional bool test_bool = 4;
repeated double test_double = 5;
required int32 test_date = 6;
required ComplexLvl1 complex_lvl1 = 7;
required ComplexLvl2 complex_lvl2 = 8;
}
message CasingComplex {
optional int64 test_int = 1;
repeated string test_string = 2;
required bytes test_bytes = 3;
optional bool test_bool = 4;
repeated double test_double = 5;
required int32 test_date = 6;
required OptionTest option_test = 7;
}
message ComplexLvl1 {
optional int64 test_int = 1;
required ComplexLvl2 complex_lvl2 = 2;
}
message ComplexLvl2 {
optional int64 test_int = 1;
}
message OptionTest {
optional int64 test_optional = 1;
required int64 test_required = 2;
repeated int64 test_repeated = 3;
}
message ReuseRoot {
optional ReuseLvl1 reuse_lvl1 = 1;
optional ReuseLvl1 reuse_lvl1_1 = 2;
optional ReuseLvl1 reuse_lvl1_2 = 3;
}
message ReuseLvl1 {
optional int64 test_int = 1;
optional ReuseLvl2 reuse_lvl2 = 2;
}
message ReuseLvl2 {
optional int64 test_int = 1;
}