blob: b1e534d7ef6209fdd73d4d786a3f9602cb6f49ef [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"
Joe Tsaib6405bd2018-11-15 14:44:37 -08009 protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
Joe Tsai5d72cc22019-03-28 01:13:26 -070010 sync "sync"
Damien Neil1ec33152018-09-13 13:12:36 -070011)
12
Joe Tsai5d72cc22019-03-28 01:13:26 -070013const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
14
Damien Neil46abb572018-09-07 12:45:37 -070015// EnumType1 comment.
16type EnumType1 int32
17
18const (
19 // EnumType1_ONE comment.
20 EnumType1_ONE EnumType1 = 1
21 // EnumType1_TWO comment.
22 EnumType1_TWO EnumType1 = 2
23)
24
Damien Neila8593ba2019-01-08 16:18:07 -080025func (e EnumType1) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -080026 return xxx_File_proto2_enum_proto_enumTypes[0]
Joe Tsaib6405bd2018-11-15 14:44:37 -080027}
Damien Neila8593ba2019-01-08 16:18:07 -080028func (e EnumType1) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -080029 return protoreflect.EnumNumber(e)
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_name = map[int32]string{
34 1: "ONE",
35 2: "TWO",
36}
37
Joe Tsai8e506a82019-03-16 00:05:34 -070038// Deprecated: Use EnumType1.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070039var EnumType1_value = map[string]int32{
40 "ONE": 1,
41 "TWO": 2,
42}
43
44func (x EnumType1) Enum() *EnumType1 {
Joe Tsai8e506a82019-03-16 00:05:34 -070045 return &x
Damien Neil46abb572018-09-07 12:45:37 -070046}
47
48func (x EnumType1) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070049 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -070050}
51
Joe Tsai8e506a82019-03-16 00:05:34 -070052// Deprecated: Do not use.
53func (x *EnumType1) UnmarshalJSON(b []byte) error {
54 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -070055 if err != nil {
56 return err
57 }
Joe Tsai8e506a82019-03-16 00:05:34 -070058 *x = EnumType1(num)
Damien Neil46abb572018-09-07 12:45:37 -070059 return nil
60}
61
Joe Tsai8e506a82019-03-16 00:05:34 -070062// Deprecated: Use EnumType1.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -070063func (EnumType1) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -070064 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0}
Damien Neil46abb572018-09-07 12:45:37 -070065}
66
67type EnumType2 int32
68
69const (
70 EnumType2_duplicate1 EnumType2 = 1
71 EnumType2_duplicate2 EnumType2 = 1
72)
73
Damien Neila8593ba2019-01-08 16:18:07 -080074func (e EnumType2) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -080075 return xxx_File_proto2_enum_proto_enumTypes[1]
Joe Tsaib6405bd2018-11-15 14:44:37 -080076}
Damien Neila8593ba2019-01-08 16:18:07 -080077func (e EnumType2) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -080078 return protoreflect.EnumNumber(e)
79}
80
Joe Tsai8e506a82019-03-16 00:05:34 -070081// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070082var EnumType2_name = map[int32]string{
83 1: "duplicate1",
84 // Duplicate value: 1: "duplicate2",
85}
86
Joe Tsai8e506a82019-03-16 00:05:34 -070087// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070088var EnumType2_value = map[string]int32{
89 "duplicate1": 1,
90 "duplicate2": 1,
91}
92
93func (x EnumType2) Enum() *EnumType2 {
Joe Tsai8e506a82019-03-16 00:05:34 -070094 return &x
Damien Neil46abb572018-09-07 12:45:37 -070095}
96
97func (x EnumType2) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070098 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -070099}
100
Joe Tsai8e506a82019-03-16 00:05:34 -0700101// Deprecated: Do not use.
102func (x *EnumType2) UnmarshalJSON(b []byte) error {
103 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700104 if err != nil {
105 return err
106 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700107 *x = EnumType2(num)
Damien Neil46abb572018-09-07 12:45:37 -0700108 return nil
109}
110
Joe Tsai8e506a82019-03-16 00:05:34 -0700111// Deprecated: Use EnumType2.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700112func (EnumType2) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700113 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{1}
Damien Neil46abb572018-09-07 12:45:37 -0700114}
115
116// NestedEnumType1A comment.
117type EnumContainerMessage1_NestedEnumType1A int32
118
119const (
120 // NestedEnumType1A_VALUE comment.
121 EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
122)
123
Damien Neila8593ba2019-01-08 16:18:07 -0800124func (e EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800125 return xxx_File_proto2_enum_proto_enumTypes[2]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800126}
Damien Neila8593ba2019-01-08 16:18:07 -0800127func (e EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800128 return protoreflect.EnumNumber(e)
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 Tsai8e506a82019-03-16 00:05:34 -0700142 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700143}
144
145func (x EnumContainerMessage1_NestedEnumType1A) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700146 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700147}
148
Joe Tsai8e506a82019-03-16 00:05:34 -0700149// Deprecated: Do not use.
150func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(b []byte) error {
151 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700152 if err != nil {
153 return err
154 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700155 *x = EnumContainerMessage1_NestedEnumType1A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700156 return nil
157}
158
Joe Tsai8e506a82019-03-16 00:05:34 -0700159// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700160func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700161 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700162}
163
164type EnumContainerMessage1_NestedEnumType1B int32
165
166const (
167 EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
168)
169
Damien Neila8593ba2019-01-08 16:18:07 -0800170func (e EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800171 return xxx_File_proto2_enum_proto_enumTypes[3]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800172}
Damien Neila8593ba2019-01-08 16:18:07 -0800173func (e EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800174 return protoreflect.EnumNumber(e)
175}
176
Joe Tsai8e506a82019-03-16 00:05:34 -0700177// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700178var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{
179 0: "NESTED_1B_VALUE",
180}
181
Joe Tsai8e506a82019-03-16 00:05:34 -0700182// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700183var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
184 "NESTED_1B_VALUE": 0,
185}
186
187func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
Joe Tsai8e506a82019-03-16 00:05:34 -0700188 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700189}
190
191func (x EnumContainerMessage1_NestedEnumType1B) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700192 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700193}
194
Joe Tsai8e506a82019-03-16 00:05:34 -0700195// Deprecated: Do not use.
196func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(b []byte) error {
197 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700198 if err != nil {
199 return err
200 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700201 *x = EnumContainerMessage1_NestedEnumType1B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700202 return nil
203}
204
Joe Tsai8e506a82019-03-16 00:05:34 -0700205// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700206func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700207 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700208}
209
Damien Neil46abb572018-09-07 12:45:37 -0700210// NestedEnumType2A comment.
211type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
212
213const (
214 // NestedEnumType2A_VALUE comment.
215 EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
216)
217
Damien Neila8593ba2019-01-08 16:18:07 -0800218func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800219 return xxx_File_proto2_enum_proto_enumTypes[4]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800220}
Damien Neila8593ba2019-01-08 16:18:07 -0800221func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800222 return protoreflect.EnumNumber(e)
223}
224
Joe Tsai8e506a82019-03-16 00:05:34 -0700225// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700226var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{
227 0: "NESTED_2A_VALUE",
228}
229
Joe Tsai8e506a82019-03-16 00:05:34 -0700230// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700231var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
232 "NESTED_2A_VALUE": 0,
233}
234
235func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
Joe Tsai8e506a82019-03-16 00:05:34 -0700236 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700237}
238
239func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700240 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700241}
242
Joe Tsai8e506a82019-03-16 00:05:34 -0700243// Deprecated: Do not use.
244func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(b []byte) error {
245 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700246 if err != nil {
247 return err
248 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700249 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700250 return nil
251}
252
Joe Tsai8e506a82019-03-16 00:05:34 -0700253// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700254func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700255 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700256}
257
258type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
259
260const (
261 EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
262)
263
Damien Neila8593ba2019-01-08 16:18:07 -0800264func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800265 return xxx_File_proto2_enum_proto_enumTypes[5]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800266}
Damien Neila8593ba2019-01-08 16:18:07 -0800267func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800268 return protoreflect.EnumNumber(e)
269}
270
Joe Tsai8e506a82019-03-16 00:05:34 -0700271// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700272var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{
273 0: "NESTED_2B_VALUE",
274}
275
Joe Tsai8e506a82019-03-16 00:05:34 -0700276// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700277var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
278 "NESTED_2B_VALUE": 0,
279}
280
281func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
Joe Tsai8e506a82019-03-16 00:05:34 -0700282 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700283}
284
285func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700286 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700287}
288
Joe Tsai8e506a82019-03-16 00:05:34 -0700289// Deprecated: Do not use.
290func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(b []byte) error {
291 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), 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_NestedEnumType2B(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_NestedEnumType2B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700300func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700301 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700302}
303
Damien Neilce36f8d2018-09-13 15:19:08 -0700304type EnumContainerMessage1 struct {
Damien Neila485fbd2018-10-26 13:28:37 -0700305 DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
306 DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
307 XXX_NoUnkeyedLiteral struct{} `json:"-"`
308 XXX_unrecognized []byte `json:"-"`
309 XXX_sizecache int32 `json:"-"`
Damien Neilce36f8d2018-09-13 15:19:08 -0700310}
311
Joe Tsaib6405bd2018-11-15 14:44:37 -0800312func (m *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
Joe Tsai40692112019-02-27 20:25:51 -0800313 return xxx_File_proto2_enum_proto_messageTypes[0].MessageOf(m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800314}
Damien Neilce36f8d2018-09-13 15:19:08 -0700315func (m *EnumContainerMessage1) Reset() { *m = EnumContainerMessage1{} }
Joe Tsai35ec98f2019-03-25 14:41:32 -0700316func (m *EnumContainerMessage1) String() string { return protoimpl.X.MessageStringOf(m) }
Damien Neilce36f8d2018-09-13 15:19:08 -0700317func (*EnumContainerMessage1) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700318
319// Deprecated: Use EnumContainerMessage1.ProtoReflect.Type instead.
Damien Neilce36f8d2018-09-13 15:19:08 -0700320func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700321 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0}
Damien Neilce36f8d2018-09-13 15:19:08 -0700322}
Damien Neil993c04d2018-09-14 15:41:11 -0700323
Damien Neila485fbd2018-10-26 13:28:37 -0700324const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
325const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
326
327func (m *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
328 if m != nil && m.DefaultDuplicate1 != nil {
329 return *m.DefaultDuplicate1
330 }
331 return Default_EnumContainerMessage1_DefaultDuplicate1
332}
333
334func (m *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
335 if m != nil && m.DefaultDuplicate2 != nil {
336 return *m.DefaultDuplicate2
337 }
338 return Default_EnumContainerMessage1_DefaultDuplicate2
339}
340
Damien Neil46abb572018-09-07 12:45:37 -0700341type EnumContainerMessage1_EnumContainerMessage2 struct {
Damien Neil658051b2018-09-10 12:26:21 -0700342 XXX_NoUnkeyedLiteral struct{} `json:"-"`
343 XXX_unrecognized []byte `json:"-"`
344 XXX_sizecache int32 `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700345}
346
Joe Tsaib6405bd2018-11-15 14:44:37 -0800347func (m *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
Joe Tsai40692112019-02-27 20:25:51 -0800348 return xxx_File_proto2_enum_proto_messageTypes[1].MessageOf(m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800349}
Damien Neila1c6abc2018-09-12 13:36:34 -0700350func (m *EnumContainerMessage1_EnumContainerMessage2) Reset() {
351 *m = EnumContainerMessage1_EnumContainerMessage2{}
352}
353func (m *EnumContainerMessage1_EnumContainerMessage2) String() string {
Joe Tsai35ec98f2019-03-25 14:41:32 -0700354 return protoimpl.X.MessageStringOf(m)
Damien Neila1c6abc2018-09-12 13:36:34 -0700355}
356func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700357
358// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Type instead.
Damien Neila1c6abc2018-09-12 13:36:34 -0700359func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700360 return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neila1c6abc2018-09-12 13:36:34 -0700361}
Damien Neil993c04d2018-09-14 15:41:11 -0700362
Joe Tsai5d72cc22019-03-28 01:13:26 -0700363var File_proto2_enum_proto protoreflect.FileDescriptor
364
365var xxx_File_proto2_enum_proto_rawDesc = []byte{
Damien Neil8012b442019-01-18 09:32:24 -0800366 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
367 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
368 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45,
369 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73,
370 0x61, 0x67, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
371 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
372 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
373 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70,
374 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11,
375 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65,
376 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70,
377 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,
378 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
379 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a,
380 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66,
381 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69,
382 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d,
383 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65,
384 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e,
385 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00,
386 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79,
387 0x70, 0x65, 0x32, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32,
388 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73,
389 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a,
390 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45,
391 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
392 0x54, 0x79, 0x70, 0x65, 0x31, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44,
393 0x5f, 0x31, 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45,
394 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10,
395 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e,
396 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
397 0x63, 0x61, 0x74, 0x65, 0x31, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
398 0x63, 0x61, 0x74, 0x65, 0x32, 0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10,
399 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45,
400 0x44, 0x31, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x41, 0x5a,
401 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61,
402 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x63,
403 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f,
404 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
Damien Neil46abb572018-09-07 12:45:37 -0700405}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800406
Joe Tsai5d72cc22019-03-28 01:13:26 -0700407var (
408 xxx_File_proto2_enum_proto_rawDesc_once sync.Once
409 xxx_File_proto2_enum_proto_rawDesc_data = xxx_File_proto2_enum_proto_rawDesc
410)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800411
Joe Tsai5d72cc22019-03-28 01:13:26 -0700412func xxx_File_proto2_enum_proto_rawDescGZIP() []byte {
413 xxx_File_proto2_enum_proto_rawDesc_once.Do(func() {
414 xxx_File_proto2_enum_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_proto2_enum_proto_rawDesc_data)
415 })
416 return xxx_File_proto2_enum_proto_rawDesc_data
417}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800418
Damien Neil6bb8dec2019-03-01 13:22:30 -0800419var xxx_File_proto2_enum_proto_enumTypes = make([]protoreflect.EnumType, 6)
420var xxx_File_proto2_enum_proto_messageTypes = make([]protoimpl.MessageType, 2)
Joe Tsai40692112019-02-27 20:25:51 -0800421var xxx_File_proto2_enum_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800422 (EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
423 (EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
424 (EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
425 (EnumContainerMessage1_NestedEnumType1B)(0), // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B
426 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A
427 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B
428 (*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1
429 (*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800430}
Joe Tsai40692112019-02-27 20:25:51 -0800431var xxx_File_proto2_enum_proto_depIdxs = []int32{
Damien Neil8012b442019-01-18 09:32:24 -0800432 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2
433 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800434}
Damien Neil8012b442019-01-18 09:32:24 -0800435
Damien Neil0fc22452019-03-08 17:18:11 -0800436func init() { xxx_File_proto2_enum_proto_init() }
437func xxx_File_proto2_enum_proto_init() {
438 if File_proto2_enum_proto != nil {
439 return
440 }
Joe Tsai40692112019-02-27 20:25:51 -0800441 File_proto2_enum_proto = protoimpl.FileBuilder{
Joe Tsai5d72cc22019-03-28 01:13:26 -0700442 RawDescriptor: xxx_File_proto2_enum_proto_rawDesc,
Joe Tsai40692112019-02-27 20:25:51 -0800443 GoTypes: xxx_File_proto2_enum_proto_goTypes,
444 DependencyIndexes: xxx_File_proto2_enum_proto_depIdxs,
Damien Neil6bb8dec2019-03-01 13:22:30 -0800445 EnumOutputTypes: xxx_File_proto2_enum_proto_enumTypes,
Joe Tsai35ec98f2019-03-25 14:41:32 -0700446 MessageOutputTypes: xxx_File_proto2_enum_proto_messageTypes,
447 FilesRegistry: protoregistry.GlobalFiles,
448 TypesRegistry: protoregistry.GlobalTypes,
Damien Neil8012b442019-01-18 09:32:24 -0800449 }.Init()
Joe Tsai5d72cc22019-03-28 01:13:26 -0700450 xxx_File_proto2_enum_proto_rawDesc = nil
Joe Tsai40692112019-02-27 20:25:51 -0800451 xxx_File_proto2_enum_proto_goTypes = nil
452 xxx_File_proto2_enum_proto_depIdxs = nil
Joe Tsaib6405bd2018-11-15 14:44:37 -0800453}