blob: d73fa9ed01d237b2ec34c58125673ecc01283bfe [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 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 Tsai8e506a82019-03-16 00:05:34 -070045 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -070046}
47
Joe Tsai61968ce2019-04-01 12:59:24 -070048func (EnumType1) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -070049 return file_proto2_enum_proto_enumTypes[0]
Joe Tsai61968ce2019-04-01 12:59:24 -070050}
51
52func (x EnumType1) Number() protoreflect.EnumNumber {
53 return protoreflect.EnumNumber(x)
54}
55
Joe Tsai8e506a82019-03-16 00:05:34 -070056// Deprecated: Do not use.
57func (x *EnumType1) UnmarshalJSON(b []byte) error {
58 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -070059 if err != nil {
60 return err
61 }
Joe Tsai8e506a82019-03-16 00:05:34 -070062 *x = EnumType1(num)
Damien Neil46abb572018-09-07 12:45:37 -070063 return nil
64}
65
Joe Tsai8e506a82019-03-16 00:05:34 -070066// Deprecated: Use EnumType1.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -070067func (EnumType1) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070068 return file_proto2_enum_proto_rawDescGZIP(), []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
Joe Tsai8e506a82019-03-16 00:05:34 -070078// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070079var EnumType2_name = map[int32]string{
80 1: "duplicate1",
81 // Duplicate value: 1: "duplicate2",
82}
83
Joe Tsai8e506a82019-03-16 00:05:34 -070084// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070085var EnumType2_value = map[string]int32{
86 "duplicate1": 1,
87 "duplicate2": 1,
88}
89
90func (x EnumType2) Enum() *EnumType2 {
Joe Tsai09b5b462019-04-10 15:29:01 -070091 p := new(EnumType2)
92 *p = x
93 return p
Damien Neil46abb572018-09-07 12:45:37 -070094}
95
96func (x EnumType2) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070097 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -070098}
99
Joe Tsai61968ce2019-04-01 12:59:24 -0700100func (EnumType2) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700101 return file_proto2_enum_proto_enumTypes[1]
Joe Tsai61968ce2019-04-01 12:59:24 -0700102}
103
104func (x EnumType2) Number() protoreflect.EnumNumber {
105 return protoreflect.EnumNumber(x)
106}
107
Joe Tsai8e506a82019-03-16 00:05:34 -0700108// Deprecated: Do not use.
109func (x *EnumType2) UnmarshalJSON(b []byte) error {
110 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700111 if err != nil {
112 return err
113 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700114 *x = EnumType2(num)
Damien Neil46abb572018-09-07 12:45:37 -0700115 return nil
116}
117
Joe Tsai8e506a82019-03-16 00:05:34 -0700118// Deprecated: Use EnumType2.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700119func (EnumType2) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700120 return file_proto2_enum_proto_rawDescGZIP(), []int{1}
Damien Neil46abb572018-09-07 12:45:37 -0700121}
122
123// NestedEnumType1A comment.
124type EnumContainerMessage1_NestedEnumType1A int32
125
126const (
127 // NestedEnumType1A_VALUE comment.
128 EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
129)
130
Joe Tsai8e506a82019-03-16 00:05:34 -0700131// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700132var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{
133 0: "NESTED_1A_VALUE",
134}
135
Joe Tsai8e506a82019-03-16 00:05:34 -0700136// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700137var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{
138 "NESTED_1A_VALUE": 0,
139}
140
141func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
Joe Tsai09b5b462019-04-10 15:29:01 -0700142 p := new(EnumContainerMessage1_NestedEnumType1A)
143 *p = x
144 return p
Damien Neil46abb572018-09-07 12:45:37 -0700145}
146
147func (x EnumContainerMessage1_NestedEnumType1A) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700148 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700149}
150
Joe Tsai61968ce2019-04-01 12:59:24 -0700151func (EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700152 return file_proto2_enum_proto_enumTypes[2]
Joe Tsai61968ce2019-04-01 12:59:24 -0700153}
154
155func (x EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
156 return protoreflect.EnumNumber(x)
157}
158
Joe Tsai8e506a82019-03-16 00:05:34 -0700159// Deprecated: Do not use.
160func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(b []byte) error {
161 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700162 if err != nil {
163 return err
164 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700165 *x = EnumContainerMessage1_NestedEnumType1A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700166 return nil
167}
168
Joe Tsai8e506a82019-03-16 00:05:34 -0700169// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700170func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700171 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700172}
173
174type EnumContainerMessage1_NestedEnumType1B int32
175
176const (
177 EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
178)
179
Joe Tsai8e506a82019-03-16 00:05:34 -0700180// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700181var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{
182 0: "NESTED_1B_VALUE",
183}
184
Joe Tsai8e506a82019-03-16 00:05:34 -0700185// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700186var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
187 "NESTED_1B_VALUE": 0,
188}
189
190func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
Joe Tsai09b5b462019-04-10 15:29:01 -0700191 p := new(EnumContainerMessage1_NestedEnumType1B)
192 *p = x
193 return p
Damien Neil46abb572018-09-07 12:45:37 -0700194}
195
196func (x EnumContainerMessage1_NestedEnumType1B) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700197 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700198}
199
Joe Tsai61968ce2019-04-01 12:59:24 -0700200func (EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700201 return file_proto2_enum_proto_enumTypes[3]
Joe Tsai61968ce2019-04-01 12:59:24 -0700202}
203
204func (x EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
205 return protoreflect.EnumNumber(x)
206}
207
Joe Tsai8e506a82019-03-16 00:05:34 -0700208// Deprecated: Do not use.
209func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(b []byte) error {
210 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700211 if err != nil {
212 return err
213 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700214 *x = EnumContainerMessage1_NestedEnumType1B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700215 return nil
216}
217
Joe Tsai8e506a82019-03-16 00:05:34 -0700218// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700219func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700220 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700221}
222
Damien Neil46abb572018-09-07 12:45:37 -0700223// NestedEnumType2A comment.
224type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
225
226const (
227 // NestedEnumType2A_VALUE comment.
228 EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
229)
230
Joe Tsai8e506a82019-03-16 00:05:34 -0700231// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700232var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{
233 0: "NESTED_2A_VALUE",
234}
235
Joe Tsai8e506a82019-03-16 00:05:34 -0700236// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700237var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
238 "NESTED_2A_VALUE": 0,
239}
240
241func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
Joe Tsai09b5b462019-04-10 15:29:01 -0700242 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)
243 *p = x
244 return p
Damien Neil46abb572018-09-07 12:45:37 -0700245}
246
247func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700248 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700249}
250
Joe Tsai61968ce2019-04-01 12:59:24 -0700251func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700252 return file_proto2_enum_proto_enumTypes[4]
Joe Tsai61968ce2019-04-01 12:59:24 -0700253}
254
255func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
256 return protoreflect.EnumNumber(x)
257}
258
Joe Tsai8e506a82019-03-16 00:05:34 -0700259// Deprecated: Do not use.
260func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(b []byte) error {
261 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700262 if err != nil {
263 return err
264 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700265 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700266 return nil
267}
268
Joe Tsai8e506a82019-03-16 00:05:34 -0700269// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700270func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700271 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700272}
273
274type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
275
276const (
277 EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
278)
279
Joe Tsai8e506a82019-03-16 00:05:34 -0700280// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700281var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{
282 0: "NESTED_2B_VALUE",
283}
284
Joe Tsai8e506a82019-03-16 00:05:34 -0700285// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700286var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
287 "NESTED_2B_VALUE": 0,
288}
289
290func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
Joe Tsai09b5b462019-04-10 15:29:01 -0700291 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)
292 *p = x
293 return p
Damien Neil46abb572018-09-07 12:45:37 -0700294}
295
296func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700297 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700298}
299
Joe Tsai61968ce2019-04-01 12:59:24 -0700300func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700301 return file_proto2_enum_proto_enumTypes[5]
Joe Tsai61968ce2019-04-01 12:59:24 -0700302}
303
304func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
305 return protoreflect.EnumNumber(x)
306}
307
Joe Tsai8e506a82019-03-16 00:05:34 -0700308// Deprecated: Do not use.
309func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(b []byte) error {
310 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700311 if err != nil {
312 return err
313 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700314 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700315 return nil
316}
317
Joe Tsai8e506a82019-03-16 00:05:34 -0700318// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700319func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700320 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700321}
322
Damien Neilce36f8d2018-09-13 15:19:08 -0700323type EnumContainerMessage1 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700324 DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
325 DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
326 XXX_NoUnkeyedLiteral struct{} `json:"-"`
327 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
328 XXX_sizecache protoimpl.SizeCache `json:"-"`
Damien Neilce36f8d2018-09-13 15:19:08 -0700329}
330
Joe Tsai61968ce2019-04-01 12:59:24 -0700331func (x *EnumContainerMessage1) Reset() {
332 *x = EnumContainerMessage1{}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800333}
Joe Tsai61968ce2019-04-01 12:59:24 -0700334
335func (x *EnumContainerMessage1) String() string {
336 return protoimpl.X.MessageStringOf(x)
337}
338
339func (*EnumContainerMessage1) ProtoMessage() {}
340
341func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700342 return file_proto2_enum_proto_msgTypes[0].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700343}
Joe Tsai8e506a82019-03-16 00:05:34 -0700344
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700345func (m *EnumContainerMessage1) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700346 return file_proto2_enum_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700347}
348
Joe Tsai8e506a82019-03-16 00:05:34 -0700349// Deprecated: Use EnumContainerMessage1.ProtoReflect.Type instead.
Damien Neilce36f8d2018-09-13 15:19:08 -0700350func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700351 return file_proto2_enum_proto_rawDescGZIP(), []int{0}
Damien Neilce36f8d2018-09-13 15:19:08 -0700352}
Damien Neil993c04d2018-09-14 15:41:11 -0700353
Damien Neila485fbd2018-10-26 13:28:37 -0700354const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
355const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
356
Joe Tsai61968ce2019-04-01 12:59:24 -0700357func (x *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
358 if x != nil && x.DefaultDuplicate1 != nil {
359 return *x.DefaultDuplicate1
Damien Neila485fbd2018-10-26 13:28:37 -0700360 }
361 return Default_EnumContainerMessage1_DefaultDuplicate1
362}
363
Joe Tsai61968ce2019-04-01 12:59:24 -0700364func (x *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
365 if x != nil && x.DefaultDuplicate2 != nil {
366 return *x.DefaultDuplicate2
Damien Neila485fbd2018-10-26 13:28:37 -0700367 }
368 return Default_EnumContainerMessage1_DefaultDuplicate2
369}
370
Damien Neil46abb572018-09-07 12:45:37 -0700371type EnumContainerMessage1_EnumContainerMessage2 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700372 XXX_NoUnkeyedLiteral struct{} `json:"-"`
373 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
374 XXX_sizecache protoimpl.SizeCache `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700375}
376
Joe Tsai61968ce2019-04-01 12:59:24 -0700377func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() {
378 *x = EnumContainerMessage1_EnumContainerMessage2{}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800379}
Joe Tsai61968ce2019-04-01 12:59:24 -0700380
381func (x *EnumContainerMessage1_EnumContainerMessage2) String() string {
382 return protoimpl.X.MessageStringOf(x)
Damien Neila1c6abc2018-09-12 13:36:34 -0700383}
Joe Tsai61968ce2019-04-01 12:59:24 -0700384
Damien Neila1c6abc2018-09-12 13:36:34 -0700385func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700386
Joe Tsai61968ce2019-04-01 12:59:24 -0700387func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700388 return file_proto2_enum_proto_msgTypes[1].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700389}
390
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700391func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700392 return file_proto2_enum_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700393}
394
Joe Tsai8e506a82019-03-16 00:05:34 -0700395// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Type instead.
Damien Neila1c6abc2018-09-12 13:36:34 -0700396func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700397 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neila1c6abc2018-09-12 13:36:34 -0700398}
Damien Neil993c04d2018-09-14 15:41:11 -0700399
Joe Tsai5d72cc22019-03-28 01:13:26 -0700400var File_proto2_enum_proto protoreflect.FileDescriptor
401
Joe Tsai7ca70982019-04-15 13:57:56 -0700402var file_proto2_enum_proto_rawDesc = []byte{
Damien Neil8012b442019-01-18 09:32:24 -0800403 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
Joe Tsai5d72cc22019-03-28 01:13:26 -0700444var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700445 file_proto2_enum_proto_rawDescOnce sync.Once
446 file_proto2_enum_proto_rawDescData = file_proto2_enum_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700447)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800448
Joe Tsai7ca70982019-04-15 13:57:56 -0700449func file_proto2_enum_proto_rawDescGZIP() []byte {
450 file_proto2_enum_proto_rawDescOnce.Do(func() {
451 file_proto2_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_enum_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700452 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700453 return file_proto2_enum_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700454}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800455
Joe Tsai7ca70982019-04-15 13:57:56 -0700456var file_proto2_enum_proto_enumTypes = make([]protoreflect.EnumType, 6)
457var file_proto2_enum_proto_msgTypes = make([]protoimpl.MessageType, 2)
458var file_proto2_enum_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800459 (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}
Joe Tsai7ca70982019-04-15 13:57:56 -0700468var file_proto2_enum_proto_depIdxs = []int32{
Damien Neil8012b442019-01-18 09:32:24 -0800469 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
Joe Tsai7ca70982019-04-15 13:57:56 -0700473func init() { file_proto2_enum_proto_init() }
474func file_proto2_enum_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800475 if File_proto2_enum_proto != nil {
476 return
477 }
Joe Tsai40692112019-02-27 20:25:51 -0800478 File_proto2_enum_proto = protoimpl.FileBuilder{
Joe Tsai7ca70982019-04-15 13:57:56 -0700479 RawDescriptor: file_proto2_enum_proto_rawDesc,
480 GoTypes: file_proto2_enum_proto_goTypes,
481 DependencyIndexes: file_proto2_enum_proto_depIdxs,
482 EnumOutputTypes: file_proto2_enum_proto_enumTypes,
483 MessageOutputTypes: file_proto2_enum_proto_msgTypes,
Joe Tsai35ec98f2019-03-25 14:41:32 -0700484 FilesRegistry: protoregistry.GlobalFiles,
485 TypesRegistry: protoregistry.GlobalTypes,
Damien Neil8012b442019-01-18 09:32:24 -0800486 }.Init()
Joe Tsai7ca70982019-04-15 13:57:56 -0700487 file_proto2_enum_proto_rawDesc = nil
488 file_proto2_enum_proto_goTypes = nil
489 file_proto2_enum_proto_depIdxs = nil
Joe Tsaib6405bd2018-11-15 14:44:37 -0800490}