blob: 866e157ee8e90e0bcb68190cfc25f0c92699020e [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 Tsaicf81e672019-02-28 14:08:31 -08008 protoapi "github.com/golang/protobuf/protoapi"
Joe Tsaib6405bd2018-11-15 14:44:37 -08009 protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
Joe Tsaib6405bd2018-11-15 14:44:37 -080010 protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
Damien Neil8012b442019-01-18 09:32:24 -080011 reflect "reflect"
Damien Neil1ec33152018-09-13 13:12:36 -070012)
13
Damien Neild4127922018-09-12 11:13:49 -070014// This is a compile-time assertion to ensure that this generated file
15// is compatible with the proto package it is being compiled against.
16// A compilation error at this line likely means your copy of the
17// proto package needs to be updated.
Joe Tsaid7e97bc2018-11-26 12:57:27 -080018const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
Damien Neild4127922018-09-12 11:13:49 -070019
Damien Neil46abb572018-09-07 12:45:37 -070020// EnumType1 comment.
21type EnumType1 int32
22
23const (
24 // EnumType1_ONE comment.
25 EnumType1_ONE EnumType1 = 1
26 // EnumType1_TWO comment.
27 EnumType1_TWO EnumType1 = 2
28)
29
Damien Neila8593ba2019-01-08 16:18:07 -080030func (e EnumType1) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -080031 return xxx_File_proto2_enum_proto_enumTypes[0]
Joe Tsaib6405bd2018-11-15 14:44:37 -080032}
Damien Neila8593ba2019-01-08 16:18:07 -080033func (e EnumType1) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -080034 return protoreflect.EnumNumber(e)
35}
36
Damien Neil46abb572018-09-07 12:45:37 -070037var EnumType1_name = map[int32]string{
38 1: "ONE",
39 2: "TWO",
40}
41
42var EnumType1_value = map[string]int32{
43 "ONE": 1,
44 "TWO": 2,
45}
46
47func (x EnumType1) Enum() *EnumType1 {
48 p := new(EnumType1)
49 *p = x
50 return p
51}
52
53func (x EnumType1) String() string {
54 return proto.EnumName(EnumType1_name, int32(x))
55}
56
57func (x *EnumType1) UnmarshalJSON(data []byte) error {
58 value, err := proto.UnmarshalJSONEnum(EnumType1_value, data, "EnumType1")
59 if err != nil {
60 return err
61 }
62 *x = EnumType1(value)
63 return nil
64}
65
66func (EnumType1) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -080067 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0}
Damien Neil46abb572018-09-07 12:45:37 -070068}
69
70type EnumType2 int32
71
72const (
73 EnumType2_duplicate1 EnumType2 = 1
74 EnumType2_duplicate2 EnumType2 = 1
75)
76
Damien Neila8593ba2019-01-08 16:18:07 -080077func (e EnumType2) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -080078 return xxx_File_proto2_enum_proto_enumTypes[1]
Joe Tsaib6405bd2018-11-15 14:44:37 -080079}
Damien Neila8593ba2019-01-08 16:18:07 -080080func (e EnumType2) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -080081 return protoreflect.EnumNumber(e)
82}
83
Damien Neil46abb572018-09-07 12:45:37 -070084var EnumType2_name = map[int32]string{
85 1: "duplicate1",
86 // Duplicate value: 1: "duplicate2",
87}
88
89var EnumType2_value = map[string]int32{
90 "duplicate1": 1,
91 "duplicate2": 1,
92}
93
94func (x EnumType2) Enum() *EnumType2 {
95 p := new(EnumType2)
96 *p = x
97 return p
98}
99
100func (x EnumType2) String() string {
101 return proto.EnumName(EnumType2_name, int32(x))
102}
103
104func (x *EnumType2) UnmarshalJSON(data []byte) error {
105 value, err := proto.UnmarshalJSONEnum(EnumType2_value, data, "EnumType2")
106 if err != nil {
107 return err
108 }
109 *x = EnumType2(value)
110 return nil
111}
112
113func (EnumType2) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800114 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{1}
Damien Neil46abb572018-09-07 12:45:37 -0700115}
116
117// NestedEnumType1A comment.
118type EnumContainerMessage1_NestedEnumType1A int32
119
120const (
121 // NestedEnumType1A_VALUE comment.
122 EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
123)
124
Damien Neila8593ba2019-01-08 16:18:07 -0800125func (e EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800126 return xxx_File_proto2_enum_proto_enumTypes[2]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800127}
Damien Neila8593ba2019-01-08 16:18:07 -0800128func (e EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800129 return protoreflect.EnumNumber(e)
130}
131
Damien Neil46abb572018-09-07 12:45:37 -0700132var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{
133 0: "NESTED_1A_VALUE",
134}
135
136var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{
137 "NESTED_1A_VALUE": 0,
138}
139
140func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
141 p := new(EnumContainerMessage1_NestedEnumType1A)
142 *p = x
143 return p
144}
145
146func (x EnumContainerMessage1_NestedEnumType1A) String() string {
147 return proto.EnumName(EnumContainerMessage1_NestedEnumType1A_name, int32(x))
148}
149
150func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(data []byte) error {
151 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1A_value, data, "EnumContainerMessage1_NestedEnumType1A")
152 if err != nil {
153 return err
154 }
155 *x = EnumContainerMessage1_NestedEnumType1A(value)
156 return nil
157}
158
159func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800160 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700161}
162
163type EnumContainerMessage1_NestedEnumType1B int32
164
165const (
166 EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
167)
168
Damien Neila8593ba2019-01-08 16:18:07 -0800169func (e EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800170 return xxx_File_proto2_enum_proto_enumTypes[3]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800171}
Damien Neila8593ba2019-01-08 16:18:07 -0800172func (e EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800173 return protoreflect.EnumNumber(e)
174}
175
Damien Neil46abb572018-09-07 12:45:37 -0700176var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{
177 0: "NESTED_1B_VALUE",
178}
179
180var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
181 "NESTED_1B_VALUE": 0,
182}
183
184func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
185 p := new(EnumContainerMessage1_NestedEnumType1B)
186 *p = x
187 return p
188}
189
190func (x EnumContainerMessage1_NestedEnumType1B) String() string {
191 return proto.EnumName(EnumContainerMessage1_NestedEnumType1B_name, int32(x))
192}
193
194func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(data []byte) error {
195 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1B_value, data, "EnumContainerMessage1_NestedEnumType1B")
196 if err != nil {
197 return err
198 }
199 *x = EnumContainerMessage1_NestedEnumType1B(value)
200 return nil
201}
202
203func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800204 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700205}
206
Damien Neil46abb572018-09-07 12:45:37 -0700207// NestedEnumType2A comment.
208type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
209
210const (
211 // NestedEnumType2A_VALUE comment.
212 EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
213)
214
Damien Neila8593ba2019-01-08 16:18:07 -0800215func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800216 return xxx_File_proto2_enum_proto_enumTypes[4]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800217}
Damien Neila8593ba2019-01-08 16:18:07 -0800218func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800219 return protoreflect.EnumNumber(e)
220}
221
Damien Neil46abb572018-09-07 12:45:37 -0700222var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{
223 0: "NESTED_2A_VALUE",
224}
225
226var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
227 "NESTED_2A_VALUE": 0,
228}
229
230func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
231 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)
232 *p = x
233 return p
234}
235
236func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
237 return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, int32(x))
238}
239
240func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(data []byte) error {
241 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A")
242 if err != nil {
243 return err
244 }
245 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(value)
246 return nil
247}
248
249func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800250 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0, 0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700251}
252
253type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
254
255const (
256 EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
257)
258
Damien Neila8593ba2019-01-08 16:18:07 -0800259func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800260 return xxx_File_proto2_enum_proto_enumTypes[5]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800261}
Damien Neila8593ba2019-01-08 16:18:07 -0800262func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800263 return protoreflect.EnumNumber(e)
264}
265
Damien Neil46abb572018-09-07 12:45:37 -0700266var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{
267 0: "NESTED_2B_VALUE",
268}
269
270var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
271 "NESTED_2B_VALUE": 0,
272}
273
274func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
275 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)
276 *p = x
277 return p
278}
279
280func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
281 return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, int32(x))
282}
283
284func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(data []byte) error {
285 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B")
286 if err != nil {
287 return err
288 }
289 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(value)
290 return nil
291}
292
293func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800294 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0, 0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700295}
296
Damien Neilce36f8d2018-09-13 15:19:08 -0700297type EnumContainerMessage1 struct {
Damien Neila485fbd2018-10-26 13:28:37 -0700298 DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
299 DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
300 XXX_NoUnkeyedLiteral struct{} `json:"-"`
301 XXX_unrecognized []byte `json:"-"`
302 XXX_sizecache int32 `json:"-"`
Damien Neilce36f8d2018-09-13 15:19:08 -0700303}
304
Joe Tsaib6405bd2018-11-15 14:44:37 -0800305func (m *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
Joe Tsai40692112019-02-27 20:25:51 -0800306 return xxx_File_proto2_enum_proto_messageTypes[0].MessageOf(m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800307}
Damien Neilce36f8d2018-09-13 15:19:08 -0700308func (m *EnumContainerMessage1) Reset() { *m = EnumContainerMessage1{} }
309func (m *EnumContainerMessage1) String() string { return proto.CompactTextString(m) }
310func (*EnumContainerMessage1) ProtoMessage() {}
311func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800312 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0}
Damien Neilce36f8d2018-09-13 15:19:08 -0700313}
Damien Neil993c04d2018-09-14 15:41:11 -0700314
Damien Neilce36f8d2018-09-13 15:19:08 -0700315func (m *EnumContainerMessage1) XXX_Unmarshal(b []byte) error {
316 return xxx_messageInfo_EnumContainerMessage1.Unmarshal(m, b)
317}
318func (m *EnumContainerMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
319 return xxx_messageInfo_EnumContainerMessage1.Marshal(b, m, deterministic)
320}
321func (m *EnumContainerMessage1) XXX_Merge(src proto.Message) {
322 xxx_messageInfo_EnumContainerMessage1.Merge(m, src)
323}
324func (m *EnumContainerMessage1) XXX_Size() int {
325 return xxx_messageInfo_EnumContainerMessage1.Size(m)
326}
327func (m *EnumContainerMessage1) XXX_DiscardUnknown() {
328 xxx_messageInfo_EnumContainerMessage1.DiscardUnknown(m)
329}
330
331var xxx_messageInfo_EnumContainerMessage1 proto.InternalMessageInfo
332
Damien Neila485fbd2018-10-26 13:28:37 -0700333const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
334const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
335
336func (m *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
337 if m != nil && m.DefaultDuplicate1 != nil {
338 return *m.DefaultDuplicate1
339 }
340 return Default_EnumContainerMessage1_DefaultDuplicate1
341}
342
343func (m *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
344 if m != nil && m.DefaultDuplicate2 != nil {
345 return *m.DefaultDuplicate2
346 }
347 return Default_EnumContainerMessage1_DefaultDuplicate2
348}
349
Damien Neil46abb572018-09-07 12:45:37 -0700350type EnumContainerMessage1_EnumContainerMessage2 struct {
Damien Neil658051b2018-09-10 12:26:21 -0700351 XXX_NoUnkeyedLiteral struct{} `json:"-"`
352 XXX_unrecognized []byte `json:"-"`
353 XXX_sizecache int32 `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700354}
355
Joe Tsaib6405bd2018-11-15 14:44:37 -0800356func (m *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
Joe Tsai40692112019-02-27 20:25:51 -0800357 return xxx_File_proto2_enum_proto_messageTypes[1].MessageOf(m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800358}
Damien Neila1c6abc2018-09-12 13:36:34 -0700359func (m *EnumContainerMessage1_EnumContainerMessage2) Reset() {
360 *m = EnumContainerMessage1_EnumContainerMessage2{}
361}
362func (m *EnumContainerMessage1_EnumContainerMessage2) String() string {
363 return proto.CompactTextString(m)
364}
365func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
366func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800367 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0, 0}
Damien Neila1c6abc2018-09-12 13:36:34 -0700368}
Damien Neil993c04d2018-09-14 15:41:11 -0700369
Damien Neila1c6abc2018-09-12 13:36:34 -0700370func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Unmarshal(b []byte) error {
371 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Unmarshal(m, b)
372}
373func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
374 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Marshal(b, m, deterministic)
375}
376func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Merge(src proto.Message) {
377 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Merge(m, src)
378}
379func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Size() int {
380 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Size(m)
381}
382func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_DiscardUnknown() {
383 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.DiscardUnknown(m)
384}
385
386var xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2 proto.InternalMessageInfo
387
Damien Neil46abb572018-09-07 12:45:37 -0700388func init() {
Joe Tsai40692112019-02-27 20:25:51 -0800389 proto.RegisterFile("proto2/enum.proto", xxx_File_proto2_enum_proto_rawdesc_gzipped)
Damien Neil46abb572018-09-07 12:45:37 -0700390 proto.RegisterEnum("goproto.protoc.proto2.EnumType1", EnumType1_name, EnumType1_value)
391 proto.RegisterEnum("goproto.protoc.proto2.EnumType2", EnumType2_name, EnumType2_value)
392 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1A", EnumContainerMessage1_NestedEnumType1A_name, EnumContainerMessage1_NestedEnumType1A_value)
393 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1B", EnumContainerMessage1_NestedEnumType1B_name, EnumContainerMessage1_NestedEnumType1B_value)
394 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value)
395 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value)
Damien Neil154da982018-09-19 13:21:58 -0700396 proto.RegisterType((*EnumContainerMessage1)(nil), "goproto.protoc.proto2.EnumContainerMessage1")
397 proto.RegisterType((*EnumContainerMessage1_EnumContainerMessage2)(nil), "goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2")
Damien Neil46abb572018-09-07 12:45:37 -0700398}
399
Joe Tsai40692112019-02-27 20:25:51 -0800400var xxx_File_proto2_enum_proto_rawdesc = []byte{
Damien Neil8012b442019-01-18 09:32:24 -0800401 // 624 bytes of the wire-encoded FileDescriptorProto
402 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
403 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
404 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45,
405 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73,
406 0x61, 0x67, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
407 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
408 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
409 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70,
410 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11,
411 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65,
412 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70,
413 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,
414 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
415 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a,
416 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66,
417 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69,
418 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d,
419 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65,
420 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e,
421 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00,
422 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79,
423 0x70, 0x65, 0x32, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32,
424 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73,
425 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a,
426 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45,
427 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
428 0x54, 0x79, 0x70, 0x65, 0x31, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44,
429 0x5f, 0x31, 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45,
430 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10,
431 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e,
432 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
433 0x63, 0x61, 0x74, 0x65, 0x31, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
434 0x63, 0x61, 0x74, 0x65, 0x32, 0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10,
435 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45,
436 0x44, 0x31, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x41, 0x5a,
437 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61,
438 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x63,
439 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f,
440 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
Damien Neil46abb572018-09-07 12:45:37 -0700441}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800442
Joe Tsai40692112019-02-27 20:25:51 -0800443var xxx_File_proto2_enum_proto_rawdesc_gzipped = protoapi.CompressGZIP(xxx_File_proto2_enum_proto_rawdesc)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800444
445const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
446
Joe Tsai40692112019-02-27 20:25:51 -0800447var File_proto2_enum_proto protoreflect.FileDescriptor
Joe Tsaib6405bd2018-11-15 14:44:37 -0800448
Damien Neil6bb8dec2019-03-01 13:22:30 -0800449var xxx_File_proto2_enum_proto_enumTypes = make([]protoreflect.EnumType, 6)
450var xxx_File_proto2_enum_proto_messageTypes = make([]protoimpl.MessageType, 2)
Joe Tsai40692112019-02-27 20:25:51 -0800451var xxx_File_proto2_enum_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800452 (EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
453 (EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
454 (EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
455 (EnumContainerMessage1_NestedEnumType1B)(0), // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B
456 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A
457 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B
458 (*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1
459 (*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800460}
Joe Tsai40692112019-02-27 20:25:51 -0800461var xxx_File_proto2_enum_proto_depIdxs = []int32{
Damien Neil8012b442019-01-18 09:32:24 -0800462 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2
463 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800464}
Damien Neil8012b442019-01-18 09:32:24 -0800465
466func init() {
Damien Neil6bb8dec2019-03-01 13:22:30 -0800467 messageTypes := make([]protoreflect.MessageType, 2)
Joe Tsai40692112019-02-27 20:25:51 -0800468 File_proto2_enum_proto = protoimpl.FileBuilder{
469 RawDescriptor: xxx_File_proto2_enum_proto_rawdesc,
470 GoTypes: xxx_File_proto2_enum_proto_goTypes,
471 DependencyIndexes: xxx_File_proto2_enum_proto_depIdxs,
Damien Neil6bb8dec2019-03-01 13:22:30 -0800472 EnumOutputTypes: xxx_File_proto2_enum_proto_enumTypes,
473 MessageOutputTypes: messageTypes,
Damien Neil8012b442019-01-18 09:32:24 -0800474 }.Init()
Joe Tsai40692112019-02-27 20:25:51 -0800475 messageGoTypes := xxx_File_proto2_enum_proto_goTypes[6:][:2]
Damien Neil6bb8dec2019-03-01 13:22:30 -0800476 for i, mt := range messageTypes {
Joe Tsai40692112019-02-27 20:25:51 -0800477 xxx_File_proto2_enum_proto_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i])
478 xxx_File_proto2_enum_proto_messageTypes[i].PBType = mt
Damien Neil8012b442019-01-18 09:32:24 -0800479 }
Joe Tsai40692112019-02-27 20:25:51 -0800480 xxx_File_proto2_enum_proto_goTypes = nil
481 xxx_File_proto2_enum_proto_depIdxs = nil
Joe Tsaib6405bd2018-11-15 14:44:37 -0800482}