blob: f5d0dd43866e4a46cad424e58c337c80b1d75140 [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}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800351
Damien Neilce36f8d2018-09-13 15:19:08 -0700352func (m *EnumContainerMessage1) Reset() { *m = EnumContainerMessage1{} }
353func (m *EnumContainerMessage1) String() string { return proto.CompactTextString(m) }
354func (*EnumContainerMessage1) ProtoMessage() {}
355func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
356 return fileDescriptor_de9f68860d540858, []int{0}
357}
Damien Neil993c04d2018-09-14 15:41:11 -0700358
Damien Neilce36f8d2018-09-13 15:19:08 -0700359func (m *EnumContainerMessage1) XXX_Unmarshal(b []byte) error {
360 return xxx_messageInfo_EnumContainerMessage1.Unmarshal(m, b)
361}
362func (m *EnumContainerMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
363 return xxx_messageInfo_EnumContainerMessage1.Marshal(b, m, deterministic)
364}
365func (m *EnumContainerMessage1) XXX_Merge(src proto.Message) {
366 xxx_messageInfo_EnumContainerMessage1.Merge(m, src)
367}
368func (m *EnumContainerMessage1) XXX_Size() int {
369 return xxx_messageInfo_EnumContainerMessage1.Size(m)
370}
371func (m *EnumContainerMessage1) XXX_DiscardUnknown() {
372 xxx_messageInfo_EnumContainerMessage1.DiscardUnknown(m)
373}
374
375var xxx_messageInfo_EnumContainerMessage1 proto.InternalMessageInfo
376
Damien Neila485fbd2018-10-26 13:28:37 -0700377const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
378const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
379
380func (m *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
381 if m != nil && m.DefaultDuplicate1 != nil {
382 return *m.DefaultDuplicate1
383 }
384 return Default_EnumContainerMessage1_DefaultDuplicate1
385}
386
387func (m *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
388 if m != nil && m.DefaultDuplicate2 != nil {
389 return *m.DefaultDuplicate2
390 }
391 return Default_EnumContainerMessage1_DefaultDuplicate2
392}
393
Damien Neil46abb572018-09-07 12:45:37 -0700394type EnumContainerMessage1_EnumContainerMessage2 struct {
Damien Neil658051b2018-09-10 12:26:21 -0700395 XXX_NoUnkeyedLiteral struct{} `json:"-"`
396 XXX_unrecognized []byte `json:"-"`
397 XXX_sizecache int32 `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700398}
399
Joe Tsaib6405bd2018-11-15 14:44:37 -0800400type xxx_EnumContainerMessage1_EnumContainerMessage2 struct {
401 m *EnumContainerMessage1_EnumContainerMessage2
402}
403
404func (m *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
405 return xxx_EnumContainerMessage1_EnumContainerMessage2{m}
406}
407func (m xxx_EnumContainerMessage1_EnumContainerMessage2) Type() protoreflect.MessageType {
408 return xxx_Enum_ProtoFile_MessageTypes[1].Type
409}
410func (m xxx_EnumContainerMessage1_EnumContainerMessage2) KnownFields() protoreflect.KnownFields {
411 return xxx_Enum_ProtoFile_MessageTypes[1].KnownFieldsOf(m.m)
412}
413func (m xxx_EnumContainerMessage1_EnumContainerMessage2) UnknownFields() protoreflect.UnknownFields {
414 return xxx_Enum_ProtoFile_MessageTypes[1].UnknownFieldsOf(m.m)
415}
416func (m xxx_EnumContainerMessage1_EnumContainerMessage2) Interface() protoreflect.ProtoMessage {
417 return m.m
418}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800419
Damien Neila1c6abc2018-09-12 13:36:34 -0700420func (m *EnumContainerMessage1_EnumContainerMessage2) Reset() {
421 *m = EnumContainerMessage1_EnumContainerMessage2{}
422}
423func (m *EnumContainerMessage1_EnumContainerMessage2) String() string {
424 return proto.CompactTextString(m)
425}
426func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
427func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
428 return fileDescriptor_de9f68860d540858, []int{0, 0}
429}
Damien Neil993c04d2018-09-14 15:41:11 -0700430
Damien Neila1c6abc2018-09-12 13:36:34 -0700431func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Unmarshal(b []byte) error {
432 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Unmarshal(m, b)
433}
434func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
435 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Marshal(b, m, deterministic)
436}
437func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Merge(src proto.Message) {
438 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Merge(m, src)
439}
440func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Size() int {
441 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Size(m)
442}
443func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_DiscardUnknown() {
444 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.DiscardUnknown(m)
445}
446
447var xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2 proto.InternalMessageInfo
448
Damien Neil46abb572018-09-07 12:45:37 -0700449func init() {
Joe Tsai9667c482018-12-05 15:42:52 -0800450 proto.RegisterFile("proto2/enum.proto", fileDescriptor_de9f68860d540858)
Damien Neil46abb572018-09-07 12:45:37 -0700451 proto.RegisterEnum("goproto.protoc.proto2.EnumType1", EnumType1_name, EnumType1_value)
452 proto.RegisterEnum("goproto.protoc.proto2.EnumType2", EnumType2_name, EnumType2_value)
453 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1A", EnumContainerMessage1_NestedEnumType1A_name, EnumContainerMessage1_NestedEnumType1A_value)
454 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1B", EnumContainerMessage1_NestedEnumType1B_name, EnumContainerMessage1_NestedEnumType1B_value)
455 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value)
456 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value)
Damien Neil154da982018-09-19 13:21:58 -0700457 proto.RegisterType((*EnumContainerMessage1)(nil), "goproto.protoc.proto2.EnumContainerMessage1")
458 proto.RegisterType((*EnumContainerMessage1_EnumContainerMessage2)(nil), "goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2")
Damien Neil46abb572018-09-07 12:45:37 -0700459}
460
Damien Neil46abb572018-09-07 12:45:37 -0700461var fileDescriptor_de9f68860d540858 = []byte{
Joe Tsaibce82b82018-12-06 09:39:03 -0800462 // 317 bytes of a gzipped FileDescriptorProto
463 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0xd0, 0xd1, 0x4b, 0xc2, 0x40,
464 0x1c, 0x07, 0xf0, 0xb6, 0x09, 0xe9, 0x3d, 0xd8, 0xb9, 0x10, 0x44, 0x08, 0x64, 0x2f, 0x85, 0xe0,
465 0xc6, 0xfd, 0x1e, 0x7b, 0x89, 0x99, 0xf7, 0x56, 0x4a, 0x6a, 0x06, 0xf5, 0x20, 0xe7, 0x76, 0x5e,
466 0x03, 0x77, 0x27, 0xee, 0x2e, 0xe8, 0x9f, 0xe8, 0x6f, 0x0e, 0x5d, 0xcc, 0x45, 0x2b, 0xe8, 0x69,
467 0xdf, 0xdf, 0x6f, 0xdf, 0x7d, 0x60, 0x3f, 0xd4, 0xda, 0xee, 0x94, 0x56, 0x10, 0x70, 0x69, 0x52,
468 0xff, 0x90, 0xdd, 0xb6, 0x50, 0x87, 0x90, 0x8f, 0x51, 0xfe, 0x00, 0xef, 0xc3, 0x41, 0x6d, 0x2a,
469 0x4d, 0x7a, 0xab, 0xa4, 0x66, 0x89, 0xe4, 0xbb, 0x7b, 0x9e, 0x65, 0x4c, 0x70, 0xe2, 0xbe, 0x20,
470 0x37, 0xe6, 0x6b, 0x66, 0x36, 0x7a, 0x19, 0x9b, 0xed, 0x26, 0x89, 0x98, 0xe6, 0xa4, 0x63, 0xf5,
471 0xac, 0xab, 0x26, 0xf4, 0xfc, 0x4a, 0xcd, 0xdf, 0x4b, 0xf3, 0xf7, 0x2d, 0x87, 0x6b, 0x74, 0xfc,
472 0x66, 0xda, 0xfa, 0x72, 0x46, 0xc5, 0xaa, 0x12, 0x87, 0x8e, 0xfd, 0x6f, 0x1c, 0x7e, 0xe2, 0xd0,
473 0x4d, 0xaa, 0x7f, 0x09, 0xbc, 0x4b, 0x84, 0xc7, 0x3c, 0xd3, 0x3c, 0x2e, 0xa8, 0xd0, 0x3d, 0x47,
474 0x67, 0x63, 0x3a, 0x9b, 0xd3, 0xd1, 0x12, 0xc2, 0xe5, 0x22, 0xbc, 0x7b, 0xa4, 0xf8, 0xa4, 0xa2,
475 0x38, 0x2c, 0x17, 0x87, 0xbf, 0x17, 0x49, 0x59, 0x24, 0x7f, 0x88, 0xa4, 0x2c, 0x92, 0x42, 0xec,
476 0x5f, 0xa0, 0x46, 0x51, 0x71, 0x4f, 0x91, 0x33, 0x19, 0x53, 0x6c, 0xed, 0xc3, 0xfc, 0x69, 0x82,
477 0xed, 0xfe, 0xc3, 0xf1, 0x35, 0xb8, 0x4d, 0x54, 0x3a, 0x33, 0xb6, 0xbe, 0xcd, 0x80, 0xad, 0xae,
478 0x8d, 0x2d, 0xaf, 0x56, 0xb7, 0xb1, 0xed, 0xd5, 0xea, 0x0e, 0x76, 0xfa, 0x8d, 0x29, 0x9d, 0xd1,
479 0xe9, 0x82, 0x8e, 0xc8, 0x31, 0xc2, 0x30, 0x7c, 0xbe, 0x11, 0x89, 0x7e, 0x35, 0x2b, 0x3f, 0x52,
480 0x69, 0x20, 0xd4, 0x86, 0x49, 0x11, 0x1c, 0x6e, 0xbe, 0x32, 0xeb, 0xe0, 0x0d, 0x82, 0x28, 0x8d,
481 0xf3, 0x39, 0x1a, 0x08, 0x2e, 0x07, 0x42, 0x05, 0x9a, 0x67, 0x3a, 0x66, 0x9a, 0xe5, 0x6b, 0xf8,
482 0x0c, 0x00, 0x00, 0xff, 0xff, 0x8c, 0xcb, 0xe0, 0x01, 0x70, 0x02, 0x00, 0x00,
Damien Neil46abb572018-09-07 12:45:37 -0700483}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800484
485func init() {
486 xxx_Enum_ProtoFile_FileDesc.Enums = xxx_Enum_ProtoFile_EnumDescs[0:2]
487 xxx_Enum_ProtoFile_FileDesc.Messages = xxx_Enum_ProtoFile_MessageDescs[0:1]
488 xxx_Enum_ProtoFile_MessageDescs[0].Enums = xxx_Enum_ProtoFile_EnumDescs[2:4]
489 xxx_Enum_ProtoFile_MessageDescs[0].Messages = xxx_Enum_ProtoFile_MessageDescs[1:2]
490 xxx_Enum_ProtoFile_MessageDescs[1].Enums = xxx_Enum_ProtoFile_EnumDescs[4:6]
491 xxx_Enum_ProtoFile_MessageDescs[0].Fields[0].EnumType = xxx_Enum_ProtoFile_EnumTypes[1]
492 xxx_Enum_ProtoFile_MessageDescs[0].Fields[1].EnumType = xxx_Enum_ProtoFile_EnumTypes[1]
493 var err error
494 Enum_ProtoFile, err = prototype.NewFile(&xxx_Enum_ProtoFile_FileDesc)
495 if err != nil {
496 panic(err)
497 }
498}
499
500const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
501
502var Enum_ProtoFile protoreflect.FileDescriptor
503
504var xxx_Enum_ProtoFile_FileDesc = prototype.File{
505 Syntax: protoreflect.Proto2,
506 Path: "proto2/enum.proto",
507 Package: "goproto.protoc.proto2",
508}
509var xxx_Enum_ProtoFile_EnumTypes = [6]protoreflect.EnumType{
510 prototype.GoEnum(
511 xxx_Enum_ProtoFile_EnumDescs[0].Reference(),
512 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
513 return EnumType1(n)
514 },
515 ),
516 prototype.GoEnum(
517 xxx_Enum_ProtoFile_EnumDescs[1].Reference(),
518 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
519 return EnumType2(n)
520 },
521 ),
522 prototype.GoEnum(
523 xxx_Enum_ProtoFile_EnumDescs[2].Reference(),
524 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
525 return EnumContainerMessage1_NestedEnumType1A(n)
526 },
527 ),
528 prototype.GoEnum(
529 xxx_Enum_ProtoFile_EnumDescs[3].Reference(),
530 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
531 return EnumContainerMessage1_NestedEnumType1B(n)
532 },
533 ),
534 prototype.GoEnum(
535 xxx_Enum_ProtoFile_EnumDescs[4].Reference(),
536 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
537 return EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(n)
538 },
539 ),
540 prototype.GoEnum(
541 xxx_Enum_ProtoFile_EnumDescs[5].Reference(),
542 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
543 return EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(n)
544 },
545 ),
546}
547var xxx_Enum_ProtoFile_EnumDescs = [6]prototype.Enum{
548 {
549 Name: "EnumType1",
550 Values: []prototype.EnumValue{
551 {Name: "ONE", Number: 1},
552 {Name: "TWO", Number: 2},
553 },
554 },
555 {
556 Name: "EnumType2",
557 Values: []prototype.EnumValue{
558 {Name: "duplicate1", Number: 1},
559 {Name: "duplicate2", Number: 1},
560 },
Joe Tsaibce82b82018-12-06 09:39:03 -0800561 ReservedNames: []protoreflect.Name{"RESERVED1", "RESERVED2"},
562 ReservedRanges: [][2]protoreflect.EnumNumber{{2, 2}, {3, 3}},
Joe Tsaib6405bd2018-11-15 14:44:37 -0800563 },
564 {
565 Name: "NestedEnumType1A",
566 Values: []prototype.EnumValue{
567 {Name: "NESTED_1A_VALUE", Number: 0},
568 },
569 },
570 {
571 Name: "NestedEnumType1B",
572 Values: []prototype.EnumValue{
573 {Name: "NESTED_1B_VALUE", Number: 0},
574 },
575 },
576 {
577 Name: "NestedEnumType2A",
578 Values: []prototype.EnumValue{
579 {Name: "NESTED_2A_VALUE", Number: 0},
580 },
581 },
582 {
583 Name: "NestedEnumType2B",
584 Values: []prototype.EnumValue{
585 {Name: "NESTED_2B_VALUE", Number: 0},
586 },
587 },
588}
589var xxx_Enum_ProtoFile_MessageTypes = [2]protoimpl.MessageType{
590 {Type: prototype.GoMessage(
591 xxx_Enum_ProtoFile_MessageDescs[0].Reference(),
592 func(protoreflect.MessageType) protoreflect.ProtoMessage {
593 return new(EnumContainerMessage1)
594 },
595 )},
596 {Type: prototype.GoMessage(
597 xxx_Enum_ProtoFile_MessageDescs[1].Reference(),
598 func(protoreflect.MessageType) protoreflect.ProtoMessage {
599 return new(EnumContainerMessage1_EnumContainerMessage2)
600 },
601 )},
602}
603var xxx_Enum_ProtoFile_MessageDescs = [2]prototype.Message{
604 {
605 Name: "EnumContainerMessage1",
606 Fields: []prototype.Field{
607 {
608 Name: "default_duplicate1",
609 Number: 1,
610 Cardinality: protoreflect.Optional,
611 Kind: protoreflect.EnumKind,
612 JSONName: "defaultDuplicate1",
613 Default: protoreflect.ValueOf(string("duplicate1")),
Damien Neil232ea152018-12-10 15:14:36 -0800614 IsPacked: prototype.False,
Joe Tsaib6405bd2018-11-15 14:44:37 -0800615 },
616 {
617 Name: "default_duplicate2",
618 Number: 2,
619 Cardinality: protoreflect.Optional,
620 Kind: protoreflect.EnumKind,
621 JSONName: "defaultDuplicate2",
622 Default: protoreflect.ValueOf(string("duplicate2")),
Damien Neil232ea152018-12-10 15:14:36 -0800623 IsPacked: prototype.False,
Joe Tsaib6405bd2018-11-15 14:44:37 -0800624 },
625 },
626 },
627 {
628 Name: "EnumContainerMessage2",
629 },
630}