blob: a18531b60a4b2620a066e5898b96acb1a112ca38 [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 Neil8012b442019-01-18 09:32:24 -08007 bytes "bytes"
8 gzip "compress/gzip"
Damien Neil1ec33152018-09-13 13:12:36 -07009 proto "github.com/golang/protobuf/proto"
Joe Tsaib6405bd2018-11-15 14:44:37 -080010 protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
Joe Tsaib6405bd2018-11-15 14:44:37 -080011 protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
Damien Neil8012b442019-01-18 09:32:24 -080012 reflect "reflect"
Damien Neil1ec33152018-09-13 13:12:36 -070013)
14
Damien Neild4127922018-09-12 11:13:49 -070015// This is a compile-time assertion to ensure that this generated file
16// is compatible with the proto package it is being compiled against.
17// A compilation error at this line likely means your copy of the
18// proto package needs to be updated.
Joe Tsaid7e97bc2018-11-26 12:57:27 -080019const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
Damien Neild4127922018-09-12 11:13:49 -070020
Damien Neil46abb572018-09-07 12:45:37 -070021// EnumType1 comment.
22type EnumType1 int32
23
24const (
25 // EnumType1_ONE comment.
26 EnumType1_ONE EnumType1 = 1
27 // EnumType1_TWO comment.
28 EnumType1_TWO EnumType1 = 2
29)
30
Damien Neila8593ba2019-01-08 16:18:07 -080031func (e EnumType1) Type() protoreflect.EnumType {
Damien Neil8012b442019-01-18 09:32:24 -080032 return xxx_Enum_protoFile_enumTypes[0]
Joe Tsaib6405bd2018-11-15 14:44:37 -080033}
Damien Neila8593ba2019-01-08 16:18:07 -080034func (e EnumType1) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -080035 return protoreflect.EnumNumber(e)
36}
37
Damien Neil46abb572018-09-07 12:45:37 -070038var EnumType1_name = map[int32]string{
39 1: "ONE",
40 2: "TWO",
41}
42
43var EnumType1_value = map[string]int32{
44 "ONE": 1,
45 "TWO": 2,
46}
47
48func (x EnumType1) Enum() *EnumType1 {
49 p := new(EnumType1)
50 *p = x
51 return p
52}
53
54func (x EnumType1) String() string {
55 return proto.EnumName(EnumType1_name, int32(x))
56}
57
58func (x *EnumType1) UnmarshalJSON(data []byte) error {
59 value, err := proto.UnmarshalJSONEnum(EnumType1_value, data, "EnumType1")
60 if err != nil {
61 return err
62 }
63 *x = EnumType1(value)
64 return nil
65}
66
67func (EnumType1) EnumDescriptor() ([]byte, []int) {
Damien Neil8012b442019-01-18 09:32:24 -080068 return fileDescriptor_de9f68860d540858_gzipped, []int{0}
Damien Neil46abb572018-09-07 12:45:37 -070069}
70
71type EnumType2 int32
72
73const (
74 EnumType2_duplicate1 EnumType2 = 1
75 EnumType2_duplicate2 EnumType2 = 1
76)
77
Damien Neila8593ba2019-01-08 16:18:07 -080078func (e EnumType2) Type() protoreflect.EnumType {
Damien Neil8012b442019-01-18 09:32:24 -080079 return xxx_Enum_protoFile_enumTypes[1]
Joe Tsaib6405bd2018-11-15 14:44:37 -080080}
Damien Neila8593ba2019-01-08 16:18:07 -080081func (e EnumType2) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -080082 return protoreflect.EnumNumber(e)
83}
84
Damien Neil46abb572018-09-07 12:45:37 -070085var EnumType2_name = map[int32]string{
86 1: "duplicate1",
87 // Duplicate value: 1: "duplicate2",
88}
89
90var EnumType2_value = map[string]int32{
91 "duplicate1": 1,
92 "duplicate2": 1,
93}
94
95func (x EnumType2) Enum() *EnumType2 {
96 p := new(EnumType2)
97 *p = x
98 return p
99}
100
101func (x EnumType2) String() string {
102 return proto.EnumName(EnumType2_name, int32(x))
103}
104
105func (x *EnumType2) UnmarshalJSON(data []byte) error {
106 value, err := proto.UnmarshalJSONEnum(EnumType2_value, data, "EnumType2")
107 if err != nil {
108 return err
109 }
110 *x = EnumType2(value)
111 return nil
112}
113
114func (EnumType2) EnumDescriptor() ([]byte, []int) {
Damien Neil8012b442019-01-18 09:32:24 -0800115 return fileDescriptor_de9f68860d540858_gzipped, []int{1}
Damien Neil46abb572018-09-07 12:45:37 -0700116}
117
118// NestedEnumType1A comment.
119type EnumContainerMessage1_NestedEnumType1A int32
120
121const (
122 // NestedEnumType1A_VALUE comment.
123 EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
124)
125
Damien Neila8593ba2019-01-08 16:18:07 -0800126func (e EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
Damien Neil8012b442019-01-18 09:32:24 -0800127 return xxx_Enum_protoFile_enumTypes[2]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800128}
Damien Neila8593ba2019-01-08 16:18:07 -0800129func (e EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800130 return protoreflect.EnumNumber(e)
131}
132
Damien Neil46abb572018-09-07 12:45:37 -0700133var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{
134 0: "NESTED_1A_VALUE",
135}
136
137var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{
138 "NESTED_1A_VALUE": 0,
139}
140
141func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
142 p := new(EnumContainerMessage1_NestedEnumType1A)
143 *p = x
144 return p
145}
146
147func (x EnumContainerMessage1_NestedEnumType1A) String() string {
148 return proto.EnumName(EnumContainerMessage1_NestedEnumType1A_name, int32(x))
149}
150
151func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(data []byte) error {
152 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1A_value, data, "EnumContainerMessage1_NestedEnumType1A")
153 if err != nil {
154 return err
155 }
156 *x = EnumContainerMessage1_NestedEnumType1A(value)
157 return nil
158}
159
160func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
Damien Neil8012b442019-01-18 09:32:24 -0800161 return fileDescriptor_de9f68860d540858_gzipped, []int{0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700162}
163
164type EnumContainerMessage1_NestedEnumType1B int32
165
166const (
167 EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
168)
169
Damien Neila8593ba2019-01-08 16:18:07 -0800170func (e EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
Damien Neil8012b442019-01-18 09:32:24 -0800171 return xxx_Enum_protoFile_enumTypes[3]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800172}
Damien Neila8593ba2019-01-08 16:18:07 -0800173func (e EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800174 return protoreflect.EnumNumber(e)
175}
176
Damien Neil46abb572018-09-07 12:45:37 -0700177var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{
178 0: "NESTED_1B_VALUE",
179}
180
181var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
182 "NESTED_1B_VALUE": 0,
183}
184
185func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
186 p := new(EnumContainerMessage1_NestedEnumType1B)
187 *p = x
188 return p
189}
190
191func (x EnumContainerMessage1_NestedEnumType1B) String() string {
192 return proto.EnumName(EnumContainerMessage1_NestedEnumType1B_name, int32(x))
193}
194
195func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(data []byte) error {
196 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1B_value, data, "EnumContainerMessage1_NestedEnumType1B")
197 if err != nil {
198 return err
199 }
200 *x = EnumContainerMessage1_NestedEnumType1B(value)
201 return nil
202}
203
204func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
Damien Neil8012b442019-01-18 09:32:24 -0800205 return fileDescriptor_de9f68860d540858_gzipped, []int{0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700206}
207
Damien Neil46abb572018-09-07 12:45:37 -0700208// NestedEnumType2A comment.
209type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
210
211const (
212 // NestedEnumType2A_VALUE comment.
213 EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
214)
215
Damien Neila8593ba2019-01-08 16:18:07 -0800216func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
Damien Neil8012b442019-01-18 09:32:24 -0800217 return xxx_Enum_protoFile_enumTypes[4]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800218}
Damien Neila8593ba2019-01-08 16:18:07 -0800219func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800220 return protoreflect.EnumNumber(e)
221}
222
Damien Neil46abb572018-09-07 12:45:37 -0700223var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{
224 0: "NESTED_2A_VALUE",
225}
226
227var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
228 "NESTED_2A_VALUE": 0,
229}
230
231func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
232 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)
233 *p = x
234 return p
235}
236
237func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
238 return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, int32(x))
239}
240
241func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(data []byte) error {
242 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A")
243 if err != nil {
244 return err
245 }
246 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(value)
247 return nil
248}
249
250func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
Damien Neil8012b442019-01-18 09:32:24 -0800251 return fileDescriptor_de9f68860d540858_gzipped, []int{0, 0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700252}
253
254type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
255
256const (
257 EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
258)
259
Damien Neila8593ba2019-01-08 16:18:07 -0800260func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
Damien Neil8012b442019-01-18 09:32:24 -0800261 return xxx_Enum_protoFile_enumTypes[5]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800262}
Damien Neila8593ba2019-01-08 16:18:07 -0800263func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800264 return protoreflect.EnumNumber(e)
265}
266
Damien Neil46abb572018-09-07 12:45:37 -0700267var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{
268 0: "NESTED_2B_VALUE",
269}
270
271var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
272 "NESTED_2B_VALUE": 0,
273}
274
275func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
276 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)
277 *p = x
278 return p
279}
280
281func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
282 return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, int32(x))
283}
284
285func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(data []byte) error {
286 value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B")
287 if err != nil {
288 return err
289 }
290 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(value)
291 return nil
292}
293
294func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
Damien Neil8012b442019-01-18 09:32:24 -0800295 return fileDescriptor_de9f68860d540858_gzipped, []int{0, 0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700296}
297
Damien Neilce36f8d2018-09-13 15:19:08 -0700298type EnumContainerMessage1 struct {
Damien Neila485fbd2018-10-26 13:28:37 -0700299 DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
300 DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
301 XXX_NoUnkeyedLiteral struct{} `json:"-"`
302 XXX_unrecognized []byte `json:"-"`
303 XXX_sizecache int32 `json:"-"`
Damien Neilce36f8d2018-09-13 15:19:08 -0700304}
305
Joe Tsaib6405bd2018-11-15 14:44:37 -0800306func (m *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
Damien Neil8012b442019-01-18 09:32:24 -0800307 return xxx_Enum_protoFile_messageTypes[0].MessageOf(m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800308}
Damien Neilce36f8d2018-09-13 15:19:08 -0700309func (m *EnumContainerMessage1) Reset() { *m = EnumContainerMessage1{} }
310func (m *EnumContainerMessage1) String() string { return proto.CompactTextString(m) }
311func (*EnumContainerMessage1) ProtoMessage() {}
312func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
Damien Neil8012b442019-01-18 09:32:24 -0800313 return fileDescriptor_de9f68860d540858_gzipped, []int{0}
Damien Neilce36f8d2018-09-13 15:19:08 -0700314}
Damien Neil993c04d2018-09-14 15:41:11 -0700315
Damien Neilce36f8d2018-09-13 15:19:08 -0700316func (m *EnumContainerMessage1) XXX_Unmarshal(b []byte) error {
317 return xxx_messageInfo_EnumContainerMessage1.Unmarshal(m, b)
318}
319func (m *EnumContainerMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
320 return xxx_messageInfo_EnumContainerMessage1.Marshal(b, m, deterministic)
321}
322func (m *EnumContainerMessage1) XXX_Merge(src proto.Message) {
323 xxx_messageInfo_EnumContainerMessage1.Merge(m, src)
324}
325func (m *EnumContainerMessage1) XXX_Size() int {
326 return xxx_messageInfo_EnumContainerMessage1.Size(m)
327}
328func (m *EnumContainerMessage1) XXX_DiscardUnknown() {
329 xxx_messageInfo_EnumContainerMessage1.DiscardUnknown(m)
330}
331
332var xxx_messageInfo_EnumContainerMessage1 proto.InternalMessageInfo
333
Damien Neila485fbd2018-10-26 13:28:37 -0700334const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
335const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
336
337func (m *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
338 if m != nil && m.DefaultDuplicate1 != nil {
339 return *m.DefaultDuplicate1
340 }
341 return Default_EnumContainerMessage1_DefaultDuplicate1
342}
343
344func (m *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
345 if m != nil && m.DefaultDuplicate2 != nil {
346 return *m.DefaultDuplicate2
347 }
348 return Default_EnumContainerMessage1_DefaultDuplicate2
349}
350
Damien Neil46abb572018-09-07 12:45:37 -0700351type EnumContainerMessage1_EnumContainerMessage2 struct {
Damien Neil658051b2018-09-10 12:26:21 -0700352 XXX_NoUnkeyedLiteral struct{} `json:"-"`
353 XXX_unrecognized []byte `json:"-"`
354 XXX_sizecache int32 `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700355}
356
Joe Tsaib6405bd2018-11-15 14:44:37 -0800357func (m *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
Damien Neil8012b442019-01-18 09:32:24 -0800358 return xxx_Enum_protoFile_messageTypes[1].MessageOf(m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800359}
Damien Neila1c6abc2018-09-12 13:36:34 -0700360func (m *EnumContainerMessage1_EnumContainerMessage2) Reset() {
361 *m = EnumContainerMessage1_EnumContainerMessage2{}
362}
363func (m *EnumContainerMessage1_EnumContainerMessage2) String() string {
364 return proto.CompactTextString(m)
365}
366func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
367func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
Damien Neil8012b442019-01-18 09:32:24 -0800368 return fileDescriptor_de9f68860d540858_gzipped, []int{0, 0}
Damien Neila1c6abc2018-09-12 13:36:34 -0700369}
Damien Neil993c04d2018-09-14 15:41:11 -0700370
Damien Neila1c6abc2018-09-12 13:36:34 -0700371func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Unmarshal(b []byte) error {
372 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Unmarshal(m, b)
373}
374func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
375 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Marshal(b, m, deterministic)
376}
377func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Merge(src proto.Message) {
378 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Merge(m, src)
379}
380func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Size() int {
381 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Size(m)
382}
383func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_DiscardUnknown() {
384 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.DiscardUnknown(m)
385}
386
387var xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2 proto.InternalMessageInfo
388
Damien Neil46abb572018-09-07 12:45:37 -0700389func init() {
Damien Neil8012b442019-01-18 09:32:24 -0800390 proto.RegisterFile("proto2/enum.proto", fileDescriptor_de9f68860d540858_gzipped)
Damien Neil46abb572018-09-07 12:45:37 -0700391 proto.RegisterEnum("goproto.protoc.proto2.EnumType1", EnumType1_name, EnumType1_value)
392 proto.RegisterEnum("goproto.protoc.proto2.EnumType2", EnumType2_name, EnumType2_value)
393 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1A", EnumContainerMessage1_NestedEnumType1A_name, EnumContainerMessage1_NestedEnumType1A_value)
394 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1B", EnumContainerMessage1_NestedEnumType1B_name, EnumContainerMessage1_NestedEnumType1B_value)
395 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value)
396 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value)
Damien Neil154da982018-09-19 13:21:58 -0700397 proto.RegisterType((*EnumContainerMessage1)(nil), "goproto.protoc.proto2.EnumContainerMessage1")
398 proto.RegisterType((*EnumContainerMessage1_EnumContainerMessage2)(nil), "goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2")
Damien Neil46abb572018-09-07 12:45:37 -0700399}
400
Damien Neil46abb572018-09-07 12:45:37 -0700401var fileDescriptor_de9f68860d540858 = []byte{
Damien Neil8012b442019-01-18 09:32:24 -0800402 // 624 bytes of the wire-encoded FileDescriptorProto
403 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
404 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
405 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45,
406 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73,
407 0x61, 0x67, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
408 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
409 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
410 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70,
411 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11,
412 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65,
413 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70,
414 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,
415 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
416 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a,
417 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66,
418 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69,
419 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d,
420 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65,
421 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e,
422 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00,
423 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79,
424 0x70, 0x65, 0x32, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32,
425 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73,
426 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a,
427 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45,
428 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
429 0x54, 0x79, 0x70, 0x65, 0x31, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44,
430 0x5f, 0x31, 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45,
431 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10,
432 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e,
433 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
434 0x63, 0x61, 0x74, 0x65, 0x31, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
435 0x63, 0x61, 0x74, 0x65, 0x32, 0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10,
436 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45,
437 0x44, 0x31, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x41, 0x5a,
438 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61,
439 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x63,
440 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f,
441 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
Damien Neil46abb572018-09-07 12:45:37 -0700442}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800443
Damien Neil8012b442019-01-18 09:32:24 -0800444var fileDescriptor_de9f68860d540858_gzipped = func() []byte {
445 bb := new(bytes.Buffer)
446 zw, _ := gzip.NewWriterLevel(bb, gzip.NoCompression)
447 zw.Write(fileDescriptor_de9f68860d540858)
448 zw.Close()
449 return bb.Bytes()
450}()
Joe Tsaib6405bd2018-11-15 14:44:37 -0800451
452const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
453
Joe Tsai5681bb22019-01-09 21:31:15 -0800454var Enum_protoFile protoreflect.FileDescriptor
Joe Tsaib6405bd2018-11-15 14:44:37 -0800455
Damien Neil8012b442019-01-18 09:32:24 -0800456var xxx_Enum_protoFile_enumTypes [6]protoreflect.EnumType
457var xxx_Enum_protoFile_messageTypes [2]protoimpl.MessageType
458var xxx_Enum_protoFile_goTypes = []interface{}{
459 (EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
460 (EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
461 (EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
462 (EnumContainerMessage1_NestedEnumType1B)(0), // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B
463 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A
464 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B
465 (*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1
466 (*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800467}
Damien Neil8012b442019-01-18 09:32:24 -0800468var xxx_Enum_protoFile_depIdxs = []int32{
469 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2
470 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800471}
Damien Neil8012b442019-01-18 09:32:24 -0800472
473func init() {
474 var messageTypes [2]protoreflect.MessageType
475 Enum_protoFile = protoimpl.FileBuilder{
476 RawDescriptor: fileDescriptor_de9f68860d540858,
477 GoTypes: xxx_Enum_protoFile_goTypes,
478 DependencyIndexes: xxx_Enum_protoFile_depIdxs,
479 EnumOutputTypes: xxx_Enum_protoFile_enumTypes[:],
480 MessageOutputTypes: messageTypes[:],
481 }.Init()
482 messageGoTypes := xxx_Enum_protoFile_goTypes[6:][:2]
483 for i, mt := range messageTypes[:] {
484 xxx_Enum_protoFile_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i])
485 xxx_Enum_protoFile_messageTypes[i].PBType = mt
486 }
487 xxx_Enum_protoFile_goTypes = nil
488 xxx_Enum_protoFile_depIdxs = nil
Joe Tsaib6405bd2018-11-15 14:44:37 -0800489}