blob: eb0e87b5c24088e8327eaccb1048a436691702ba [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 (
Joe Tsaib6405bd2018-11-15 14:44:37 -08007 protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
Joe Tsai35ec98f2019-03-25 14:41:32 -07008 protoregistry "github.com/golang/protobuf/v2/reflect/protoregistry"
Damien Neil0d3e8cc2019-04-01 13:31:55 -07009 protoiface "github.com/golang/protobuf/v2/runtime/protoiface"
Joe Tsaib6405bd2018-11-15 14:44:37 -080010 protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
Joe Tsai5d72cc22019-03-28 01:13:26 -070011 sync "sync"
Damien Neil1ec33152018-09-13 13:12:36 -070012)
13
Joe Tsai5d72cc22019-03-28 01:13:26 -070014const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
15
Damien Neil46abb572018-09-07 12:45:37 -070016// EnumType1 comment.
17type EnumType1 int32
18
19const (
20 // EnumType1_ONE comment.
21 EnumType1_ONE EnumType1 = 1
22 // EnumType1_TWO comment.
23 EnumType1_TWO EnumType1 = 2
24)
25
Joe Tsai8e506a82019-03-16 00:05:34 -070026// Deprecated: Use EnumType1.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070027var EnumType1_name = map[int32]string{
28 1: "ONE",
29 2: "TWO",
30}
31
Joe Tsai8e506a82019-03-16 00:05:34 -070032// Deprecated: Use EnumType1.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070033var EnumType1_value = map[string]int32{
34 "ONE": 1,
35 "TWO": 2,
36}
37
38func (x EnumType1) Enum() *EnumType1 {
Joe Tsai8e506a82019-03-16 00:05:34 -070039 return &x
Damien Neil46abb572018-09-07 12:45:37 -070040}
41
42func (x EnumType1) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070043 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -070044}
45
Joe Tsai61968ce2019-04-01 12:59:24 -070046func (EnumType1) Type() protoreflect.EnumType {
47 return xxx_File_proto2_enum_proto_enumTypes[0]
48}
49
50func (x EnumType1) Number() protoreflect.EnumNumber {
51 return protoreflect.EnumNumber(x)
52}
53
Joe Tsai8e506a82019-03-16 00:05:34 -070054// Deprecated: Do not use.
55func (x *EnumType1) UnmarshalJSON(b []byte) error {
56 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -070057 if err != nil {
58 return err
59 }
Joe Tsai8e506a82019-03-16 00:05:34 -070060 *x = EnumType1(num)
Damien Neil46abb572018-09-07 12:45:37 -070061 return nil
62}
63
Joe Tsai8e506a82019-03-16 00:05:34 -070064// Deprecated: Use EnumType1.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -070065func (EnumType1) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -070066 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0}
Damien Neil46abb572018-09-07 12:45:37 -070067}
68
69type EnumType2 int32
70
71const (
72 EnumType2_duplicate1 EnumType2 = 1
73 EnumType2_duplicate2 EnumType2 = 1
74)
75
Joe Tsai8e506a82019-03-16 00:05:34 -070076// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070077var EnumType2_name = map[int32]string{
78 1: "duplicate1",
79 // Duplicate value: 1: "duplicate2",
80}
81
Joe Tsai8e506a82019-03-16 00:05:34 -070082// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070083var EnumType2_value = map[string]int32{
84 "duplicate1": 1,
85 "duplicate2": 1,
86}
87
88func (x EnumType2) Enum() *EnumType2 {
Joe Tsai8e506a82019-03-16 00:05:34 -070089 return &x
Damien Neil46abb572018-09-07 12:45:37 -070090}
91
92func (x EnumType2) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070093 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -070094}
95
Joe Tsai61968ce2019-04-01 12:59:24 -070096func (EnumType2) Type() protoreflect.EnumType {
97 return xxx_File_proto2_enum_proto_enumTypes[1]
98}
99
100func (x EnumType2) Number() protoreflect.EnumNumber {
101 return protoreflect.EnumNumber(x)
102}
103
Joe Tsai8e506a82019-03-16 00:05:34 -0700104// Deprecated: Do not use.
105func (x *EnumType2) UnmarshalJSON(b []byte) error {
106 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700107 if err != nil {
108 return err
109 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700110 *x = EnumType2(num)
Damien Neil46abb572018-09-07 12:45:37 -0700111 return nil
112}
113
Joe Tsai8e506a82019-03-16 00:05:34 -0700114// Deprecated: Use EnumType2.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700115func (EnumType2) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700116 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{1}
Damien Neil46abb572018-09-07 12:45:37 -0700117}
118
119// NestedEnumType1A comment.
120type EnumContainerMessage1_NestedEnumType1A int32
121
122const (
123 // NestedEnumType1A_VALUE comment.
124 EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
125)
126
Joe Tsai8e506a82019-03-16 00:05:34 -0700127// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700128var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{
129 0: "NESTED_1A_VALUE",
130}
131
Joe Tsai8e506a82019-03-16 00:05:34 -0700132// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700133var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{
134 "NESTED_1A_VALUE": 0,
135}
136
137func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
Joe Tsai8e506a82019-03-16 00:05:34 -0700138 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700139}
140
141func (x EnumContainerMessage1_NestedEnumType1A) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700142 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700143}
144
Joe Tsai61968ce2019-04-01 12:59:24 -0700145func (EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
146 return xxx_File_proto2_enum_proto_enumTypes[2]
147}
148
149func (x EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
150 return protoreflect.EnumNumber(x)
151}
152
Joe Tsai8e506a82019-03-16 00:05:34 -0700153// Deprecated: Do not use.
154func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(b []byte) error {
155 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700156 if err != nil {
157 return err
158 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700159 *x = EnumContainerMessage1_NestedEnumType1A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700160 return nil
161}
162
Joe Tsai8e506a82019-03-16 00:05:34 -0700163// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700164func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700165 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700166}
167
168type EnumContainerMessage1_NestedEnumType1B int32
169
170const (
171 EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
172)
173
Joe Tsai8e506a82019-03-16 00:05:34 -0700174// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700175var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{
176 0: "NESTED_1B_VALUE",
177}
178
Joe Tsai8e506a82019-03-16 00:05:34 -0700179// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700180var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
181 "NESTED_1B_VALUE": 0,
182}
183
184func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
Joe Tsai8e506a82019-03-16 00:05:34 -0700185 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700186}
187
188func (x EnumContainerMessage1_NestedEnumType1B) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700189 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700190}
191
Joe Tsai61968ce2019-04-01 12:59:24 -0700192func (EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
193 return xxx_File_proto2_enum_proto_enumTypes[3]
194}
195
196func (x EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
197 return protoreflect.EnumNumber(x)
198}
199
Joe Tsai8e506a82019-03-16 00:05:34 -0700200// Deprecated: Do not use.
201func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(b []byte) error {
202 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700203 if err != nil {
204 return err
205 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700206 *x = EnumContainerMessage1_NestedEnumType1B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700207 return nil
208}
209
Joe Tsai8e506a82019-03-16 00:05:34 -0700210// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700211func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700212 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700213}
214
Damien Neil46abb572018-09-07 12:45:37 -0700215// NestedEnumType2A comment.
216type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
217
218const (
219 // NestedEnumType2A_VALUE comment.
220 EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
221)
222
Joe Tsai8e506a82019-03-16 00:05:34 -0700223// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700224var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{
225 0: "NESTED_2A_VALUE",
226}
227
Joe Tsai8e506a82019-03-16 00:05:34 -0700228// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700229var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
230 "NESTED_2A_VALUE": 0,
231}
232
233func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
Joe Tsai8e506a82019-03-16 00:05:34 -0700234 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700235}
236
237func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700238 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700239}
240
Joe Tsai61968ce2019-04-01 12:59:24 -0700241func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
242 return xxx_File_proto2_enum_proto_enumTypes[4]
243}
244
245func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
246 return protoreflect.EnumNumber(x)
247}
248
Joe Tsai8e506a82019-03-16 00:05:34 -0700249// Deprecated: Do not use.
250func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(b []byte) error {
251 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700252 if err != nil {
253 return err
254 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700255 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700256 return nil
257}
258
Joe Tsai8e506a82019-03-16 00:05:34 -0700259// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700260func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700261 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700262}
263
264type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
265
266const (
267 EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
268)
269
Joe Tsai8e506a82019-03-16 00:05:34 -0700270// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700271var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{
272 0: "NESTED_2B_VALUE",
273}
274
Joe Tsai8e506a82019-03-16 00:05:34 -0700275// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700276var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
277 "NESTED_2B_VALUE": 0,
278}
279
280func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
Joe Tsai8e506a82019-03-16 00:05:34 -0700281 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700282}
283
284func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700285 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700286}
287
Joe Tsai61968ce2019-04-01 12:59:24 -0700288func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
289 return xxx_File_proto2_enum_proto_enumTypes[5]
290}
291
292func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
293 return protoreflect.EnumNumber(x)
294}
295
Joe Tsai8e506a82019-03-16 00:05:34 -0700296// Deprecated: Do not use.
297func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(b []byte) error {
298 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700299 if err != nil {
300 return err
301 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700302 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700303 return nil
304}
305
Joe Tsai8e506a82019-03-16 00:05:34 -0700306// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700307func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700308 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700309}
310
Damien Neilce36f8d2018-09-13 15:19:08 -0700311type EnumContainerMessage1 struct {
Damien Neila485fbd2018-10-26 13:28:37 -0700312 DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
313 DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
314 XXX_NoUnkeyedLiteral struct{} `json:"-"`
315 XXX_unrecognized []byte `json:"-"`
316 XXX_sizecache int32 `json:"-"`
Damien Neilce36f8d2018-09-13 15:19:08 -0700317}
318
Joe Tsai61968ce2019-04-01 12:59:24 -0700319func (x *EnumContainerMessage1) Reset() {
320 *x = EnumContainerMessage1{}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800321}
Joe Tsai61968ce2019-04-01 12:59:24 -0700322
323func (x *EnumContainerMessage1) String() string {
324 return protoimpl.X.MessageStringOf(x)
325}
326
327func (*EnumContainerMessage1) ProtoMessage() {}
328
329func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
330 return xxx_File_proto2_enum_proto_messageTypes[0].MessageOf(x)
331}
Joe Tsai8e506a82019-03-16 00:05:34 -0700332
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700333func (m *EnumContainerMessage1) XXX_Methods() *protoiface.Methods {
334 return xxx_File_proto2_enum_proto_messageTypes[0].Methods()
335}
336
Joe Tsai8e506a82019-03-16 00:05:34 -0700337// Deprecated: Use EnumContainerMessage1.ProtoReflect.Type instead.
Damien Neilce36f8d2018-09-13 15:19:08 -0700338func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700339 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0}
Damien Neilce36f8d2018-09-13 15:19:08 -0700340}
Damien Neil993c04d2018-09-14 15:41:11 -0700341
Damien Neila485fbd2018-10-26 13:28:37 -0700342const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
343const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
344
Joe Tsai61968ce2019-04-01 12:59:24 -0700345func (x *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
346 if x != nil && x.DefaultDuplicate1 != nil {
347 return *x.DefaultDuplicate1
Damien Neila485fbd2018-10-26 13:28:37 -0700348 }
349 return Default_EnumContainerMessage1_DefaultDuplicate1
350}
351
Joe Tsai61968ce2019-04-01 12:59:24 -0700352func (x *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
353 if x != nil && x.DefaultDuplicate2 != nil {
354 return *x.DefaultDuplicate2
Damien Neila485fbd2018-10-26 13:28:37 -0700355 }
356 return Default_EnumContainerMessage1_DefaultDuplicate2
357}
358
Damien Neil46abb572018-09-07 12:45:37 -0700359type EnumContainerMessage1_EnumContainerMessage2 struct {
Damien Neil658051b2018-09-10 12:26:21 -0700360 XXX_NoUnkeyedLiteral struct{} `json:"-"`
361 XXX_unrecognized []byte `json:"-"`
362 XXX_sizecache int32 `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700363}
364
Joe Tsai61968ce2019-04-01 12:59:24 -0700365func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() {
366 *x = EnumContainerMessage1_EnumContainerMessage2{}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800367}
Joe Tsai61968ce2019-04-01 12:59:24 -0700368
369func (x *EnumContainerMessage1_EnumContainerMessage2) String() string {
370 return protoimpl.X.MessageStringOf(x)
Damien Neila1c6abc2018-09-12 13:36:34 -0700371}
Joe Tsai61968ce2019-04-01 12:59:24 -0700372
Damien Neila1c6abc2018-09-12 13:36:34 -0700373func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700374
Joe Tsai61968ce2019-04-01 12:59:24 -0700375func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
376 return xxx_File_proto2_enum_proto_messageTypes[1].MessageOf(x)
377}
378
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700379func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Methods() *protoiface.Methods {
380 return xxx_File_proto2_enum_proto_messageTypes[1].Methods()
381}
382
Joe Tsai8e506a82019-03-16 00:05:34 -0700383// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Type instead.
Damien Neila1c6abc2018-09-12 13:36:34 -0700384func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700385 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neila1c6abc2018-09-12 13:36:34 -0700386}
Damien Neil993c04d2018-09-14 15:41:11 -0700387
Joe Tsai5d72cc22019-03-28 01:13:26 -0700388var File_proto2_enum_proto protoreflect.FileDescriptor
389
390var xxx_File_proto2_enum_proto_rawDesc = []byte{
Damien Neil8012b442019-01-18 09:32:24 -0800391 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
392 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
393 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45,
394 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73,
395 0x61, 0x67, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
396 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
397 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
398 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70,
399 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11,
400 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65,
401 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70,
402 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,
403 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
404 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a,
405 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66,
406 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69,
407 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d,
408 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65,
409 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e,
410 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00,
411 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79,
412 0x70, 0x65, 0x32, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32,
413 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73,
414 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a,
415 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45,
416 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
417 0x54, 0x79, 0x70, 0x65, 0x31, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44,
418 0x5f, 0x31, 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45,
419 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10,
420 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e,
421 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
422 0x63, 0x61, 0x74, 0x65, 0x31, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
423 0x63, 0x61, 0x74, 0x65, 0x32, 0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10,
424 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45,
425 0x44, 0x31, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x41, 0x5a,
426 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61,
427 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x63,
428 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f,
429 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
Damien Neil46abb572018-09-07 12:45:37 -0700430}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800431
Joe Tsai5d72cc22019-03-28 01:13:26 -0700432var (
433 xxx_File_proto2_enum_proto_rawDesc_once sync.Once
434 xxx_File_proto2_enum_proto_rawDesc_data = xxx_File_proto2_enum_proto_rawDesc
435)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800436
Joe Tsai5d72cc22019-03-28 01:13:26 -0700437func xxx_File_proto2_enum_proto_rawDescGZIP() []byte {
438 xxx_File_proto2_enum_proto_rawDesc_once.Do(func() {
439 xxx_File_proto2_enum_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_proto2_enum_proto_rawDesc_data)
440 })
441 return xxx_File_proto2_enum_proto_rawDesc_data
442}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800443
Damien Neil6bb8dec2019-03-01 13:22:30 -0800444var xxx_File_proto2_enum_proto_enumTypes = make([]protoreflect.EnumType, 6)
445var xxx_File_proto2_enum_proto_messageTypes = make([]protoimpl.MessageType, 2)
Joe Tsai40692112019-02-27 20:25:51 -0800446var xxx_File_proto2_enum_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800447 (EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
448 (EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
449 (EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
450 (EnumContainerMessage1_NestedEnumType1B)(0), // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B
451 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A
452 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B
453 (*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1
454 (*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800455}
Joe Tsai40692112019-02-27 20:25:51 -0800456var xxx_File_proto2_enum_proto_depIdxs = []int32{
Damien Neil8012b442019-01-18 09:32:24 -0800457 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2
458 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800459}
Damien Neil8012b442019-01-18 09:32:24 -0800460
Damien Neil0fc22452019-03-08 17:18:11 -0800461func init() { xxx_File_proto2_enum_proto_init() }
462func xxx_File_proto2_enum_proto_init() {
463 if File_proto2_enum_proto != nil {
464 return
465 }
Joe Tsai40692112019-02-27 20:25:51 -0800466 File_proto2_enum_proto = protoimpl.FileBuilder{
Joe Tsai5d72cc22019-03-28 01:13:26 -0700467 RawDescriptor: xxx_File_proto2_enum_proto_rawDesc,
Joe Tsai40692112019-02-27 20:25:51 -0800468 GoTypes: xxx_File_proto2_enum_proto_goTypes,
469 DependencyIndexes: xxx_File_proto2_enum_proto_depIdxs,
Damien Neil6bb8dec2019-03-01 13:22:30 -0800470 EnumOutputTypes: xxx_File_proto2_enum_proto_enumTypes,
Joe Tsai35ec98f2019-03-25 14:41:32 -0700471 MessageOutputTypes: xxx_File_proto2_enum_proto_messageTypes,
472 FilesRegistry: protoregistry.GlobalFiles,
473 TypesRegistry: protoregistry.GlobalTypes,
Damien Neil8012b442019-01-18 09:32:24 -0800474 }.Init()
Joe Tsai5d72cc22019-03-28 01:13:26 -0700475 xxx_File_proto2_enum_proto_rawDesc = nil
Joe Tsai40692112019-02-27 20:25:51 -0800476 xxx_File_proto2_enum_proto_goTypes = nil
477 xxx_File_proto2_enum_proto_depIdxs = nil
Joe Tsaib6405bd2018-11-15 14:44:37 -0800478}