Debian Codegraph @

cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open3/test_name_clash_open3.pb.go

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