1// Copyright 2018 The Go Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5// Code generated by protoc-gen-go. DO NOT EDIT. 6// source: cmd/protoc-gen-go/testdata/comments/comments.proto 7 8// COMMENT: package goproto.protoc.comments; 9 10package comments 11 12import ( 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17) 18 19// COMMENT: Enum1.Leading 20type Enum1 int32 21 22const ( 23 // COMMENT: FOO.Leading 24 Enum1_FOO Enum1 = 0 // COMMENT: FOO.InlineTrailing 25 // COMMENT: BAR.Leading 26 Enum1_BAR Enum1 = 1 27) 28 29// Enum value maps for Enum1. 30var ( 31 Enum1_name = map[int32]string{ 32 0: "FOO", 33 1: "BAR", 34 } 35 Enum1_value = map[string]int32{ 36 "FOO": 0, 37 "BAR": 1, 38 } 39) 40 41func (x Enum1) Enum() *Enum1 { 42 p := new(Enum1) 43 *p = x 44 return p 45} 46 47func (x Enum1) String() string { 48 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 49} 50 51func (Enum1) Descriptor() protoreflect.EnumDescriptor { 52 return file_cmd_protoc_gen_go_testdata_comments_comments_proto_enumTypes[0].Descriptor() 53} 54 55func (Enum1) Type() protoreflect.EnumType { 56 return &file_cmd_protoc_gen_go_testdata_comments_comments_proto_enumTypes[0] 57} 58 59func (x Enum1) Number() protoreflect.EnumNumber { 60 return protoreflect.EnumNumber(x) 61} 62 63// Deprecated: Do not use. 64func (x *Enum1) UnmarshalJSON(b []byte) error { 65 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 66 if err != nil { 67 return err 68 } 69 *x = Enum1(num) 70 return nil 71} 72 73// Deprecated: Use Enum1.Descriptor instead. 74func (Enum1) EnumDescriptor() ([]byte, []int) { 75 return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{0} 76} 77 78// COMMENT: Message1.Leading 79type Message1 struct { 80 state protoimpl.MessageState 81 sizeCache protoimpl.SizeCache 82 unknownFields protoimpl.UnknownFields 83 extensionFields protoimpl.ExtensionFields 84 85 // COMMENT: Field1A.Leading 86 Field1A *string `protobuf:"bytes,1,opt,name=Field1A" json:"Field1A,omitempty"` // COMMENT: Field1A.Trailing 87 // COMMENT: Oneof1A.Leading 88 // 89 // Types that are assignable to Oneof1A: 90 // 91 // *Message1_Oneof1AField1 92 Oneof1A isMessage1_Oneof1A `protobuf_oneof:"Oneof1a"` 93} 94 95func (x *Message1) Reset() { 96 *x = Message1{} 97 if protoimpl.UnsafeEnabled { 98 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0] 99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 100 ms.StoreMessageInfo(mi) 101 } 102} 103 104func (x *Message1) String() string { 105 return protoimpl.X.MessageStringOf(x) 106} 107 108func (*Message1) ProtoMessage() {} 109 110func (x *Message1) ProtoReflect() protoreflect.Message { 111 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0] 112 if protoimpl.UnsafeEnabled && x != nil { 113 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 114 if ms.LoadMessageInfo() == nil { 115 ms.StoreMessageInfo(mi) 116 } 117 return ms 118 } 119 return mi.MessageOf(x) 120} 121 122// Deprecated: Use Message1.ProtoReflect.Descriptor instead. 123func (*Message1) Descriptor() ([]byte, []int) { 124 return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{0} 125} 126 127func (x *Message1) GetField1A() string { 128 if x != nil && x.Field1A != nil { 129 return *x.Field1A 130 } 131 return "" 132} 133 134func (m *Message1) GetOneof1A() isMessage1_Oneof1A { 135 if m != nil { 136 return m.Oneof1A 137 } 138 return nil 139} 140 141func (x *Message1) GetOneof1AField1() string { 142 if x, ok := x.GetOneof1A().(*Message1_Oneof1AField1); ok { 143 return x.Oneof1AField1 144 } 145 return "" 146} 147 148type isMessage1_Oneof1A interface { 149 isMessage1_Oneof1A() 150} 151 152type Message1_Oneof1AField1 struct { 153 // COMMENT: Oneof1AField1.Leading 154 Oneof1AField1 string `protobuf:"bytes,2,opt,name=Oneof1AField1,oneof"` // COMMENT: Oneof1AField1.Trailing 155} 156 157func (*Message1_Oneof1AField1) isMessage1_Oneof1A() {} 158 159// COMMENT: Message2 160type Message2 struct { 161 state protoimpl.MessageState 162 sizeCache protoimpl.SizeCache 163 unknownFields protoimpl.UnknownFields 164} 165 166func (x *Message2) Reset() { 167 *x = Message2{} 168 if protoimpl.UnsafeEnabled { 169 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[1] 170 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 171 ms.StoreMessageInfo(mi) 172 } 173} 174 175func (x *Message2) String() string { 176 return protoimpl.X.MessageStringOf(x) 177} 178 179func (*Message2) ProtoMessage() {} 180 181func (x *Message2) ProtoReflect() protoreflect.Message { 182 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[1] 183 if protoimpl.UnsafeEnabled && x != nil { 184 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 185 if ms.LoadMessageInfo() == nil { 186 ms.StoreMessageInfo(mi) 187 } 188 return ms 189 } 190 return mi.MessageOf(x) 191} 192 193// Deprecated: Use Message2.ProtoReflect.Descriptor instead. 194func (*Message2) Descriptor() ([]byte, []int) { 195 return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{1} 196} 197 198// COMMENT: Message1A.Leading 199type Message1_Message1A struct { 200 state protoimpl.MessageState 201 sizeCache protoimpl.SizeCache 202 unknownFields protoimpl.UnknownFields 203} 204 205func (x *Message1_Message1A) Reset() { 206 *x = Message1_Message1A{} 207 if protoimpl.UnsafeEnabled { 208 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[2] 209 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 210 ms.StoreMessageInfo(mi) 211 } 212} 213 214func (x *Message1_Message1A) String() string { 215 return protoimpl.X.MessageStringOf(x) 216} 217 218func (*Message1_Message1A) ProtoMessage() {} 219 220func (x *Message1_Message1A) ProtoReflect() protoreflect.Message { 221 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[2] 222 if protoimpl.UnsafeEnabled && x != nil { 223 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 224 if ms.LoadMessageInfo() == nil { 225 ms.StoreMessageInfo(mi) 226 } 227 return ms 228 } 229 return mi.MessageOf(x) 230} 231 232// Deprecated: Use Message1_Message1A.ProtoReflect.Descriptor instead. 233func (*Message1_Message1A) Descriptor() ([]byte, []int) { 234 return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{0, 0} 235} 236 237// COMMENT: Message1B 238type Message1_Message1B struct { 239 state protoimpl.MessageState 240 sizeCache protoimpl.SizeCache 241 unknownFields protoimpl.UnknownFields 242} 243 244func (x *Message1_Message1B) Reset() { 245 *x = Message1_Message1B{} 246 if protoimpl.UnsafeEnabled { 247 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[3] 248 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 249 ms.StoreMessageInfo(mi) 250 } 251} 252 253func (x *Message1_Message1B) String() string { 254 return protoimpl.X.MessageStringOf(x) 255} 256 257func (*Message1_Message1B) ProtoMessage() {} 258 259func (x *Message1_Message1B) ProtoReflect() protoreflect.Message { 260 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[3] 261 if protoimpl.UnsafeEnabled && x != nil { 262 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 263 if ms.LoadMessageInfo() == nil { 264 ms.StoreMessageInfo(mi) 265 } 266 return ms 267 } 268 return mi.MessageOf(x) 269} 270 271// Deprecated: Use Message1_Message1B.ProtoReflect.Descriptor instead. 272func (*Message1_Message1B) Descriptor() ([]byte, []int) { 273 return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{0, 1} 274} 275 276// COMMENT: Message2A 277type Message2_Message2A struct { 278 state protoimpl.MessageState 279 sizeCache protoimpl.SizeCache 280 unknownFields protoimpl.UnknownFields 281} 282 283func (x *Message2_Message2A) Reset() { 284 *x = Message2_Message2A{} 285 if protoimpl.UnsafeEnabled { 286 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[4] 287 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 288 ms.StoreMessageInfo(mi) 289 } 290} 291 292func (x *Message2_Message2A) String() string { 293 return protoimpl.X.MessageStringOf(x) 294} 295 296func (*Message2_Message2A) ProtoMessage() {} 297 298func (x *Message2_Message2A) ProtoReflect() protoreflect.Message { 299 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[4] 300 if protoimpl.UnsafeEnabled && x != nil { 301 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 302 if ms.LoadMessageInfo() == nil { 303 ms.StoreMessageInfo(mi) 304 } 305 return ms 306 } 307 return mi.MessageOf(x) 308} 309 310// Deprecated: Use Message2_Message2A.ProtoReflect.Descriptor instead. 311func (*Message2_Message2A) Descriptor() ([]byte, []int) { 312 return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{1, 0} 313} 314 315// COMMENT: Message2B 316type Message2_Message2B struct { 317 state protoimpl.MessageState 318 sizeCache protoimpl.SizeCache 319 unknownFields protoimpl.UnknownFields 320} 321 322func (x *Message2_Message2B) Reset() { 323 *x = Message2_Message2B{} 324 if protoimpl.UnsafeEnabled { 325 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[5] 326 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 327 ms.StoreMessageInfo(mi) 328 } 329} 330 331func (x *Message2_Message2B) String() string { 332 return protoimpl.X.MessageStringOf(x) 333} 334 335func (*Message2_Message2B) ProtoMessage() {} 336 337func (x *Message2_Message2B) ProtoReflect() protoreflect.Message { 338 mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[5] 339 if protoimpl.UnsafeEnabled && x != nil { 340 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 341 if ms.LoadMessageInfo() == nil { 342 ms.StoreMessageInfo(mi) 343 } 344 return ms 345 } 346 return mi.MessageOf(x) 347} 348 349// Deprecated: Use Message2_Message2B.ProtoReflect.Descriptor instead. 350func (*Message2_Message2B) Descriptor() ([]byte, []int) { 351 return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{1, 1} 352} 353 354var file_cmd_protoc_gen_go_testdata_comments_comments_proto_extTypes = []protoimpl.ExtensionInfo{ 355 { 356 ExtendedType: (*Message1)(nil), 357 ExtensionType: (*Message1)(nil), 358 Field: 100, 359 Name: "goproto.protoc.comments.extension", 360 Tag: "bytes,100,opt,name=extension", 361 Filename: "cmd/protoc-gen-go/testdata/comments/comments.proto", 362 }, 363} 364 365// Extension fields to Message1. 366var ( 367 // COMMENT: Extension.Leading 368 // 369 // optional goproto.protoc.comments.Message1 extension = 100; 370 E_Extension = &file_cmd_protoc_gen_go_testdata_comments_comments_proto_extTypes[0] // COMMENT: Extension.Trailing 371) 372 373var File_cmd_protoc_gen_go_testdata_comments_comments_proto protoreflect.FileDescriptor 374 375var file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDesc = []byte{ 376 0x0a, 0x32, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 377 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 378 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 379 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 380 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x7b, 0x0a, 381 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x18, 0x0a, 0x07, 0x46, 0x69, 0x65, 382 0x6c, 0x64, 0x31, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x46, 0x69, 0x65, 0x6c, 383 0x64, 0x31, 0x41, 0x12, 0x26, 0x0a, 0x0d, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x31, 0x41, 0x46, 0x69, 384 0x65, 0x6c, 0x64, 0x31, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x4f, 0x6e, 385 0x65, 0x6f, 0x66, 0x31, 0x41, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x1a, 0x0b, 0x0a, 0x09, 0x4d, 386 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x41, 0x1a, 0x0b, 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 387 0x61, 0x67, 0x65, 0x31, 0x42, 0x2a, 0x08, 0x08, 0x64, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x42, 388 0x09, 0x0a, 0x07, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x31, 0x61, 0x22, 0x24, 0x0a, 0x08, 0x4d, 0x65, 389 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x1a, 0x0b, 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 390 0x65, 0x32, 0x41, 0x1a, 0x0b, 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x42, 391 0x2a, 0x19, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x46, 0x4f, 0x4f, 392 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x52, 0x10, 0x01, 0x3a, 0x62, 0x0a, 0x09, 0x65, 393 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 394 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 395 0x74, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x64, 0x20, 0x01, 0x28, 396 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 397 0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 398 0x61, 0x67, 0x65, 0x31, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42, 399 0x40, 0x5a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 400 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 401 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 402 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 403 0x73, 404} 405 406var ( 407 file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescOnce sync.Once 408 file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescData = file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDesc 409) 410 411func file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP() []byte { 412 file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescOnce.Do(func() { 413 file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescData) 414 }) 415 return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescData 416} 417 418var file_cmd_protoc_gen_go_testdata_comments_comments_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 419var file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 420var file_cmd_protoc_gen_go_testdata_comments_comments_proto_goTypes = []interface{}{ 421 (Enum1)(0), // 0: goproto.protoc.comments.Enum1 422 (*Message1)(nil), // 1: goproto.protoc.comments.Message1 423 (*Message2)(nil), // 2: goproto.protoc.comments.Message2 424 (*Message1_Message1A)(nil), // 3: goproto.protoc.comments.Message1.Message1A 425 (*Message1_Message1B)(nil), // 4: goproto.protoc.comments.Message1.Message1B 426 (*Message2_Message2A)(nil), // 5: goproto.protoc.comments.Message2.Message2A 427 (*Message2_Message2B)(nil), // 6: goproto.protoc.comments.Message2.Message2B 428} 429var file_cmd_protoc_gen_go_testdata_comments_comments_proto_depIdxs = []int32{ 430 1, // 0: goproto.protoc.comments.extension:extendee -> goproto.protoc.comments.Message1 431 1, // 1: goproto.protoc.comments.extension:type_name -> goproto.protoc.comments.Message1 432 2, // [2:2] is the sub-list for method output_type 433 2, // [2:2] is the sub-list for method input_type 434 1, // [1:2] is the sub-list for extension type_name 435 0, // [0:1] is the sub-list for extension extendee 436 0, // [0:0] is the sub-list for field type_name 437} 438 439func init() { file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() } 440func file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() { 441 if File_cmd_protoc_gen_go_testdata_comments_comments_proto != nil { 442 return 443 } 444 if !protoimpl.UnsafeEnabled { 445 file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 446 switch v := v.(*Message1); i { 447 case 0: 448 return &v.state 449 case 1: 450 return &v.sizeCache 451 case 2: 452 return &v.unknownFields 453 case 3: 454 return &v.extensionFields 455 default: 456 return nil 457 } 458 } 459 file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 460 switch v := v.(*Message2); i { 461 case 0: 462 return &v.state 463 case 1: 464 return &v.sizeCache 465 case 2: 466 return &v.unknownFields 467 default: 468 return nil 469 } 470 } 471 file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 472 switch v := v.(*Message1_Message1A); i { 473 case 0: 474 return &v.state 475 case 1: 476 return &v.sizeCache 477 case 2: 478 return &v.unknownFields 479 default: 480 return nil 481 } 482 } 483 file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 484 switch v := v.(*Message1_Message1B); i { 485 case 0: 486 return &v.state 487 case 1: 488 return &v.sizeCache 489 case 2: 490 return &v.unknownFields 491 default: 492 return nil 493 } 494 } 495 file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 496 switch v := v.(*Message2_Message2A); i { 497 case 0: 498 return &v.state 499 case 1: 500 return &v.sizeCache 501 case 2: 502 return &v.unknownFields 503 default: 504 return nil 505 } 506 } 507 file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 508 switch v := v.(*Message2_Message2B); i { 509 case 0: 510 return &v.state 511 case 1: 512 return &v.sizeCache 513 case 2: 514 return &v.unknownFields 515 default: 516 return nil 517 } 518 } 519 } 520 file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0].OneofWrappers = []interface{}{ 521 (*Message1_Oneof1AField1)(nil), 522 } 523 type x struct{} 524 out := protoimpl.TypeBuilder{ 525 File: protoimpl.DescBuilder{ 526 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 527 RawDescriptor: file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDesc, 528 NumEnums: 1, 529 NumMessages: 6, 530 NumExtensions: 1, 531 NumServices: 0, 532 }, 533 GoTypes: file_cmd_protoc_gen_go_testdata_comments_comments_proto_goTypes, 534 DependencyIndexes: file_cmd_protoc_gen_go_testdata_comments_comments_proto_depIdxs, 535 EnumInfos: file_cmd_protoc_gen_go_testdata_comments_comments_proto_enumTypes, 536 MessageInfos: file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes, 537 ExtensionInfos: file_cmd_protoc_gen_go_testdata_comments_comments_proto_extTypes, 538 }.Build() 539 File_cmd_protoc_gen_go_testdata_comments_comments_proto = out.File 540 file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDesc = nil 541 file_cmd_protoc_gen_go_testdata_comments_comments_proto_goTypes = nil 542 file_cmd_protoc_gen_go_testdata_comments_comments_proto_depIdxs = nil 543} 544