blob: 7fcd160fb77dda1ecb74b7099c1cf9daa8bfcefd [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 Tsai58b42d82019-05-22 16:27:51 -040014const (
15 // Verify that runtime/protoimpl is sufficiently up-to-date.
16 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
17 // Verify that this generated code is sufficiently up-to-date.
18 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
19)
Joe Tsai5d72cc22019-03-28 01:13:26 -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
Joe Tsai8e506a82019-03-16 00:05:34 -070031// Deprecated: Use EnumType1.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070032var EnumType1_name = map[int32]string{
33 1: "ONE",
34 2: "TWO",
35}
36
Joe Tsai8e506a82019-03-16 00:05:34 -070037// Deprecated: Use EnumType1.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070038var EnumType1_value = map[string]int32{
39 "ONE": 1,
40 "TWO": 2,
41}
42
43func (x EnumType1) Enum() *EnumType1 {
Joe Tsai09b5b462019-04-10 15:29:01 -070044 p := new(EnumType1)
45 *p = x
46 return p
Damien Neil46abb572018-09-07 12:45:37 -070047}
48
49func (x EnumType1) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070050 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -070051}
52
Joe Tsai0fc49f82019-05-01 12:29:25 -070053func (EnumType1) Descriptor() protoreflect.EnumDescriptor {
54 return file_proto2_enum_proto_enumTypes[0].Descriptor()
55}
56
57// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -070058func (EnumType1) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -070059 return file_proto2_enum_proto_enumTypes[0]
Joe Tsai61968ce2019-04-01 12:59:24 -070060}
61
62func (x EnumType1) Number() protoreflect.EnumNumber {
63 return protoreflect.EnumNumber(x)
64}
65
Joe Tsai8e506a82019-03-16 00:05:34 -070066// Deprecated: Do not use.
67func (x *EnumType1) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -070068 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -070069 if err != nil {
70 return err
71 }
Joe Tsai8e506a82019-03-16 00:05:34 -070072 *x = EnumType1(num)
Damien Neil46abb572018-09-07 12:45:37 -070073 return nil
74}
75
Joe Tsai8e506a82019-03-16 00:05:34 -070076// Deprecated: Use EnumType1.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -070077func (EnumType1) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070078 return file_proto2_enum_proto_rawDescGZIP(), []int{0}
Damien Neil46abb572018-09-07 12:45:37 -070079}
80
81type EnumType2 int32
82
83const (
84 EnumType2_duplicate1 EnumType2 = 1
85 EnumType2_duplicate2 EnumType2 = 1
86)
87
Joe Tsai8e506a82019-03-16 00:05:34 -070088// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070089var EnumType2_name = map[int32]string{
90 1: "duplicate1",
91 // Duplicate value: 1: "duplicate2",
92}
93
Joe Tsai8e506a82019-03-16 00:05:34 -070094// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070095var EnumType2_value = map[string]int32{
96 "duplicate1": 1,
97 "duplicate2": 1,
98}
99
100func (x EnumType2) Enum() *EnumType2 {
Joe Tsai09b5b462019-04-10 15:29:01 -0700101 p := new(EnumType2)
102 *p = x
103 return p
Damien Neil46abb572018-09-07 12:45:37 -0700104}
105
106func (x EnumType2) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700107 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700108}
109
Joe Tsai0fc49f82019-05-01 12:29:25 -0700110func (EnumType2) Descriptor() protoreflect.EnumDescriptor {
111 return file_proto2_enum_proto_enumTypes[1].Descriptor()
112}
113
114// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -0700115func (EnumType2) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700116 return file_proto2_enum_proto_enumTypes[1]
Joe Tsai61968ce2019-04-01 12:59:24 -0700117}
118
119func (x EnumType2) Number() protoreflect.EnumNumber {
120 return protoreflect.EnumNumber(x)
121}
122
Joe Tsai8e506a82019-03-16 00:05:34 -0700123// Deprecated: Do not use.
124func (x *EnumType2) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700125 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700126 if err != nil {
127 return err
128 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700129 *x = EnumType2(num)
Damien Neil46abb572018-09-07 12:45:37 -0700130 return nil
131}
132
Joe Tsai8e506a82019-03-16 00:05:34 -0700133// Deprecated: Use EnumType2.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700134func (EnumType2) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700135 return file_proto2_enum_proto_rawDescGZIP(), []int{1}
Damien Neil46abb572018-09-07 12:45:37 -0700136}
137
138// NestedEnumType1A comment.
139type EnumContainerMessage1_NestedEnumType1A int32
140
141const (
142 // NestedEnumType1A_VALUE comment.
143 EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
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_name = map[int32]string{
148 0: "NESTED_1A_VALUE",
149}
150
Joe Tsai8e506a82019-03-16 00:05:34 -0700151// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700152var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{
153 "NESTED_1A_VALUE": 0,
154}
155
156func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
Joe Tsai09b5b462019-04-10 15:29:01 -0700157 p := new(EnumContainerMessage1_NestedEnumType1A)
158 *p = x
159 return p
Damien Neil46abb572018-09-07 12:45:37 -0700160}
161
162func (x EnumContainerMessage1_NestedEnumType1A) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700163 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700164}
165
Joe Tsai0fc49f82019-05-01 12:29:25 -0700166func (EnumContainerMessage1_NestedEnumType1A) Descriptor() protoreflect.EnumDescriptor {
167 return file_proto2_enum_proto_enumTypes[2].Descriptor()
168}
169
170// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -0700171func (EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700172 return file_proto2_enum_proto_enumTypes[2]
Joe Tsai61968ce2019-04-01 12:59:24 -0700173}
174
175func (x EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
176 return protoreflect.EnumNumber(x)
177}
178
Joe Tsai8e506a82019-03-16 00:05:34 -0700179// Deprecated: Do not use.
180func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700181 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700182 if err != nil {
183 return err
184 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700185 *x = EnumContainerMessage1_NestedEnumType1A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700186 return nil
187}
188
Joe Tsai8e506a82019-03-16 00:05:34 -0700189// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700190func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700191 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700192}
193
194type EnumContainerMessage1_NestedEnumType1B int32
195
196const (
197 EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
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_name = map[int32]string{
202 0: "NESTED_1B_VALUE",
203}
204
Joe Tsai8e506a82019-03-16 00:05:34 -0700205// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700206var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
207 "NESTED_1B_VALUE": 0,
208}
209
210func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
Joe Tsai09b5b462019-04-10 15:29:01 -0700211 p := new(EnumContainerMessage1_NestedEnumType1B)
212 *p = x
213 return p
Damien Neil46abb572018-09-07 12:45:37 -0700214}
215
216func (x EnumContainerMessage1_NestedEnumType1B) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700217 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700218}
219
Joe Tsai0fc49f82019-05-01 12:29:25 -0700220func (EnumContainerMessage1_NestedEnumType1B) Descriptor() protoreflect.EnumDescriptor {
221 return file_proto2_enum_proto_enumTypes[3].Descriptor()
222}
223
224// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -0700225func (EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700226 return file_proto2_enum_proto_enumTypes[3]
Joe Tsai61968ce2019-04-01 12:59:24 -0700227}
228
229func (x EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
230 return protoreflect.EnumNumber(x)
231}
232
Joe Tsai8e506a82019-03-16 00:05:34 -0700233// Deprecated: Do not use.
234func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700235 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700236 if err != nil {
237 return err
238 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700239 *x = EnumContainerMessage1_NestedEnumType1B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700240 return nil
241}
242
Joe Tsai8e506a82019-03-16 00:05:34 -0700243// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700244func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700245 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700246}
247
Damien Neil46abb572018-09-07 12:45:37 -0700248// NestedEnumType2A comment.
249type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
250
251const (
252 // NestedEnumType2A_VALUE comment.
253 EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
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_name = map[int32]string{
258 0: "NESTED_2A_VALUE",
259}
260
Joe Tsai8e506a82019-03-16 00:05:34 -0700261// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700262var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
263 "NESTED_2A_VALUE": 0,
264}
265
266func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
Joe Tsai09b5b462019-04-10 15:29:01 -0700267 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)
268 *p = x
269 return p
Damien Neil46abb572018-09-07 12:45:37 -0700270}
271
272func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700273 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700274}
275
Joe Tsai0fc49f82019-05-01 12:29:25 -0700276func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Descriptor() protoreflect.EnumDescriptor {
277 return file_proto2_enum_proto_enumTypes[4].Descriptor()
278}
279
280// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -0700281func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700282 return file_proto2_enum_proto_enumTypes[4]
Joe Tsai61968ce2019-04-01 12:59:24 -0700283}
284
285func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
286 return protoreflect.EnumNumber(x)
287}
288
Joe Tsai8e506a82019-03-16 00:05:34 -0700289// Deprecated: Do not use.
290func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700291 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700292 if err != nil {
293 return err
294 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700295 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700296 return nil
297}
298
Joe Tsai8e506a82019-03-16 00:05:34 -0700299// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700300func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700301 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700302}
303
304type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
305
306const (
307 EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
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_name = map[int32]string{
312 0: "NESTED_2B_VALUE",
313}
314
Joe Tsai8e506a82019-03-16 00:05:34 -0700315// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700316var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
317 "NESTED_2B_VALUE": 0,
318}
319
320func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
Joe Tsai09b5b462019-04-10 15:29:01 -0700321 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)
322 *p = x
323 return p
Damien Neil46abb572018-09-07 12:45:37 -0700324}
325
326func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700327 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700328}
329
Joe Tsai0fc49f82019-05-01 12:29:25 -0700330func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Descriptor() protoreflect.EnumDescriptor {
331 return file_proto2_enum_proto_enumTypes[5].Descriptor()
332}
333
334// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -0700335func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700336 return file_proto2_enum_proto_enumTypes[5]
Joe Tsai61968ce2019-04-01 12:59:24 -0700337}
338
339func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
340 return protoreflect.EnumNumber(x)
341}
342
Joe Tsai8e506a82019-03-16 00:05:34 -0700343// Deprecated: Do not use.
344func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700345 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700346 if err != nil {
347 return err
348 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700349 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700350 return nil
351}
352
Joe Tsai8e506a82019-03-16 00:05:34 -0700353// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700354func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700355 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700356}
357
Damien Neilce36f8d2018-09-13 15:19:08 -0700358type EnumContainerMessage1 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700359 DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
360 DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
361 XXX_NoUnkeyedLiteral struct{} `json:"-"`
362 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
363 XXX_sizecache protoimpl.SizeCache `json:"-"`
Damien Neilce36f8d2018-09-13 15:19:08 -0700364}
365
Joe Tsai61968ce2019-04-01 12:59:24 -0700366func (x *EnumContainerMessage1) Reset() {
367 *x = EnumContainerMessage1{}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800368}
Joe Tsai61968ce2019-04-01 12:59:24 -0700369
370func (x *EnumContainerMessage1) String() string {
371 return protoimpl.X.MessageStringOf(x)
372}
373
374func (*EnumContainerMessage1) ProtoMessage() {}
375
376func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700377 return file_proto2_enum_proto_msgTypes[0].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700378}
Joe Tsai8e506a82019-03-16 00:05:34 -0700379
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700380func (m *EnumContainerMessage1) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700381 return file_proto2_enum_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700382}
383
Joe Tsai8e506a82019-03-16 00:05:34 -0700384// Deprecated: Use EnumContainerMessage1.ProtoReflect.Type instead.
Damien Neilce36f8d2018-09-13 15:19:08 -0700385func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700386 return file_proto2_enum_proto_rawDescGZIP(), []int{0}
Damien Neilce36f8d2018-09-13 15:19:08 -0700387}
Damien Neil993c04d2018-09-14 15:41:11 -0700388
Damien Neila485fbd2018-10-26 13:28:37 -0700389const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
390const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
391
Joe Tsai61968ce2019-04-01 12:59:24 -0700392func (x *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
393 if x != nil && x.DefaultDuplicate1 != nil {
394 return *x.DefaultDuplicate1
Damien Neila485fbd2018-10-26 13:28:37 -0700395 }
396 return Default_EnumContainerMessage1_DefaultDuplicate1
397}
398
Joe Tsai61968ce2019-04-01 12:59:24 -0700399func (x *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
400 if x != nil && x.DefaultDuplicate2 != nil {
401 return *x.DefaultDuplicate2
Damien Neila485fbd2018-10-26 13:28:37 -0700402 }
403 return Default_EnumContainerMessage1_DefaultDuplicate2
404}
405
Damien Neil46abb572018-09-07 12:45:37 -0700406type EnumContainerMessage1_EnumContainerMessage2 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700407 XXX_NoUnkeyedLiteral struct{} `json:"-"`
408 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
409 XXX_sizecache protoimpl.SizeCache `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700410}
411
Joe Tsai61968ce2019-04-01 12:59:24 -0700412func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() {
413 *x = EnumContainerMessage1_EnumContainerMessage2{}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800414}
Joe Tsai61968ce2019-04-01 12:59:24 -0700415
416func (x *EnumContainerMessage1_EnumContainerMessage2) String() string {
417 return protoimpl.X.MessageStringOf(x)
Damien Neila1c6abc2018-09-12 13:36:34 -0700418}
Joe Tsai61968ce2019-04-01 12:59:24 -0700419
Damien Neila1c6abc2018-09-12 13:36:34 -0700420func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700421
Joe Tsai61968ce2019-04-01 12:59:24 -0700422func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700423 return file_proto2_enum_proto_msgTypes[1].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700424}
425
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700426func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700427 return file_proto2_enum_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700428}
429
Joe Tsai8e506a82019-03-16 00:05:34 -0700430// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Type instead.
Damien Neila1c6abc2018-09-12 13:36:34 -0700431func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700432 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neila1c6abc2018-09-12 13:36:34 -0700433}
Damien Neil993c04d2018-09-14 15:41:11 -0700434
Joe Tsai5d72cc22019-03-28 01:13:26 -0700435var File_proto2_enum_proto protoreflect.FileDescriptor
436
Joe Tsai7ca70982019-04-15 13:57:56 -0700437var file_proto2_enum_proto_rawDesc = []byte{
Damien Neil8012b442019-01-18 09:32:24 -0800438 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
439 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
440 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45,
441 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73,
442 0x61, 0x67, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
443 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
444 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
445 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70,
446 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11,
447 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65,
448 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70,
449 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,
450 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
451 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a,
452 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66,
453 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69,
454 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d,
455 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65,
456 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e,
457 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00,
458 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79,
459 0x70, 0x65, 0x32, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32,
460 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73,
461 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a,
462 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45,
463 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
464 0x54, 0x79, 0x70, 0x65, 0x31, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44,
465 0x5f, 0x31, 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45,
466 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10,
467 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e,
468 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
469 0x63, 0x61, 0x74, 0x65, 0x31, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
470 0x63, 0x61, 0x74, 0x65, 0x32, 0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10,
471 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45,
Damien Neile89e6242019-05-13 23:55:40 -0700472 0x44, 0x31, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x3e, 0x5a,
473 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
474 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f,
475 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65,
476 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
Damien Neil46abb572018-09-07 12:45:37 -0700477}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800478
Joe Tsai5d72cc22019-03-28 01:13:26 -0700479var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700480 file_proto2_enum_proto_rawDescOnce sync.Once
481 file_proto2_enum_proto_rawDescData = file_proto2_enum_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700482)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800483
Joe Tsai7ca70982019-04-15 13:57:56 -0700484func file_proto2_enum_proto_rawDescGZIP() []byte {
485 file_proto2_enum_proto_rawDescOnce.Do(func() {
486 file_proto2_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_enum_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700487 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700488 return file_proto2_enum_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700489}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800490
Joe Tsai7ca70982019-04-15 13:57:56 -0700491var file_proto2_enum_proto_enumTypes = make([]protoreflect.EnumType, 6)
Joe Tsai4fe96632019-05-22 05:12:36 -0400492var file_proto2_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
Joe Tsai7ca70982019-04-15 13:57:56 -0700493var file_proto2_enum_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800494 (EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
495 (EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
496 (EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
497 (EnumContainerMessage1_NestedEnumType1B)(0), // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B
498 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A
499 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B
500 (*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1
501 (*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800502}
Joe Tsai7ca70982019-04-15 13:57:56 -0700503var file_proto2_enum_proto_depIdxs = []int32{
Damien Neil8012b442019-01-18 09:32:24 -0800504 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2
505 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800506}
Damien Neil8012b442019-01-18 09:32:24 -0800507
Joe Tsai7ca70982019-04-15 13:57:56 -0700508func init() { file_proto2_enum_proto_init() }
509func file_proto2_enum_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800510 if File_proto2_enum_proto != nil {
511 return
512 }
Joe Tsai40692112019-02-27 20:25:51 -0800513 File_proto2_enum_proto = protoimpl.FileBuilder{
Joe Tsai7ca70982019-04-15 13:57:56 -0700514 RawDescriptor: file_proto2_enum_proto_rawDesc,
515 GoTypes: file_proto2_enum_proto_goTypes,
516 DependencyIndexes: file_proto2_enum_proto_depIdxs,
517 EnumOutputTypes: file_proto2_enum_proto_enumTypes,
518 MessageOutputTypes: file_proto2_enum_proto_msgTypes,
Joe Tsai35ec98f2019-03-25 14:41:32 -0700519 FilesRegistry: protoregistry.GlobalFiles,
520 TypesRegistry: protoregistry.GlobalTypes,
Damien Neil8012b442019-01-18 09:32:24 -0800521 }.Init()
Joe Tsai7ca70982019-04-15 13:57:56 -0700522 file_proto2_enum_proto_rawDesc = nil
523 file_proto2_enum_proto_goTypes = nil
524 file_proto2_enum_proto_depIdxs = nil
Joe Tsaib6405bd2018-11-15 14:44:37 -0800525}