| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
package test_name_clash_open |
| 28 |
|
| 29 |
import ( |
| 30 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 31 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 32 |
_ "google.golang.org/protobuf/types/gofeaturespb" |
| 33 |
reflect "reflect" |
| 34 |
sync "sync" |
| 35 |
unsafe "unsafe" |
| 36 |
) |
| 37 |
|
| 38 |
type M1 struct { |
| 39 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"` |
| 45 |
GetFoo_ *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"` |
| 46 |
GetGetFoo *int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo" json:"get_get_foo,omitempty"` |
| 47 |
unknownFields protoimpl.UnknownFields |
| 48 |
sizeCache protoimpl.SizeCache |
| 49 |
} |
| 50 |
|
| 51 |
func (x *M1) Reset() { |
| 52 |
*x = M1{} |
| 53 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[0] |
| 54 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 55 |
ms.StoreMessageInfo(mi) |
| 56 |
} |
| 57 |
|
| 58 |
func (x *M1) String() string { |
| 59 |
return protoimpl.X.MessageStringOf(x) |
| 60 |
} |
| 61 |
|
| 62 |
func (*M1) ProtoMessage() {} |
| 63 |
|
| 64 |
func (x *M1) ProtoReflect() protoreflect.Message { |
| 65 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[0] |
| 66 |
if x != nil { |
| 67 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 68 |
if ms.LoadMessageInfo() == nil { |
| 69 |
ms.StoreMessageInfo(mi) |
| 70 |
} |
| 71 |
return ms |
| 72 |
} |
| 73 |
return mi.MessageOf(x) |
| 74 |
} |
| 75 |
|
| 76 |
|
| 77 |
func (*M1) Descriptor() ([]byte, []int) { |
| 78 |
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{0} |
| 79 |
} |
| 80 |
|
| 81 |
func (x *M1) GetFoo() int32 { |
| 82 |
if x != nil && x.Foo != nil { |
| 83 |
return *x.Foo |
| 84 |
} |
| 85 |
return 0 |
| 86 |
} |
| 87 |
|
| 88 |
func (x *M1) GetGetFoo_() int32 { |
| 89 |
if x != nil && x.GetFoo_ != nil { |
| 90 |
return *x.GetFoo_ |
| 91 |
} |
| 92 |
return 0 |
| 93 |
} |
| 94 |
|
| 95 |
func (x *M1) GetGetGetFoo() int32 { |
| 96 |
if x != nil && x.GetGetFoo != nil { |
| 97 |
return *x.GetGetFoo |
| 98 |
} |
| 99 |
return 0 |
| 100 |
} |
| 101 |
|
| 102 |
type M2 struct { |
| 103 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
GetGetFoo *int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo" json:"get_get_foo,omitempty"` |
| 109 |
GetFoo_ *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"` |
| 110 |
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"` |
| 111 |
unknownFields protoimpl.UnknownFields |
| 112 |
sizeCache protoimpl.SizeCache |
| 113 |
} |
| 114 |
|
| 115 |
func (x *M2) Reset() { |
| 116 |
*x = M2{} |
| 117 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[1] |
| 118 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 119 |
ms.StoreMessageInfo(mi) |
| 120 |
} |
| 121 |
|
| 122 |
func (x *M2) String() string { |
| 123 |
return protoimpl.X.MessageStringOf(x) |
| 124 |
} |
| 125 |
|
| 126 |
func (*M2) ProtoMessage() {} |
| 127 |
|
| 128 |
func (x *M2) ProtoReflect() protoreflect.Message { |
| 129 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[1] |
| 130 |
if x != nil { |
| 131 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 132 |
if ms.LoadMessageInfo() == nil { |
| 133 |
ms.StoreMessageInfo(mi) |
| 134 |
} |
| 135 |
return ms |
| 136 |
} |
| 137 |
return mi.MessageOf(x) |
| 138 |
} |
| 139 |
|
| 140 |
|
| 141 |
func (*M2) Descriptor() ([]byte, []int) { |
| 142 |
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{1} |
| 143 |
} |
| 144 |
|
| 145 |
func (x *M2) GetGetGetFoo() int32 { |
| 146 |
if x != nil && x.GetGetFoo != nil { |
| 147 |
return *x.GetGetFoo |
| 148 |
} |
| 149 |
return 0 |
| 150 |
} |
| 151 |
|
| 152 |
func (x *M2) GetGetFoo_() int32 { |
| 153 |
if x != nil && x.GetFoo_ != nil { |
| 154 |
return *x.GetFoo_ |
| 155 |
} |
| 156 |
return 0 |
| 157 |
} |
| 158 |
|
| 159 |
func (x *M2) GetFoo() int32 { |
| 160 |
if x != nil && x.Foo != nil { |
| 161 |
return *x.Foo |
| 162 |
} |
| 163 |
return 0 |
| 164 |
} |
| 165 |
|
| 166 |
type M3 struct { |
| 167 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
GetFoo *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"` |
| 173 |
GetGetFoo_ *int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo" json:"get_get_foo,omitempty"` |
| 174 |
Foo_ *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"` |
| 175 |
unknownFields protoimpl.UnknownFields |
| 176 |
sizeCache protoimpl.SizeCache |
| 177 |
} |
| 178 |
|
| 179 |
func (x *M3) Reset() { |
| 180 |
*x = M3{} |
| 181 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[2] |
| 182 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 183 |
ms.StoreMessageInfo(mi) |
| 184 |
} |
| 185 |
|
| 186 |
func (x *M3) String() string { |
| 187 |
return protoimpl.X.MessageStringOf(x) |
| 188 |
} |
| 189 |
|
| 190 |
func (*M3) ProtoMessage() {} |
| 191 |
|
| 192 |
func (x *M3) ProtoReflect() protoreflect.Message { |
| 193 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[2] |
| 194 |
if x != nil { |
| 195 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 196 |
if ms.LoadMessageInfo() == nil { |
| 197 |
ms.StoreMessageInfo(mi) |
| 198 |
} |
| 199 |
return ms |
| 200 |
} |
| 201 |
return mi.MessageOf(x) |
| 202 |
} |
| 203 |
|
| 204 |
|
| 205 |
func (*M3) Descriptor() ([]byte, []int) { |
| 206 |
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{2} |
| 207 |
} |
| 208 |
|
| 209 |
func (x *M3) GetGetFoo() int32 { |
| 210 |
if x != nil && x.GetFoo != nil { |
| 211 |
return *x.GetFoo |
| 212 |
} |
| 213 |
return 0 |
| 214 |
} |
| 215 |
|
| 216 |
func (x *M3) GetGetGetFoo_() int32 { |
| 217 |
if x != nil && x.GetGetFoo_ != nil { |
| 218 |
return *x.GetGetFoo_ |
| 219 |
} |
| 220 |
return 0 |
| 221 |
} |
| 222 |
|
| 223 |
func (x *M3) GetFoo_() int32 { |
| 224 |
if x != nil && x.Foo_ != nil { |
| 225 |
return *x.Foo_ |
| 226 |
} |
| 227 |
return 0 |
| 228 |
} |
| 229 |
|
| 230 |
type M4 struct { |
| 231 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
GetFoo *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"` |
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
GetGetFoo_ isM4_GetGetFoo_ `protobuf_oneof:"get_get_foo"` |
| 245 |
Foo_ *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"` |
| 246 |
unknownFields protoimpl.UnknownFields |
| 247 |
sizeCache protoimpl.SizeCache |
| 248 |
} |
| 249 |
|
| 250 |
func (x *M4) Reset() { |
| 251 |
*x = M4{} |
| 252 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[3] |
| 253 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 254 |
ms.StoreMessageInfo(mi) |
| 255 |
} |
| 256 |
|
| 257 |
func (x *M4) String() string { |
| 258 |
return protoimpl.X.MessageStringOf(x) |
| 259 |
} |
| 260 |
|
| 261 |
func (*M4) ProtoMessage() {} |
| 262 |
|
| 263 |
func (x *M4) ProtoReflect() protoreflect.Message { |
| 264 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[3] |
| 265 |
if x != nil { |
| 266 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 267 |
if ms.LoadMessageInfo() == nil { |
| 268 |
ms.StoreMessageInfo(mi) |
| 269 |
} |
| 270 |
return ms |
| 271 |
} |
| 272 |
return mi.MessageOf(x) |
| 273 |
} |
| 274 |
|
| 275 |
|
| 276 |
func (*M4) Descriptor() ([]byte, []int) { |
| 277 |
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{3} |
| 278 |
} |
| 279 |
|
| 280 |
func (x *M4) GetGetFoo() int32 { |
| 281 |
if x != nil && x.GetFoo != nil { |
| 282 |
return *x.GetFoo |
| 283 |
} |
| 284 |
return 0 |
| 285 |
} |
| 286 |
|
| 287 |
func (x *M4) GetGetGetFoo_() isM4_GetGetFoo_ { |
| 288 |
if x != nil { |
| 289 |
return x.GetGetFoo_ |
| 290 |
} |
| 291 |
return nil |
| 292 |
} |
| 293 |
|
| 294 |
func (x *M4) GetGetGetGetFoo() int32 { |
| 295 |
if x != nil { |
| 296 |
if x, ok := x.GetGetFoo_.(*M4_GetGetGetFoo); ok { |
| 297 |
return x.GetGetGetFoo |
| 298 |
} |
| 299 |
} |
| 300 |
return 0 |
| 301 |
} |
| 302 |
|
| 303 |
func (x *M4) GetFoo_() int32 { |
| 304 |
if x != nil && x.Foo_ != nil { |
| 305 |
return *x.Foo_ |
| 306 |
} |
| 307 |
return 0 |
| 308 |
} |
| 309 |
|
| 310 |
type isM4_GetGetFoo_ interface { |
| 311 |
isM4_GetGetFoo_() |
| 312 |
} |
| 313 |
|
| 314 |
type M4_GetGetGetFoo struct { |
| 315 |
GetGetGetFoo int32 `protobuf:"varint,3,opt,name=get_get_get_foo,json=getGetGetFoo,oneof"` |
| 316 |
} |
| 317 |
|
| 318 |
func (*M4_GetGetGetFoo) isM4_GetGetFoo_() {} |
| 319 |
|
| 320 |
type M5 struct { |
| 321 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
GetFoo *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"` |
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
GetGetGetFoo isM5_GetGetGetFoo `protobuf_oneof:"get_get_get_foo"` |
| 336 |
Foo_ *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"` |
| 337 |
unknownFields protoimpl.UnknownFields |
| 338 |
sizeCache protoimpl.SizeCache |
| 339 |
} |
| 340 |
|
| 341 |
func (x *M5) Reset() { |
| 342 |
*x = M5{} |
| 343 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[4] |
| 344 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 345 |
ms.StoreMessageInfo(mi) |
| 346 |
} |
| 347 |
|
| 348 |
func (x *M5) String() string { |
| 349 |
return protoimpl.X.MessageStringOf(x) |
| 350 |
} |
| 351 |
|
| 352 |
func (*M5) ProtoMessage() {} |
| 353 |
|
| 354 |
func (x *M5) ProtoReflect() protoreflect.Message { |
| 355 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[4] |
| 356 |
if x != nil { |
| 357 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 358 |
if ms.LoadMessageInfo() == nil { |
| 359 |
ms.StoreMessageInfo(mi) |
| 360 |
} |
| 361 |
return ms |
| 362 |
} |
| 363 |
return mi.MessageOf(x) |
| 364 |
} |
| 365 |
|
| 366 |
|
| 367 |
func (*M5) Descriptor() ([]byte, []int) { |
| 368 |
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{4} |
| 369 |
} |
| 370 |
|
| 371 |
func (x *M5) GetGetFoo() int32 { |
| 372 |
if x != nil && x.GetFoo != nil { |
| 373 |
return *x.GetFoo |
| 374 |
} |
| 375 |
return 0 |
| 376 |
} |
| 377 |
|
| 378 |
func (x *M5) GetGetGetGetFoo() isM5_GetGetGetFoo { |
| 379 |
if x != nil { |
| 380 |
return x.GetGetGetFoo |
| 381 |
} |
| 382 |
return nil |
| 383 |
} |
| 384 |
|
| 385 |
func (x *M5) GetGetGetFoo_() int32 { |
| 386 |
if x != nil { |
| 387 |
if x, ok := x.GetGetGetFoo.(*M5_GetGetFoo_); ok { |
| 388 |
return x.GetGetFoo_ |
| 389 |
} |
| 390 |
} |
| 391 |
return 0 |
| 392 |
} |
| 393 |
|
| 394 |
func (x *M5) GetFoo_() int32 { |
| 395 |
if x != nil && x.Foo_ != nil { |
| 396 |
return *x.Foo_ |
| 397 |
} |
| 398 |
return 0 |
| 399 |
} |
| 400 |
|
| 401 |
type isM5_GetGetGetFoo interface { |
| 402 |
isM5_GetGetGetFoo() |
| 403 |
} |
| 404 |
|
| 405 |
type M5_GetGetFoo_ struct { |
| 406 |
GetGetFoo_ int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo,oneof"` |
| 407 |
} |
| 408 |
|
| 409 |
func (*M5_GetGetFoo_) isM5_GetGetGetFoo() {} |
| 410 |
|
| 411 |
type M6 struct { |
| 412 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 413 |
|
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
|
| 418 |
|
| 419 |
|
| 420 |
|
| 421 |
|
| 422 |
|
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
GetGetFoo isM6_GetGetFoo `protobuf_oneof:"get_get_foo"` |
| 427 |
GetFoo_ *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"` |
| 428 |
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"` |
| 429 |
unknownFields protoimpl.UnknownFields |
| 430 |
sizeCache protoimpl.SizeCache |
| 431 |
} |
| 432 |
|
| 433 |
func (x *M6) Reset() { |
| 434 |
*x = M6{} |
| 435 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[5] |
| 436 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 437 |
ms.StoreMessageInfo(mi) |
| 438 |
} |
| 439 |
|
| 440 |
func (x *M6) String() string { |
| 441 |
return protoimpl.X.MessageStringOf(x) |
| 442 |
} |
| 443 |
|
| 444 |
func (*M6) ProtoMessage() {} |
| 445 |
|
| 446 |
func (x *M6) ProtoReflect() protoreflect.Message { |
| 447 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[5] |
| 448 |
if x != nil { |
| 449 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 450 |
if ms.LoadMessageInfo() == nil { |
| 451 |
ms.StoreMessageInfo(mi) |
| 452 |
} |
| 453 |
return ms |
| 454 |
} |
| 455 |
return mi.MessageOf(x) |
| 456 |
} |
| 457 |
|
| 458 |
|
| 459 |
func (*M6) Descriptor() ([]byte, []int) { |
| 460 |
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{5} |
| 461 |
} |
| 462 |
|
| 463 |
func (x *M6) GetGetGetFoo() isM6_GetGetFoo { |
| 464 |
if x != nil { |
| 465 |
return x.GetGetFoo |
| 466 |
} |
| 467 |
return nil |
| 468 |
} |
| 469 |
|
| 470 |
func (x *M6) GetGetGetGetFoo() int32 { |
| 471 |
if x != nil { |
| 472 |
if x, ok := x.GetGetFoo.(*M6_GetGetGetFoo); ok { |
| 473 |
return x.GetGetGetFoo |
| 474 |
} |
| 475 |
} |
| 476 |
return 0 |
| 477 |
} |
| 478 |
|
| 479 |
func (x *M6) GetGetFoo_() int32 { |
| 480 |
if x != nil && x.GetFoo_ != nil { |
| 481 |
return *x.GetFoo_ |
| 482 |
} |
| 483 |
return 0 |
| 484 |
} |
| 485 |
|
| 486 |
func (x *M6) GetFoo() int32 { |
| 487 |
if x != nil && x.Foo != nil { |
| 488 |
return *x.Foo |
| 489 |
} |
| 490 |
return 0 |
| 491 |
} |
| 492 |
|
| 493 |
type isM6_GetGetFoo interface { |
| 494 |
isM6_GetGetFoo() |
| 495 |
} |
| 496 |
|
| 497 |
type M6_GetGetGetFoo struct { |
| 498 |
GetGetGetFoo int32 `protobuf:"varint,3,opt,name=get_get_get_foo,json=getGetGetFoo,oneof"` |
| 499 |
} |
| 500 |
|
| 501 |
func (*M6_GetGetGetFoo) isM6_GetGetFoo() {} |
| 502 |
|
| 503 |
type M7 struct { |
| 504 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 505 |
|
| 506 |
|
| 507 |
|
| 508 |
|
| 509 |
|
| 510 |
|
| 511 |
|
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
|
| 518 |
|
| 519 |
GetGetFoo isM7_GetGetFoo `protobuf_oneof:"get_get_foo"` |
| 520 |
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"` |
| 521 |
unknownFields protoimpl.UnknownFields |
| 522 |
sizeCache protoimpl.SizeCache |
| 523 |
} |
| 524 |
|
| 525 |
func (x *M7) Reset() { |
| 526 |
*x = M7{} |
| 527 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[6] |
| 528 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 529 |
ms.StoreMessageInfo(mi) |
| 530 |
} |
| 531 |
|
| 532 |
func (x *M7) String() string { |
| 533 |
return protoimpl.X.MessageStringOf(x) |
| 534 |
} |
| 535 |
|
| 536 |
func (*M7) ProtoMessage() {} |
| 537 |
|
| 538 |
func (x *M7) ProtoReflect() protoreflect.Message { |
| 539 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[6] |
| 540 |
if x != nil { |
| 541 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 542 |
if ms.LoadMessageInfo() == nil { |
| 543 |
ms.StoreMessageInfo(mi) |
| 544 |
} |
| 545 |
return ms |
| 546 |
} |
| 547 |
return mi.MessageOf(x) |
| 548 |
} |
| 549 |
|
| 550 |
|
| 551 |
func (*M7) Descriptor() ([]byte, []int) { |
| 552 |
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{6} |
| 553 |
} |
| 554 |
|
| 555 |
func (x *M7) GetGetGetFoo() isM7_GetGetFoo { |
| 556 |
if x != nil { |
| 557 |
return x.GetGetFoo |
| 558 |
} |
| 559 |
return nil |
| 560 |
} |
| 561 |
|
| 562 |
func (x *M7) GetBar() bool { |
| 563 |
if x != nil { |
| 564 |
if x, ok := x.GetGetFoo.(*M7_Bar); ok { |
| 565 |
return x.Bar |
| 566 |
} |
| 567 |
} |
| 568 |
return false |
| 569 |
} |
| 570 |
|
| 571 |
func (x *M7) GetGetFoo_() int32 { |
| 572 |
if x != nil { |
| 573 |
if x, ok := x.GetGetFoo.(*M7_GetFoo_); ok { |
| 574 |
return x.GetFoo_ |
| 575 |
} |
| 576 |
} |
| 577 |
return 0 |
| 578 |
} |
| 579 |
|
| 580 |
func (x *M7) GetFoo() int32 { |
| 581 |
if x != nil && x.Foo != nil { |
| 582 |
return *x.Foo |
| 583 |
} |
| 584 |
return 0 |
| 585 |
} |
| 586 |
|
| 587 |
type isM7_GetGetFoo interface { |
| 588 |
isM7_GetGetFoo() |
| 589 |
} |
| 590 |
|
| 591 |
type M7_Bar struct { |
| 592 |
Bar bool `protobuf:"varint,4,opt,name=bar,oneof"` |
| 593 |
} |
| 594 |
|
| 595 |
type M7_GetFoo_ struct { |
| 596 |
GetFoo_ int32 `protobuf:"varint,3,opt,name=get_foo,json=getFoo,oneof"` |
| 597 |
} |
| 598 |
|
| 599 |
func (*M7_Bar) isM7_GetGetFoo() {} |
| 600 |
|
| 601 |
func (*M7_GetFoo_) isM7_GetGetFoo() {} |
| 602 |
|
| 603 |
type M8 struct { |
| 604 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 605 |
|
| 606 |
|
| 607 |
|
| 608 |
|
| 609 |
|
| 610 |
|
| 611 |
|
| 612 |
|
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
|
| 618 |
GetGetGetFoo_ isM8_GetGetGetFoo_ `protobuf_oneof:"get_get_get_foo"` |
| 619 |
GetFoo_ *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"` |
| 620 |
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"` |
| 621 |
unknownFields protoimpl.UnknownFields |
| 622 |
sizeCache protoimpl.SizeCache |
| 623 |
} |
| 624 |
|
| 625 |
func (x *M8) Reset() { |
| 626 |
*x = M8{} |
| 627 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[7] |
| 628 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 629 |
ms.StoreMessageInfo(mi) |
| 630 |
} |
| 631 |
|
| 632 |
func (x *M8) String() string { |
| 633 |
return protoimpl.X.MessageStringOf(x) |
| 634 |
} |
| 635 |
|
| 636 |
func (*M8) ProtoMessage() {} |
| 637 |
|
| 638 |
func (x *M8) ProtoReflect() protoreflect.Message { |
| 639 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[7] |
| 640 |
if x != nil { |
| 641 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 642 |
if ms.LoadMessageInfo() == nil { |
| 643 |
ms.StoreMessageInfo(mi) |
| 644 |
} |
| 645 |
return ms |
| 646 |
} |
| 647 |
return mi.MessageOf(x) |
| 648 |
} |
| 649 |
|
| 650 |
|
| 651 |
func (*M8) Descriptor() ([]byte, []int) { |
| 652 |
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{7} |
| 653 |
} |
| 654 |
|
| 655 |
func (x *M8) GetGetGetGetFoo_() isM8_GetGetGetFoo_ { |
| 656 |
if x != nil { |
| 657 |
return x.GetGetGetFoo_ |
| 658 |
} |
| 659 |
return nil |
| 660 |
} |
| 661 |
|
| 662 |
func (x *M8) GetGetGetFoo() int32 { |
| 663 |
if x != nil { |
| 664 |
if x, ok := x.GetGetGetFoo_.(*M8_GetGetFoo); ok { |
| 665 |
return x.GetGetFoo |
| 666 |
} |
| 667 |
} |
| 668 |
return 0 |
| 669 |
} |
| 670 |
|
| 671 |
func (x *M8) GetGetFoo_() int32 { |
| 672 |
if x != nil && x.GetFoo_ != nil { |
| 673 |
return *x.GetFoo_ |
| 674 |
} |
| 675 |
return 0 |
| 676 |
} |
| 677 |
|
| 678 |
func (x *M8) GetFoo() int32 { |
| 679 |
if x != nil && x.Foo != nil { |
| 680 |
return *x.Foo |
| 681 |
} |
| 682 |
return 0 |
| 683 |
} |
| 684 |
|
| 685 |
type isM8_GetGetGetFoo_ interface { |
| 686 |
isM8_GetGetGetFoo_() |
| 687 |
} |
| 688 |
|
| 689 |
type M8_GetGetFoo struct { |
| 690 |
GetGetFoo int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo,oneof"` |
| 691 |
} |
| 692 |
|
| 693 |
func (*M8_GetGetFoo) isM8_GetGetGetFoo_() {} |
| 694 |
|
| 695 |
type M9 struct { |
| 696 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 697 |
|
| 698 |
|
| 699 |
|
| 700 |
|
| 701 |
|
| 702 |
|
| 703 |
|
| 704 |
|
| 705 |
|
| 706 |
|
| 707 |
|
| 708 |
|
| 709 |
|
| 710 |
|
| 711 |
GetGetGetFoo_ isM9_GetGetGetFoo_ `protobuf_oneof:"get_get_get_foo"` |
| 712 |
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"` |
| 713 |
unknownFields protoimpl.UnknownFields |
| 714 |
sizeCache protoimpl.SizeCache |
| 715 |
} |
| 716 |
|
| 717 |
func (x *M9) Reset() { |
| 718 |
*x = M9{} |
| 719 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[8] |
| 720 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 721 |
ms.StoreMessageInfo(mi) |
| 722 |
} |
| 723 |
|
| 724 |
func (x *M9) String() string { |
| 725 |
return protoimpl.X.MessageStringOf(x) |
| 726 |
} |
| 727 |
|
| 728 |
func (*M9) ProtoMessage() {} |
| 729 |
|
| 730 |
func (x *M9) ProtoReflect() protoreflect.Message { |
| 731 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[8] |
| 732 |
if x != nil { |
| 733 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 734 |
if ms.LoadMessageInfo() == nil { |
| 735 |
ms.StoreMessageInfo(mi) |
| 736 |
} |
| 737 |
return ms |
| 738 |
} |
| 739 |
return mi.MessageOf(x) |
| 740 |
} |
| 741 |
|
| 742 |
|
| 743 |
func (*M9) Descriptor() ([]byte, []int) { |
| 744 |
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{8} |
| 745 |
} |
| 746 |
|
| 747 |
func (x *M9) GetGetGetGetFoo_() isM9_GetGetGetFoo_ { |
| 748 |
if x != nil { |
| 749 |
return x.GetGetGetFoo_ |
| 750 |
} |
| 751 |
return nil |
| 752 |
} |
| 753 |
|
| 754 |
func (x *M9) GetGetGetFoo() int32 { |
| 755 |
if x != nil { |
| 756 |
if x, ok := x.GetGetGetFoo_.(*M9_GetGetFoo); ok { |
| 757 |
return x.GetGetFoo |
| 758 |
} |
| 759 |
} |
| 760 |
return 0 |
| 761 |
} |
| 762 |
|
| 763 |
func (x *M9) GetGetFoo_() int32 { |
| 764 |
if x != nil { |
| 765 |
if x, ok := x.GetGetGetFoo_.(*M9_GetFoo_); ok { |
| 766 |
return x.GetFoo_ |
| 767 |
} |
| 768 |
} |
| 769 |
return 0 |
| 770 |
} |
| 771 |
|
| 772 |
func (x *M9) GetFoo() int32 { |
| 773 |
if x != nil && x.Foo != nil { |
| 774 |
return *x.Foo |
| 775 |
} |
| 776 |
return 0 |
| 777 |
} |
| 778 |
|
| 779 |
type isM9_GetGetGetFoo_ interface { |
| 780 |
isM9_GetGetGetFoo_() |
| 781 |
} |
| 782 |
|
| 783 |
type M9_GetGetFoo struct { |
| 784 |
GetGetFoo int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo,oneof"` |
| 785 |
} |
| 786 |
|
| 787 |
type M9_GetFoo_ struct { |
| 788 |
GetFoo_ int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo,oneof"` |
| 789 |
} |
| 790 |
|
| 791 |
func (*M9_GetGetFoo) isM9_GetGetGetFoo_() {} |
| 792 |
|
| 793 |
func (*M9_GetFoo_) isM9_GetGetGetFoo_() {} |
| 794 |
|
| 795 |
type M21 struct { |
| 796 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 797 |
XFoo *string `protobuf:"bytes,1,opt,name=_foo,json=Foo" json:"_foo,omitempty"` |
| 798 |
XFoo_ *string `protobuf:"bytes,2,opt,name=X_foo,json=XFoo" json:"X_foo,omitempty"` |
| 799 |
GetXFoo__ *string `protobuf:"bytes,3,opt,name=get_x_foo,json=getXFoo" json:"get_x_foo,omitempty"` |
| 800 |
unknownFields protoimpl.UnknownFields |
| 801 |
sizeCache protoimpl.SizeCache |
| 802 |
} |
| 803 |
|
| 804 |
func (x *M21) Reset() { |
| 805 |
*x = M21{} |
| 806 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[9] |
| 807 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 808 |
ms.StoreMessageInfo(mi) |
| 809 |
} |
| 810 |
|
| 811 |
func (x *M21) String() string { |
| 812 |
return protoimpl.X.MessageStringOf(x) |
| 813 |
} |
| 814 |
|
| 815 |
func (*M21) ProtoMessage() {} |
| 816 |
|
| 817 |
func (x *M21) ProtoReflect() protoreflect.Message { |
| 818 |
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[9] |
| 819 |
if x != nil { |
| 820 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 821 |
if ms.LoadMessageInfo() == nil { |
| 822 |
ms.StoreMessageInfo(mi) |
| 823 |
} |
| 824 |
return ms |
| 825 |
} |
| 826 |
return mi.MessageOf(x) |
| 827 |
} |
| 828 |
|
| 829 |
|
| 830 |
func (*M21) Descriptor() ([]byte, []int) { |
| 831 |
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{9} |
| 832 |
} |
| 833 |
|
| 834 |
func (x *M21) GetXFoo() string { |
| 835 |
if x != nil && x.XFoo != nil { |
| 836 |
return *x.XFoo |
| 837 |
} |
| 838 |
return "" |
| 839 |
} |
| 840 |
|
| 841 |
func (x *M21) GetXFoo_() string { |
| 842 |
if x != nil && x.XFoo_ != nil { |
| 843 |
return *x.XFoo_ |
| 844 |
} |
| 845 |
return "" |
| 846 |
} |
| 847 |
|
| 848 |
func (x *M21) GetGetXFoo__() string { |
| 849 |
if x != nil && x.GetXFoo__ != nil { |
| 850 |
return *x.GetXFoo__ |
| 851 |
} |
| 852 |
return "" |
| 853 |
} |
| 854 |
|
| 855 |
var File_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto protoreflect.FileDescriptor |
| 856 |
|
| 857 |
const file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc = "" + |
| 858 |
"\n" + |
| 859 |
"?cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open.proto\x12$net.proto2.go.testdata.nameclashopen\x1a!google/protobuf/go_features.proto\"O\n" + |
| 860 |
"\x02M1\x12\x10\n" + |
| 861 |
"\x03foo\x18\x01 \x01(\x05R\x03foo\x12\x17\n" + |
| 862 |
"\aget_foo\x18\x02 \x01(\x05R\x06getFoo\x12\x1e\n" + |
| 863 |
"\vget_get_foo\x18\x03 \x01(\x05R\tgetGetFoo\"O\n" + |
| 864 |
"\x02M2\x12\x1e\n" + |
| 865 |
"\vget_get_foo\x18\x03 \x01(\x05R\tgetGetFoo\x12\x17\n" + |
| 866 |
"\aget_foo\x18\x02 \x01(\x05R\x06getFoo\x12\x10\n" + |
| 867 |
"\x03foo\x18\x01 \x01(\x05R\x03foo\"O\n" + |
| 868 |
"\x02M3\x12\x17\n" + |
| 869 |
"\aget_foo\x18\x02 \x01(\x05R\x06getFoo\x12\x1e\n" + |
| 870 |
"\vget_get_foo\x18\x03 \x01(\x05R\tgetGetFoo\x12\x10\n" + |
| 871 |
"\x03foo\x18\x01 \x01(\x05R\x03foo\"g\n" + |
| 872 |
"\x02M4\x12\x17\n" + |
| 873 |
"\aget_foo\x18\x02 \x01(\x05R\x06getFoo\x12'\n" + |
| 874 |
"\x0fget_get_get_foo\x18\x03 \x01(\x05H\x00R\fgetGetGetFoo\x12\x10\n" + |
| 875 |
"\x03foo\x18\x01 \x01(\x05R\x03fooB\r\n" + |
| 876 |
"\vget_get_foo\"d\n" + |
| 877 |
"\x02M5\x12\x17\n" + |
| 878 |
"\aget_foo\x18\x02 \x01(\x05R\x06getFoo\x12 \n" + |
| 879 |
"\vget_get_foo\x18\x03 \x01(\x05H\x00R\tgetGetFoo\x12\x10\n" + |
| 880 |
"\x03foo\x18\x01 \x01(\x05R\x03fooB\x11\n" + |
| 881 |
"\x0fget_get_get_foo\"g\n" + |
| 882 |
"\x02M6\x12'\n" + |
| 883 |
"\x0fget_get_get_foo\x18\x03 \x01(\x05H\x00R\fgetGetGetFoo\x12\x17\n" + |
| 884 |
"\aget_foo\x18\x02 \x01(\x05R\x06getFoo\x12\x10\n" + |
| 885 |
"\x03foo\x18\x01 \x01(\x05R\x03fooB\r\n" + |
| 886 |
"\vget_get_foo\"T\n" + |
| 887 |
"\x02M7\x12\x12\n" + |
| 888 |
"\x03bar\x18\x04 \x01(\bH\x00R\x03bar\x12\x19\n" + |
| 889 |
"\aget_foo\x18\x03 \x01(\x05H\x00R\x06getFoo\x12\x10\n" + |
| 890 |
"\x03foo\x18\x01 \x01(\x05R\x03fooB\r\n" + |
| 891 |
"\vget_get_foo\"d\n" + |
| 892 |
"\x02M8\x12 \n" + |
| 893 |
"\vget_get_foo\x18\x03 \x01(\x05H\x00R\tgetGetFoo\x12\x17\n" + |
| 894 |
"\aget_foo\x18\x02 \x01(\x05R\x06getFoo\x12\x10\n" + |
| 895 |
"\x03foo\x18\x01 \x01(\x05R\x03fooB\x11\n" + |
| 896 |
"\x0fget_get_get_foo\"f\n" + |
| 897 |
"\x02M9\x12 \n" + |
| 898 |
"\vget_get_foo\x18\x03 \x01(\x05H\x00R\tgetGetFoo\x12\x19\n" + |
| 899 |
"\aget_foo\x18\x02 \x01(\x05H\x00R\x06getFoo\x12\x10\n" + |
| 900 |
"\x03foo\x18\x01 \x01(\x05R\x03fooB\x11\n" + |
| 901 |
"\x0fget_get_get_foo\"I\n" + |
| 902 |
"\x03M21\x12\x11\n" + |
| 903 |
"\x04_foo\x18\x01 \x01(\tR\x03Foo\x12\x13\n" + |
| 904 |
"\x05X_foo\x18\x02 \x01(\tR\x04XFoo\x12\x1a\n" + |
| 905 |
"\tget_x_foo\x18\x03 \x01(\tR\agetXFooB^ZTgoogle.golang.org/protobuf/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open\x92\x03\x05\xd2>\x02\x10\x01b\beditionsp\xe8\a" |
| 906 |
|
| 907 |
var ( |
| 908 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescOnce sync.Once |
| 909 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescData []byte |
| 910 |
) |
| 911 |
|
| 912 |
func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP() []byte { |
| 913 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescOnce.Do(func() { |
| 914 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc))) |
| 915 |
}) |
| 916 |
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescData |
| 917 |
} |
| 918 |
|
| 919 |
var file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes = make([]protoimpl.MessageInfo, 10) |
| 920 |
var file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_goTypes = []any{ |
| 921 |
(*M1)(nil), |
| 922 |
(*M2)(nil), |
| 923 |
(*M3)(nil), |
| 924 |
(*M4)(nil), |
| 925 |
(*M5)(nil), |
| 926 |
(*M6)(nil), |
| 927 |
(*M7)(nil), |
| 928 |
(*M8)(nil), |
| 929 |
(*M9)(nil), |
| 930 |
(*M21)(nil), |
| 931 |
} |
| 932 |
var file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_depIdxs = []int32{ |
| 933 |
0, |
| 934 |
0, |
| 935 |
0, |
| 936 |
0, |
| 937 |
0, |
| 938 |
} |
| 939 |
|
| 940 |
func init() { file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_init() } |
| 941 |
func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_init() { |
| 942 |
if File_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto != nil { |
| 943 |
return |
| 944 |
} |
| 945 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[3].OneofWrappers = []any{ |
| 946 |
(*M4_GetGetGetFoo)(nil), |
| 947 |
} |
| 948 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[4].OneofWrappers = []any{ |
| 949 |
(*M5_GetGetFoo_)(nil), |
| 950 |
} |
| 951 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[5].OneofWrappers = []any{ |
| 952 |
(*M6_GetGetGetFoo)(nil), |
| 953 |
} |
| 954 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[6].OneofWrappers = []any{ |
| 955 |
(*M7_Bar)(nil), |
| 956 |
(*M7_GetFoo_)(nil), |
| 957 |
} |
| 958 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[7].OneofWrappers = []any{ |
| 959 |
(*M8_GetGetFoo)(nil), |
| 960 |
} |
| 961 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[8].OneofWrappers = []any{ |
| 962 |
(*M9_GetGetFoo)(nil), |
| 963 |
(*M9_GetFoo_)(nil), |
| 964 |
} |
| 965 |
type x struct{} |
| 966 |
out := protoimpl.TypeBuilder{ |
| 967 |
File: protoimpl.DescBuilder{ |
| 968 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 969 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc)), |
| 970 |
NumEnums: 0, |
| 971 |
NumMessages: 10, |
| 972 |
NumExtensions: 0, |
| 973 |
NumServices: 0, |
| 974 |
}, |
| 975 |
GoTypes: file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_goTypes, |
| 976 |
DependencyIndexes: file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_depIdxs, |
| 977 |
MessageInfos: file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes, |
| 978 |
}.Build() |
| 979 |
File_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto = out.File |
| 980 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_goTypes = nil |
| 981 |
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_depIdxs = nil |
| 982 |
} |