blob: acbbbba96a65b0501d48aa0768828a526f0ba735 [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 Neile89e6242019-05-13 23:55:40 -07007 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
8 protoregistry "google.golang.org/protobuf/reflect/protoregistry"
9 protoiface "google.golang.org/protobuf/runtime/protoiface"
10 protoimpl "google.golang.org/protobuf/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 Tsai09b5b462019-04-10 15:29:01 -070039 p := new(EnumType1)
40 *p = x
41 return p
Damien Neil46abb572018-09-07 12:45:37 -070042}
43
44func (x EnumType1) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070045 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -070046}
47
Joe Tsai0fc49f82019-05-01 12:29:25 -070048func (EnumType1) Descriptor() protoreflect.EnumDescriptor {
49 return file_proto2_enum_proto_enumTypes[0].Descriptor()
50}
51
52// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -070053func (EnumType1) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -070054 return file_proto2_enum_proto_enumTypes[0]
Joe Tsai61968ce2019-04-01 12:59:24 -070055}
56
57func (x EnumType1) Number() protoreflect.EnumNumber {
58 return protoreflect.EnumNumber(x)
59}
60
Joe Tsai8e506a82019-03-16 00:05:34 -070061// Deprecated: Do not use.
62func (x *EnumType1) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -070063 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -070064 if err != nil {
65 return err
66 }
Joe Tsai8e506a82019-03-16 00:05:34 -070067 *x = EnumType1(num)
Damien Neil46abb572018-09-07 12:45:37 -070068 return nil
69}
70
Joe Tsai8e506a82019-03-16 00:05:34 -070071// Deprecated: Use EnumType1.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -070072func (EnumType1) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070073 return file_proto2_enum_proto_rawDescGZIP(), []int{0}
Damien Neil46abb572018-09-07 12:45:37 -070074}
75
76type EnumType2 int32
77
78const (
79 EnumType2_duplicate1 EnumType2 = 1
80 EnumType2_duplicate2 EnumType2 = 1
81)
82
Joe Tsai8e506a82019-03-16 00:05:34 -070083// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070084var EnumType2_name = map[int32]string{
85 1: "duplicate1",
86 // Duplicate value: 1: "duplicate2",
87}
88
Joe Tsai8e506a82019-03-16 00:05:34 -070089// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070090var EnumType2_value = map[string]int32{
91 "duplicate1": 1,
92 "duplicate2": 1,
93}
94
95func (x EnumType2) Enum() *EnumType2 {
Joe Tsai09b5b462019-04-10 15:29:01 -070096 p := new(EnumType2)
97 *p = x
98 return p
Damien Neil46abb572018-09-07 12:45:37 -070099}
100
101func (x EnumType2) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700102 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700103}
104
Joe Tsai0fc49f82019-05-01 12:29:25 -0700105func (EnumType2) Descriptor() protoreflect.EnumDescriptor {
106 return file_proto2_enum_proto_enumTypes[1].Descriptor()
107}
108
109// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -0700110func (EnumType2) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700111 return file_proto2_enum_proto_enumTypes[1]
Joe Tsai61968ce2019-04-01 12:59:24 -0700112}
113
114func (x EnumType2) Number() protoreflect.EnumNumber {
115 return protoreflect.EnumNumber(x)
116}
117
Joe Tsai8e506a82019-03-16 00:05:34 -0700118// Deprecated: Do not use.
119func (x *EnumType2) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700120 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700121 if err != nil {
122 return err
123 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700124 *x = EnumType2(num)
Damien Neil46abb572018-09-07 12:45:37 -0700125 return nil
126}
127
Joe Tsai8e506a82019-03-16 00:05:34 -0700128// Deprecated: Use EnumType2.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700129func (EnumType2) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700130 return file_proto2_enum_proto_rawDescGZIP(), []int{1}
Damien Neil46abb572018-09-07 12:45:37 -0700131}
132
133// NestedEnumType1A comment.
134type EnumContainerMessage1_NestedEnumType1A int32
135
136const (
137 // NestedEnumType1A_VALUE comment.
138 EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
139)
140
Joe Tsai8e506a82019-03-16 00:05:34 -0700141// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700142var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{
143 0: "NESTED_1A_VALUE",
144}
145
Joe Tsai8e506a82019-03-16 00:05:34 -0700146// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700147var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{
148 "NESTED_1A_VALUE": 0,
149}
150
151func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
Joe Tsai09b5b462019-04-10 15:29:01 -0700152 p := new(EnumContainerMessage1_NestedEnumType1A)
153 *p = x
154 return p
Damien Neil46abb572018-09-07 12:45:37 -0700155}
156
157func (x EnumContainerMessage1_NestedEnumType1A) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700158 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700159}
160
Joe Tsai0fc49f82019-05-01 12:29:25 -0700161func (EnumContainerMessage1_NestedEnumType1A) Descriptor() protoreflect.EnumDescriptor {
162 return file_proto2_enum_proto_enumTypes[2].Descriptor()
163}
164
165// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -0700166func (EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700167 return file_proto2_enum_proto_enumTypes[2]
Joe Tsai61968ce2019-04-01 12:59:24 -0700168}
169
170func (x EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
171 return protoreflect.EnumNumber(x)
172}
173
Joe Tsai8e506a82019-03-16 00:05:34 -0700174// Deprecated: Do not use.
175func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700176 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700177 if err != nil {
178 return err
179 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700180 *x = EnumContainerMessage1_NestedEnumType1A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700181 return nil
182}
183
Joe Tsai8e506a82019-03-16 00:05:34 -0700184// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700185func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700186 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700187}
188
189type EnumContainerMessage1_NestedEnumType1B int32
190
191const (
192 EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
193)
194
Joe Tsai8e506a82019-03-16 00:05:34 -0700195// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700196var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{
197 0: "NESTED_1B_VALUE",
198}
199
Joe Tsai8e506a82019-03-16 00:05:34 -0700200// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700201var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
202 "NESTED_1B_VALUE": 0,
203}
204
205func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
Joe Tsai09b5b462019-04-10 15:29:01 -0700206 p := new(EnumContainerMessage1_NestedEnumType1B)
207 *p = x
208 return p
Damien Neil46abb572018-09-07 12:45:37 -0700209}
210
211func (x EnumContainerMessage1_NestedEnumType1B) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700212 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700213}
214
Joe Tsai0fc49f82019-05-01 12:29:25 -0700215func (EnumContainerMessage1_NestedEnumType1B) Descriptor() protoreflect.EnumDescriptor {
216 return file_proto2_enum_proto_enumTypes[3].Descriptor()
217}
218
219// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -0700220func (EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700221 return file_proto2_enum_proto_enumTypes[3]
Joe Tsai61968ce2019-04-01 12:59:24 -0700222}
223
224func (x EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
225 return protoreflect.EnumNumber(x)
226}
227
Joe Tsai8e506a82019-03-16 00:05:34 -0700228// Deprecated: Do not use.
229func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700230 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700231 if err != nil {
232 return err
233 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700234 *x = EnumContainerMessage1_NestedEnumType1B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700235 return nil
236}
237
Joe Tsai8e506a82019-03-16 00:05:34 -0700238// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700239func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700240 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700241}
242
Damien Neil46abb572018-09-07 12:45:37 -0700243// NestedEnumType2A comment.
244type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
245
246const (
247 // NestedEnumType2A_VALUE comment.
248 EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
249)
250
Joe Tsai8e506a82019-03-16 00:05:34 -0700251// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700252var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{
253 0: "NESTED_2A_VALUE",
254}
255
Joe Tsai8e506a82019-03-16 00:05:34 -0700256// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700257var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
258 "NESTED_2A_VALUE": 0,
259}
260
261func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
Joe Tsai09b5b462019-04-10 15:29:01 -0700262 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)
263 *p = x
264 return p
Damien Neil46abb572018-09-07 12:45:37 -0700265}
266
267func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700268 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700269}
270
Joe Tsai0fc49f82019-05-01 12:29:25 -0700271func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Descriptor() protoreflect.EnumDescriptor {
272 return file_proto2_enum_proto_enumTypes[4].Descriptor()
273}
274
275// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -0700276func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700277 return file_proto2_enum_proto_enumTypes[4]
Joe Tsai61968ce2019-04-01 12:59:24 -0700278}
279
280func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
281 return protoreflect.EnumNumber(x)
282}
283
Joe Tsai8e506a82019-03-16 00:05:34 -0700284// Deprecated: Do not use.
285func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700286 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700287 if err != nil {
288 return err
289 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700290 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700291 return nil
292}
293
Joe Tsai8e506a82019-03-16 00:05:34 -0700294// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700295func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700296 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700297}
298
299type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
300
301const (
302 EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
303)
304
Joe Tsai8e506a82019-03-16 00:05:34 -0700305// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700306var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{
307 0: "NESTED_2B_VALUE",
308}
309
Joe Tsai8e506a82019-03-16 00:05:34 -0700310// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700311var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
312 "NESTED_2B_VALUE": 0,
313}
314
315func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
Joe Tsai09b5b462019-04-10 15:29:01 -0700316 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)
317 *p = x
318 return p
Damien Neil46abb572018-09-07 12:45:37 -0700319}
320
321func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700322 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700323}
324
Joe Tsai0fc49f82019-05-01 12:29:25 -0700325func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Descriptor() protoreflect.EnumDescriptor {
326 return file_proto2_enum_proto_enumTypes[5].Descriptor()
327}
328
329// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -0700330func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700331 return file_proto2_enum_proto_enumTypes[5]
Joe Tsai61968ce2019-04-01 12:59:24 -0700332}
333
334func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
335 return protoreflect.EnumNumber(x)
336}
337
Joe Tsai8e506a82019-03-16 00:05:34 -0700338// Deprecated: Do not use.
339func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700340 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700341 if err != nil {
342 return err
343 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700344 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700345 return nil
346}
347
Joe Tsai8e506a82019-03-16 00:05:34 -0700348// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700349func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700350 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700351}
352
Damien Neilce36f8d2018-09-13 15:19:08 -0700353type EnumContainerMessage1 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700354 DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
355 DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
356 XXX_NoUnkeyedLiteral struct{} `json:"-"`
357 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
358 XXX_sizecache protoimpl.SizeCache `json:"-"`
Damien Neilce36f8d2018-09-13 15:19:08 -0700359}
360
Joe Tsai61968ce2019-04-01 12:59:24 -0700361func (x *EnumContainerMessage1) Reset() {
362 *x = EnumContainerMessage1{}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800363}
Joe Tsai61968ce2019-04-01 12:59:24 -0700364
365func (x *EnumContainerMessage1) String() string {
366 return protoimpl.X.MessageStringOf(x)
367}
368
369func (*EnumContainerMessage1) ProtoMessage() {}
370
371func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700372 return file_proto2_enum_proto_msgTypes[0].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700373}
Joe Tsai8e506a82019-03-16 00:05:34 -0700374
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700375func (m *EnumContainerMessage1) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700376 return file_proto2_enum_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700377}
378
Joe Tsai8e506a82019-03-16 00:05:34 -0700379// Deprecated: Use EnumContainerMessage1.ProtoReflect.Type instead.
Damien Neilce36f8d2018-09-13 15:19:08 -0700380func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700381 return file_proto2_enum_proto_rawDescGZIP(), []int{0}
Damien Neilce36f8d2018-09-13 15:19:08 -0700382}
Damien Neil993c04d2018-09-14 15:41:11 -0700383
Damien Neila485fbd2018-10-26 13:28:37 -0700384const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
385const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
386
Joe Tsai61968ce2019-04-01 12:59:24 -0700387func (x *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
388 if x != nil && x.DefaultDuplicate1 != nil {
389 return *x.DefaultDuplicate1
Damien Neila485fbd2018-10-26 13:28:37 -0700390 }
391 return Default_EnumContainerMessage1_DefaultDuplicate1
392}
393
Joe Tsai61968ce2019-04-01 12:59:24 -0700394func (x *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
395 if x != nil && x.DefaultDuplicate2 != nil {
396 return *x.DefaultDuplicate2
Damien Neila485fbd2018-10-26 13:28:37 -0700397 }
398 return Default_EnumContainerMessage1_DefaultDuplicate2
399}
400
Damien Neil46abb572018-09-07 12:45:37 -0700401type EnumContainerMessage1_EnumContainerMessage2 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700402 XXX_NoUnkeyedLiteral struct{} `json:"-"`
403 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
404 XXX_sizecache protoimpl.SizeCache `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700405}
406
Joe Tsai61968ce2019-04-01 12:59:24 -0700407func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() {
408 *x = EnumContainerMessage1_EnumContainerMessage2{}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800409}
Joe Tsai61968ce2019-04-01 12:59:24 -0700410
411func (x *EnumContainerMessage1_EnumContainerMessage2) String() string {
412 return protoimpl.X.MessageStringOf(x)
Damien Neila1c6abc2018-09-12 13:36:34 -0700413}
Joe Tsai61968ce2019-04-01 12:59:24 -0700414
Damien Neila1c6abc2018-09-12 13:36:34 -0700415func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700416
Joe Tsai61968ce2019-04-01 12:59:24 -0700417func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700418 return file_proto2_enum_proto_msgTypes[1].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700419}
420
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700421func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700422 return file_proto2_enum_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700423}
424
Joe Tsai8e506a82019-03-16 00:05:34 -0700425// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Type instead.
Damien Neila1c6abc2018-09-12 13:36:34 -0700426func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700427 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neila1c6abc2018-09-12 13:36:34 -0700428}
Damien Neil993c04d2018-09-14 15:41:11 -0700429
Joe Tsai5d72cc22019-03-28 01:13:26 -0700430var File_proto2_enum_proto protoreflect.FileDescriptor
431
Joe Tsai7ca70982019-04-15 13:57:56 -0700432var file_proto2_enum_proto_rawDesc = []byte{
Damien Neil8012b442019-01-18 09:32:24 -0800433 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
434 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
435 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45,
436 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73,
437 0x61, 0x67, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
438 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
439 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
440 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70,
441 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11,
442 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65,
443 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70,
444 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,
445 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
446 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a,
447 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66,
448 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69,
449 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d,
450 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65,
451 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e,
452 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00,
453 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79,
454 0x70, 0x65, 0x32, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32,
455 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73,
456 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a,
457 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45,
458 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
459 0x54, 0x79, 0x70, 0x65, 0x31, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44,
460 0x5f, 0x31, 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45,
461 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10,
462 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e,
463 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
464 0x63, 0x61, 0x74, 0x65, 0x31, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
465 0x63, 0x61, 0x74, 0x65, 0x32, 0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10,
466 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45,
Damien Neile89e6242019-05-13 23:55:40 -0700467 0x44, 0x31, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x3e, 0x5a,
468 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
469 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f,
470 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65,
471 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
Damien Neil46abb572018-09-07 12:45:37 -0700472}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800473
Joe Tsai5d72cc22019-03-28 01:13:26 -0700474var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700475 file_proto2_enum_proto_rawDescOnce sync.Once
476 file_proto2_enum_proto_rawDescData = file_proto2_enum_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700477)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800478
Joe Tsai7ca70982019-04-15 13:57:56 -0700479func file_proto2_enum_proto_rawDescGZIP() []byte {
480 file_proto2_enum_proto_rawDescOnce.Do(func() {
481 file_proto2_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_enum_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700482 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700483 return file_proto2_enum_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700484}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800485
Joe Tsai7ca70982019-04-15 13:57:56 -0700486var file_proto2_enum_proto_enumTypes = make([]protoreflect.EnumType, 6)
Joe Tsai4fe96632019-05-22 05:12:36 -0400487var file_proto2_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
Joe Tsai7ca70982019-04-15 13:57:56 -0700488var file_proto2_enum_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800489 (EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
490 (EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
491 (EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
492 (EnumContainerMessage1_NestedEnumType1B)(0), // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B
493 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A
494 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B
495 (*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1
496 (*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800497}
Joe Tsai7ca70982019-04-15 13:57:56 -0700498var file_proto2_enum_proto_depIdxs = []int32{
Damien Neil8012b442019-01-18 09:32:24 -0800499 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2
500 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800501}
Damien Neil8012b442019-01-18 09:32:24 -0800502
Joe Tsai7ca70982019-04-15 13:57:56 -0700503func init() { file_proto2_enum_proto_init() }
504func file_proto2_enum_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800505 if File_proto2_enum_proto != nil {
506 return
507 }
Joe Tsai40692112019-02-27 20:25:51 -0800508 File_proto2_enum_proto = protoimpl.FileBuilder{
Joe Tsai7ca70982019-04-15 13:57:56 -0700509 RawDescriptor: file_proto2_enum_proto_rawDesc,
510 GoTypes: file_proto2_enum_proto_goTypes,
511 DependencyIndexes: file_proto2_enum_proto_depIdxs,
512 EnumOutputTypes: file_proto2_enum_proto_enumTypes,
513 MessageOutputTypes: file_proto2_enum_proto_msgTypes,
Joe Tsai35ec98f2019-03-25 14:41:32 -0700514 FilesRegistry: protoregistry.GlobalFiles,
515 TypesRegistry: protoregistry.GlobalTypes,
Damien Neil8012b442019-01-18 09:32:24 -0800516 }.Init()
Joe Tsai7ca70982019-04-15 13:57:56 -0700517 file_proto2_enum_proto_rawDesc = nil
518 file_proto2_enum_proto_goTypes = nil
519 file_proto2_enum_proto_depIdxs = nil
Joe Tsaib6405bd2018-11-15 14:44:37 -0800520}