github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/amino/tests/tests.proto (about) 1 syntax = "proto3"; 2 package tests; 3 4 option go_package = "github.com/gnolang/gno/tm2/pkg/amino/tests/pb"; 5 6 // imports 7 import "google/protobuf/timestamp.proto"; 8 import "google/protobuf/duration.proto"; 9 import "google/protobuf/any.proto"; 10 11 // messages 12 message EmptyStruct { 13 } 14 15 message PrimitivesStruct { 16 sint32 int8 = 1 [json_name = "Int8"]; 17 sint32 int16 = 2 [json_name = "Int16"]; 18 sint32 int32 = 3 [json_name = "Int32"]; 19 sfixed32 int32_fixed = 4 [json_name = "Int32Fixed"]; 20 sint64 int64 = 5 [json_name = "Int64"]; 21 sfixed64 int64_fixed = 6 [json_name = "Int64Fixed"]; 22 sint64 int = 7 [json_name = "Int"]; 23 uint32 byte = 8 [json_name = "Byte"]; 24 uint32 uint8 = 9 [json_name = "Uint8"]; 25 uint32 uint16 = 10 [json_name = "Uint16"]; 26 uint32 uint32 = 11 [json_name = "Uint32"]; 27 fixed32 uint32_fixed = 12 [json_name = "Uint32Fixed"]; 28 uint64 uint64 = 13 [json_name = "Uint64"]; 29 fixed64 uint64_fixed = 14 [json_name = "Uint64Fixed"]; 30 uint64 uint = 15 [json_name = "Uint"]; 31 string str = 16 [json_name = "Str"]; 32 bytes bytes = 17 [json_name = "Bytes"]; 33 google.protobuf.Timestamp time = 18 [json_name = "Time"]; 34 google.protobuf.Duration duration = 19 [json_name = "Duration"]; 35 EmptyStruct empty = 20 [json_name = "Empty"]; 36 } 37 38 message ShortArraysStruct { 39 repeated google.protobuf.Timestamp time_ar = 1 [json_name = "TimeAr"]; 40 repeated google.protobuf.Duration duration_ar = 2 [json_name = "DurationAr"]; 41 } 42 43 message ArraysStruct { 44 repeated sint32 int8_ar = 1 [json_name = "Int8Ar"]; 45 repeated sint32 int16_ar = 2 [json_name = "Int16Ar"]; 46 repeated sint32 int32_ar = 3 [json_name = "Int32Ar"]; 47 repeated sfixed32 int32_fixed_ar = 4 [json_name = "Int32FixedAr"]; 48 repeated sint64 int64_ar = 5 [json_name = "Int64Ar"]; 49 repeated sfixed64 int64_fixed_ar = 6 [json_name = "Int64FixedAr"]; 50 repeated sint64 int_ar = 7 [json_name = "IntAr"]; 51 bytes byte_ar = 8 [json_name = "ByteAr"]; 52 bytes uint8_ar = 9 [json_name = "Uint8Ar"]; 53 repeated uint32 uint16_ar = 10 [json_name = "Uint16Ar"]; 54 repeated uint32 uint32_ar = 11 [json_name = "Uint32Ar"]; 55 repeated fixed32 uint32_fixed_ar = 12 [json_name = "Uint32FixedAr"]; 56 repeated uint64 uint64_ar = 13 [json_name = "Uint64Ar"]; 57 repeated fixed64 uint64_fixed_ar = 14 [json_name = "Uint64FixedAr"]; 58 repeated uint64 uint_ar = 15 [json_name = "UintAr"]; 59 repeated string str_ar = 16 [json_name = "StrAr"]; 60 repeated bytes bytes_ar = 17 [json_name = "BytesAr"]; 61 repeated google.protobuf.Timestamp time_ar = 18 [json_name = "TimeAr"]; 62 repeated google.protobuf.Duration duration_ar = 19 [json_name = "DurationAr"]; 63 repeated EmptyStruct empty_ar = 20 [json_name = "EmptyAr"]; 64 } 65 66 message ArraysArraysStruct { 67 repeated TESTS_Int8List int8_ar_ar = 1 [json_name = "Int8ArAr"]; 68 repeated TESTS_Int16List int16_ar_ar = 2 [json_name = "Int16ArAr"]; 69 repeated TESTS_Int32ValueList int32_ar_ar = 3 [json_name = "Int32ArAr"]; 70 repeated TESTS_Fixed32Int32ValueList int32_fixed_ar_ar = 4 [json_name = "Int32FixedArAr"]; 71 repeated TESTS_Int64ValueList int64_ar_ar = 5 [json_name = "Int64ArAr"]; 72 repeated TESTS_Fixed64Int64ValueList int64_fixed_ar_ar = 6 [json_name = "Int64FixedArAr"]; 73 repeated TESTS_Int64ValueList int_ar_ar = 7 [json_name = "IntArAr"]; 74 repeated bytes byte_ar_ar = 8 [json_name = "ByteArAr"]; 75 repeated bytes uint8_ar_ar = 9 [json_name = "Uint8ArAr"]; 76 repeated TESTS_UInt16List uint16_ar_ar = 10 [json_name = "Uint16ArAr"]; 77 repeated TESTS_UInt32ValueList uint32_ar_ar = 11 [json_name = "Uint32ArAr"]; 78 repeated TESTS_Fixed32UInt32ValueList uint32_fixed_ar_ar = 12 [json_name = "Uint32FixedArAr"]; 79 repeated TESTS_UInt64ValueList uint64_ar_ar = 13 [json_name = "Uint64ArAr"]; 80 repeated TESTS_Fixed64UInt64ValueList uint64_fixed_ar_ar = 14 [json_name = "Uint64FixedArAr"]; 81 repeated TESTS_UInt64ValueList uint_ar_ar = 15 [json_name = "UintArAr"]; 82 repeated TESTS_StringValueList str_ar_ar = 16 [json_name = "StrArAr"]; 83 repeated TESTS_BytesList bytes_ar_ar = 17 [json_name = "BytesArAr"]; 84 repeated TESTS_TimestampList time_ar_ar = 18 [json_name = "TimeArAr"]; 85 repeated TESTS_DurationList duration_ar_ar = 19 [json_name = "DurationArAr"]; 86 repeated TESTS_EmptyStructList empty_ar_ar = 20 [json_name = "EmptyArAr"]; 87 } 88 89 message SlicesStruct { 90 repeated sint32 int8_sl = 1 [json_name = "Int8Sl"]; 91 repeated sint32 int16_sl = 2 [json_name = "Int16Sl"]; 92 repeated sint32 int32_sl = 3 [json_name = "Int32Sl"]; 93 repeated sfixed32 int32_fixed_sl = 4 [json_name = "Int32FixedSl"]; 94 repeated sint64 int64_sl = 5 [json_name = "Int64Sl"]; 95 repeated sfixed64 int64_fixed_sl = 6 [json_name = "Int64FixedSl"]; 96 repeated sint64 int_sl = 7 [json_name = "IntSl"]; 97 bytes byte_sl = 8 [json_name = "ByteSl"]; 98 bytes uint8_sl = 9 [json_name = "Uint8Sl"]; 99 repeated uint32 uint16_sl = 10 [json_name = "Uint16Sl"]; 100 repeated uint32 uint32_sl = 11 [json_name = "Uint32Sl"]; 101 repeated fixed32 uint32_fixed_sl = 12 [json_name = "Uint32FixedSl"]; 102 repeated uint64 uint64_sl = 13 [json_name = "Uint64Sl"]; 103 repeated fixed64 uint64_fixed_sl = 14 [json_name = "Uint64FixedSl"]; 104 repeated uint64 uint_sl = 15 [json_name = "UintSl"]; 105 repeated string str_sl = 16 [json_name = "StrSl"]; 106 repeated bytes bytes_sl = 17 [json_name = "BytesSl"]; 107 repeated google.protobuf.Timestamp time_sl = 18 [json_name = "TimeSl"]; 108 repeated google.protobuf.Duration duration_sl = 19 [json_name = "DurationSl"]; 109 repeated EmptyStruct empty_sl = 20 [json_name = "EmptySl"]; 110 } 111 112 message SlicesSlicesStruct { 113 repeated TESTS_Int8List int8_sl_sl = 1 [json_name = "Int8SlSl"]; 114 repeated TESTS_Int16List int16_sl_sl = 2 [json_name = "Int16SlSl"]; 115 repeated TESTS_Int32ValueList int32_sl_sl = 3 [json_name = "Int32SlSl"]; 116 repeated TESTS_Fixed32Int32ValueList int32_fixed_sl_sl = 4 [json_name = "Int32FixedSlSl"]; 117 repeated TESTS_Int64ValueList int64_sl_sl = 5 [json_name = "Int64SlSl"]; 118 repeated TESTS_Fixed64Int64ValueList int64_fixed_sl_sl = 6 [json_name = "Int64FixedSlSl"]; 119 repeated TESTS_Int64ValueList int_sl_sl = 7 [json_name = "IntSlSl"]; 120 repeated bytes byte_sl_sl = 8 [json_name = "ByteSlSl"]; 121 repeated bytes uint8_sl_sl = 9 [json_name = "Uint8SlSl"]; 122 repeated TESTS_UInt16List uint16_sl_sl = 10 [json_name = "Uint16SlSl"]; 123 repeated TESTS_UInt32ValueList uint32_sl_sl = 11 [json_name = "Uint32SlSl"]; 124 repeated TESTS_Fixed32UInt32ValueList uint32_fixed_sl_sl = 12 [json_name = "Uint32FixedSlSl"]; 125 repeated TESTS_UInt64ValueList uint64_sl_sl = 13 [json_name = "Uint64SlSl"]; 126 repeated TESTS_Fixed64UInt64ValueList uint64_fixed_sl_sl = 14 [json_name = "Uint64FixedSlSl"]; 127 repeated TESTS_UInt64ValueList uint_sl_sl = 15 [json_name = "UintSlSl"]; 128 repeated TESTS_StringValueList str_sl_sl = 16 [json_name = "StrSlSl"]; 129 repeated TESTS_BytesList bytes_sl_sl = 17 [json_name = "BytesSlSl"]; 130 repeated TESTS_TimestampList time_sl_sl = 18 [json_name = "TimeSlSl"]; 131 repeated TESTS_DurationList duration_sl_sl = 19 [json_name = "DurationSlSl"]; 132 repeated TESTS_EmptyStructList empty_sl_sl = 20 [json_name = "EmptySlSl"]; 133 } 134 135 message PointersStruct { 136 sint32 int8_pt = 1 [json_name = "Int8Pt"]; 137 sint32 int16_pt = 2 [json_name = "Int16Pt"]; 138 sint32 int32_pt = 3 [json_name = "Int32Pt"]; 139 sfixed32 int32_fixed_pt = 4 [json_name = "Int32FixedPt"]; 140 sint64 int64_pt = 5 [json_name = "Int64Pt"]; 141 sfixed64 int64_fixed_pt = 6 [json_name = "Int64FixedPt"]; 142 sint64 int_pt = 7 [json_name = "IntPt"]; 143 uint32 byte_pt = 8 [json_name = "BytePt"]; 144 uint32 uint8_pt = 9 [json_name = "Uint8Pt"]; 145 uint32 uint16_pt = 10 [json_name = "Uint16Pt"]; 146 uint32 uint32_pt = 11 [json_name = "Uint32Pt"]; 147 fixed32 uint32_fixed_pt = 12 [json_name = "Uint32FixedPt"]; 148 uint64 uint64_pt = 13 [json_name = "Uint64Pt"]; 149 fixed64 uint64_fixed_pt = 14 [json_name = "Uint64FixedPt"]; 150 uint64 uint_pt = 15 [json_name = "UintPt"]; 151 string str_pt = 16 [json_name = "StrPt"]; 152 bytes bytes_pt = 17 [json_name = "BytesPt"]; 153 google.protobuf.Timestamp time_pt = 18 [json_name = "TimePt"]; 154 google.protobuf.Duration duration_pt = 19 [json_name = "DurationPt"]; 155 EmptyStruct empty_pt = 20 [json_name = "EmptyPt"]; 156 } 157 158 message PointerSlicesStruct { 159 repeated sint32 int8_pt_sl = 1 [json_name = "Int8PtSl"]; 160 repeated sint32 int16_pt_sl = 2 [json_name = "Int16PtSl"]; 161 repeated sint32 int32_pt_sl = 3 [json_name = "Int32PtSl"]; 162 repeated sfixed32 int32_fixed_pt_sl = 4 [json_name = "Int32FixedPtSl"]; 163 repeated sint64 int64_pt_sl = 5 [json_name = "Int64PtSl"]; 164 repeated sfixed64 int64_fixed_pt_sl = 6 [json_name = "Int64FixedPtSl"]; 165 repeated sint64 int_pt_sl = 7 [json_name = "IntPtSl"]; 166 bytes byte_pt_sl = 8 [json_name = "BytePtSl"]; 167 bytes uint8_pt_sl = 9 [json_name = "Uint8PtSl"]; 168 repeated uint32 uint16_pt_sl = 10 [json_name = "Uint16PtSl"]; 169 repeated uint32 uint32_pt_sl = 11 [json_name = "Uint32PtSl"]; 170 repeated fixed32 uint32_fixed_pt_sl = 12 [json_name = "Uint32FixedPtSl"]; 171 repeated uint64 uint64_pt_sl = 13 [json_name = "Uint64PtSl"]; 172 repeated fixed64 uint64_fixed_pt_sl = 14 [json_name = "Uint64FixedPtSl"]; 173 repeated uint64 uint_pt_sl = 15 [json_name = "UintPtSl"]; 174 repeated string str_pt_sl = 16 [json_name = "StrPtSl"]; 175 repeated bytes bytes_pt_sl = 17 [json_name = "BytesPtSl"]; 176 repeated google.protobuf.Timestamp time_pt_sl = 18 [json_name = "TimePtSl"]; 177 repeated google.protobuf.Duration duration_pt_sl = 19 [json_name = "DurationPtSl"]; 178 repeated EmptyStruct empty_pt_sl = 20 [json_name = "EmptyPtSl"]; 179 } 180 181 message ComplexSt { 182 PrimitivesStruct pr_field = 1 [json_name = "PrField"]; 183 ArraysStruct ar_field = 2 [json_name = "ArField"]; 184 SlicesStruct sl_field = 3 [json_name = "SlField"]; 185 PointersStruct pt_field = 4 [json_name = "PtField"]; 186 } 187 188 message EmbeddedSt1 { 189 PrimitivesStruct primitives_struct = 1 [json_name = "PrimitivesStruct"]; 190 } 191 192 message EmbeddedSt2 { 193 PrimitivesStruct primitives_struct = 1 [json_name = "PrimitivesStruct"]; 194 ArraysStruct arrays_struct = 2 [json_name = "ArraysStruct"]; 195 SlicesStruct slices_struct = 3 [json_name = "SlicesStruct"]; 196 PointersStruct pointers_struct = 4 [json_name = "PointersStruct"]; 197 } 198 199 message EmbeddedSt3 { 200 PrimitivesStruct primitives_struct = 1 [json_name = "PrimitivesStruct"]; 201 ArraysStruct arrays_struct = 2 [json_name = "ArraysStruct"]; 202 SlicesStruct slices_struct = 3 [json_name = "SlicesStruct"]; 203 PointersStruct pointers_struct = 4 [json_name = "PointersStruct"]; 204 EmptyStruct empty_struct = 5 [json_name = "EmptyStruct"]; 205 } 206 207 message EmbeddedSt4 { 208 sint64 foo1 = 1 [json_name = "Foo1"]; 209 PrimitivesStruct primitives_struct = 2 [json_name = "PrimitivesStruct"]; 210 string foo2 = 3 [json_name = "Foo2"]; 211 ArraysStruct arrays_struct_field = 4 [json_name = "ArraysStructField"]; 212 bytes foo3 = 5 [json_name = "Foo3"]; 213 SlicesStruct slices_struct = 6 [json_name = "SlicesStruct"]; 214 bool foo4 = 7 [json_name = "Foo4"]; 215 PointersStruct pointers_struct_field = 8 [json_name = "PointersStructField"]; 216 uint64 foo5 = 9 [json_name = "Foo5"]; 217 } 218 219 message EmbeddedSt5NameOverride { 220 sint64 foo1 = 1 [json_name = "Foo1"]; 221 PrimitivesStruct primitives_struct = 2 [json_name = "PrimitivesStruct"]; 222 string foo2 = 3 [json_name = "Foo2"]; 223 ArraysStruct arrays_struct_field = 4 [json_name = "ArraysStructField"]; 224 bytes foo3 = 5 [json_name = "Foo3"]; 225 SlicesStruct slices_struct = 6 [json_name = "SlicesStruct"]; 226 bool foo4 = 7 [json_name = "Foo4"]; 227 PointersStruct pointers_struct_field = 8 [json_name = "PointersStructField"]; 228 uint64 foo5 = 9 [json_name = "Foo5"]; 229 } 230 231 message AminoMarshalerStruct1 { 232 sint64 c = 1 [json_name = "C"]; 233 sint64 d = 2 [json_name = "D"]; 234 } 235 236 message ReprStruct1 { 237 sint64 c = 1 [json_name = "C"]; 238 sint64 d = 2 [json_name = "D"]; 239 } 240 241 message AminoMarshalerStruct2 { 242 repeated ReprElem2 value = 1; 243 } 244 245 message ReprElem2 { 246 string key = 1 [json_name = "Key"]; 247 google.protobuf.Any value = 2 [json_name = "Value"]; 248 } 249 250 message AminoMarshalerStruct3 { 251 sint32 value = 1; 252 } 253 254 message AminoMarshalerInt4 { 255 sint32 a = 1 [json_name = "A"]; 256 } 257 258 message AminoMarshalerInt5 { 259 string value = 1; 260 } 261 262 message AminoMarshalerStruct6 { 263 repeated AminoMarshalerStruct1 value = 1; 264 } 265 266 message AminoMarshalerStruct7 { 267 bytes value = 1; 268 } 269 270 message ReprElem7 { 271 uint32 value = 1; 272 } 273 274 message IntDef { 275 sint64 value = 1; 276 } 277 278 message IntAr { 279 repeated sint64 value = 1; 280 } 281 282 message IntSl { 283 repeated sint64 value = 1; 284 } 285 286 message ByteAr { 287 bytes value = 1; 288 } 289 290 message ByteSl { 291 bytes value = 1; 292 } 293 294 message PrimitivesStructDef { 295 sint32 int8 = 1 [json_name = "Int8"]; 296 sint32 int16 = 2 [json_name = "Int16"]; 297 sint32 int32 = 3 [json_name = "Int32"]; 298 sfixed32 int32_fixed = 4 [json_name = "Int32Fixed"]; 299 sint64 int64 = 5 [json_name = "Int64"]; 300 sfixed64 int64_fixed = 6 [json_name = "Int64Fixed"]; 301 sint64 int = 7 [json_name = "Int"]; 302 uint32 byte = 8 [json_name = "Byte"]; 303 uint32 uint8 = 9 [json_name = "Uint8"]; 304 uint32 uint16 = 10 [json_name = "Uint16"]; 305 uint32 uint32 = 11 [json_name = "Uint32"]; 306 fixed32 uint32_fixed = 12 [json_name = "Uint32Fixed"]; 307 uint64 uint64 = 13 [json_name = "Uint64"]; 308 fixed64 uint64_fixed = 14 [json_name = "Uint64Fixed"]; 309 uint64 uint = 15 [json_name = "Uint"]; 310 string str = 16 [json_name = "Str"]; 311 bytes bytes = 17 [json_name = "Bytes"]; 312 google.protobuf.Timestamp time = 18 [json_name = "Time"]; 313 google.protobuf.Duration duration = 19 [json_name = "Duration"]; 314 EmptyStruct empty = 20 [json_name = "Empty"]; 315 } 316 317 message PrimitivesStructSl { 318 repeated PrimitivesStruct value = 1; 319 } 320 321 message PrimitivesStructAr { 322 repeated PrimitivesStruct value = 1; 323 } 324 325 message Concrete1 { 326 } 327 328 message Concrete2 { 329 } 330 331 message ConcreteTypeDef { 332 bytes value = 1; 333 } 334 335 message ConcreteWrappedBytes { 336 bytes value = 1 [json_name = "Value"]; 337 } 338 339 message InterfaceFieldsStruct { 340 google.protobuf.Any f1 = 1 [json_name = "F1"]; 341 google.protobuf.Any f2 = 2 [json_name = "F2"]; 342 google.protobuf.Any f3 = 3 [json_name = "F3"]; 343 google.protobuf.Any f4 = 4 [json_name = "F4"]; 344 } 345 346 message TESTS_BytesList { 347 repeated bytes Value = 1; 348 } 349 350 message TESTS_BytesListList { 351 repeated TESTS_BytesList Value = 1; 352 } 353 354 message TESTS_DurationList { 355 repeated google.protobuf.Duration Value = 1; 356 } 357 358 message TESTS_EmptyStructList { 359 repeated EmptyStruct Value = 1; 360 } 361 362 message TESTS_Fixed32Int32ValueList { 363 repeated sfixed32 Value = 1; 364 } 365 366 message TESTS_Fixed32UInt32ValueList { 367 repeated fixed32 Value = 1; 368 } 369 370 message TESTS_Fixed64Int64ValueList { 371 repeated sfixed64 Value = 1; 372 } 373 374 message TESTS_Fixed64UInt64ValueList { 375 repeated fixed64 Value = 1; 376 } 377 378 message TESTS_Int16List { 379 repeated sint32 Value = 1; 380 } 381 382 message TESTS_Int32ValueList { 383 repeated sint32 Value = 1; 384 } 385 386 message TESTS_Int64ValueList { 387 repeated sint64 Value = 1; 388 } 389 390 message TESTS_Int8List { 391 repeated sint32 Value = 1; 392 } 393 394 message TESTS_StringValueList { 395 repeated string Value = 1; 396 } 397 398 message TESTS_TimestampList { 399 repeated google.protobuf.Timestamp Value = 1; 400 } 401 402 message TESTS_UInt16List { 403 repeated uint32 Value = 1; 404 } 405 406 message TESTS_UInt32ValueList { 407 repeated uint32 Value = 1; 408 } 409 410 message TESTS_UInt64ValueList { 411 repeated uint64 Value = 1; 412 }