blob: c1447ec7649385421f453f619b8bf0bbd8849485 [file] [log] [blame]
Damien Neil46abb572018-09-07 12:45:37 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: proto2/enum.proto
3
4package proto2
5
Damien Neil1ec33152018-09-13 13:12:36 -07006import (
Damien Neil1ec33152018-09-13 13:12:36 -07007 proto "github.com/golang/protobuf/proto"
Joe Tsaib6405bd2018-11-15 14:44:37 -08008 protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
9 prototype "github.com/golang/protobuf/v2/reflect/prototype"
10 protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
Damien Neil1ec33152018-09-13 13:12:36 -070011)
12
Damien Neild4127922018-09-12 11:13:49 -070013// This is a compile-time assertion to ensure that this generated file
14// is compatible with the proto package it is being compiled against.
15// A compilation error at this line likely means your copy of the
16// proto package needs to be updated.
Joe Tsaid7e97bc2018-11-26 12:57:27 -080017const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
Damien Neild4127922018-09-12 11:13:49 -070018
Damien Neil46abb572018-09-07 12:45:37 -070019// EnumType1 comment.
20type EnumType1 int32
21
22const (
23 // EnumType1_ONE comment.
24 EnumType1_ONE EnumType1 = 1
25 // EnumType1_TWO comment.
26 EnumType1_TWO EnumType1 = 2
27)
28
Joe Tsaib6405bd2018-11-15 14:44:37 -080029type xxx_EnumType1 EnumType1
30
31func (e EnumType1) ProtoReflect() protoreflect.Enum {
32 return (xxx_EnumType1)(e)
33}
34func (e xxx_EnumType1) Type() protoreflect.EnumType {
35 return xxx_Enum_ProtoFile_EnumTypes[0]
36}
37func (e xxx_EnumType1) Number() protoreflect.EnumNumber {
38 return protoreflect.EnumNumber(e)
39}
40
Damien Neil46abb572018-09-07 12:45:37 -070041var EnumType1_name = map[int32]string{
42 1: "ONE",
43 2: "TWO",
44}
45
46var EnumType1_value = map[string]int32{
47 "ONE": 1,
48 "TWO": 2,
49}
50
51func (x EnumType1) Enum() *EnumType1 {
52 p := new(EnumType1)
53 *p = x
54 return p
55}
56
57func (x EnumType1) String() string {
58 return proto.EnumName(EnumType1_name, int32(x))
59}
60
61func (x *EnumType1) UnmarshalJSON(data []byte) error {
62 value, err := proto.UnmarshalJSONEnum(EnumType1_value, data, "EnumType1")
63 if err != nil {
64 return err
65 }
66 *x = EnumType1(value)
67 return nil
68}
69
70func (EnumType1) EnumDescriptor() ([]byte, []int) {
71 return fileDescriptor_de9f68860d540858, []int{0}
72}
73
74type EnumType2 int32
75
76const (
77 EnumType2_duplicate1 EnumType2 = 1
78 EnumType2_duplicate2 EnumType2 = 1
79)
80
Joe Tsaib6405bd2018-11-15 14:44:37 -080081type xxx_EnumType2 EnumType2
82
83func (e EnumType2) ProtoReflect() protoreflect.Enum {
84 return (xxx_EnumType2)(e)
85}
86func (e xxx_EnumType2) Type() protoreflect.EnumType {
87 return xxx_Enum_ProtoFile_EnumTypes[1]
88}
89func (e xxx_EnumType2) Number() protoreflect.EnumNumber {
90 return protoreflect.EnumNumber(e)
91}
92
Damien Neil46abb572018-09-07 12:45:37 -070093var EnumType2_name = map[int32]string{
94 1: "duplicate1",
95 // Duplicate value: 1: "duplicate2",
96}
97
98var EnumType2_value = map[string]int32{
99 "duplicate1": 1,
100 "duplicate2": 1,
101}
102
103func (x EnumType2) Enum() *EnumType2 {
104 p := new(EnumType2)
105 *p = x
106 return p
107}
108
109func (x EnumType2) String() string {
110 return proto.EnumName(EnumType2_name, int32(x))
111}
112
113func (x *EnumType2) UnmarshalJSON(data []byte) error {
114 value, err := proto.UnmarshalJSONEnum(EnumType2_value, data, "EnumType2")
115 if err != nil {
116 return err
117 }
118 *x = EnumType2(value)
119 return nil
120}
121
122func (EnumType2) EnumDescriptor() ([]byte, []int) {
123 return fileDescriptor_de9f68860d540858, []int{1}
124}
125
126// NestedEnumType1A comment.
127type EnumContainerMessage1_NestedEnumType1A int32
128
129const (
130 // NestedEnumType1A_VALUE comment.
131 EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
132)
133
Joe Tsaib6405bd2018-11-15 14:44:37 -0800134type xxx_EnumContainerMessage1_NestedEnumType1A EnumContainerMessage1_NestedEnumType1A
135
136func (e EnumContainerMessage1_NestedEnumType1A) ProtoReflect() protoreflect.Enum {
137 return (xxx_EnumContainerMessage1_NestedEnumType1A)(e)
138}
139func (e xxx_EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
140 return xxx_Enum_ProtoFile_EnumTypes[2]
141}
142func (e xxx_EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
143 return protoreflect.EnumNumber(e)
144}
145
Damien Neil46abb572018-09-07 12:45:37 -0700146var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{
147 0: "NESTED_1A_VALUE",
148}
149
150var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{
151 "NESTED_1A_VALUE": 0,
152}
153
154func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
155 p := new(EnumContainerMessage1_NestedEnumType1A)
156 *p = x
157 return p
158}
159
160func (x EnumContainerMessage1_NestedEnumType1A) String() string {
161 return proto.EnumName(EnumContainerMessage1_NestedEnumType1A_name, int32(x))
162}
163
164func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(data []byte) error {
165 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1A_value, data, "EnumContainerMessage1_NestedEnumType1A")
166 if err != nil {
167 return err
168 }
169 *x = EnumContainerMessage1_NestedEnumType1A(value)
170 return nil
171}
172
173func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
174 return fileDescriptor_de9f68860d540858, []int{0, 0}
175}
176
177type EnumContainerMessage1_NestedEnumType1B int32
178
179const (
180 EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
181)
182
Joe Tsaib6405bd2018-11-15 14:44:37 -0800183type xxx_EnumContainerMessage1_NestedEnumType1B EnumContainerMessage1_NestedEnumType1B
184
185func (e EnumContainerMessage1_NestedEnumType1B) ProtoReflect() protoreflect.Enum {
186 return (xxx_EnumContainerMessage1_NestedEnumType1B)(e)
187}
188func (e xxx_EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
189 return xxx_Enum_ProtoFile_EnumTypes[3]
190}
191func (e xxx_EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
192 return protoreflect.EnumNumber(e)
193}
194
Damien Neil46abb572018-09-07 12:45:37 -0700195var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{
196 0: "NESTED_1B_VALUE",
197}
198
199var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
200 "NESTED_1B_VALUE": 0,
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 proto.EnumName(EnumContainerMessage1_NestedEnumType1B_name, int32(x))
211}
212
213func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(data []byte) error {
214 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1B_value, data, "EnumContainerMessage1_NestedEnumType1B")
215 if err != nil {
216 return err
217 }
218 *x = EnumContainerMessage1_NestedEnumType1B(value)
219 return nil
220}
221
222func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
223 return fileDescriptor_de9f68860d540858, []int{0, 1}
224}
225
Damien Neil46abb572018-09-07 12:45:37 -0700226// NestedEnumType2A comment.
227type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
228
229const (
230 // NestedEnumType2A_VALUE comment.
231 EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
232)
233
Joe Tsaib6405bd2018-11-15 14:44:37 -0800234type xxx_EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A
235
236func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) ProtoReflect() protoreflect.Enum {
237 return (xxx_EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(e)
238}
239func (e xxx_EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
240 return xxx_Enum_ProtoFile_EnumTypes[4]
241}
242func (e xxx_EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
243 return protoreflect.EnumNumber(e)
244}
245
Damien Neil46abb572018-09-07 12:45:37 -0700246var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{
247 0: "NESTED_2A_VALUE",
248}
249
250var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
251 "NESTED_2A_VALUE": 0,
252}
253
254func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
255 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)
256 *p = x
257 return p
258}
259
260func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
261 return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, int32(x))
262}
263
264func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(data []byte) error {
265 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A")
266 if err != nil {
267 return err
268 }
269 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(value)
270 return nil
271}
272
273func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
274 return fileDescriptor_de9f68860d540858, []int{0, 0, 0}
275}
276
277type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
278
279const (
280 EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
281)
282
Joe Tsaib6405bd2018-11-15 14:44:37 -0800283type xxx_EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B
284
285func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) ProtoReflect() protoreflect.Enum {
286 return (xxx_EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(e)
287}
288func (e xxx_EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
289 return xxx_Enum_ProtoFile_EnumTypes[5]
290}
291func (e xxx_EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
292 return protoreflect.EnumNumber(e)
293}
294
Damien Neil46abb572018-09-07 12:45:37 -0700295var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{
296 0: "NESTED_2B_VALUE",
297}
298
299var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
300 "NESTED_2B_VALUE": 0,
301}
302
303func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
304 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)
305 *p = x
306 return p
307}
308
309func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
310 return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, int32(x))
311}
312
313func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(data []byte) error {
314 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B")
315 if err != nil {
316 return err
317 }
318 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(value)
319 return nil
320}
321
322func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
323 return fileDescriptor_de9f68860d540858, []int{0, 0, 1}
324}
325
Damien Neilce36f8d2018-09-13 15:19:08 -0700326type EnumContainerMessage1 struct {
Damien Neila485fbd2018-10-26 13:28:37 -0700327 DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
328 DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
329 XXX_NoUnkeyedLiteral struct{} `json:"-"`
330 XXX_unrecognized []byte `json:"-"`
331 XXX_sizecache int32 `json:"-"`
Damien Neilce36f8d2018-09-13 15:19:08 -0700332}
333
Joe Tsaib6405bd2018-11-15 14:44:37 -0800334type xxx_EnumContainerMessage1 struct{ m *EnumContainerMessage1 }
335
336func (m *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
337 return xxx_EnumContainerMessage1{m}
338}
339func (m xxx_EnumContainerMessage1) Type() protoreflect.MessageType {
340 return xxx_Enum_ProtoFile_MessageTypes[0].Type
341}
342func (m xxx_EnumContainerMessage1) KnownFields() protoreflect.KnownFields {
343 return xxx_Enum_ProtoFile_MessageTypes[0].KnownFieldsOf(m.m)
344}
345func (m xxx_EnumContainerMessage1) UnknownFields() protoreflect.UnknownFields {
346 return xxx_Enum_ProtoFile_MessageTypes[0].UnknownFieldsOf(m.m)
347}
348func (m xxx_EnumContainerMessage1) Interface() protoreflect.ProtoMessage {
349 return m.m
350}
351func (m xxx_EnumContainerMessage1) ProtoMutable() {}
352
Damien Neilce36f8d2018-09-13 15:19:08 -0700353func (m *EnumContainerMessage1) Reset() { *m = EnumContainerMessage1{} }
354func (m *EnumContainerMessage1) String() string { return proto.CompactTextString(m) }
355func (*EnumContainerMessage1) ProtoMessage() {}
356func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
357 return fileDescriptor_de9f68860d540858, []int{0}
358}
Damien Neil993c04d2018-09-14 15:41:11 -0700359
Damien Neilce36f8d2018-09-13 15:19:08 -0700360func (m *EnumContainerMessage1) XXX_Unmarshal(b []byte) error {
361 return xxx_messageInfo_EnumContainerMessage1.Unmarshal(m, b)
362}
363func (m *EnumContainerMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
364 return xxx_messageInfo_EnumContainerMessage1.Marshal(b, m, deterministic)
365}
366func (m *EnumContainerMessage1) XXX_Merge(src proto.Message) {
367 xxx_messageInfo_EnumContainerMessage1.Merge(m, src)
368}
369func (m *EnumContainerMessage1) XXX_Size() int {
370 return xxx_messageInfo_EnumContainerMessage1.Size(m)
371}
372func (m *EnumContainerMessage1) XXX_DiscardUnknown() {
373 xxx_messageInfo_EnumContainerMessage1.DiscardUnknown(m)
374}
375
376var xxx_messageInfo_EnumContainerMessage1 proto.InternalMessageInfo
377
Damien Neila485fbd2018-10-26 13:28:37 -0700378const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
379const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
380
381func (m *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
382 if m != nil && m.DefaultDuplicate1 != nil {
383 return *m.DefaultDuplicate1
384 }
385 return Default_EnumContainerMessage1_DefaultDuplicate1
386}
387
388func (m *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
389 if m != nil && m.DefaultDuplicate2 != nil {
390 return *m.DefaultDuplicate2
391 }
392 return Default_EnumContainerMessage1_DefaultDuplicate2
393}
394
Damien Neil46abb572018-09-07 12:45:37 -0700395type EnumContainerMessage1_EnumContainerMessage2 struct {
Damien Neil658051b2018-09-10 12:26:21 -0700396 XXX_NoUnkeyedLiteral struct{} `json:"-"`
397 XXX_unrecognized []byte `json:"-"`
398 XXX_sizecache int32 `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700399}
400
Joe Tsaib6405bd2018-11-15 14:44:37 -0800401type xxx_EnumContainerMessage1_EnumContainerMessage2 struct {
402 m *EnumContainerMessage1_EnumContainerMessage2
403}
404
405func (m *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
406 return xxx_EnumContainerMessage1_EnumContainerMessage2{m}
407}
408func (m xxx_EnumContainerMessage1_EnumContainerMessage2) Type() protoreflect.MessageType {
409 return xxx_Enum_ProtoFile_MessageTypes[1].Type
410}
411func (m xxx_EnumContainerMessage1_EnumContainerMessage2) KnownFields() protoreflect.KnownFields {
412 return xxx_Enum_ProtoFile_MessageTypes[1].KnownFieldsOf(m.m)
413}
414func (m xxx_EnumContainerMessage1_EnumContainerMessage2) UnknownFields() protoreflect.UnknownFields {
415 return xxx_Enum_ProtoFile_MessageTypes[1].UnknownFieldsOf(m.m)
416}
417func (m xxx_EnumContainerMessage1_EnumContainerMessage2) Interface() protoreflect.ProtoMessage {
418 return m.m
419}
420func (m xxx_EnumContainerMessage1_EnumContainerMessage2) ProtoMutable() {}
421
Damien Neila1c6abc2018-09-12 13:36:34 -0700422func (m *EnumContainerMessage1_EnumContainerMessage2) Reset() {
423 *m = EnumContainerMessage1_EnumContainerMessage2{}
424}
425func (m *EnumContainerMessage1_EnumContainerMessage2) String() string {
426 return proto.CompactTextString(m)
427}
428func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
429func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
430 return fileDescriptor_de9f68860d540858, []int{0, 0}
431}
Damien Neil993c04d2018-09-14 15:41:11 -0700432
Damien Neila1c6abc2018-09-12 13:36:34 -0700433func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Unmarshal(b []byte) error {
434 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Unmarshal(m, b)
435}
436func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
437 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Marshal(b, m, deterministic)
438}
439func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Merge(src proto.Message) {
440 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Merge(m, src)
441}
442func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Size() int {
443 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Size(m)
444}
445func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_DiscardUnknown() {
446 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.DiscardUnknown(m)
447}
448
449var xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2 proto.InternalMessageInfo
450
Damien Neil46abb572018-09-07 12:45:37 -0700451func init() {
Joe Tsai9667c482018-12-05 15:42:52 -0800452 proto.RegisterFile("proto2/enum.proto", fileDescriptor_de9f68860d540858)
Damien Neil46abb572018-09-07 12:45:37 -0700453 proto.RegisterEnum("goproto.protoc.proto2.EnumType1", EnumType1_name, EnumType1_value)
454 proto.RegisterEnum("goproto.protoc.proto2.EnumType2", EnumType2_name, EnumType2_value)
455 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1A", EnumContainerMessage1_NestedEnumType1A_name, EnumContainerMessage1_NestedEnumType1A_value)
456 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1B", EnumContainerMessage1_NestedEnumType1B_name, EnumContainerMessage1_NestedEnumType1B_value)
457 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value)
458 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value)
Damien Neil154da982018-09-19 13:21:58 -0700459 proto.RegisterType((*EnumContainerMessage1)(nil), "goproto.protoc.proto2.EnumContainerMessage1")
460 proto.RegisterType((*EnumContainerMessage1_EnumContainerMessage2)(nil), "goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2")
Damien Neil46abb572018-09-07 12:45:37 -0700461}
462
Damien Neil46abb572018-09-07 12:45:37 -0700463var fileDescriptor_de9f68860d540858 = []byte{
Joe Tsaibce82b82018-12-06 09:39:03 -0800464 // 317 bytes of a gzipped FileDescriptorProto
465 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0xd0, 0xd1, 0x4b, 0xc2, 0x40,
466 0x1c, 0x07, 0xf0, 0xb6, 0x09, 0xe9, 0x3d, 0xd8, 0xb9, 0x10, 0x44, 0x08, 0x64, 0x2f, 0x85, 0xe0,
467 0xc6, 0xfd, 0x1e, 0x7b, 0x89, 0x99, 0xf7, 0x56, 0x4a, 0x6a, 0x06, 0xf5, 0x20, 0xe7, 0x76, 0x5e,
468 0x03, 0x77, 0x27, 0xee, 0x2e, 0xe8, 0x9f, 0xe8, 0x6f, 0x0e, 0x5d, 0xcc, 0x45, 0x2b, 0xe8, 0x69,
469 0xdf, 0xdf, 0x6f, 0xdf, 0x7d, 0x60, 0x3f, 0xd4, 0xda, 0xee, 0x94, 0x56, 0x10, 0x70, 0x69, 0x52,
470 0xff, 0x90, 0xdd, 0xb6, 0x50, 0x87, 0x90, 0x8f, 0x51, 0xfe, 0x00, 0xef, 0xc3, 0x41, 0x6d, 0x2a,
471 0x4d, 0x7a, 0xab, 0xa4, 0x66, 0x89, 0xe4, 0xbb, 0x7b, 0x9e, 0x65, 0x4c, 0x70, 0xe2, 0xbe, 0x20,
472 0x37, 0xe6, 0x6b, 0x66, 0x36, 0x7a, 0x19, 0x9b, 0xed, 0x26, 0x89, 0x98, 0xe6, 0xa4, 0x63, 0xf5,
473 0xac, 0xab, 0x26, 0xf4, 0xfc, 0x4a, 0xcd, 0xdf, 0x4b, 0xf3, 0xf7, 0x2d, 0x87, 0x6b, 0x74, 0xfc,
474 0x66, 0xda, 0xfa, 0x72, 0x46, 0xc5, 0xaa, 0x12, 0x87, 0x8e, 0xfd, 0x6f, 0x1c, 0x7e, 0xe2, 0xd0,
475 0x4d, 0xaa, 0x7f, 0x09, 0xbc, 0x4b, 0x84, 0xc7, 0x3c, 0xd3, 0x3c, 0x2e, 0xa8, 0xd0, 0x3d, 0x47,
476 0x67, 0x63, 0x3a, 0x9b, 0xd3, 0xd1, 0x12, 0xc2, 0xe5, 0x22, 0xbc, 0x7b, 0xa4, 0xf8, 0xa4, 0xa2,
477 0x38, 0x2c, 0x17, 0x87, 0xbf, 0x17, 0x49, 0x59, 0x24, 0x7f, 0x88, 0xa4, 0x2c, 0x92, 0x42, 0xec,
478 0x5f, 0xa0, 0x46, 0x51, 0x71, 0x4f, 0x91, 0x33, 0x19, 0x53, 0x6c, 0xed, 0xc3, 0xfc, 0x69, 0x82,
479 0xed, 0xfe, 0xc3, 0xf1, 0x35, 0xb8, 0x4d, 0x54, 0x3a, 0x33, 0xb6, 0xbe, 0xcd, 0x80, 0xad, 0xae,
480 0x8d, 0x2d, 0xaf, 0x56, 0xb7, 0xb1, 0xed, 0xd5, 0xea, 0x0e, 0x76, 0xfa, 0x8d, 0x29, 0x9d, 0xd1,
481 0xe9, 0x82, 0x8e, 0xc8, 0x31, 0xc2, 0x30, 0x7c, 0xbe, 0x11, 0x89, 0x7e, 0x35, 0x2b, 0x3f, 0x52,
482 0x69, 0x20, 0xd4, 0x86, 0x49, 0x11, 0x1c, 0x6e, 0xbe, 0x32, 0xeb, 0xe0, 0x0d, 0x82, 0x28, 0x8d,
483 0xf3, 0x39, 0x1a, 0x08, 0x2e, 0x07, 0x42, 0x05, 0x9a, 0x67, 0x3a, 0x66, 0x9a, 0xe5, 0x6b, 0xf8,
484 0x0c, 0x00, 0x00, 0xff, 0xff, 0x8c, 0xcb, 0xe0, 0x01, 0x70, 0x02, 0x00, 0x00,
Damien Neil46abb572018-09-07 12:45:37 -0700485}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800486
487func init() {
488 xxx_Enum_ProtoFile_FileDesc.Enums = xxx_Enum_ProtoFile_EnumDescs[0:2]
489 xxx_Enum_ProtoFile_FileDesc.Messages = xxx_Enum_ProtoFile_MessageDescs[0:1]
490 xxx_Enum_ProtoFile_MessageDescs[0].Enums = xxx_Enum_ProtoFile_EnumDescs[2:4]
491 xxx_Enum_ProtoFile_MessageDescs[0].Messages = xxx_Enum_ProtoFile_MessageDescs[1:2]
492 xxx_Enum_ProtoFile_MessageDescs[1].Enums = xxx_Enum_ProtoFile_EnumDescs[4:6]
493 xxx_Enum_ProtoFile_MessageDescs[0].Fields[0].EnumType = xxx_Enum_ProtoFile_EnumTypes[1]
494 xxx_Enum_ProtoFile_MessageDescs[0].Fields[1].EnumType = xxx_Enum_ProtoFile_EnumTypes[1]
495 var err error
496 Enum_ProtoFile, err = prototype.NewFile(&xxx_Enum_ProtoFile_FileDesc)
497 if err != nil {
498 panic(err)
499 }
500}
501
502const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
503
504var Enum_ProtoFile protoreflect.FileDescriptor
505
506var xxx_Enum_ProtoFile_FileDesc = prototype.File{
507 Syntax: protoreflect.Proto2,
508 Path: "proto2/enum.proto",
509 Package: "goproto.protoc.proto2",
510}
511var xxx_Enum_ProtoFile_EnumTypes = [6]protoreflect.EnumType{
512 prototype.GoEnum(
513 xxx_Enum_ProtoFile_EnumDescs[0].Reference(),
514 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
515 return EnumType1(n)
516 },
517 ),
518 prototype.GoEnum(
519 xxx_Enum_ProtoFile_EnumDescs[1].Reference(),
520 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
521 return EnumType2(n)
522 },
523 ),
524 prototype.GoEnum(
525 xxx_Enum_ProtoFile_EnumDescs[2].Reference(),
526 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
527 return EnumContainerMessage1_NestedEnumType1A(n)
528 },
529 ),
530 prototype.GoEnum(
531 xxx_Enum_ProtoFile_EnumDescs[3].Reference(),
532 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
533 return EnumContainerMessage1_NestedEnumType1B(n)
534 },
535 ),
536 prototype.GoEnum(
537 xxx_Enum_ProtoFile_EnumDescs[4].Reference(),
538 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
539 return EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(n)
540 },
541 ),
542 prototype.GoEnum(
543 xxx_Enum_ProtoFile_EnumDescs[5].Reference(),
544 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
545 return EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(n)
546 },
547 ),
548}
549var xxx_Enum_ProtoFile_EnumDescs = [6]prototype.Enum{
550 {
551 Name: "EnumType1",
552 Values: []prototype.EnumValue{
553 {Name: "ONE", Number: 1},
554 {Name: "TWO", Number: 2},
555 },
556 },
557 {
558 Name: "EnumType2",
559 Values: []prototype.EnumValue{
560 {Name: "duplicate1", Number: 1},
561 {Name: "duplicate2", Number: 1},
562 },
Joe Tsaibce82b82018-12-06 09:39:03 -0800563 ReservedNames: []protoreflect.Name{"RESERVED1", "RESERVED2"},
564 ReservedRanges: [][2]protoreflect.EnumNumber{{2, 2}, {3, 3}},
Joe Tsaib6405bd2018-11-15 14:44:37 -0800565 },
566 {
567 Name: "NestedEnumType1A",
568 Values: []prototype.EnumValue{
569 {Name: "NESTED_1A_VALUE", Number: 0},
570 },
571 },
572 {
573 Name: "NestedEnumType1B",
574 Values: []prototype.EnumValue{
575 {Name: "NESTED_1B_VALUE", Number: 0},
576 },
577 },
578 {
579 Name: "NestedEnumType2A",
580 Values: []prototype.EnumValue{
581 {Name: "NESTED_2A_VALUE", Number: 0},
582 },
583 },
584 {
585 Name: "NestedEnumType2B",
586 Values: []prototype.EnumValue{
587 {Name: "NESTED_2B_VALUE", Number: 0},
588 },
589 },
590}
591var xxx_Enum_ProtoFile_MessageTypes = [2]protoimpl.MessageType{
592 {Type: prototype.GoMessage(
593 xxx_Enum_ProtoFile_MessageDescs[0].Reference(),
594 func(protoreflect.MessageType) protoreflect.ProtoMessage {
595 return new(EnumContainerMessage1)
596 },
597 )},
598 {Type: prototype.GoMessage(
599 xxx_Enum_ProtoFile_MessageDescs[1].Reference(),
600 func(protoreflect.MessageType) protoreflect.ProtoMessage {
601 return new(EnumContainerMessage1_EnumContainerMessage2)
602 },
603 )},
604}
605var xxx_Enum_ProtoFile_MessageDescs = [2]prototype.Message{
606 {
607 Name: "EnumContainerMessage1",
608 Fields: []prototype.Field{
609 {
610 Name: "default_duplicate1",
611 Number: 1,
612 Cardinality: protoreflect.Optional,
613 Kind: protoreflect.EnumKind,
614 JSONName: "defaultDuplicate1",
615 Default: protoreflect.ValueOf(string("duplicate1")),
616 },
617 {
618 Name: "default_duplicate2",
619 Number: 2,
620 Cardinality: protoreflect.Optional,
621 Kind: protoreflect.EnumKind,
622 JSONName: "defaultDuplicate2",
623 Default: protoreflect.ValueOf(string("duplicate2")),
624 },
625 },
626 },
627 {
628 Name: "EnumContainerMessage2",
629 },
630}