blob: c0a6614fd0fbaf98c40f0ec8d2fc9ba93b6b0858 [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
Damien Neila8593ba2019-01-08 16:18:07 -080029func (e EnumType1) Type() protoreflect.EnumType {
Joe Tsai5681bb22019-01-09 21:31:15 -080030 return xxx_Enum_protoFile_EnumTypes[0]
Joe Tsaib6405bd2018-11-15 14:44:37 -080031}
Damien Neila8593ba2019-01-08 16:18:07 -080032func (e EnumType1) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -080033 return protoreflect.EnumNumber(e)
34}
35
Damien Neil46abb572018-09-07 12:45:37 -070036var EnumType1_name = map[int32]string{
37 1: "ONE",
38 2: "TWO",
39}
40
41var EnumType1_value = map[string]int32{
42 "ONE": 1,
43 "TWO": 2,
44}
45
46func (x EnumType1) Enum() *EnumType1 {
47 p := new(EnumType1)
48 *p = x
49 return p
50}
51
52func (x EnumType1) String() string {
53 return proto.EnumName(EnumType1_name, int32(x))
54}
55
56func (x *EnumType1) UnmarshalJSON(data []byte) error {
57 value, err := proto.UnmarshalJSONEnum(EnumType1_value, data, "EnumType1")
58 if err != nil {
59 return err
60 }
61 *x = EnumType1(value)
62 return nil
63}
64
65func (EnumType1) EnumDescriptor() ([]byte, []int) {
66 return fileDescriptor_de9f68860d540858, []int{0}
67}
68
69type EnumType2 int32
70
71const (
72 EnumType2_duplicate1 EnumType2 = 1
73 EnumType2_duplicate2 EnumType2 = 1
74)
75
Damien Neila8593ba2019-01-08 16:18:07 -080076func (e EnumType2) Type() protoreflect.EnumType {
Joe Tsai5681bb22019-01-09 21:31:15 -080077 return xxx_Enum_protoFile_EnumTypes[1]
Joe Tsaib6405bd2018-11-15 14:44:37 -080078}
Damien Neila8593ba2019-01-08 16:18:07 -080079func (e EnumType2) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -080080 return protoreflect.EnumNumber(e)
81}
82
Damien Neil46abb572018-09-07 12:45:37 -070083var EnumType2_name = map[int32]string{
84 1: "duplicate1",
85 // Duplicate value: 1: "duplicate2",
86}
87
88var EnumType2_value = map[string]int32{
89 "duplicate1": 1,
90 "duplicate2": 1,
91}
92
93func (x EnumType2) Enum() *EnumType2 {
94 p := new(EnumType2)
95 *p = x
96 return p
97}
98
99func (x EnumType2) String() string {
100 return proto.EnumName(EnumType2_name, int32(x))
101}
102
103func (x *EnumType2) UnmarshalJSON(data []byte) error {
104 value, err := proto.UnmarshalJSONEnum(EnumType2_value, data, "EnumType2")
105 if err != nil {
106 return err
107 }
108 *x = EnumType2(value)
109 return nil
110}
111
112func (EnumType2) EnumDescriptor() ([]byte, []int) {
113 return fileDescriptor_de9f68860d540858, []int{1}
114}
115
116// NestedEnumType1A comment.
117type EnumContainerMessage1_NestedEnumType1A int32
118
119const (
120 // NestedEnumType1A_VALUE comment.
121 EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
122)
123
Damien Neila8593ba2019-01-08 16:18:07 -0800124func (e EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
Joe Tsai5681bb22019-01-09 21:31:15 -0800125 return xxx_Enum_protoFile_EnumTypes[2]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800126}
Damien Neila8593ba2019-01-08 16:18:07 -0800127func (e EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800128 return protoreflect.EnumNumber(e)
129}
130
Damien Neil46abb572018-09-07 12:45:37 -0700131var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{
132 0: "NESTED_1A_VALUE",
133}
134
135var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{
136 "NESTED_1A_VALUE": 0,
137}
138
139func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
140 p := new(EnumContainerMessage1_NestedEnumType1A)
141 *p = x
142 return p
143}
144
145func (x EnumContainerMessage1_NestedEnumType1A) String() string {
146 return proto.EnumName(EnumContainerMessage1_NestedEnumType1A_name, int32(x))
147}
148
149func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(data []byte) error {
150 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1A_value, data, "EnumContainerMessage1_NestedEnumType1A")
151 if err != nil {
152 return err
153 }
154 *x = EnumContainerMessage1_NestedEnumType1A(value)
155 return nil
156}
157
158func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
159 return fileDescriptor_de9f68860d540858, []int{0, 0}
160}
161
162type EnumContainerMessage1_NestedEnumType1B int32
163
164const (
165 EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
166)
167
Damien Neila8593ba2019-01-08 16:18:07 -0800168func (e EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
Joe Tsai5681bb22019-01-09 21:31:15 -0800169 return xxx_Enum_protoFile_EnumTypes[3]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800170}
Damien Neila8593ba2019-01-08 16:18:07 -0800171func (e EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800172 return protoreflect.EnumNumber(e)
173}
174
Damien Neil46abb572018-09-07 12:45:37 -0700175var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{
176 0: "NESTED_1B_VALUE",
177}
178
179var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
180 "NESTED_1B_VALUE": 0,
181}
182
183func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
184 p := new(EnumContainerMessage1_NestedEnumType1B)
185 *p = x
186 return p
187}
188
189func (x EnumContainerMessage1_NestedEnumType1B) String() string {
190 return proto.EnumName(EnumContainerMessage1_NestedEnumType1B_name, int32(x))
191}
192
193func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(data []byte) error {
194 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1B_value, data, "EnumContainerMessage1_NestedEnumType1B")
195 if err != nil {
196 return err
197 }
198 *x = EnumContainerMessage1_NestedEnumType1B(value)
199 return nil
200}
201
202func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
203 return fileDescriptor_de9f68860d540858, []int{0, 1}
204}
205
Damien Neil46abb572018-09-07 12:45:37 -0700206// NestedEnumType2A comment.
207type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
208
209const (
210 // NestedEnumType2A_VALUE comment.
211 EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
212)
213
Damien Neila8593ba2019-01-08 16:18:07 -0800214func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
Joe Tsai5681bb22019-01-09 21:31:15 -0800215 return xxx_Enum_protoFile_EnumTypes[4]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800216}
Damien Neila8593ba2019-01-08 16:18:07 -0800217func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800218 return protoreflect.EnumNumber(e)
219}
220
Damien Neil46abb572018-09-07 12:45:37 -0700221var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{
222 0: "NESTED_2A_VALUE",
223}
224
225var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
226 "NESTED_2A_VALUE": 0,
227}
228
229func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
230 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)
231 *p = x
232 return p
233}
234
235func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
236 return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, int32(x))
237}
238
239func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(data []byte) error {
240 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A")
241 if err != nil {
242 return err
243 }
244 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(value)
245 return nil
246}
247
248func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
249 return fileDescriptor_de9f68860d540858, []int{0, 0, 0}
250}
251
252type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
253
254const (
255 EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
256)
257
Damien Neila8593ba2019-01-08 16:18:07 -0800258func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
Joe Tsai5681bb22019-01-09 21:31:15 -0800259 return xxx_Enum_protoFile_EnumTypes[5]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800260}
Damien Neila8593ba2019-01-08 16:18:07 -0800261func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800262 return protoreflect.EnumNumber(e)
263}
264
Damien Neil46abb572018-09-07 12:45:37 -0700265var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{
266 0: "NESTED_2B_VALUE",
267}
268
269var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
270 "NESTED_2B_VALUE": 0,
271}
272
273func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
274 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)
275 *p = x
276 return p
277}
278
279func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
280 return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, int32(x))
281}
282
283func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(data []byte) error {
284 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B")
285 if err != nil {
286 return err
287 }
288 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(value)
289 return nil
290}
291
292func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
293 return fileDescriptor_de9f68860d540858, []int{0, 0, 1}
294}
295
Damien Neilce36f8d2018-09-13 15:19:08 -0700296type EnumContainerMessage1 struct {
Damien Neila485fbd2018-10-26 13:28:37 -0700297 DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
298 DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
299 XXX_NoUnkeyedLiteral struct{} `json:"-"`
300 XXX_unrecognized []byte `json:"-"`
301 XXX_sizecache int32 `json:"-"`
Damien Neilce36f8d2018-09-13 15:19:08 -0700302}
303
Joe Tsaib6405bd2018-11-15 14:44:37 -0800304type xxx_EnumContainerMessage1 struct{ m *EnumContainerMessage1 }
305
306func (m *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
307 return xxx_EnumContainerMessage1{m}
308}
309func (m xxx_EnumContainerMessage1) Type() protoreflect.MessageType {
Joe Tsai5681bb22019-01-09 21:31:15 -0800310 return xxx_Enum_protoFile_MessageTypes[0].Type
Joe Tsaib6405bd2018-11-15 14:44:37 -0800311}
312func (m xxx_EnumContainerMessage1) KnownFields() protoreflect.KnownFields {
Joe Tsai5681bb22019-01-09 21:31:15 -0800313 return xxx_Enum_protoFile_MessageTypes[0].KnownFieldsOf(m.m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800314}
315func (m xxx_EnumContainerMessage1) UnknownFields() protoreflect.UnknownFields {
Joe Tsai5681bb22019-01-09 21:31:15 -0800316 return xxx_Enum_protoFile_MessageTypes[0].UnknownFieldsOf(m.m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800317}
318func (m xxx_EnumContainerMessage1) Interface() protoreflect.ProtoMessage {
319 return m.m
320}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800321
Damien Neilce36f8d2018-09-13 15:19:08 -0700322func (m *EnumContainerMessage1) Reset() { *m = EnumContainerMessage1{} }
323func (m *EnumContainerMessage1) String() string { return proto.CompactTextString(m) }
324func (*EnumContainerMessage1) ProtoMessage() {}
325func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
326 return fileDescriptor_de9f68860d540858, []int{0}
327}
Damien Neil993c04d2018-09-14 15:41:11 -0700328
Damien Neilce36f8d2018-09-13 15:19:08 -0700329func (m *EnumContainerMessage1) XXX_Unmarshal(b []byte) error {
330 return xxx_messageInfo_EnumContainerMessage1.Unmarshal(m, b)
331}
332func (m *EnumContainerMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
333 return xxx_messageInfo_EnumContainerMessage1.Marshal(b, m, deterministic)
334}
335func (m *EnumContainerMessage1) XXX_Merge(src proto.Message) {
336 xxx_messageInfo_EnumContainerMessage1.Merge(m, src)
337}
338func (m *EnumContainerMessage1) XXX_Size() int {
339 return xxx_messageInfo_EnumContainerMessage1.Size(m)
340}
341func (m *EnumContainerMessage1) XXX_DiscardUnknown() {
342 xxx_messageInfo_EnumContainerMessage1.DiscardUnknown(m)
343}
344
345var xxx_messageInfo_EnumContainerMessage1 proto.InternalMessageInfo
346
Damien Neila485fbd2018-10-26 13:28:37 -0700347const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
348const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
349
350func (m *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
351 if m != nil && m.DefaultDuplicate1 != nil {
352 return *m.DefaultDuplicate1
353 }
354 return Default_EnumContainerMessage1_DefaultDuplicate1
355}
356
357func (m *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
358 if m != nil && m.DefaultDuplicate2 != nil {
359 return *m.DefaultDuplicate2
360 }
361 return Default_EnumContainerMessage1_DefaultDuplicate2
362}
363
Damien Neil46abb572018-09-07 12:45:37 -0700364type EnumContainerMessage1_EnumContainerMessage2 struct {
Damien Neil658051b2018-09-10 12:26:21 -0700365 XXX_NoUnkeyedLiteral struct{} `json:"-"`
366 XXX_unrecognized []byte `json:"-"`
367 XXX_sizecache int32 `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700368}
369
Joe Tsaib6405bd2018-11-15 14:44:37 -0800370type xxx_EnumContainerMessage1_EnumContainerMessage2 struct {
371 m *EnumContainerMessage1_EnumContainerMessage2
372}
373
374func (m *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
375 return xxx_EnumContainerMessage1_EnumContainerMessage2{m}
376}
377func (m xxx_EnumContainerMessage1_EnumContainerMessage2) Type() protoreflect.MessageType {
Joe Tsai5681bb22019-01-09 21:31:15 -0800378 return xxx_Enum_protoFile_MessageTypes[1].Type
Joe Tsaib6405bd2018-11-15 14:44:37 -0800379}
380func (m xxx_EnumContainerMessage1_EnumContainerMessage2) KnownFields() protoreflect.KnownFields {
Joe Tsai5681bb22019-01-09 21:31:15 -0800381 return xxx_Enum_protoFile_MessageTypes[1].KnownFieldsOf(m.m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800382}
383func (m xxx_EnumContainerMessage1_EnumContainerMessage2) UnknownFields() protoreflect.UnknownFields {
Joe Tsai5681bb22019-01-09 21:31:15 -0800384 return xxx_Enum_protoFile_MessageTypes[1].UnknownFieldsOf(m.m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800385}
386func (m xxx_EnumContainerMessage1_EnumContainerMessage2) Interface() protoreflect.ProtoMessage {
387 return m.m
388}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800389
Damien Neila1c6abc2018-09-12 13:36:34 -0700390func (m *EnumContainerMessage1_EnumContainerMessage2) Reset() {
391 *m = EnumContainerMessage1_EnumContainerMessage2{}
392}
393func (m *EnumContainerMessage1_EnumContainerMessage2) String() string {
394 return proto.CompactTextString(m)
395}
396func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
397func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
398 return fileDescriptor_de9f68860d540858, []int{0, 0}
399}
Damien Neil993c04d2018-09-14 15:41:11 -0700400
Damien Neila1c6abc2018-09-12 13:36:34 -0700401func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Unmarshal(b []byte) error {
402 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Unmarshal(m, b)
403}
404func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
405 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Marshal(b, m, deterministic)
406}
407func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Merge(src proto.Message) {
408 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Merge(m, src)
409}
410func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Size() int {
411 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Size(m)
412}
413func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_DiscardUnknown() {
414 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.DiscardUnknown(m)
415}
416
417var xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2 proto.InternalMessageInfo
418
Damien Neil46abb572018-09-07 12:45:37 -0700419func init() {
Joe Tsai9667c482018-12-05 15:42:52 -0800420 proto.RegisterFile("proto2/enum.proto", fileDescriptor_de9f68860d540858)
Damien Neil46abb572018-09-07 12:45:37 -0700421 proto.RegisterEnum("goproto.protoc.proto2.EnumType1", EnumType1_name, EnumType1_value)
422 proto.RegisterEnum("goproto.protoc.proto2.EnumType2", EnumType2_name, EnumType2_value)
423 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1A", EnumContainerMessage1_NestedEnumType1A_name, EnumContainerMessage1_NestedEnumType1A_value)
424 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1B", EnumContainerMessage1_NestedEnumType1B_name, EnumContainerMessage1_NestedEnumType1B_value)
425 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value)
426 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value)
Damien Neil154da982018-09-19 13:21:58 -0700427 proto.RegisterType((*EnumContainerMessage1)(nil), "goproto.protoc.proto2.EnumContainerMessage1")
428 proto.RegisterType((*EnumContainerMessage1_EnumContainerMessage2)(nil), "goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2")
Damien Neil46abb572018-09-07 12:45:37 -0700429}
430
Damien Neil46abb572018-09-07 12:45:37 -0700431var fileDescriptor_de9f68860d540858 = []byte{
Joe Tsaibce82b82018-12-06 09:39:03 -0800432 // 317 bytes of a gzipped FileDescriptorProto
433 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0xd0, 0xd1, 0x4b, 0xc2, 0x40,
434 0x1c, 0x07, 0xf0, 0xb6, 0x09, 0xe9, 0x3d, 0xd8, 0xb9, 0x10, 0x44, 0x08, 0x64, 0x2f, 0x85, 0xe0,
435 0xc6, 0xfd, 0x1e, 0x7b, 0x89, 0x99, 0xf7, 0x56, 0x4a, 0x6a, 0x06, 0xf5, 0x20, 0xe7, 0x76, 0x5e,
436 0x03, 0x77, 0x27, 0xee, 0x2e, 0xe8, 0x9f, 0xe8, 0x6f, 0x0e, 0x5d, 0xcc, 0x45, 0x2b, 0xe8, 0x69,
437 0xdf, 0xdf, 0x6f, 0xdf, 0x7d, 0x60, 0x3f, 0xd4, 0xda, 0xee, 0x94, 0x56, 0x10, 0x70, 0x69, 0x52,
438 0xff, 0x90, 0xdd, 0xb6, 0x50, 0x87, 0x90, 0x8f, 0x51, 0xfe, 0x00, 0xef, 0xc3, 0x41, 0x6d, 0x2a,
439 0x4d, 0x7a, 0xab, 0xa4, 0x66, 0x89, 0xe4, 0xbb, 0x7b, 0x9e, 0x65, 0x4c, 0x70, 0xe2, 0xbe, 0x20,
440 0x37, 0xe6, 0x6b, 0x66, 0x36, 0x7a, 0x19, 0x9b, 0xed, 0x26, 0x89, 0x98, 0xe6, 0xa4, 0x63, 0xf5,
441 0xac, 0xab, 0x26, 0xf4, 0xfc, 0x4a, 0xcd, 0xdf, 0x4b, 0xf3, 0xf7, 0x2d, 0x87, 0x6b, 0x74, 0xfc,
442 0x66, 0xda, 0xfa, 0x72, 0x46, 0xc5, 0xaa, 0x12, 0x87, 0x8e, 0xfd, 0x6f, 0x1c, 0x7e, 0xe2, 0xd0,
443 0x4d, 0xaa, 0x7f, 0x09, 0xbc, 0x4b, 0x84, 0xc7, 0x3c, 0xd3, 0x3c, 0x2e, 0xa8, 0xd0, 0x3d, 0x47,
444 0x67, 0x63, 0x3a, 0x9b, 0xd3, 0xd1, 0x12, 0xc2, 0xe5, 0x22, 0xbc, 0x7b, 0xa4, 0xf8, 0xa4, 0xa2,
445 0x38, 0x2c, 0x17, 0x87, 0xbf, 0x17, 0x49, 0x59, 0x24, 0x7f, 0x88, 0xa4, 0x2c, 0x92, 0x42, 0xec,
446 0x5f, 0xa0, 0x46, 0x51, 0x71, 0x4f, 0x91, 0x33, 0x19, 0x53, 0x6c, 0xed, 0xc3, 0xfc, 0x69, 0x82,
447 0xed, 0xfe, 0xc3, 0xf1, 0x35, 0xb8, 0x4d, 0x54, 0x3a, 0x33, 0xb6, 0xbe, 0xcd, 0x80, 0xad, 0xae,
448 0x8d, 0x2d, 0xaf, 0x56, 0xb7, 0xb1, 0xed, 0xd5, 0xea, 0x0e, 0x76, 0xfa, 0x8d, 0x29, 0x9d, 0xd1,
449 0xe9, 0x82, 0x8e, 0xc8, 0x31, 0xc2, 0x30, 0x7c, 0xbe, 0x11, 0x89, 0x7e, 0x35, 0x2b, 0x3f, 0x52,
450 0x69, 0x20, 0xd4, 0x86, 0x49, 0x11, 0x1c, 0x6e, 0xbe, 0x32, 0xeb, 0xe0, 0x0d, 0x82, 0x28, 0x8d,
451 0xf3, 0x39, 0x1a, 0x08, 0x2e, 0x07, 0x42, 0x05, 0x9a, 0x67, 0x3a, 0x66, 0x9a, 0xe5, 0x6b, 0xf8,
452 0x0c, 0x00, 0x00, 0xff, 0xff, 0x8c, 0xcb, 0xe0, 0x01, 0x70, 0x02, 0x00, 0x00,
Damien Neil46abb572018-09-07 12:45:37 -0700453}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800454
455func init() {
Joe Tsai5681bb22019-01-09 21:31:15 -0800456 xxx_Enum_protoFile_FileDesc.Enums = xxx_Enum_protoFile_EnumDescs[0:2]
457 xxx_Enum_protoFile_FileDesc.Messages = xxx_Enum_protoFile_MessageDescs[0:1]
458 xxx_Enum_protoFile_MessageDescs[0].Enums = xxx_Enum_protoFile_EnumDescs[2:4]
459 xxx_Enum_protoFile_MessageDescs[0].Messages = xxx_Enum_protoFile_MessageDescs[1:2]
460 xxx_Enum_protoFile_MessageDescs[1].Enums = xxx_Enum_protoFile_EnumDescs[4:6]
461 xxx_Enum_protoFile_MessageDescs[0].Fields[0].EnumType = xxx_Enum_protoFile_EnumTypes[1]
462 xxx_Enum_protoFile_MessageDescs[0].Fields[1].EnumType = xxx_Enum_protoFile_EnumTypes[1]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800463 var err error
Joe Tsai5681bb22019-01-09 21:31:15 -0800464 Enum_protoFile, err = prototype.NewFile(&xxx_Enum_protoFile_FileDesc)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800465 if err != nil {
466 panic(err)
467 }
468}
469
470const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
471
Joe Tsai5681bb22019-01-09 21:31:15 -0800472var Enum_protoFile protoreflect.FileDescriptor
Joe Tsaib6405bd2018-11-15 14:44:37 -0800473
Joe Tsai5681bb22019-01-09 21:31:15 -0800474var xxx_Enum_protoFile_FileDesc = prototype.File{
Joe Tsaib6405bd2018-11-15 14:44:37 -0800475 Syntax: protoreflect.Proto2,
476 Path: "proto2/enum.proto",
477 Package: "goproto.protoc.proto2",
478}
Joe Tsai5681bb22019-01-09 21:31:15 -0800479var xxx_Enum_protoFile_EnumTypes = [6]protoreflect.EnumType{
Joe Tsaib6405bd2018-11-15 14:44:37 -0800480 prototype.GoEnum(
Joe Tsai5681bb22019-01-09 21:31:15 -0800481 xxx_Enum_protoFile_EnumDescs[0].Reference(),
Damien Neila8593ba2019-01-08 16:18:07 -0800482 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800483 return EnumType1(n)
484 },
485 ),
486 prototype.GoEnum(
Joe Tsai5681bb22019-01-09 21:31:15 -0800487 xxx_Enum_protoFile_EnumDescs[1].Reference(),
Damien Neila8593ba2019-01-08 16:18:07 -0800488 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800489 return EnumType2(n)
490 },
491 ),
492 prototype.GoEnum(
Joe Tsai5681bb22019-01-09 21:31:15 -0800493 xxx_Enum_protoFile_EnumDescs[2].Reference(),
Damien Neila8593ba2019-01-08 16:18:07 -0800494 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800495 return EnumContainerMessage1_NestedEnumType1A(n)
496 },
497 ),
498 prototype.GoEnum(
Joe Tsai5681bb22019-01-09 21:31:15 -0800499 xxx_Enum_protoFile_EnumDescs[3].Reference(),
Damien Neila8593ba2019-01-08 16:18:07 -0800500 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800501 return EnumContainerMessage1_NestedEnumType1B(n)
502 },
503 ),
504 prototype.GoEnum(
Joe Tsai5681bb22019-01-09 21:31:15 -0800505 xxx_Enum_protoFile_EnumDescs[4].Reference(),
Damien Neila8593ba2019-01-08 16:18:07 -0800506 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800507 return EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(n)
508 },
509 ),
510 prototype.GoEnum(
Joe Tsai5681bb22019-01-09 21:31:15 -0800511 xxx_Enum_protoFile_EnumDescs[5].Reference(),
Damien Neila8593ba2019-01-08 16:18:07 -0800512 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800513 return EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(n)
514 },
515 ),
516}
Joe Tsai5681bb22019-01-09 21:31:15 -0800517var xxx_Enum_protoFile_EnumDescs = [6]prototype.Enum{
Joe Tsaib6405bd2018-11-15 14:44:37 -0800518 {
519 Name: "EnumType1",
520 Values: []prototype.EnumValue{
521 {Name: "ONE", Number: 1},
522 {Name: "TWO", Number: 2},
523 },
524 },
525 {
526 Name: "EnumType2",
527 Values: []prototype.EnumValue{
528 {Name: "duplicate1", Number: 1},
529 {Name: "duplicate2", Number: 1},
530 },
Joe Tsaibce82b82018-12-06 09:39:03 -0800531 ReservedNames: []protoreflect.Name{"RESERVED1", "RESERVED2"},
532 ReservedRanges: [][2]protoreflect.EnumNumber{{2, 2}, {3, 3}},
Joe Tsaib6405bd2018-11-15 14:44:37 -0800533 },
534 {
535 Name: "NestedEnumType1A",
536 Values: []prototype.EnumValue{
537 {Name: "NESTED_1A_VALUE", Number: 0},
538 },
539 },
540 {
541 Name: "NestedEnumType1B",
542 Values: []prototype.EnumValue{
543 {Name: "NESTED_1B_VALUE", Number: 0},
544 },
545 },
546 {
547 Name: "NestedEnumType2A",
548 Values: []prototype.EnumValue{
549 {Name: "NESTED_2A_VALUE", Number: 0},
550 },
551 },
552 {
553 Name: "NestedEnumType2B",
554 Values: []prototype.EnumValue{
555 {Name: "NESTED_2B_VALUE", Number: 0},
556 },
557 },
558}
Joe Tsai5681bb22019-01-09 21:31:15 -0800559var xxx_Enum_protoFile_MessageTypes = [2]protoimpl.MessageType{
Joe Tsaib6405bd2018-11-15 14:44:37 -0800560 {Type: prototype.GoMessage(
Joe Tsai5681bb22019-01-09 21:31:15 -0800561 xxx_Enum_protoFile_MessageDescs[0].Reference(),
Joe Tsai3bc7d6f2019-01-09 02:57:13 -0800562 func(protoreflect.MessageType) protoreflect.Message {
563 return xxx_EnumContainerMessage1{new(EnumContainerMessage1)}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800564 },
565 )},
566 {Type: prototype.GoMessage(
Joe Tsai5681bb22019-01-09 21:31:15 -0800567 xxx_Enum_protoFile_MessageDescs[1].Reference(),
Joe Tsai3bc7d6f2019-01-09 02:57:13 -0800568 func(protoreflect.MessageType) protoreflect.Message {
569 return xxx_EnumContainerMessage1_EnumContainerMessage2{new(EnumContainerMessage1_EnumContainerMessage2)}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800570 },
571 )},
572}
Joe Tsai5681bb22019-01-09 21:31:15 -0800573var xxx_Enum_protoFile_MessageDescs = [2]prototype.Message{
Joe Tsaib6405bd2018-11-15 14:44:37 -0800574 {
575 Name: "EnumContainerMessage1",
576 Fields: []prototype.Field{
577 {
578 Name: "default_duplicate1",
579 Number: 1,
580 Cardinality: protoreflect.Optional,
581 Kind: protoreflect.EnumKind,
582 JSONName: "defaultDuplicate1",
583 Default: protoreflect.ValueOf(string("duplicate1")),
Damien Neil232ea152018-12-10 15:14:36 -0800584 IsPacked: prototype.False,
Joe Tsaib6405bd2018-11-15 14:44:37 -0800585 },
586 {
587 Name: "default_duplicate2",
588 Number: 2,
589 Cardinality: protoreflect.Optional,
590 Kind: protoreflect.EnumKind,
591 JSONName: "defaultDuplicate2",
592 Default: protoreflect.ValueOf(string("duplicate2")),
Damien Neil232ea152018-12-10 15:14:36 -0800593 IsPacked: prototype.False,
Joe Tsaib6405bd2018-11-15 14:44:37 -0800594 },
595 },
596 },
597 {
598 Name: "EnumContainerMessage2",
599 },
600}