github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/amino/tests/proto3/proto/compat.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.31.0 4 // protoc v4.24.3 5 // source: proto/compat.proto 6 7 package proto3 8 9 import ( 10 reflect "reflect" 11 sync "sync" 12 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 type TestInt32Varint struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 Int32 int32 `protobuf:"zigzag32,1,opt,name=Int32,proto3" json:"Int32,omitempty"` 31 } 32 33 func (x *TestInt32Varint) Reset() { 34 *x = TestInt32Varint{} 35 if protoimpl.UnsafeEnabled { 36 mi := &file_proto_compat_proto_msgTypes[0] 37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 38 ms.StoreMessageInfo(mi) 39 } 40 } 41 42 func (x *TestInt32Varint) String() string { 43 return protoimpl.X.MessageStringOf(x) 44 } 45 46 func (*TestInt32Varint) ProtoMessage() {} 47 48 func (x *TestInt32Varint) ProtoReflect() protoreflect.Message { 49 mi := &file_proto_compat_proto_msgTypes[0] 50 if protoimpl.UnsafeEnabled && x != nil { 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 if ms.LoadMessageInfo() == nil { 53 ms.StoreMessageInfo(mi) 54 } 55 return ms 56 } 57 return mi.MessageOf(x) 58 } 59 60 // Deprecated: Use TestInt32Varint.ProtoReflect.Descriptor instead. 61 func (*TestInt32Varint) Descriptor() ([]byte, []int) { 62 return file_proto_compat_proto_rawDescGZIP(), []int{0} 63 } 64 65 func (x *TestInt32Varint) GetInt32() int32 { 66 if x != nil { 67 return x.Int32 68 } 69 return 0 70 } 71 72 type TestInt32Fixed struct { 73 state protoimpl.MessageState 74 sizeCache protoimpl.SizeCache 75 unknownFields protoimpl.UnknownFields 76 77 Fixed32 uint32 `protobuf:"fixed32,1,opt,name=Fixed32,proto3" json:"Fixed32,omitempty"` 78 } 79 80 func (x *TestInt32Fixed) Reset() { 81 *x = TestInt32Fixed{} 82 if protoimpl.UnsafeEnabled { 83 mi := &file_proto_compat_proto_msgTypes[1] 84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 85 ms.StoreMessageInfo(mi) 86 } 87 } 88 89 func (x *TestInt32Fixed) String() string { 90 return protoimpl.X.MessageStringOf(x) 91 } 92 93 func (*TestInt32Fixed) ProtoMessage() {} 94 95 func (x *TestInt32Fixed) ProtoReflect() protoreflect.Message { 96 mi := &file_proto_compat_proto_msgTypes[1] 97 if protoimpl.UnsafeEnabled && x != nil { 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 if ms.LoadMessageInfo() == nil { 100 ms.StoreMessageInfo(mi) 101 } 102 return ms 103 } 104 return mi.MessageOf(x) 105 } 106 107 // Deprecated: Use TestInt32Fixed.ProtoReflect.Descriptor instead. 108 func (*TestInt32Fixed) Descriptor() ([]byte, []int) { 109 return file_proto_compat_proto_rawDescGZIP(), []int{1} 110 } 111 112 func (x *TestInt32Fixed) GetFixed32() uint32 { 113 if x != nil { 114 return x.Fixed32 115 } 116 return 0 117 } 118 119 type Test32 struct { 120 state protoimpl.MessageState 121 sizeCache protoimpl.SizeCache 122 unknownFields protoimpl.UnknownFields 123 124 Foo uint32 `protobuf:"fixed32,1,opt,name=foo,proto3" json:"foo,omitempty"` 125 Bar int32 `protobuf:"zigzag32,2,opt,name=bar,proto3" json:"bar,omitempty"` 126 } 127 128 func (x *Test32) Reset() { 129 *x = Test32{} 130 if protoimpl.UnsafeEnabled { 131 mi := &file_proto_compat_proto_msgTypes[2] 132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 133 ms.StoreMessageInfo(mi) 134 } 135 } 136 137 func (x *Test32) String() string { 138 return protoimpl.X.MessageStringOf(x) 139 } 140 141 func (*Test32) ProtoMessage() {} 142 143 func (x *Test32) ProtoReflect() protoreflect.Message { 144 mi := &file_proto_compat_proto_msgTypes[2] 145 if protoimpl.UnsafeEnabled && x != nil { 146 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 147 if ms.LoadMessageInfo() == nil { 148 ms.StoreMessageInfo(mi) 149 } 150 return ms 151 } 152 return mi.MessageOf(x) 153 } 154 155 // Deprecated: Use Test32.ProtoReflect.Descriptor instead. 156 func (*Test32) Descriptor() ([]byte, []int) { 157 return file_proto_compat_proto_rawDescGZIP(), []int{2} 158 } 159 160 func (x *Test32) GetFoo() uint32 { 161 if x != nil { 162 return x.Foo 163 } 164 return 0 165 } 166 167 func (x *Test32) GetBar() int32 { 168 if x != nil { 169 return x.Bar 170 } 171 return 0 172 } 173 174 type TestFixedInt64 struct { 175 state protoimpl.MessageState 176 sizeCache protoimpl.SizeCache 177 unknownFields protoimpl.UnknownFields 178 179 Int64 uint64 `protobuf:"fixed64,1,opt,name=Int64,proto3" json:"Int64,omitempty"` 180 } 181 182 func (x *TestFixedInt64) Reset() { 183 *x = TestFixedInt64{} 184 if protoimpl.UnsafeEnabled { 185 mi := &file_proto_compat_proto_msgTypes[3] 186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 187 ms.StoreMessageInfo(mi) 188 } 189 } 190 191 func (x *TestFixedInt64) String() string { 192 return protoimpl.X.MessageStringOf(x) 193 } 194 195 func (*TestFixedInt64) ProtoMessage() {} 196 197 func (x *TestFixedInt64) ProtoReflect() protoreflect.Message { 198 mi := &file_proto_compat_proto_msgTypes[3] 199 if protoimpl.UnsafeEnabled && x != nil { 200 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 201 if ms.LoadMessageInfo() == nil { 202 ms.StoreMessageInfo(mi) 203 } 204 return ms 205 } 206 return mi.MessageOf(x) 207 } 208 209 // Deprecated: Use TestFixedInt64.ProtoReflect.Descriptor instead. 210 func (*TestFixedInt64) Descriptor() ([]byte, []int) { 211 return file_proto_compat_proto_rawDescGZIP(), []int{3} 212 } 213 214 func (x *TestFixedInt64) GetInt64() uint64 { 215 if x != nil { 216 return x.Int64 217 } 218 return 0 219 } 220 221 type TestSFixedSInt64 struct { 222 state protoimpl.MessageState 223 sizeCache protoimpl.SizeCache 224 unknownFields protoimpl.UnknownFields 225 226 SInt64 int64 `protobuf:"fixed64,1,opt,name=SInt64,proto3" json:"SInt64,omitempty"` 227 } 228 229 func (x *TestSFixedSInt64) Reset() { 230 *x = TestSFixedSInt64{} 231 if protoimpl.UnsafeEnabled { 232 mi := &file_proto_compat_proto_msgTypes[4] 233 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 234 ms.StoreMessageInfo(mi) 235 } 236 } 237 238 func (x *TestSFixedSInt64) String() string { 239 return protoimpl.X.MessageStringOf(x) 240 } 241 242 func (*TestSFixedSInt64) ProtoMessage() {} 243 244 func (x *TestSFixedSInt64) ProtoReflect() protoreflect.Message { 245 mi := &file_proto_compat_proto_msgTypes[4] 246 if protoimpl.UnsafeEnabled && x != nil { 247 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 248 if ms.LoadMessageInfo() == nil { 249 ms.StoreMessageInfo(mi) 250 } 251 return ms 252 } 253 return mi.MessageOf(x) 254 } 255 256 // Deprecated: Use TestSFixedSInt64.ProtoReflect.Descriptor instead. 257 func (*TestSFixedSInt64) Descriptor() ([]byte, []int) { 258 return file_proto_compat_proto_rawDescGZIP(), []int{4} 259 } 260 261 func (x *TestSFixedSInt64) GetSInt64() int64 { 262 if x != nil { 263 return x.SInt64 264 } 265 return 0 266 } 267 268 type EmbeddedStruct struct { 269 state protoimpl.MessageState 270 sizeCache protoimpl.SizeCache 271 unknownFields protoimpl.UnknownFields 272 273 SomethingFixedLen int64 `protobuf:"fixed64,1,opt,name=somethingFixedLen,proto3" json:"somethingFixedLen,omitempty"` 274 } 275 276 func (x *EmbeddedStruct) Reset() { 277 *x = EmbeddedStruct{} 278 if protoimpl.UnsafeEnabled { 279 mi := &file_proto_compat_proto_msgTypes[5] 280 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 281 ms.StoreMessageInfo(mi) 282 } 283 } 284 285 func (x *EmbeddedStruct) String() string { 286 return protoimpl.X.MessageStringOf(x) 287 } 288 289 func (*EmbeddedStruct) ProtoMessage() {} 290 291 func (x *EmbeddedStruct) ProtoReflect() protoreflect.Message { 292 mi := &file_proto_compat_proto_msgTypes[5] 293 if protoimpl.UnsafeEnabled && x != nil { 294 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 295 if ms.LoadMessageInfo() == nil { 296 ms.StoreMessageInfo(mi) 297 } 298 return ms 299 } 300 return mi.MessageOf(x) 301 } 302 303 // Deprecated: Use EmbeddedStruct.ProtoReflect.Descriptor instead. 304 func (*EmbeddedStruct) Descriptor() ([]byte, []int) { 305 return file_proto_compat_proto_rawDescGZIP(), []int{5} 306 } 307 308 func (x *EmbeddedStruct) GetSomethingFixedLen() int64 { 309 if x != nil { 310 return x.SomethingFixedLen 311 } 312 return 0 313 } 314 315 type SomeStruct struct { 316 state protoimpl.MessageState 317 sizeCache protoimpl.SizeCache 318 unknownFields protoimpl.UnknownFields 319 320 // proto3 autom. turns this into a pointer ... 321 Emb *EmbeddedStruct `protobuf:"bytes,1,opt,name=emb,proto3" json:"emb,omitempty"` 322 } 323 324 func (x *SomeStruct) Reset() { 325 *x = SomeStruct{} 326 if protoimpl.UnsafeEnabled { 327 mi := &file_proto_compat_proto_msgTypes[6] 328 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 329 ms.StoreMessageInfo(mi) 330 } 331 } 332 333 func (x *SomeStruct) String() string { 334 return protoimpl.X.MessageStringOf(x) 335 } 336 337 func (*SomeStruct) ProtoMessage() {} 338 339 func (x *SomeStruct) ProtoReflect() protoreflect.Message { 340 mi := &file_proto_compat_proto_msgTypes[6] 341 if protoimpl.UnsafeEnabled && x != nil { 342 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 343 if ms.LoadMessageInfo() == nil { 344 ms.StoreMessageInfo(mi) 345 } 346 return ms 347 } 348 return mi.MessageOf(x) 349 } 350 351 // Deprecated: Use SomeStruct.ProtoReflect.Descriptor instead. 352 func (*SomeStruct) Descriptor() ([]byte, []int) { 353 return file_proto_compat_proto_rawDescGZIP(), []int{6} 354 } 355 356 func (x *SomeStruct) GetEmb() *EmbeddedStruct { 357 if x != nil { 358 return x.Emb 359 } 360 return nil 361 } 362 363 type ProtoGotTime struct { 364 state protoimpl.MessageState 365 sizeCache protoimpl.SizeCache 366 unknownFields protoimpl.UnknownFields 367 368 T *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=T,proto3" json:"T,omitempty"` 369 } 370 371 func (x *ProtoGotTime) Reset() { 372 *x = ProtoGotTime{} 373 if protoimpl.UnsafeEnabled { 374 mi := &file_proto_compat_proto_msgTypes[7] 375 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 376 ms.StoreMessageInfo(mi) 377 } 378 } 379 380 func (x *ProtoGotTime) String() string { 381 return protoimpl.X.MessageStringOf(x) 382 } 383 384 func (*ProtoGotTime) ProtoMessage() {} 385 386 func (x *ProtoGotTime) ProtoReflect() protoreflect.Message { 387 mi := &file_proto_compat_proto_msgTypes[7] 388 if protoimpl.UnsafeEnabled && x != nil { 389 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 390 if ms.LoadMessageInfo() == nil { 391 ms.StoreMessageInfo(mi) 392 } 393 return ms 394 } 395 return mi.MessageOf(x) 396 } 397 398 // Deprecated: Use ProtoGotTime.ProtoReflect.Descriptor instead. 399 func (*ProtoGotTime) Descriptor() ([]byte, []int) { 400 return file_proto_compat_proto_rawDescGZIP(), []int{7} 401 } 402 403 func (x *ProtoGotTime) GetT() *timestamppb.Timestamp { 404 if x != nil { 405 return x.T 406 } 407 return nil 408 } 409 410 type TestInt32 struct { 411 state protoimpl.MessageState 412 sizeCache protoimpl.SizeCache 413 unknownFields protoimpl.UnknownFields 414 415 Int32 int32 `protobuf:"varint,1,opt,name=Int32,proto3" json:"Int32,omitempty"` 416 } 417 418 func (x *TestInt32) Reset() { 419 *x = TestInt32{} 420 if protoimpl.UnsafeEnabled { 421 mi := &file_proto_compat_proto_msgTypes[8] 422 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 423 ms.StoreMessageInfo(mi) 424 } 425 } 426 427 func (x *TestInt32) String() string { 428 return protoimpl.X.MessageStringOf(x) 429 } 430 431 func (*TestInt32) ProtoMessage() {} 432 433 func (x *TestInt32) ProtoReflect() protoreflect.Message { 434 mi := &file_proto_compat_proto_msgTypes[8] 435 if protoimpl.UnsafeEnabled && x != nil { 436 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 437 if ms.LoadMessageInfo() == nil { 438 ms.StoreMessageInfo(mi) 439 } 440 return ms 441 } 442 return mi.MessageOf(x) 443 } 444 445 // Deprecated: Use TestInt32.ProtoReflect.Descriptor instead. 446 func (*TestInt32) Descriptor() ([]byte, []int) { 447 return file_proto_compat_proto_rawDescGZIP(), []int{8} 448 } 449 450 func (x *TestInt32) GetInt32() int32 { 451 if x != nil { 452 return x.Int32 453 } 454 return 0 455 } 456 457 type TestInts struct { 458 state protoimpl.MessageState 459 sizeCache protoimpl.SizeCache 460 unknownFields protoimpl.UnknownFields 461 462 Int32 int32 `protobuf:"varint,1,opt,name=Int32,proto3" json:"Int32,omitempty"` 463 Int64 int64 `protobuf:"varint,2,opt,name=Int64,proto3" json:"Int64,omitempty"` 464 } 465 466 func (x *TestInts) Reset() { 467 *x = TestInts{} 468 if protoimpl.UnsafeEnabled { 469 mi := &file_proto_compat_proto_msgTypes[9] 470 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 471 ms.StoreMessageInfo(mi) 472 } 473 } 474 475 func (x *TestInts) String() string { 476 return protoimpl.X.MessageStringOf(x) 477 } 478 479 func (*TestInts) ProtoMessage() {} 480 481 func (x *TestInts) ProtoReflect() protoreflect.Message { 482 mi := &file_proto_compat_proto_msgTypes[9] 483 if protoimpl.UnsafeEnabled && x != nil { 484 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 485 if ms.LoadMessageInfo() == nil { 486 ms.StoreMessageInfo(mi) 487 } 488 return ms 489 } 490 return mi.MessageOf(x) 491 } 492 493 // Deprecated: Use TestInts.ProtoReflect.Descriptor instead. 494 func (*TestInts) Descriptor() ([]byte, []int) { 495 return file_proto_compat_proto_rawDescGZIP(), []int{9} 496 } 497 498 func (x *TestInts) GetInt32() int32 { 499 if x != nil { 500 return x.Int32 501 } 502 return 0 503 } 504 505 func (x *TestInts) GetInt64() int64 { 506 if x != nil { 507 return x.Int64 508 } 509 return 0 510 } 511 512 type IntDef struct { 513 state protoimpl.MessageState 514 sizeCache protoimpl.SizeCache 515 unknownFields protoimpl.UnknownFields 516 517 Val int64 `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"` 518 } 519 520 func (x *IntDef) Reset() { 521 *x = IntDef{} 522 if protoimpl.UnsafeEnabled { 523 mi := &file_proto_compat_proto_msgTypes[10] 524 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 525 ms.StoreMessageInfo(mi) 526 } 527 } 528 529 func (x *IntDef) String() string { 530 return protoimpl.X.MessageStringOf(x) 531 } 532 533 func (*IntDef) ProtoMessage() {} 534 535 func (x *IntDef) ProtoReflect() protoreflect.Message { 536 mi := &file_proto_compat_proto_msgTypes[10] 537 if protoimpl.UnsafeEnabled && x != nil { 538 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 539 if ms.LoadMessageInfo() == nil { 540 ms.StoreMessageInfo(mi) 541 } 542 return ms 543 } 544 return mi.MessageOf(x) 545 } 546 547 // Deprecated: Use IntDef.ProtoReflect.Descriptor instead. 548 func (*IntDef) Descriptor() ([]byte, []int) { 549 return file_proto_compat_proto_rawDescGZIP(), []int{10} 550 } 551 552 func (x *IntDef) GetVal() int64 { 553 if x != nil { 554 return x.Val 555 } 556 return 0 557 } 558 559 type IntArr struct { 560 state protoimpl.MessageState 561 sizeCache protoimpl.SizeCache 562 unknownFields protoimpl.UnknownFields 563 564 Val []int64 `protobuf:"varint,1,rep,packed,name=val,proto3" json:"val,omitempty"` 565 } 566 567 func (x *IntArr) Reset() { 568 *x = IntArr{} 569 if protoimpl.UnsafeEnabled { 570 mi := &file_proto_compat_proto_msgTypes[11] 571 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 572 ms.StoreMessageInfo(mi) 573 } 574 } 575 576 func (x *IntArr) String() string { 577 return protoimpl.X.MessageStringOf(x) 578 } 579 580 func (*IntArr) ProtoMessage() {} 581 582 func (x *IntArr) ProtoReflect() protoreflect.Message { 583 mi := &file_proto_compat_proto_msgTypes[11] 584 if protoimpl.UnsafeEnabled && x != nil { 585 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 586 if ms.LoadMessageInfo() == nil { 587 ms.StoreMessageInfo(mi) 588 } 589 return ms 590 } 591 return mi.MessageOf(x) 592 } 593 594 // Deprecated: Use IntArr.ProtoReflect.Descriptor instead. 595 func (*IntArr) Descriptor() ([]byte, []int) { 596 return file_proto_compat_proto_rawDescGZIP(), []int{11} 597 } 598 599 func (x *IntArr) GetVal() []int64 { 600 if x != nil { 601 return x.Val 602 } 603 return nil 604 } 605 606 type PrimitivesStruct struct { 607 state protoimpl.MessageState 608 sizeCache protoimpl.SizeCache 609 unknownFields protoimpl.UnknownFields 610 611 Int32 int32 `protobuf:"varint,3,opt,name=Int32,proto3" json:"Int32,omitempty"` 612 Int64 int64 `protobuf:"varint,4,opt,name=Int64,proto3" json:"Int64,omitempty"` 613 Varint int64 `protobuf:"varint,5,opt,name=Varint,proto3" json:"Varint,omitempty"` 614 // int int 615 // Byte byte = 4; // this just another varint 616 // Uint8 uint8 // another varint 617 // Uint16 uint16 // another one, also the following 618 // Uint32 uint32 619 // Uint64 uint64 620 // Uvarint uint64 `binary:"varint"` 621 // Uint uint 622 String_ string `protobuf:"bytes,14,opt,name=String,proto3" json:"String,omitempty"` 623 Bytes []byte `protobuf:"bytes,15,opt,name=Bytes,proto3" json:"Bytes,omitempty"` 624 Time *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=Time,proto3" json:"Time,omitempty"` 625 } 626 627 func (x *PrimitivesStruct) Reset() { 628 *x = PrimitivesStruct{} 629 if protoimpl.UnsafeEnabled { 630 mi := &file_proto_compat_proto_msgTypes[12] 631 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 632 ms.StoreMessageInfo(mi) 633 } 634 } 635 636 func (x *PrimitivesStruct) String() string { 637 return protoimpl.X.MessageStringOf(x) 638 } 639 640 func (*PrimitivesStruct) ProtoMessage() {} 641 642 func (x *PrimitivesStruct) ProtoReflect() protoreflect.Message { 643 mi := &file_proto_compat_proto_msgTypes[12] 644 if protoimpl.UnsafeEnabled && x != nil { 645 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 646 if ms.LoadMessageInfo() == nil { 647 ms.StoreMessageInfo(mi) 648 } 649 return ms 650 } 651 return mi.MessageOf(x) 652 } 653 654 // Deprecated: Use PrimitivesStruct.ProtoReflect.Descriptor instead. 655 func (*PrimitivesStruct) Descriptor() ([]byte, []int) { 656 return file_proto_compat_proto_rawDescGZIP(), []int{12} 657 } 658 659 func (x *PrimitivesStruct) GetInt32() int32 { 660 if x != nil { 661 return x.Int32 662 } 663 return 0 664 } 665 666 func (x *PrimitivesStruct) GetInt64() int64 { 667 if x != nil { 668 return x.Int64 669 } 670 return 0 671 } 672 673 func (x *PrimitivesStruct) GetVarint() int64 { 674 if x != nil { 675 return x.Varint 676 } 677 return 0 678 } 679 680 func (x *PrimitivesStruct) GetString_() string { 681 if x != nil { 682 return x.String_ 683 } 684 return "" 685 } 686 687 func (x *PrimitivesStruct) GetBytes() []byte { 688 if x != nil { 689 return x.Bytes 690 } 691 return nil 692 } 693 694 func (x *PrimitivesStruct) GetTime() *timestamppb.Timestamp { 695 if x != nil { 696 return x.Time 697 } 698 return nil 699 } 700 701 type PrimitivesStructSl struct { 702 state protoimpl.MessageState 703 sizeCache protoimpl.SizeCache 704 unknownFields protoimpl.UnknownFields 705 706 Structs []*PrimitivesStruct `protobuf:"bytes,1,rep,name=Structs,proto3" json:"Structs,omitempty"` 707 } 708 709 func (x *PrimitivesStructSl) Reset() { 710 *x = PrimitivesStructSl{} 711 if protoimpl.UnsafeEnabled { 712 mi := &file_proto_compat_proto_msgTypes[13] 713 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 714 ms.StoreMessageInfo(mi) 715 } 716 } 717 718 func (x *PrimitivesStructSl) String() string { 719 return protoimpl.X.MessageStringOf(x) 720 } 721 722 func (*PrimitivesStructSl) ProtoMessage() {} 723 724 func (x *PrimitivesStructSl) ProtoReflect() protoreflect.Message { 725 mi := &file_proto_compat_proto_msgTypes[13] 726 if protoimpl.UnsafeEnabled && x != nil { 727 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 728 if ms.LoadMessageInfo() == nil { 729 ms.StoreMessageInfo(mi) 730 } 731 return ms 732 } 733 return mi.MessageOf(x) 734 } 735 736 // Deprecated: Use PrimitivesStructSl.ProtoReflect.Descriptor instead. 737 func (*PrimitivesStructSl) Descriptor() ([]byte, []int) { 738 return file_proto_compat_proto_rawDescGZIP(), []int{13} 739 } 740 741 func (x *PrimitivesStructSl) GetStructs() []*PrimitivesStruct { 742 if x != nil { 743 return x.Structs 744 } 745 return nil 746 } 747 748 var File_proto_compat_proto protoreflect.FileDescriptor 749 750 var file_proto_compat_proto_rawDesc = []byte{ 751 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x2e, 0x70, 752 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x74, 0x65, 0x73, 0x74, 753 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 754 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 755 0x74, 0x6f, 0x22, 0x27, 0x0a, 0x0f, 0x54, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 756 0x61, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 757 0x20, 0x01, 0x28, 0x11, 0x52, 0x05, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x22, 0x2a, 0x0a, 0x0e, 0x54, 758 0x65, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x46, 0x69, 0x78, 0x65, 0x64, 0x12, 0x18, 0x0a, 759 0x07, 0x46, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x07, 0x52, 0x07, 760 0x46, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x22, 0x2c, 0x0a, 0x06, 0x54, 0x65, 0x73, 0x74, 0x33, 761 0x32, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x07, 0x52, 0x03, 762 0x66, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x11, 763 0x52, 0x03, 0x62, 0x61, 0x72, 0x22, 0x26, 0x0a, 0x0e, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x78, 764 0x65, 0x64, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x14, 0x0a, 0x05, 0x49, 0x6e, 0x74, 0x36, 0x34, 765 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x22, 0x2a, 0x0a, 766 0x10, 0x54, 0x65, 0x73, 0x74, 0x53, 0x46, 0x69, 0x78, 0x65, 0x64, 0x53, 0x49, 0x6e, 0x74, 0x36, 767 0x34, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x01, 0x20, 0x01, 0x28, 768 0x10, 0x52, 0x06, 0x53, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x22, 0x3e, 0x0a, 0x0e, 0x45, 0x6d, 0x62, 769 0x65, 0x64, 0x64, 0x65, 0x64, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x2c, 0x0a, 0x11, 0x73, 770 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x78, 0x65, 0x64, 0x4c, 0x65, 0x6e, 771 0x18, 0x01, 0x20, 0x01, 0x28, 0x10, 0x52, 0x11, 0x73, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x69, 0x6e, 772 0x67, 0x46, 0x69, 0x78, 0x65, 0x64, 0x4c, 0x65, 0x6e, 0x22, 0x3b, 0x0a, 0x0a, 0x53, 0x6f, 0x6d, 773 0x65, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x2d, 0x0a, 0x03, 0x65, 0x6d, 0x62, 0x18, 0x01, 774 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x74, 0x65, 0x73, 775 0x74, 0x73, 0x2e, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x53, 0x74, 0x72, 0x75, 0x63, 776 0x74, 0x52, 0x03, 0x65, 0x6d, 0x62, 0x22, 0x38, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x47, 777 0x6f, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x01, 0x54, 0x18, 0x01, 0x20, 0x01, 0x28, 778 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 779 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x01, 0x54, 780 0x22, 0x21, 0x0a, 0x09, 0x54, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x14, 0x0a, 781 0x05, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x49, 0x6e, 782 0x74, 0x33, 0x32, 0x22, 0x36, 0x0a, 0x08, 0x54, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x73, 0x12, 783 0x14, 0x0a, 0x05, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 784 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x14, 0x0a, 0x05, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02, 785 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x22, 0x1a, 0x0a, 0x06, 0x49, 786 0x6e, 0x74, 0x44, 0x65, 0x66, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 787 0x28, 0x03, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x22, 0x1a, 0x0a, 0x06, 0x49, 0x6e, 0x74, 0x41, 0x72, 788 0x72, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x03, 789 0x76, 0x61, 0x6c, 0x22, 0xb4, 0x01, 0x0a, 0x10, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 790 0x65, 0x73, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x49, 0x6e, 0x74, 0x33, 791 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x14, 792 0x0a, 0x05, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x49, 793 0x6e, 0x74, 0x36, 0x34, 0x12, 0x16, 0x0a, 0x06, 0x56, 0x61, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x05, 794 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x56, 0x61, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 795 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, 0x74, 796 0x72, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 797 0x01, 0x28, 0x0c, 0x52, 0x05, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x04, 0x54, 0x69, 798 0x6d, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 799 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 800 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x4d, 0x0a, 0x12, 0x50, 0x72, 801 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x73, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x53, 0x6c, 802 0x12, 0x37, 0x0a, 0x07, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 803 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x74, 0x65, 0x73, 0x74, 0x73, 0x2e, 804 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x73, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 805 0x52, 0x07, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 806 0x33, 807 } 808 809 var ( 810 file_proto_compat_proto_rawDescOnce sync.Once 811 file_proto_compat_proto_rawDescData = file_proto_compat_proto_rawDesc 812 ) 813 814 func file_proto_compat_proto_rawDescGZIP() []byte { 815 file_proto_compat_proto_rawDescOnce.Do(func() { 816 file_proto_compat_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_compat_proto_rawDescData) 817 }) 818 return file_proto_compat_proto_rawDescData 819 } 820 821 var file_proto_compat_proto_msgTypes = make([]protoimpl.MessageInfo, 14) 822 var file_proto_compat_proto_goTypes = []interface{}{ 823 (*TestInt32Varint)(nil), // 0: proto3tests.TestInt32Varint 824 (*TestInt32Fixed)(nil), // 1: proto3tests.TestInt32Fixed 825 (*Test32)(nil), // 2: proto3tests.Test32 826 (*TestFixedInt64)(nil), // 3: proto3tests.TestFixedInt64 827 (*TestSFixedSInt64)(nil), // 4: proto3tests.TestSFixedSInt64 828 (*EmbeddedStruct)(nil), // 5: proto3tests.EmbeddedStruct 829 (*SomeStruct)(nil), // 6: proto3tests.SomeStruct 830 (*ProtoGotTime)(nil), // 7: proto3tests.ProtoGotTime 831 (*TestInt32)(nil), // 8: proto3tests.TestInt32 832 (*TestInts)(nil), // 9: proto3tests.TestInts 833 (*IntDef)(nil), // 10: proto3tests.IntDef 834 (*IntArr)(nil), // 11: proto3tests.IntArr 835 (*PrimitivesStruct)(nil), // 12: proto3tests.PrimitivesStruct 836 (*PrimitivesStructSl)(nil), // 13: proto3tests.PrimitivesStructSl 837 (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp 838 } 839 var file_proto_compat_proto_depIdxs = []int32{ 840 5, // 0: proto3tests.SomeStruct.emb:type_name -> proto3tests.EmbeddedStruct 841 14, // 1: proto3tests.ProtoGotTime.T:type_name -> google.protobuf.Timestamp 842 14, // 2: proto3tests.PrimitivesStruct.Time:type_name -> google.protobuf.Timestamp 843 12, // 3: proto3tests.PrimitivesStructSl.Structs:type_name -> proto3tests.PrimitivesStruct 844 4, // [4:4] is the sub-list for method output_type 845 4, // [4:4] is the sub-list for method input_type 846 4, // [4:4] is the sub-list for extension type_name 847 4, // [4:4] is the sub-list for extension extendee 848 0, // [0:4] is the sub-list for field type_name 849 } 850 851 func init() { file_proto_compat_proto_init() } 852 func file_proto_compat_proto_init() { 853 if File_proto_compat_proto != nil { 854 return 855 } 856 if !protoimpl.UnsafeEnabled { 857 file_proto_compat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 858 switch v := v.(*TestInt32Varint); i { 859 case 0: 860 return &v.state 861 case 1: 862 return &v.sizeCache 863 case 2: 864 return &v.unknownFields 865 default: 866 return nil 867 } 868 } 869 file_proto_compat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 870 switch v := v.(*TestInt32Fixed); i { 871 case 0: 872 return &v.state 873 case 1: 874 return &v.sizeCache 875 case 2: 876 return &v.unknownFields 877 default: 878 return nil 879 } 880 } 881 file_proto_compat_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 882 switch v := v.(*Test32); i { 883 case 0: 884 return &v.state 885 case 1: 886 return &v.sizeCache 887 case 2: 888 return &v.unknownFields 889 default: 890 return nil 891 } 892 } 893 file_proto_compat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 894 switch v := v.(*TestFixedInt64); i { 895 case 0: 896 return &v.state 897 case 1: 898 return &v.sizeCache 899 case 2: 900 return &v.unknownFields 901 default: 902 return nil 903 } 904 } 905 file_proto_compat_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 906 switch v := v.(*TestSFixedSInt64); i { 907 case 0: 908 return &v.state 909 case 1: 910 return &v.sizeCache 911 case 2: 912 return &v.unknownFields 913 default: 914 return nil 915 } 916 } 917 file_proto_compat_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 918 switch v := v.(*EmbeddedStruct); i { 919 case 0: 920 return &v.state 921 case 1: 922 return &v.sizeCache 923 case 2: 924 return &v.unknownFields 925 default: 926 return nil 927 } 928 } 929 file_proto_compat_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 930 switch v := v.(*SomeStruct); i { 931 case 0: 932 return &v.state 933 case 1: 934 return &v.sizeCache 935 case 2: 936 return &v.unknownFields 937 default: 938 return nil 939 } 940 } 941 file_proto_compat_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 942 switch v := v.(*ProtoGotTime); i { 943 case 0: 944 return &v.state 945 case 1: 946 return &v.sizeCache 947 case 2: 948 return &v.unknownFields 949 default: 950 return nil 951 } 952 } 953 file_proto_compat_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 954 switch v := v.(*TestInt32); i { 955 case 0: 956 return &v.state 957 case 1: 958 return &v.sizeCache 959 case 2: 960 return &v.unknownFields 961 default: 962 return nil 963 } 964 } 965 file_proto_compat_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 966 switch v := v.(*TestInts); i { 967 case 0: 968 return &v.state 969 case 1: 970 return &v.sizeCache 971 case 2: 972 return &v.unknownFields 973 default: 974 return nil 975 } 976 } 977 file_proto_compat_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 978 switch v := v.(*IntDef); i { 979 case 0: 980 return &v.state 981 case 1: 982 return &v.sizeCache 983 case 2: 984 return &v.unknownFields 985 default: 986 return nil 987 } 988 } 989 file_proto_compat_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 990 switch v := v.(*IntArr); i { 991 case 0: 992 return &v.state 993 case 1: 994 return &v.sizeCache 995 case 2: 996 return &v.unknownFields 997 default: 998 return nil 999 } 1000 } 1001 file_proto_compat_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1002 switch v := v.(*PrimitivesStruct); i { 1003 case 0: 1004 return &v.state 1005 case 1: 1006 return &v.sizeCache 1007 case 2: 1008 return &v.unknownFields 1009 default: 1010 return nil 1011 } 1012 } 1013 file_proto_compat_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1014 switch v := v.(*PrimitivesStructSl); i { 1015 case 0: 1016 return &v.state 1017 case 1: 1018 return &v.sizeCache 1019 case 2: 1020 return &v.unknownFields 1021 default: 1022 return nil 1023 } 1024 } 1025 } 1026 type x struct{} 1027 out := protoimpl.TypeBuilder{ 1028 File: protoimpl.DescBuilder{ 1029 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1030 RawDescriptor: file_proto_compat_proto_rawDesc, 1031 NumEnums: 0, 1032 NumMessages: 14, 1033 NumExtensions: 0, 1034 NumServices: 0, 1035 }, 1036 GoTypes: file_proto_compat_proto_goTypes, 1037 DependencyIndexes: file_proto_compat_proto_depIdxs, 1038 MessageInfos: file_proto_compat_proto_msgTypes, 1039 }.Build() 1040 File_proto_compat_proto = out.File 1041 file_proto_compat_proto_rawDesc = nil 1042 file_proto_compat_proto_goTypes = nil 1043 file_proto_compat_proto_depIdxs = nil 1044 }