|
| 1 | +syntax = "proto2"; |
| 2 | + |
| 3 | +package com.google.cloud.bigquery.storage.test; |
| 4 | + |
| 5 | +message ComplexRoot { |
| 6 | + optional int64 test_int = 1; |
| 7 | + repeated string test_string = 2; |
| 8 | + required bytes test_bytes = 3; |
| 9 | + optional bool test_bool = 4; |
| 10 | + repeated double test_double = 5; |
| 11 | + required int32 test_date = 6; |
| 12 | + optional int64 test_datetime = 7; |
| 13 | + repeated int64 test_datetime_str = 8; |
| 14 | + required ComplexLvl1 complex_lvl1 = 9; |
| 15 | + required |
| 16 | + ComplexLvl2 complex_lvl2 = 10; |
| 17 | + optional bytes test_numeric = 11; |
| 18 | + optional string test_geo = 12; |
| 19 | + optional int64 test_timestamp = 13; |
| 20 | + optional int64 test_time = 14; |
| 21 | + optional int64 test_time_str = 15; |
| 22 | + repeated bytes test_numeric_repeated = 16; |
| 23 | + optional bytes test_numeric_str = 17; |
| 24 | + optional bytes test_numeric_short = 18; |
| 25 | + optional bytes test_numeric_int = 19; |
| 26 | + optional bytes test_numeric_long = 20; |
| 27 | + optional bytes test_numeric_float = 21; |
| 28 | + optional bytes test_numeric_double = 22; |
| 29 | + optional bytes test_bignumeric = 23; |
| 30 | + repeated bytes test_bignumeric_str = 24; |
| 31 | + optional bytes test_bignumeric_short = 25; |
| 32 | + optional bytes test_bignumeric_int = 26; |
| 33 | + optional bytes test_bignumeric_long = 27; |
| 34 | + optional bytes test_bignumeric_float = 28; |
| 35 | + optional bytes test_bignumeric_double = 29; |
| 36 | + optional string test_interval = 30; |
| 37 | + repeated string test_json = 31; |
| 38 | + optional string test_timestamp_higher_precision = 32; |
| 39 | + repeated string test_timestamp_higher_precision_repeated = 33; |
| 40 | +} |
| 41 | + |
| 42 | +message CasingComplex { |
| 43 | + optional int64 test_int = 1; |
| 44 | + repeated string test_string = 2; |
| 45 | + required bytes test_bytes = 3; |
| 46 | + optional bool test_bool = 4; |
| 47 | + repeated double test_double = 5; |
| 48 | + required int32 test_date = 6; |
| 49 | + required OptionTest option_test = 7; |
| 50 | +} |
| 51 | + |
| 52 | +message ComplexLvl1 { |
| 53 | + optional int64 test_int = 1; |
| 54 | + required ComplexLvl2 complex_lvl2 = 2; |
| 55 | +} |
| 56 | + |
| 57 | +message ComplexLvl2 { |
| 58 | + optional int64 test_int = 1; |
| 59 | +} |
| 60 | + |
| 61 | +message ObjectType { |
| 62 | + optional ComplexLvl2 test_field_type = 1; |
| 63 | +} |
| 64 | + |
| 65 | +message RepeatedType { |
| 66 | + repeated int64 test_field_type = 1; |
| 67 | +} |
| 68 | + |
| 69 | +message OptionTest { |
| 70 | + optional int64 test_optional = 1; |
| 71 | + required int64 test_required = 2; |
| 72 | + repeated int64 test_repeated = 3; |
| 73 | +} |
| 74 | + |
| 75 | +message ReuseRoot { |
| 76 | + optional ReuseLvl1 reuse_lvl1 = 1; |
| 77 | + optional ReuseLvl1 reuse_lvl1_1 = 2; |
| 78 | + optional ReuseLvl1 reuse_lvl1_2 = 3; |
| 79 | +} |
| 80 | + |
| 81 | +message ReuseLvl1 { |
| 82 | + optional int64 test_int = 1; |
| 83 | + optional ReuseLvl2 reuse_lvl2 = 2; |
| 84 | +} |
| 85 | + |
| 86 | +message ReuseLvl2 { |
| 87 | + optional int64 test_int = 1; |
| 88 | +} |
| 89 | + |
| 90 | +message RepeatedInt64 { |
| 91 | + repeated int64 test_repeated = 1; |
| 92 | +} |
| 93 | + |
| 94 | +message RepeatedInt32 { |
| 95 | + repeated int32 test_repeated = 1; |
| 96 | + optional int32 test_non_repeated = 2; |
| 97 | +} |
| 98 | + |
| 99 | +message RepeatedDouble { |
| 100 | + repeated double test_repeated = 1; |
| 101 | +} |
| 102 | + |
| 103 | +message RepeatedString { |
| 104 | + repeated string test_repeated = 1; |
| 105 | +} |
| 106 | + |
| 107 | +message RepeatedBool { |
| 108 | + repeated bool test_repeated = 1; |
| 109 | +} |
| 110 | + |
| 111 | +message RepeatedBytes { |
| 112 | + repeated bytes test_repeated = 1; |
| 113 | +} |
| 114 | + |
| 115 | +message RepeatedObject { |
| 116 | + repeated ComplexLvl2 test_repeated = 1; |
| 117 | +} |
| 118 | + |
| 119 | +message TestBool { |
| 120 | + optional bool bool = 1; |
| 121 | + optional bool lowercase = 2; |
| 122 | + optional bool uppercase = 3; |
| 123 | +} |
| 124 | + |
| 125 | +message TestInt64 { |
| 126 | + optional int64 byte = 1; |
| 127 | + optional int64 short = 2; |
| 128 | + optional int64 int = 3; |
| 129 | + optional int64 long = 4; |
| 130 | + optional int64 string = 5; |
| 131 | +} |
| 132 | + |
| 133 | +message TestInt32 { |
| 134 | + optional int32 byte = 1; |
| 135 | + optional int32 short = 2; |
| 136 | + optional int32 int = 3; |
| 137 | + optional int32 string = 4; |
| 138 | +} |
| 139 | + |
| 140 | +message TestDouble { |
| 141 | + optional double double = 1; |
| 142 | + optional double float = 2; |
| 143 | + optional double byte = 3; |
| 144 | + optional double short = 4; |
| 145 | + optional double int = 5; |
| 146 | + optional double long = 6; |
| 147 | + optional double string = 7; |
| 148 | +} |
| 149 | + |
| 150 | +message TestTimestamp { |
| 151 | + optional int64 test_string = 1; |
| 152 | + optional int64 test_string_t_z = 2; |
| 153 | + optional int64 test_long = 3; |
| 154 | + optional int64 test_int = 4; |
| 155 | + optional int64 test_float = 5; |
| 156 | + optional int64 test_offset = 6; |
| 157 | + optional int64 test_zero_offset = 7; |
| 158 | + optional int64 test_timezone = 8; |
| 159 | + optional int64 test_saformat = 9; |
| 160 | +} |
| 161 | + |
| 162 | +message TestTimestampHigherPrecision { |
| 163 | + optional string test_string = 1; |
| 164 | + optional string test_string_t_z = 2; |
| 165 | + optional string test_long = 3; |
| 166 | + optional string test_int = 4; |
| 167 | + optional string test_float = 5; |
| 168 | + optional string test_offset = 6; |
| 169 | + optional string test_zero_offset = 7; |
| 170 | + optional string test_timezone = 8; |
| 171 | + optional string test_saformat = 9; |
| 172 | +} |
| 173 | + |
| 174 | +message TestRepeatedTimestamp { |
| 175 | + repeated int64 test_string_repeated = 1; |
| 176 | + repeated int64 test_string_t_z_repeated = 2; |
| 177 | + repeated int64 test_long_repeated = 3; |
| 178 | + repeated int64 test_int_repeated = 4; |
| 179 | + repeated int64 test_float_repeated = 5; |
| 180 | + repeated int64 test_offset_repeated = 6; |
| 181 | + repeated int64 test_zero_offset_repeated = 7; |
| 182 | + repeated int64 test_timezone_repeated = 8; |
| 183 | + repeated int64 test_saformat_repeated = 9; |
| 184 | +} |
| 185 | + |
| 186 | +message TestRepeatedTimestampHigherPrecision { |
| 187 | + repeated string test_string_repeated = 1; |
| 188 | + repeated string test_string_t_z_repeated = 2; |
| 189 | + repeated string test_long_repeated = 3; |
| 190 | + repeated string test_int_repeated = 4; |
| 191 | + repeated string test_float_repeated = 5; |
| 192 | + repeated string test_offset_repeated = 6; |
| 193 | + repeated string test_zero_offset_repeated = 7; |
| 194 | + repeated string test_timezone_repeated = 8; |
| 195 | + repeated string test_saformat_repeated = 9; |
| 196 | +} |
| 197 | + |
| 198 | +message TestDate { |
| 199 | + optional int32 test_string = 1; |
| 200 | + optional int32 test_long = 2; |
| 201 | +} |
| 202 | + |
| 203 | +message NestedRepeated { |
| 204 | + repeated int64 int = 1; |
| 205 | + repeated double double = 2; |
| 206 | + optional RepeatedString repeated_string = 3; |
| 207 | +} |
| 208 | + |
| 209 | +message TestRequired { |
| 210 | + optional double optional_double = 1; |
| 211 | + required double required_double = 2; |
| 212 | +} |
| 213 | + |
| 214 | +message TestRepeatedIsOptional { |
| 215 | + optional double required_double = 1; |
| 216 | + repeated double repeated_double = 2; |
| 217 | +} |
| 218 | + |
| 219 | +message TopLevelMismatch { |
| 220 | + optional double mismatch_double = 1; |
| 221 | +} |
| 222 | + |
| 223 | +message TestDatetime { |
| 224 | + optional int64 datetime = 1; |
| 225 | +} |
| 226 | + |
| 227 | +message TestTime { |
| 228 | + repeated int64 time = 1; |
| 229 | +} |
| 230 | + |
| 231 | +message TestNumeric { |
| 232 | + optional bytes numeric = 1; |
| 233 | +} |
| 234 | + |
| 235 | +message TestBignumeric { |
| 236 | + repeated bytes bignumeric = 1; |
| 237 | +} |
| 238 | + |
| 239 | +message TestMixedCaseFieldNames { |
| 240 | + required string foobar = 1; |
| 241 | +} |
| 242 | + |
| 243 | +message TestRange { |
| 244 | + optional TestRangeDate range_date = 1; |
| 245 | + optional TestRangeDatetime range_datetime = 2; |
| 246 | + optional TestRangeTimestamp range_timestamp = 3; |
| 247 | + optional TestRangeDate range_date_mixed_case = 4; |
| 248 | + optional TestRangeDatetime range_datetime_mixed_case = 5; |
| 249 | + optional TestRangeTimestamp range_timestamp_mixed_case = 6; |
| 250 | +} |
| 251 | + |
| 252 | +message TestRangeDate { |
| 253 | + optional int32 start = 1; |
| 254 | + optional int32 end = 2; |
| 255 | +} |
| 256 | + |
| 257 | +message TestRangeDatetime { |
| 258 | + optional int64 start = 1; |
| 259 | + optional int64 end = 2; |
| 260 | +} |
| 261 | + |
| 262 | +message TestRangeTimestamp { |
| 263 | + optional int64 start = 1; |
| 264 | + optional int64 end = 2; |
| 265 | +} |
0 commit comments