xref: /aosp_15_r20/external/golang-protobuf/cmd/protoc-gen-go/testdata/proto2/enum.pb.go (revision 1c12ee1efe575feb122dbf939ff15148a3b3e8f2)
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/proto2/enum.proto
7
8package proto2
9
10import (
11	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13	reflect "reflect"
14	sync "sync"
15)
16
17// EnumType1 comment.
18type EnumType1 int32
19
20const (
21	// EnumType1_ONE comment.
22	EnumType1_ONE EnumType1 = 1
23	// EnumType1_TWO comment.
24	EnumType1_TWO EnumType1 = 2
25)
26
27// Enum value maps for EnumType1.
28var (
29	EnumType1_name = map[int32]string{
30		1: "ONE",
31		2: "TWO",
32	}
33	EnumType1_value = map[string]int32{
34		"ONE": 1,
35		"TWO": 2,
36	}
37)
38
39func (x EnumType1) Enum() *EnumType1 {
40	p := new(EnumType1)
41	*p = x
42	return p
43}
44
45func (x EnumType1) String() string {
46	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
47}
48
49func (EnumType1) Descriptor() protoreflect.EnumDescriptor {
50	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[0].Descriptor()
51}
52
53func (EnumType1) Type() protoreflect.EnumType {
54	return &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[0]
55}
56
57func (x EnumType1) Number() protoreflect.EnumNumber {
58	return protoreflect.EnumNumber(x)
59}
60
61// Deprecated: Do not use.
62func (x *EnumType1) UnmarshalJSON(b []byte) error {
63	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
64	if err != nil {
65		return err
66	}
67	*x = EnumType1(num)
68	return nil
69}
70
71// Deprecated: Use EnumType1.Descriptor instead.
72func (EnumType1) EnumDescriptor() ([]byte, []int) {
73	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescGZIP(), []int{0}
74}
75
76type EnumType2 int32
77
78const (
79	EnumType2_duplicate1 EnumType2 = 1
80	EnumType2_duplicate2 EnumType2 = 1
81)
82
83// Enum value maps for EnumType2.
84var (
85	EnumType2_name = map[int32]string{
86		1: "duplicate1",
87		// Duplicate value: 1: "duplicate2",
88	}
89	EnumType2_value = map[string]int32{
90		"duplicate1": 1,
91		"duplicate2": 1,
92	}
93)
94
95func (x EnumType2) Enum() *EnumType2 {
96	p := new(EnumType2)
97	*p = x
98	return p
99}
100
101func (x EnumType2) String() string {
102	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
103}
104
105func (EnumType2) Descriptor() protoreflect.EnumDescriptor {
106	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[1].Descriptor()
107}
108
109func (EnumType2) Type() protoreflect.EnumType {
110	return &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[1]
111}
112
113func (x EnumType2) Number() protoreflect.EnumNumber {
114	return protoreflect.EnumNumber(x)
115}
116
117// Deprecated: Do not use.
118func (x *EnumType2) UnmarshalJSON(b []byte) error {
119	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
120	if err != nil {
121		return err
122	}
123	*x = EnumType2(num)
124	return nil
125}
126
127// Deprecated: Use EnumType2.Descriptor instead.
128func (EnumType2) EnumDescriptor() ([]byte, []int) {
129	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescGZIP(), []int{1}
130}
131
132// NestedEnumType1A comment.
133type EnumContainerMessage1_NestedEnumType1A int32
134
135const (
136	// NestedEnumType1A_VALUE comment.
137	EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
138)
139
140// Enum value maps for EnumContainerMessage1_NestedEnumType1A.
141var (
142	EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{
143		0: "NESTED_1A_VALUE",
144	}
145	EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{
146		"NESTED_1A_VALUE": 0,
147	}
148)
149
150func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
151	p := new(EnumContainerMessage1_NestedEnumType1A)
152	*p = x
153	return p
154}
155
156func (x EnumContainerMessage1_NestedEnumType1A) String() string {
157	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
158}
159
160func (EnumContainerMessage1_NestedEnumType1A) Descriptor() protoreflect.EnumDescriptor {
161	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[2].Descriptor()
162}
163
164func (EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
165	return &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[2]
166}
167
168func (x EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
169	return protoreflect.EnumNumber(x)
170}
171
172// Deprecated: Do not use.
173func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(b []byte) error {
174	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
175	if err != nil {
176		return err
177	}
178	*x = EnumContainerMessage1_NestedEnumType1A(num)
179	return nil
180}
181
182// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Descriptor instead.
183func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
184	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
185}
186
187type EnumContainerMessage1_NestedEnumType1B int32
188
189const (
190	EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
191)
192
193// Enum value maps for EnumContainerMessage1_NestedEnumType1B.
194var (
195	EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{
196		0: "NESTED_1B_VALUE",
197	}
198	EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
199		"NESTED_1B_VALUE": 0,
200	}
201)
202
203func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
204	p := new(EnumContainerMessage1_NestedEnumType1B)
205	*p = x
206	return p
207}
208
209func (x EnumContainerMessage1_NestedEnumType1B) String() string {
210	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
211}
212
213func (EnumContainerMessage1_NestedEnumType1B) Descriptor() protoreflect.EnumDescriptor {
214	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[3].Descriptor()
215}
216
217func (EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
218	return &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[3]
219}
220
221func (x EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
222	return protoreflect.EnumNumber(x)
223}
224
225// Deprecated: Do not use.
226func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(b []byte) error {
227	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
228	if err != nil {
229		return err
230	}
231	*x = EnumContainerMessage1_NestedEnumType1B(num)
232	return nil
233}
234
235// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Descriptor instead.
236func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
237	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescGZIP(), []int{0, 1}
238}
239
240// NestedEnumType2A comment.
241type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
242
243const (
244	// NestedEnumType2A_VALUE comment.
245	EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
246)
247
248// Enum value maps for EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.
249var (
250	EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{
251		0: "NESTED_2A_VALUE",
252	}
253	EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
254		"NESTED_2A_VALUE": 0,
255	}
256)
257
258func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
259	p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)
260	*p = x
261	return p
262}
263
264func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
265	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
266}
267
268func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Descriptor() protoreflect.EnumDescriptor {
269	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[4].Descriptor()
270}
271
272func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
273	return &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[4]
274}
275
276func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
277	return protoreflect.EnumNumber(x)
278}
279
280// Deprecated: Do not use.
281func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(b []byte) error {
282	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
283	if err != nil {
284		return err
285	}
286	*x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(num)
287	return nil
288}
289
290// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Descriptor instead.
291func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
292	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 0}
293}
294
295type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
296
297const (
298	EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
299)
300
301// Enum value maps for EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.
302var (
303	EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{
304		0: "NESTED_2B_VALUE",
305	}
306	EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
307		"NESTED_2B_VALUE": 0,
308	}
309)
310
311func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
312	p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)
313	*p = x
314	return p
315}
316
317func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
318	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
319}
320
321func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Descriptor() protoreflect.EnumDescriptor {
322	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[5].Descriptor()
323}
324
325func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
326	return &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes[5]
327}
328
329func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
330	return protoreflect.EnumNumber(x)
331}
332
333// Deprecated: Do not use.
334func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(b []byte) error {
335	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
336	if err != nil {
337		return err
338	}
339	*x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(num)
340	return nil
341}
342
343// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Descriptor instead.
344func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
345	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 1}
346}
347
348type EnumContainerMessage1 struct {
349	state         protoimpl.MessageState
350	sizeCache     protoimpl.SizeCache
351	unknownFields protoimpl.UnknownFields
352
353	DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
354	DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
355}
356
357// Default values for EnumContainerMessage1 fields.
358const (
359	Default_EnumContainerMessage1_DefaultDuplicate1 = EnumType2_duplicate1
360	Default_EnumContainerMessage1_DefaultDuplicate2 = EnumType2_duplicate2
361)
362
363func (x *EnumContainerMessage1) Reset() {
364	*x = EnumContainerMessage1{}
365	if protoimpl.UnsafeEnabled {
366		mi := &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[0]
367		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
368		ms.StoreMessageInfo(mi)
369	}
370}
371
372func (x *EnumContainerMessage1) String() string {
373	return protoimpl.X.MessageStringOf(x)
374}
375
376func (*EnumContainerMessage1) ProtoMessage() {}
377
378func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
379	mi := &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[0]
380	if protoimpl.UnsafeEnabled && x != nil {
381		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
382		if ms.LoadMessageInfo() == nil {
383			ms.StoreMessageInfo(mi)
384		}
385		return ms
386	}
387	return mi.MessageOf(x)
388}
389
390// Deprecated: Use EnumContainerMessage1.ProtoReflect.Descriptor instead.
391func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
392	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescGZIP(), []int{0}
393}
394
395func (x *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
396	if x != nil && x.DefaultDuplicate1 != nil {
397		return *x.DefaultDuplicate1
398	}
399	return Default_EnumContainerMessage1_DefaultDuplicate1
400}
401
402func (x *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
403	if x != nil && x.DefaultDuplicate2 != nil {
404		return *x.DefaultDuplicate2
405	}
406	return Default_EnumContainerMessage1_DefaultDuplicate2
407}
408
409type EnumContainerMessage1_EnumContainerMessage2 struct {
410	state         protoimpl.MessageState
411	sizeCache     protoimpl.SizeCache
412	unknownFields protoimpl.UnknownFields
413}
414
415func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() {
416	*x = EnumContainerMessage1_EnumContainerMessage2{}
417	if protoimpl.UnsafeEnabled {
418		mi := &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[1]
419		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
420		ms.StoreMessageInfo(mi)
421	}
422}
423
424func (x *EnumContainerMessage1_EnumContainerMessage2) String() string {
425	return protoimpl.X.MessageStringOf(x)
426}
427
428func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
429
430func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
431	mi := &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[1]
432	if protoimpl.UnsafeEnabled && x != nil {
433		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
434		if ms.LoadMessageInfo() == nil {
435			ms.StoreMessageInfo(mi)
436		}
437		return ms
438	}
439	return mi.MessageOf(x)
440}
441
442// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Descriptor instead.
443func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
444	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
445}
446
447var File_cmd_protoc_gen_go_testdata_proto2_enum_proto protoreflect.FileDescriptor
448
449var file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDesc = []byte{
450	0x0a, 0x2c, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
451	0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f,
452	0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15,
453	0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
454	0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f,
455	0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12,
456	0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70, 0x6c, 0x69,
457	0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6f,
458	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f,
459	0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a, 0x0a, 0x64,
460	0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75,
461	0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12,
462	0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
463	0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f,
464	0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
465	0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c,
466	0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44,
467	0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69, 0x0a, 0x15, 0x45, 0x6e, 0x75,
468	0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
469	0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
470	0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44,
471	0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e,
472	0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x42, 0x12,
473	0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x42, 0x5f, 0x56, 0x41, 0x4c,
474	0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e,
475	0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54,
476	0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a,
477	0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31,
478	0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x42, 0x5f, 0x56,
479	0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79,
480	0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03,
481	0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70,
482	0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31,
483	0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32,
484	0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10, 0x02, 0x22, 0x04, 0x08, 0x03,
485	0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x31, 0x2a, 0x09, 0x52,
486	0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67,
487	0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72,
488	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
489	0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74,
490	0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
491}
492
493var (
494	file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescOnce sync.Once
495	file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescData = file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDesc
496)
497
498func file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescGZIP() []byte {
499	file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescOnce.Do(func() {
500		file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescData)
501	})
502	return file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescData
503}
504
505var file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
506var file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
507var file_cmd_protoc_gen_go_testdata_proto2_enum_proto_goTypes = []interface{}{
508	(EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
509	(EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
510	(EnumContainerMessage1_NestedEnumType1A)(0),                       // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
511	(EnumContainerMessage1_NestedEnumType1B)(0),                       // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B
512	(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A
513	(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B
514	(*EnumContainerMessage1)(nil),                                     // 6: goproto.protoc.proto2.EnumContainerMessage1
515	(*EnumContainerMessage1_EnumContainerMessage2)(nil),               // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2
516}
517var file_cmd_protoc_gen_go_testdata_proto2_enum_proto_depIdxs = []int32{
518	1, // 0: goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2
519	1, // 1: goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2
520	2, // [2:2] is the sub-list for method output_type
521	2, // [2:2] is the sub-list for method input_type
522	2, // [2:2] is the sub-list for extension type_name
523	2, // [2:2] is the sub-list for extension extendee
524	0, // [0:2] is the sub-list for field type_name
525}
526
527func init() { file_cmd_protoc_gen_go_testdata_proto2_enum_proto_init() }
528func file_cmd_protoc_gen_go_testdata_proto2_enum_proto_init() {
529	if File_cmd_protoc_gen_go_testdata_proto2_enum_proto != nil {
530		return
531	}
532	if !protoimpl.UnsafeEnabled {
533		file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
534			switch v := v.(*EnumContainerMessage1); i {
535			case 0:
536				return &v.state
537			case 1:
538				return &v.sizeCache
539			case 2:
540				return &v.unknownFields
541			default:
542				return nil
543			}
544		}
545		file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
546			switch v := v.(*EnumContainerMessage1_EnumContainerMessage2); i {
547			case 0:
548				return &v.state
549			case 1:
550				return &v.sizeCache
551			case 2:
552				return &v.unknownFields
553			default:
554				return nil
555			}
556		}
557	}
558	type x struct{}
559	out := protoimpl.TypeBuilder{
560		File: protoimpl.DescBuilder{
561			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
562			RawDescriptor: file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDesc,
563			NumEnums:      6,
564			NumMessages:   2,
565			NumExtensions: 0,
566			NumServices:   0,
567		},
568		GoTypes:           file_cmd_protoc_gen_go_testdata_proto2_enum_proto_goTypes,
569		DependencyIndexes: file_cmd_protoc_gen_go_testdata_proto2_enum_proto_depIdxs,
570		EnumInfos:         file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes,
571		MessageInfos:      file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes,
572	}.Build()
573	File_cmd_protoc_gen_go_testdata_proto2_enum_proto = out.File
574	file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDesc = nil
575	file_cmd_protoc_gen_go_testdata_proto2_enum_proto_goTypes = nil
576	file_cmd_protoc_gen_go_testdata_proto2_enum_proto_depIdxs = nil
577}
578