github.com/syumai/protoreflect@v1.7.1-0.20200810020253-2ac7e3b3a321/internal/testprotos/desc_test1.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.12.0 5 // source: desc_test1.proto 6 7 package testprotos 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoiface "google.golang.org/protobuf/runtime/protoiface" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 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 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 // Comment for NestedEnum 30 type TestMessage_NestedEnum int32 31 32 const ( 33 // Comment for VALUE1 34 TestMessage_VALUE1 TestMessage_NestedEnum = 1 35 // Comment for VALUE2 36 TestMessage_VALUE2 TestMessage_NestedEnum = 2 37 ) 38 39 // Enum value maps for TestMessage_NestedEnum. 40 var ( 41 TestMessage_NestedEnum_name = map[int32]string{ 42 1: "VALUE1", 43 2: "VALUE2", 44 } 45 TestMessage_NestedEnum_value = map[string]int32{ 46 "VALUE1": 1, 47 "VALUE2": 2, 48 } 49 ) 50 51 func (x TestMessage_NestedEnum) Enum() *TestMessage_NestedEnum { 52 p := new(TestMessage_NestedEnum) 53 *p = x 54 return p 55 } 56 57 func (x TestMessage_NestedEnum) String() string { 58 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 59 } 60 61 func (TestMessage_NestedEnum) Descriptor() protoreflect.EnumDescriptor { 62 return file_desc_test1_proto_enumTypes[0].Descriptor() 63 } 64 65 func (TestMessage_NestedEnum) Type() protoreflect.EnumType { 66 return &file_desc_test1_proto_enumTypes[0] 67 } 68 69 func (x TestMessage_NestedEnum) Number() protoreflect.EnumNumber { 70 return protoreflect.EnumNumber(x) 71 } 72 73 // Deprecated: Do not use. 74 func (x *TestMessage_NestedEnum) UnmarshalJSON(b []byte) error { 75 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 76 if err != nil { 77 return err 78 } 79 *x = TestMessage_NestedEnum(num) 80 return nil 81 } 82 83 // Deprecated: Use TestMessage_NestedEnum.Descriptor instead. 84 func (TestMessage_NestedEnum) EnumDescriptor() ([]byte, []int) { 85 return file_desc_test1_proto_rawDescGZIP(), []int{0, 0} 86 } 87 88 // Comment for DeeplyNestedEnum 89 type TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum int32 90 91 const ( 92 // Comment for VALUE1 93 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE1 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum = 1 94 // Comment for VALUE2 95 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE2 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum = 2 96 ) 97 98 // Enum value maps for TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum. 99 var ( 100 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_name = map[int32]string{ 101 1: "VALUE1", 102 2: "VALUE2", 103 } 104 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_value = map[string]int32{ 105 "VALUE1": 1, 106 "VALUE2": 2, 107 } 108 ) 109 110 func (x TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) Enum() *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum { 111 p := new(TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) 112 *p = x 113 return p 114 } 115 116 func (x TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) String() string { 117 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 118 } 119 120 func (TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) Descriptor() protoreflect.EnumDescriptor { 121 return file_desc_test1_proto_enumTypes[1].Descriptor() 122 } 123 124 func (TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) Type() protoreflect.EnumType { 125 return &file_desc_test1_proto_enumTypes[1] 126 } 127 128 func (x TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) Number() protoreflect.EnumNumber { 129 return protoreflect.EnumNumber(x) 130 } 131 132 // Deprecated: Do not use. 133 func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) UnmarshalJSON(b []byte) error { 134 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 135 if err != nil { 136 return err 137 } 138 *x = TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum(num) 139 return nil 140 } 141 142 // Deprecated: Use TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum.Descriptor instead. 143 func (TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) EnumDescriptor() ([]byte, []int) { 144 return file_desc_test1_proto_rawDescGZIP(), []int{0, 0, 0, 0, 0} 145 } 146 147 // Comment for TestMessage 148 type TestMessage struct { 149 state protoimpl.MessageState 150 sizeCache protoimpl.SizeCache 151 unknownFields protoimpl.UnknownFields 152 153 // Comment for nm 154 Nm *TestMessage_NestedMessage `protobuf:"bytes,1,opt,name=nm" json:"nm,omitempty"` 155 // Comment for anm 156 Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,2,opt,name=anm" json:"anm,omitempty"` 157 // Comment for yanm 158 Yanm *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,3,opt,name=yanm" json:"yanm,omitempty"` 159 // Comment for ne 160 Ne []TestMessage_NestedEnum `protobuf:"varint,4,rep,name=ne,enum=testprotos.TestMessage_NestedEnum" json:"ne,omitempty"` 161 } 162 163 func (x *TestMessage) Reset() { 164 *x = TestMessage{} 165 if protoimpl.UnsafeEnabled { 166 mi := &file_desc_test1_proto_msgTypes[0] 167 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 168 ms.StoreMessageInfo(mi) 169 } 170 } 171 172 func (x *TestMessage) String() string { 173 return protoimpl.X.MessageStringOf(x) 174 } 175 176 func (*TestMessage) ProtoMessage() {} 177 178 func (x *TestMessage) ProtoReflect() protoreflect.Message { 179 mi := &file_desc_test1_proto_msgTypes[0] 180 if protoimpl.UnsafeEnabled && x != nil { 181 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 182 if ms.LoadMessageInfo() == nil { 183 ms.StoreMessageInfo(mi) 184 } 185 return ms 186 } 187 return mi.MessageOf(x) 188 } 189 190 // Deprecated: Use TestMessage.ProtoReflect.Descriptor instead. 191 func (*TestMessage) Descriptor() ([]byte, []int) { 192 return file_desc_test1_proto_rawDescGZIP(), []int{0} 193 } 194 195 func (x *TestMessage) GetNm() *TestMessage_NestedMessage { 196 if x != nil { 197 return x.Nm 198 } 199 return nil 200 } 201 202 func (x *TestMessage) GetAnm() *TestMessage_NestedMessage_AnotherNestedMessage { 203 if x != nil { 204 return x.Anm 205 } 206 return nil 207 } 208 209 func (x *TestMessage) GetYanm() *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage { 210 if x != nil { 211 return x.Yanm 212 } 213 return nil 214 } 215 216 func (x *TestMessage) GetNe() []TestMessage_NestedEnum { 217 if x != nil { 218 return x.Ne 219 } 220 return nil 221 } 222 223 // Comment for AnotherTestMessage 224 type AnotherTestMessage struct { 225 state protoimpl.MessageState 226 sizeCache protoimpl.SizeCache 227 unknownFields protoimpl.UnknownFields 228 extensionFields protoimpl.ExtensionFields 229 230 // Comment for dne 231 Dne *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum `protobuf:"varint,1,opt,name=dne,enum=testprotos.TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum" json:"dne,omitempty"` 232 // Comment for map_field1 233 MapField1 map[int32]string `protobuf:"bytes,2,rep,name=map_field1,json=mapField1" json:"map_field1,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 234 // Comment for map_field2 235 MapField2 map[int64]float32 `protobuf:"bytes,3,rep,name=map_field2,json=mapField2" json:"map_field2,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"` 236 // Comment for map_field3 237 MapField3 map[uint32]bool `protobuf:"bytes,4,rep,name=map_field3,json=mapField3" json:"map_field3,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` 238 // Comment for map_field4 239 MapField4 map[string]*AnotherTestMessage `protobuf:"bytes,5,rep,name=map_field4,json=mapField4" json:"map_field4,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 240 Rocknroll *AnotherTestMessage_RockNRoll `protobuf:"group,6,opt,name=RockNRoll,json=rocknroll" json:"rocknroll,omitempty"` 241 // Comment for atmoo 242 // 243 // Types that are assignable to Atmoo: 244 // *AnotherTestMessage_Str 245 // *AnotherTestMessage_Int 246 Atmoo isAnotherTestMessage_Atmoo `protobuf_oneof:"atmoo"` 247 // Deprecated: Do not use. 248 Withoptions *AnotherTestMessage_WithOptions `protobuf:"group,9,opt,name=WithOptions,json=withoptions" json:"withoptions,omitempty"` 249 } 250 251 func (x *AnotherTestMessage) Reset() { 252 *x = AnotherTestMessage{} 253 if protoimpl.UnsafeEnabled { 254 mi := &file_desc_test1_proto_msgTypes[1] 255 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 256 ms.StoreMessageInfo(mi) 257 } 258 } 259 260 func (x *AnotherTestMessage) String() string { 261 return protoimpl.X.MessageStringOf(x) 262 } 263 264 func (*AnotherTestMessage) ProtoMessage() {} 265 266 func (x *AnotherTestMessage) ProtoReflect() protoreflect.Message { 267 mi := &file_desc_test1_proto_msgTypes[1] 268 if protoimpl.UnsafeEnabled && x != nil { 269 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 270 if ms.LoadMessageInfo() == nil { 271 ms.StoreMessageInfo(mi) 272 } 273 return ms 274 } 275 return mi.MessageOf(x) 276 } 277 278 // Deprecated: Use AnotherTestMessage.ProtoReflect.Descriptor instead. 279 func (*AnotherTestMessage) Descriptor() ([]byte, []int) { 280 return file_desc_test1_proto_rawDescGZIP(), []int{1} 281 } 282 283 var extRange_AnotherTestMessage = []protoiface.ExtensionRangeV1{ 284 {Start: 100, End: 200}, 285 } 286 287 // Deprecated: Use AnotherTestMessage.ProtoReflect.Descriptor.ExtensionRanges instead. 288 func (*AnotherTestMessage) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { 289 return extRange_AnotherTestMessage 290 } 291 292 func (x *AnotherTestMessage) GetDne() TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum { 293 if x != nil && x.Dne != nil { 294 return *x.Dne 295 } 296 return TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE1 297 } 298 299 func (x *AnotherTestMessage) GetMapField1() map[int32]string { 300 if x != nil { 301 return x.MapField1 302 } 303 return nil 304 } 305 306 func (x *AnotherTestMessage) GetMapField2() map[int64]float32 { 307 if x != nil { 308 return x.MapField2 309 } 310 return nil 311 } 312 313 func (x *AnotherTestMessage) GetMapField3() map[uint32]bool { 314 if x != nil { 315 return x.MapField3 316 } 317 return nil 318 } 319 320 func (x *AnotherTestMessage) GetMapField4() map[string]*AnotherTestMessage { 321 if x != nil { 322 return x.MapField4 323 } 324 return nil 325 } 326 327 func (x *AnotherTestMessage) GetRocknroll() *AnotherTestMessage_RockNRoll { 328 if x != nil { 329 return x.Rocknroll 330 } 331 return nil 332 } 333 334 func (m *AnotherTestMessage) GetAtmoo() isAnotherTestMessage_Atmoo { 335 if m != nil { 336 return m.Atmoo 337 } 338 return nil 339 } 340 341 func (x *AnotherTestMessage) GetStr() string { 342 if x, ok := x.GetAtmoo().(*AnotherTestMessage_Str); ok { 343 return x.Str 344 } 345 return "" 346 } 347 348 func (x *AnotherTestMessage) GetInt() int64 { 349 if x, ok := x.GetAtmoo().(*AnotherTestMessage_Int); ok { 350 return x.Int 351 } 352 return 0 353 } 354 355 // Deprecated: Do not use. 356 func (x *AnotherTestMessage) GetWithoptions() *AnotherTestMessage_WithOptions { 357 if x != nil { 358 return x.Withoptions 359 } 360 return nil 361 } 362 363 type isAnotherTestMessage_Atmoo interface { 364 isAnotherTestMessage_Atmoo() 365 } 366 367 type AnotherTestMessage_Str struct { 368 // Comment for str 369 Str string `protobuf:"bytes,7,opt,name=str,oneof"` 370 } 371 372 type AnotherTestMessage_Int struct { 373 // Comment for int 374 Int int64 `protobuf:"varint,8,opt,name=int,oneof"` 375 } 376 377 func (*AnotherTestMessage_Str) isAnotherTestMessage_Atmoo() {} 378 379 func (*AnotherTestMessage_Int) isAnotherTestMessage_Atmoo() {} 380 381 // Comment for NestedMessage 382 type TestMessage_NestedMessage struct { 383 state protoimpl.MessageState 384 sizeCache protoimpl.SizeCache 385 unknownFields protoimpl.UnknownFields 386 387 // Comment for anm 388 Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,1,opt,name=anm" json:"anm,omitempty"` 389 // Comment for yanm 390 Yanm *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,2,opt,name=yanm" json:"yanm,omitempty"` 391 } 392 393 func (x *TestMessage_NestedMessage) Reset() { 394 *x = TestMessage_NestedMessage{} 395 if protoimpl.UnsafeEnabled { 396 mi := &file_desc_test1_proto_msgTypes[2] 397 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 398 ms.StoreMessageInfo(mi) 399 } 400 } 401 402 func (x *TestMessage_NestedMessage) String() string { 403 return protoimpl.X.MessageStringOf(x) 404 } 405 406 func (*TestMessage_NestedMessage) ProtoMessage() {} 407 408 func (x *TestMessage_NestedMessage) ProtoReflect() protoreflect.Message { 409 mi := &file_desc_test1_proto_msgTypes[2] 410 if protoimpl.UnsafeEnabled && x != nil { 411 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 412 if ms.LoadMessageInfo() == nil { 413 ms.StoreMessageInfo(mi) 414 } 415 return ms 416 } 417 return mi.MessageOf(x) 418 } 419 420 // Deprecated: Use TestMessage_NestedMessage.ProtoReflect.Descriptor instead. 421 func (*TestMessage_NestedMessage) Descriptor() ([]byte, []int) { 422 return file_desc_test1_proto_rawDescGZIP(), []int{0, 0} 423 } 424 425 func (x *TestMessage_NestedMessage) GetAnm() *TestMessage_NestedMessage_AnotherNestedMessage { 426 if x != nil { 427 return x.Anm 428 } 429 return nil 430 } 431 432 func (x *TestMessage_NestedMessage) GetYanm() *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage { 433 if x != nil { 434 return x.Yanm 435 } 436 return nil 437 } 438 439 // Comment for AnotherNestedMessage 440 type TestMessage_NestedMessage_AnotherNestedMessage struct { 441 state protoimpl.MessageState 442 sizeCache protoimpl.SizeCache 443 unknownFields protoimpl.UnknownFields 444 445 // Comment for yanm 446 Yanm []*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,1,rep,name=yanm" json:"yanm,omitempty"` 447 } 448 449 func (x *TestMessage_NestedMessage_AnotherNestedMessage) Reset() { 450 *x = TestMessage_NestedMessage_AnotherNestedMessage{} 451 if protoimpl.UnsafeEnabled { 452 mi := &file_desc_test1_proto_msgTypes[3] 453 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 454 ms.StoreMessageInfo(mi) 455 } 456 } 457 458 func (x *TestMessage_NestedMessage_AnotherNestedMessage) String() string { 459 return protoimpl.X.MessageStringOf(x) 460 } 461 462 func (*TestMessage_NestedMessage_AnotherNestedMessage) ProtoMessage() {} 463 464 func (x *TestMessage_NestedMessage_AnotherNestedMessage) ProtoReflect() protoreflect.Message { 465 mi := &file_desc_test1_proto_msgTypes[3] 466 if protoimpl.UnsafeEnabled && x != nil { 467 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 468 if ms.LoadMessageInfo() == nil { 469 ms.StoreMessageInfo(mi) 470 } 471 return ms 472 } 473 return mi.MessageOf(x) 474 } 475 476 // Deprecated: Use TestMessage_NestedMessage_AnotherNestedMessage.ProtoReflect.Descriptor instead. 477 func (*TestMessage_NestedMessage_AnotherNestedMessage) Descriptor() ([]byte, []int) { 478 return file_desc_test1_proto_rawDescGZIP(), []int{0, 0, 0} 479 } 480 481 func (x *TestMessage_NestedMessage_AnotherNestedMessage) GetYanm() []*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage { 482 if x != nil { 483 return x.Yanm 484 } 485 return nil 486 } 487 488 // Comment for YetAnotherNestedMessage 489 type TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage struct { 490 state protoimpl.MessageState 491 sizeCache protoimpl.SizeCache 492 unknownFields protoimpl.UnknownFields 493 494 // Comment for foo 495 Foo *string `protobuf:"bytes,1,opt,name=foo" json:"foo,omitempty"` 496 // Comment for bar 497 Bar *int32 `protobuf:"varint,2,opt,name=bar" json:"bar,omitempty"` 498 // Comment for baz 499 Baz []byte `protobuf:"bytes,3,opt,name=baz" json:"baz,omitempty"` 500 // Comment for dne 501 Dne *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum `protobuf:"varint,4,opt,name=dne,enum=testprotos.TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum" json:"dne,omitempty"` 502 // Comment for anm 503 Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,5,opt,name=anm" json:"anm,omitempty"` 504 // Comment for nm 505 Nm *TestMessage_NestedMessage `protobuf:"bytes,6,opt,name=nm" json:"nm,omitempty"` 506 // Comment for tm 507 Tm *TestMessage `protobuf:"bytes,7,opt,name=tm" json:"tm,omitempty"` 508 } 509 510 func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) Reset() { 511 *x = TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage{} 512 if protoimpl.UnsafeEnabled { 513 mi := &file_desc_test1_proto_msgTypes[4] 514 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 515 ms.StoreMessageInfo(mi) 516 } 517 } 518 519 func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) String() string { 520 return protoimpl.X.MessageStringOf(x) 521 } 522 523 func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) ProtoMessage() {} 524 525 func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) ProtoReflect() protoreflect.Message { 526 mi := &file_desc_test1_proto_msgTypes[4] 527 if protoimpl.UnsafeEnabled && x != nil { 528 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 529 if ms.LoadMessageInfo() == nil { 530 ms.StoreMessageInfo(mi) 531 } 532 return ms 533 } 534 return mi.MessageOf(x) 535 } 536 537 // Deprecated: Use TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage.ProtoReflect.Descriptor instead. 538 func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) Descriptor() ([]byte, []int) { 539 return file_desc_test1_proto_rawDescGZIP(), []int{0, 0, 0, 0} 540 } 541 542 func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetFoo() string { 543 if x != nil && x.Foo != nil { 544 return *x.Foo 545 } 546 return "" 547 } 548 549 func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetBar() int32 { 550 if x != nil && x.Bar != nil { 551 return *x.Bar 552 } 553 return 0 554 } 555 556 func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetBaz() []byte { 557 if x != nil { 558 return x.Baz 559 } 560 return nil 561 } 562 563 func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetDne() TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum { 564 if x != nil && x.Dne != nil { 565 return *x.Dne 566 } 567 return TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE1 568 } 569 570 func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetAnm() *TestMessage_NestedMessage_AnotherNestedMessage { 571 if x != nil { 572 return x.Anm 573 } 574 return nil 575 } 576 577 func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetNm() *TestMessage_NestedMessage { 578 if x != nil { 579 return x.Nm 580 } 581 return nil 582 } 583 584 func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetTm() *TestMessage { 585 if x != nil { 586 return x.Tm 587 } 588 return nil 589 } 590 591 // Comment for RockNRoll 592 type AnotherTestMessage_RockNRoll struct { 593 state protoimpl.MessageState 594 sizeCache protoimpl.SizeCache 595 unknownFields protoimpl.UnknownFields 596 597 // Comment for beatles 598 Beatles *string `protobuf:"bytes,1,opt,name=beatles" json:"beatles,omitempty"` 599 // Comment for stones 600 Stones *string `protobuf:"bytes,2,opt,name=stones" json:"stones,omitempty"` 601 // Comment for doors 602 Doors *string `protobuf:"bytes,3,opt,name=doors" json:"doors,omitempty"` 603 } 604 605 func (x *AnotherTestMessage_RockNRoll) Reset() { 606 *x = AnotherTestMessage_RockNRoll{} 607 if protoimpl.UnsafeEnabled { 608 mi := &file_desc_test1_proto_msgTypes[9] 609 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 610 ms.StoreMessageInfo(mi) 611 } 612 } 613 614 func (x *AnotherTestMessage_RockNRoll) String() string { 615 return protoimpl.X.MessageStringOf(x) 616 } 617 618 func (*AnotherTestMessage_RockNRoll) ProtoMessage() {} 619 620 func (x *AnotherTestMessage_RockNRoll) ProtoReflect() protoreflect.Message { 621 mi := &file_desc_test1_proto_msgTypes[9] 622 if protoimpl.UnsafeEnabled && x != nil { 623 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 624 if ms.LoadMessageInfo() == nil { 625 ms.StoreMessageInfo(mi) 626 } 627 return ms 628 } 629 return mi.MessageOf(x) 630 } 631 632 // Deprecated: Use AnotherTestMessage_RockNRoll.ProtoReflect.Descriptor instead. 633 func (*AnotherTestMessage_RockNRoll) Descriptor() ([]byte, []int) { 634 return file_desc_test1_proto_rawDescGZIP(), []int{1, 4} 635 } 636 637 func (x *AnotherTestMessage_RockNRoll) GetBeatles() string { 638 if x != nil && x.Beatles != nil { 639 return *x.Beatles 640 } 641 return "" 642 } 643 644 func (x *AnotherTestMessage_RockNRoll) GetStones() string { 645 if x != nil && x.Stones != nil { 646 return *x.Stones 647 } 648 return "" 649 } 650 651 func (x *AnotherTestMessage_RockNRoll) GetDoors() string { 652 if x != nil && x.Doors != nil { 653 return *x.Doors 654 } 655 return "" 656 } 657 658 // Comment for WithOptions 659 type AnotherTestMessage_WithOptions struct { 660 state protoimpl.MessageState 661 sizeCache protoimpl.SizeCache 662 unknownFields protoimpl.UnknownFields 663 } 664 665 func (x *AnotherTestMessage_WithOptions) Reset() { 666 *x = AnotherTestMessage_WithOptions{} 667 if protoimpl.UnsafeEnabled { 668 mi := &file_desc_test1_proto_msgTypes[10] 669 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 670 ms.StoreMessageInfo(mi) 671 } 672 } 673 674 func (x *AnotherTestMessage_WithOptions) String() string { 675 return protoimpl.X.MessageStringOf(x) 676 } 677 678 func (*AnotherTestMessage_WithOptions) ProtoMessage() {} 679 680 func (x *AnotherTestMessage_WithOptions) ProtoReflect() protoreflect.Message { 681 mi := &file_desc_test1_proto_msgTypes[10] 682 if protoimpl.UnsafeEnabled && x != nil { 683 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 684 if ms.LoadMessageInfo() == nil { 685 ms.StoreMessageInfo(mi) 686 } 687 return ms 688 } 689 return mi.MessageOf(x) 690 } 691 692 // Deprecated: Use AnotherTestMessage_WithOptions.ProtoReflect.Descriptor instead. 693 func (*AnotherTestMessage_WithOptions) Descriptor() ([]byte, []int) { 694 return file_desc_test1_proto_rawDescGZIP(), []int{1, 5} 695 } 696 697 var file_desc_test1_proto_extTypes = []protoimpl.ExtensionInfo{ 698 { 699 ExtendedType: (*AnotherTestMessage)(nil), 700 ExtensionType: (*TestMessage)(nil), 701 Field: 100, 702 Name: "testprotos.xtm", 703 Tag: "bytes,100,opt,name=xtm", 704 Filename: "desc_test1.proto", 705 }, 706 { 707 ExtendedType: (*AnotherTestMessage)(nil), 708 ExtensionType: (*string)(nil), 709 Field: 101, 710 Name: "testprotos.xs", 711 Tag: "bytes,101,opt,name=xs", 712 Filename: "desc_test1.proto", 713 }, 714 { 715 ExtendedType: (*AnotherTestMessage)(nil), 716 ExtensionType: (*int32)(nil), 717 Field: 102, 718 Name: "testprotos.xi", 719 Tag: "varint,102,opt,name=xi", 720 Filename: "desc_test1.proto", 721 }, 722 { 723 ExtendedType: (*AnotherTestMessage)(nil), 724 ExtensionType: (*uint64)(nil), 725 Field: 103, 726 Name: "testprotos.xui", 727 Tag: "varint,103,opt,name=xui", 728 Filename: "desc_test1.proto", 729 }, 730 { 731 ExtendedType: (*AnotherTestMessage)(nil), 732 ExtensionType: ([]bool)(nil), 733 Field: 200, 734 Name: "testprotos.TestMessage.NestedMessage.AnotherNestedMessage.flags", 735 Tag: "varint,200,rep,packed,name=flags", 736 Filename: "desc_test1.proto", 737 }, 738 } 739 740 // Extension fields to AnotherTestMessage. 741 var ( 742 // Comment for xtm 743 // 744 // optional testprotos.TestMessage xtm = 100; 745 E_Xtm = &file_desc_test1_proto_extTypes[0] 746 // Comment for xs 747 // 748 // optional string xs = 101; 749 E_Xs = &file_desc_test1_proto_extTypes[1] 750 // Comment for xi 751 // 752 // optional int32 xi = 102; 753 E_Xi = &file_desc_test1_proto_extTypes[2] 754 // Comment for xui 755 // 756 // optional uint64 xui = 103; 757 E_Xui = &file_desc_test1_proto_extTypes[3] 758 // Comment for flags 759 // 760 // repeated bool flags = 200; 761 E_TestMessage_NestedMessage_AnotherNestedMessage_Flags = &file_desc_test1_proto_extTypes[4] 762 ) 763 764 var File_desc_test1_proto protoreflect.FileDescriptor 765 766 var file_desc_test1_proto_rawDesc = []byte{ 767 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x31, 0x2e, 0x70, 0x72, 0x6f, 768 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0xfb, 769 0x08, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x35, 770 0x0a, 0x02, 0x6e, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x73, 771 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 772 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 773 0x65, 0x52, 0x02, 0x6e, 0x6d, 0x12, 0x4c, 0x0a, 0x03, 0x61, 0x6e, 0x6d, 0x18, 0x02, 0x20, 0x01, 774 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 775 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 776 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 777 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 778 0x61, 0x6e, 0x6d, 0x12, 0x66, 0x0a, 0x04, 0x79, 0x61, 0x6e, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 779 0x0b, 0x32, 0x52, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 780 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 781 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 782 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x59, 0x65, 783 0x74, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 784 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x04, 0x79, 0x61, 0x6e, 0x6d, 0x12, 0x32, 0x0a, 0x02, 0x6e, 785 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 786 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 787 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x02, 0x6e, 0x65, 0x1a, 788 0xa4, 0x06, 0x0a, 0x0d, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 789 0x65, 0x12, 0x4c, 0x0a, 0x03, 0x61, 0x6e, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 790 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 791 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 792 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 793 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x61, 0x6e, 0x6d, 0x12, 794 0x66, 0x0a, 0x04, 0x79, 0x61, 0x6e, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x52, 0x2e, 795 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 796 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 797 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 798 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x59, 0x65, 0x74, 0x41, 0x6e, 0x6f, 799 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 800 0x65, 0x52, 0x04, 0x79, 0x61, 0x6e, 0x6d, 0x1a, 0xdc, 0x04, 0x0a, 0x14, 0x41, 0x6e, 0x6f, 0x74, 801 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 802 0x12, 0x66, 0x0a, 0x04, 0x79, 0x61, 0x6e, 0x6d, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x52, 803 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 804 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 805 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 806 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x59, 0x65, 0x74, 0x41, 0x6e, 807 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 808 0x67, 0x65, 0x52, 0x04, 0x79, 0x61, 0x6e, 0x6d, 0x1a, 0xa0, 0x03, 0x0a, 0x17, 0x59, 0x65, 0x74, 809 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 810 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 811 0x09, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x02, 0x20, 812 0x01, 0x28, 0x05, 0x52, 0x03, 0x62, 0x61, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x7a, 0x18, 813 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x62, 0x61, 0x7a, 0x12, 0x75, 0x0a, 0x03, 0x64, 0x6e, 814 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 815 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 816 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 817 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 818 0x61, 0x67, 0x65, 0x2e, 0x59, 0x65, 0x74, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 819 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x65, 0x70, 820 0x6c, 0x79, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x03, 0x64, 0x6e, 821 0x65, 0x12, 0x4c, 0x0a, 0x03, 0x61, 0x6e, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 822 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 823 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 824 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 825 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x61, 0x6e, 0x6d, 0x12, 826 0x35, 0x0a, 0x02, 0x6e, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 827 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 828 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 829 0x67, 0x65, 0x52, 0x02, 0x6e, 0x6d, 0x12, 0x27, 0x0a, 0x02, 0x74, 0x6d, 0x18, 0x07, 0x20, 0x01, 830 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 831 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x02, 0x74, 0x6d, 0x22, 832 0x2a, 0x0a, 0x10, 0x44, 0x65, 0x65, 0x70, 0x6c, 0x79, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 833 0x6e, 0x75, 0x6d, 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x31, 0x10, 0x01, 0x12, 834 0x0a, 0x0a, 0x06, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x32, 0x10, 0x02, 0x32, 0x39, 0x0a, 0x05, 0x66, 835 0x6c, 0x61, 0x67, 0x73, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 836 0x73, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 837 0x73, 0x61, 0x67, 0x65, 0x18, 0xc8, 0x01, 0x20, 0x03, 0x28, 0x08, 0x42, 0x02, 0x10, 0x01, 0x52, 838 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x22, 0x24, 0x0a, 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 839 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x31, 0x10, 0x01, 840 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x32, 0x10, 0x02, 0x22, 0x91, 0x08, 0x0a, 841 0x12, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 842 0x61, 0x67, 0x65, 0x12, 0x75, 0x0a, 0x03, 0x64, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 843 0x32, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 844 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 845 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 846 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x59, 0x65, 0x74, 847 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 848 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x65, 0x70, 0x6c, 0x79, 0x4e, 0x65, 0x73, 0x74, 0x65, 849 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x03, 0x64, 0x6e, 0x65, 0x12, 0x4c, 0x0a, 0x0a, 0x6d, 0x61, 850 0x70, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 851 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 852 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 853 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x6d, 854 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x12, 0x4c, 0x0a, 0x0a, 0x6d, 0x61, 0x70, 0x5f, 855 0x66, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x74, 856 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 857 0x72, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x61, 0x70, 858 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x6d, 0x61, 0x70, 859 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x12, 0x4c, 0x0a, 0x0a, 0x6d, 0x61, 0x70, 0x5f, 0x66, 0x69, 860 0x65, 0x6c, 0x64, 0x33, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x74, 0x65, 0x73, 861 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 862 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x46, 0x69, 863 0x65, 0x6c, 0x64, 0x33, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x6d, 0x61, 0x70, 0x46, 0x69, 864 0x65, 0x6c, 0x64, 0x33, 0x12, 0x4c, 0x0a, 0x0a, 0x6d, 0x61, 0x70, 0x5f, 0x66, 0x69, 0x65, 0x6c, 865 0x64, 0x34, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 866 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 867 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 868 0x64, 0x34, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x6d, 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 869 0x64, 0x34, 0x12, 0x46, 0x0a, 0x09, 0x72, 0x6f, 0x63, 0x6b, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x18, 870 0x06, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 871 0x6f, 0x73, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 872 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x6f, 0x63, 0x6b, 0x4e, 0x52, 0x6f, 0x6c, 0x6c, 0x52, 873 0x09, 0x72, 0x6f, 0x63, 0x6b, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x12, 0x12, 0x0a, 0x03, 0x73, 0x74, 874 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x12, 875 0x0a, 0x03, 0x69, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x03, 0x69, 876 0x6e, 0x74, 0x12, 0x50, 0x0a, 0x0b, 0x77, 0x69, 0x74, 0x68, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 877 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x2a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 878 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 879 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 880 0x6f, 0x6e, 0x73, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x77, 0x69, 0x74, 0x68, 0x6f, 0x70, 0x74, 881 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3c, 0x0a, 0x0e, 0x4d, 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 882 0x31, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 883 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 884 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 885 0x38, 0x01, 0x1a, 0x3c, 0x0a, 0x0e, 0x4d, 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x45, 886 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 887 0x03, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 888 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 889 0x1a, 0x3c, 0x0a, 0x0e, 0x4d, 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x33, 0x45, 0x6e, 0x74, 890 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 891 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 892 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x5c, 893 0x0a, 0x0e, 0x4d, 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x34, 0x45, 0x6e, 0x74, 0x72, 0x79, 894 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 895 0x65, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 896 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x41, 897 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 898 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x53, 0x0a, 0x09, 899 0x52, 0x6f, 0x63, 0x6b, 0x4e, 0x52, 0x6f, 0x6c, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x65, 0x61, 900 0x74, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x65, 0x61, 0x74, 901 0x6c, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x73, 0x18, 0x02, 0x20, 902 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x64, 903 0x6f, 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x6f, 0x72, 904 0x73, 0x1a, 0x0d, 0x0a, 0x0b, 0x57, 0x69, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 905 0x2a, 0x05, 0x08, 0x64, 0x10, 0xc9, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x61, 0x74, 0x6d, 0x6f, 0x6f, 906 0x3a, 0x49, 0x0a, 0x03, 0x78, 0x74, 0x6d, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 907 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 908 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 909 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 910 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x78, 0x74, 0x6d, 0x3a, 0x2e, 0x0a, 0x02, 0x78, 911 0x73, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x41, 912 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 913 0x65, 0x18, 0x65, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x78, 0x73, 0x3a, 0x2e, 0x0a, 0x02, 0x78, 914 0x69, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x41, 915 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 916 0x65, 0x18, 0x66, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x78, 0x69, 0x3a, 0x30, 0x0a, 0x03, 0x78, 917 0x75, 0x69, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 918 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 919 0x67, 0x65, 0x18, 0x67, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x78, 0x75, 0x69, 0x42, 0x33, 0x5a, 920 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x68, 0x75, 0x6d, 921 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x69, 922 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 923 0x6f, 0x73, 924 } 925 926 var ( 927 file_desc_test1_proto_rawDescOnce sync.Once 928 file_desc_test1_proto_rawDescData = file_desc_test1_proto_rawDesc 929 ) 930 931 func file_desc_test1_proto_rawDescGZIP() []byte { 932 file_desc_test1_proto_rawDescOnce.Do(func() { 933 file_desc_test1_proto_rawDescData = protoimpl.X.CompressGZIP(file_desc_test1_proto_rawDescData) 934 }) 935 return file_desc_test1_proto_rawDescData 936 } 937 938 var file_desc_test1_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 939 var file_desc_test1_proto_msgTypes = make([]protoimpl.MessageInfo, 11) 940 var file_desc_test1_proto_goTypes = []interface{}{ 941 (TestMessage_NestedEnum)(0), // 0: testprotos.TestMessage.NestedEnum 942 (TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum)(0), // 1: testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage.DeeplyNestedEnum 943 (*TestMessage)(nil), // 2: testprotos.TestMessage 944 (*AnotherTestMessage)(nil), // 3: testprotos.AnotherTestMessage 945 (*TestMessage_NestedMessage)(nil), // 4: testprotos.TestMessage.NestedMessage 946 (*TestMessage_NestedMessage_AnotherNestedMessage)(nil), // 5: testprotos.TestMessage.NestedMessage.AnotherNestedMessage 947 (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage)(nil), // 6: testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage 948 nil, // 7: testprotos.AnotherTestMessage.MapField1Entry 949 nil, // 8: testprotos.AnotherTestMessage.MapField2Entry 950 nil, // 9: testprotos.AnotherTestMessage.MapField3Entry 951 nil, // 10: testprotos.AnotherTestMessage.MapField4Entry 952 (*AnotherTestMessage_RockNRoll)(nil), // 11: testprotos.AnotherTestMessage.RockNRoll 953 (*AnotherTestMessage_WithOptions)(nil), // 12: testprotos.AnotherTestMessage.WithOptions 954 } 955 var file_desc_test1_proto_depIdxs = []int32{ 956 4, // 0: testprotos.TestMessage.nm:type_name -> testprotos.TestMessage.NestedMessage 957 5, // 1: testprotos.TestMessage.anm:type_name -> testprotos.TestMessage.NestedMessage.AnotherNestedMessage 958 6, // 2: testprotos.TestMessage.yanm:type_name -> testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage 959 0, // 3: testprotos.TestMessage.ne:type_name -> testprotos.TestMessage.NestedEnum 960 1, // 4: testprotos.AnotherTestMessage.dne:type_name -> testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage.DeeplyNestedEnum 961 7, // 5: testprotos.AnotherTestMessage.map_field1:type_name -> testprotos.AnotherTestMessage.MapField1Entry 962 8, // 6: testprotos.AnotherTestMessage.map_field2:type_name -> testprotos.AnotherTestMessage.MapField2Entry 963 9, // 7: testprotos.AnotherTestMessage.map_field3:type_name -> testprotos.AnotherTestMessage.MapField3Entry 964 10, // 8: testprotos.AnotherTestMessage.map_field4:type_name -> testprotos.AnotherTestMessage.MapField4Entry 965 11, // 9: testprotos.AnotherTestMessage.rocknroll:type_name -> testprotos.AnotherTestMessage.RockNRoll 966 12, // 10: testprotos.AnotherTestMessage.withoptions:type_name -> testprotos.AnotherTestMessage.WithOptions 967 5, // 11: testprotos.TestMessage.NestedMessage.anm:type_name -> testprotos.TestMessage.NestedMessage.AnotherNestedMessage 968 6, // 12: testprotos.TestMessage.NestedMessage.yanm:type_name -> testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage 969 6, // 13: testprotos.TestMessage.NestedMessage.AnotherNestedMessage.yanm:type_name -> testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage 970 1, // 14: testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage.dne:type_name -> testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage.DeeplyNestedEnum 971 5, // 15: testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage.anm:type_name -> testprotos.TestMessage.NestedMessage.AnotherNestedMessage 972 4, // 16: testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage.nm:type_name -> testprotos.TestMessage.NestedMessage 973 2, // 17: testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage.tm:type_name -> testprotos.TestMessage 974 3, // 18: testprotos.AnotherTestMessage.MapField4Entry.value:type_name -> testprotos.AnotherTestMessage 975 3, // 19: testprotos.xtm:extendee -> testprotos.AnotherTestMessage 976 3, // 20: testprotos.xs:extendee -> testprotos.AnotherTestMessage 977 3, // 21: testprotos.xi:extendee -> testprotos.AnotherTestMessage 978 3, // 22: testprotos.xui:extendee -> testprotos.AnotherTestMessage 979 3, // 23: testprotos.TestMessage.NestedMessage.AnotherNestedMessage.flags:extendee -> testprotos.AnotherTestMessage 980 2, // 24: testprotos.xtm:type_name -> testprotos.TestMessage 981 25, // [25:25] is the sub-list for method output_type 982 25, // [25:25] is the sub-list for method input_type 983 24, // [24:25] is the sub-list for extension type_name 984 19, // [19:24] is the sub-list for extension extendee 985 0, // [0:19] is the sub-list for field type_name 986 } 987 988 func init() { file_desc_test1_proto_init() } 989 func file_desc_test1_proto_init() { 990 if File_desc_test1_proto != nil { 991 return 992 } 993 if !protoimpl.UnsafeEnabled { 994 file_desc_test1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 995 switch v := v.(*TestMessage); i { 996 case 0: 997 return &v.state 998 case 1: 999 return &v.sizeCache 1000 case 2: 1001 return &v.unknownFields 1002 default: 1003 return nil 1004 } 1005 } 1006 file_desc_test1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1007 switch v := v.(*AnotherTestMessage); i { 1008 case 0: 1009 return &v.state 1010 case 1: 1011 return &v.sizeCache 1012 case 2: 1013 return &v.unknownFields 1014 case 3: 1015 return &v.extensionFields 1016 default: 1017 return nil 1018 } 1019 } 1020 file_desc_test1_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1021 switch v := v.(*TestMessage_NestedMessage); i { 1022 case 0: 1023 return &v.state 1024 case 1: 1025 return &v.sizeCache 1026 case 2: 1027 return &v.unknownFields 1028 default: 1029 return nil 1030 } 1031 } 1032 file_desc_test1_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1033 switch v := v.(*TestMessage_NestedMessage_AnotherNestedMessage); i { 1034 case 0: 1035 return &v.state 1036 case 1: 1037 return &v.sizeCache 1038 case 2: 1039 return &v.unknownFields 1040 default: 1041 return nil 1042 } 1043 } 1044 file_desc_test1_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1045 switch v := v.(*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage); i { 1046 case 0: 1047 return &v.state 1048 case 1: 1049 return &v.sizeCache 1050 case 2: 1051 return &v.unknownFields 1052 default: 1053 return nil 1054 } 1055 } 1056 file_desc_test1_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1057 switch v := v.(*AnotherTestMessage_RockNRoll); i { 1058 case 0: 1059 return &v.state 1060 case 1: 1061 return &v.sizeCache 1062 case 2: 1063 return &v.unknownFields 1064 default: 1065 return nil 1066 } 1067 } 1068 file_desc_test1_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1069 switch v := v.(*AnotherTestMessage_WithOptions); i { 1070 case 0: 1071 return &v.state 1072 case 1: 1073 return &v.sizeCache 1074 case 2: 1075 return &v.unknownFields 1076 default: 1077 return nil 1078 } 1079 } 1080 } 1081 file_desc_test1_proto_msgTypes[1].OneofWrappers = []interface{}{ 1082 (*AnotherTestMessage_Str)(nil), 1083 (*AnotherTestMessage_Int)(nil), 1084 } 1085 type x struct{} 1086 out := protoimpl.TypeBuilder{ 1087 File: protoimpl.DescBuilder{ 1088 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1089 RawDescriptor: file_desc_test1_proto_rawDesc, 1090 NumEnums: 2, 1091 NumMessages: 11, 1092 NumExtensions: 5, 1093 NumServices: 0, 1094 }, 1095 GoTypes: file_desc_test1_proto_goTypes, 1096 DependencyIndexes: file_desc_test1_proto_depIdxs, 1097 EnumInfos: file_desc_test1_proto_enumTypes, 1098 MessageInfos: file_desc_test1_proto_msgTypes, 1099 ExtensionInfos: file_desc_test1_proto_extTypes, 1100 }.Build() 1101 File_desc_test1_proto = out.File 1102 file_desc_test1_proto_rawDesc = nil 1103 file_desc_test1_proto_goTypes = nil 1104 file_desc_test1_proto_depIdxs = nil 1105 }