blob: b741f56e16ba875363637d5c3cbc4e4fc24f869b [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"
Joe Tsaid8881392019-06-06 13:01:53 -07008 prototype "google.golang.org/protobuf/reflect/prototype"
Damien Neile89e6242019-05-13 23:55:40 -07009 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 {
Joe Tsaid8881392019-06-06 13:01:53 -070054 return file_proto2_enum_proto_enumTypes[0].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070055}
56
Joe Tsai61968ce2019-04-01 12:59:24 -070057func (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 {
Joe Tsaid8881392019-06-06 13:01:53 -0700106 return file_proto2_enum_proto_enumTypes[1].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700107}
108
Joe Tsai61968ce2019-04-01 12:59:24 -0700109func (x EnumType2) Number() protoreflect.EnumNumber {
110 return protoreflect.EnumNumber(x)
111}
112
Joe Tsai8e506a82019-03-16 00:05:34 -0700113// Deprecated: Do not use.
114func (x *EnumType2) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700115 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700116 if err != nil {
117 return err
118 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700119 *x = EnumType2(num)
Damien Neil46abb572018-09-07 12:45:37 -0700120 return nil
121}
122
Joe Tsai8e506a82019-03-16 00:05:34 -0700123// Deprecated: Use EnumType2.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700124func (EnumType2) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700125 return file_proto2_enum_proto_rawDescGZIP(), []int{1}
Damien Neil46abb572018-09-07 12:45:37 -0700126}
127
128// NestedEnumType1A comment.
129type EnumContainerMessage1_NestedEnumType1A int32
130
131const (
132 // NestedEnumType1A_VALUE comment.
133 EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
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_name = map[int32]string{
138 0: "NESTED_1A_VALUE",
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_value = map[string]int32{
143 "NESTED_1A_VALUE": 0,
144}
145
146func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
Joe Tsai09b5b462019-04-10 15:29:01 -0700147 p := new(EnumContainerMessage1_NestedEnumType1A)
148 *p = x
149 return p
Damien Neil46abb572018-09-07 12:45:37 -0700150}
151
152func (x EnumContainerMessage1_NestedEnumType1A) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700153 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700154}
155
Joe Tsai0fc49f82019-05-01 12:29:25 -0700156func (EnumContainerMessage1_NestedEnumType1A) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700157 return file_proto2_enum_proto_enumTypes[2].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700158}
159
Joe Tsai61968ce2019-04-01 12:59:24 -0700160func (x EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
161 return protoreflect.EnumNumber(x)
162}
163
Joe Tsai8e506a82019-03-16 00:05:34 -0700164// Deprecated: Do not use.
165func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700166 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700167 if err != nil {
168 return err
169 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700170 *x = EnumContainerMessage1_NestedEnumType1A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700171 return nil
172}
173
Joe Tsai8e506a82019-03-16 00:05:34 -0700174// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700175func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700176 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700177}
178
179type EnumContainerMessage1_NestedEnumType1B int32
180
181const (
182 EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
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_name = map[int32]string{
187 0: "NESTED_1B_VALUE",
188}
189
Joe Tsai8e506a82019-03-16 00:05:34 -0700190// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700191var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
192 "NESTED_1B_VALUE": 0,
193}
194
195func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
Joe Tsai09b5b462019-04-10 15:29:01 -0700196 p := new(EnumContainerMessage1_NestedEnumType1B)
197 *p = x
198 return p
Damien Neil46abb572018-09-07 12:45:37 -0700199}
200
201func (x EnumContainerMessage1_NestedEnumType1B) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700202 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700203}
204
Joe Tsai0fc49f82019-05-01 12:29:25 -0700205func (EnumContainerMessage1_NestedEnumType1B) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700206 return file_proto2_enum_proto_enumTypes[3].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700207}
208
Joe Tsai61968ce2019-04-01 12:59:24 -0700209func (x EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
210 return protoreflect.EnumNumber(x)
211}
212
Joe Tsai8e506a82019-03-16 00:05:34 -0700213// Deprecated: Do not use.
214func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700215 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700216 if err != nil {
217 return err
218 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700219 *x = EnumContainerMessage1_NestedEnumType1B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700220 return nil
221}
222
Joe Tsai8e506a82019-03-16 00:05:34 -0700223// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700224func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700225 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700226}
227
Damien Neil46abb572018-09-07 12:45:37 -0700228// NestedEnumType2A comment.
229type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
230
231const (
232 // NestedEnumType2A_VALUE comment.
233 EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
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_name = map[int32]string{
238 0: "NESTED_2A_VALUE",
239}
240
Joe Tsai8e506a82019-03-16 00:05:34 -0700241// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700242var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
243 "NESTED_2A_VALUE": 0,
244}
245
246func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
Joe Tsai09b5b462019-04-10 15:29:01 -0700247 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)
248 *p = x
249 return p
Damien Neil46abb572018-09-07 12:45:37 -0700250}
251
252func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700253 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700254}
255
Joe Tsai0fc49f82019-05-01 12:29:25 -0700256func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700257 return file_proto2_enum_proto_enumTypes[4].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700258}
259
Joe Tsai61968ce2019-04-01 12:59:24 -0700260func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
261 return protoreflect.EnumNumber(x)
262}
263
Joe Tsai8e506a82019-03-16 00:05:34 -0700264// Deprecated: Do not use.
265func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700266 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700267 if err != nil {
268 return err
269 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700270 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700271 return nil
272}
273
Joe Tsai8e506a82019-03-16 00:05:34 -0700274// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700275func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700276 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700277}
278
279type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
280
281const (
282 EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
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_name = map[int32]string{
287 0: "NESTED_2B_VALUE",
288}
289
Joe Tsai8e506a82019-03-16 00:05:34 -0700290// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700291var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
292 "NESTED_2B_VALUE": 0,
293}
294
295func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
Joe Tsai09b5b462019-04-10 15:29:01 -0700296 p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)
297 *p = x
298 return p
Damien Neil46abb572018-09-07 12:45:37 -0700299}
300
301func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700302 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700303}
304
Joe Tsai0fc49f82019-05-01 12:29:25 -0700305func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700306 return file_proto2_enum_proto_enumTypes[5].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700307}
308
Joe Tsai61968ce2019-04-01 12:59:24 -0700309func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
310 return protoreflect.EnumNumber(x)
311}
312
Joe Tsai8e506a82019-03-16 00:05:34 -0700313// Deprecated: Do not use.
314func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700315 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700316 if err != nil {
317 return err
318 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700319 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700320 return nil
321}
322
Joe Tsai8e506a82019-03-16 00:05:34 -0700323// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700324func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700325 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700326}
327
Damien Neilce36f8d2018-09-13 15:19:08 -0700328type EnumContainerMessage1 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700329 DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
330 DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
331 XXX_NoUnkeyedLiteral struct{} `json:"-"`
332 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
333 XXX_sizecache protoimpl.SizeCache `json:"-"`
Damien Neilce36f8d2018-09-13 15:19:08 -0700334}
335
Joe Tsai61968ce2019-04-01 12:59:24 -0700336func (x *EnumContainerMessage1) Reset() {
337 *x = EnumContainerMessage1{}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800338}
Joe Tsai61968ce2019-04-01 12:59:24 -0700339
340func (x *EnumContainerMessage1) String() string {
341 return protoimpl.X.MessageStringOf(x)
342}
343
344func (*EnumContainerMessage1) ProtoMessage() {}
345
346func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700347 return file_proto2_enum_proto_msgTypes[0].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700348}
Joe Tsai8e506a82019-03-16 00:05:34 -0700349
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700350func (m *EnumContainerMessage1) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700351 return file_proto2_enum_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700352}
353
Joe Tsai8e506a82019-03-16 00:05:34 -0700354// Deprecated: Use EnumContainerMessage1.ProtoReflect.Type instead.
Damien Neilce36f8d2018-09-13 15:19:08 -0700355func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700356 return file_proto2_enum_proto_rawDescGZIP(), []int{0}
Damien Neilce36f8d2018-09-13 15:19:08 -0700357}
Damien Neil993c04d2018-09-14 15:41:11 -0700358
Damien Neila485fbd2018-10-26 13:28:37 -0700359const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
360const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
361
Joe Tsai61968ce2019-04-01 12:59:24 -0700362func (x *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
363 if x != nil && x.DefaultDuplicate1 != nil {
364 return *x.DefaultDuplicate1
Damien Neila485fbd2018-10-26 13:28:37 -0700365 }
366 return Default_EnumContainerMessage1_DefaultDuplicate1
367}
368
Joe Tsai61968ce2019-04-01 12:59:24 -0700369func (x *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
370 if x != nil && x.DefaultDuplicate2 != nil {
371 return *x.DefaultDuplicate2
Damien Neila485fbd2018-10-26 13:28:37 -0700372 }
373 return Default_EnumContainerMessage1_DefaultDuplicate2
374}
375
Damien Neil46abb572018-09-07 12:45:37 -0700376type EnumContainerMessage1_EnumContainerMessage2 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700377 XXX_NoUnkeyedLiteral struct{} `json:"-"`
378 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
379 XXX_sizecache protoimpl.SizeCache `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700380}
381
Joe Tsai61968ce2019-04-01 12:59:24 -0700382func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() {
383 *x = EnumContainerMessage1_EnumContainerMessage2{}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800384}
Joe Tsai61968ce2019-04-01 12:59:24 -0700385
386func (x *EnumContainerMessage1_EnumContainerMessage2) String() string {
387 return protoimpl.X.MessageStringOf(x)
Damien Neila1c6abc2018-09-12 13:36:34 -0700388}
Joe Tsai61968ce2019-04-01 12:59:24 -0700389
Damien Neila1c6abc2018-09-12 13:36:34 -0700390func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700391
Joe Tsai61968ce2019-04-01 12:59:24 -0700392func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700393 return file_proto2_enum_proto_msgTypes[1].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700394}
395
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700396func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700397 return file_proto2_enum_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700398}
399
Joe Tsai8e506a82019-03-16 00:05:34 -0700400// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Type instead.
Damien Neila1c6abc2018-09-12 13:36:34 -0700401func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700402 return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
Damien Neila1c6abc2018-09-12 13:36:34 -0700403}
Damien Neil993c04d2018-09-14 15:41:11 -0700404
Joe Tsai5d72cc22019-03-28 01:13:26 -0700405var File_proto2_enum_proto protoreflect.FileDescriptor
406
Joe Tsai7ca70982019-04-15 13:57:56 -0700407var file_proto2_enum_proto_rawDesc = []byte{
Damien Neil8012b442019-01-18 09:32:24 -0800408 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
409 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
410 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45,
411 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73,
412 0x61, 0x67, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
413 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
414 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
415 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70,
416 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11,
417 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65,
418 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70,
419 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,
420 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
421 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a,
422 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66,
423 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69,
424 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d,
425 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65,
426 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e,
427 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00,
428 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79,
429 0x70, 0x65, 0x32, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32,
430 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73,
431 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a,
432 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45,
433 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
434 0x54, 0x79, 0x70, 0x65, 0x31, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44,
435 0x5f, 0x31, 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45,
436 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10,
437 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e,
438 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
439 0x63, 0x61, 0x74, 0x65, 0x31, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
440 0x63, 0x61, 0x74, 0x65, 0x32, 0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10,
441 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45,
Damien Neile89e6242019-05-13 23:55:40 -0700442 0x44, 0x31, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x3e, 0x5a,
443 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
444 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f,
445 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65,
446 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
Damien Neil46abb572018-09-07 12:45:37 -0700447}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800448
Joe Tsai5d72cc22019-03-28 01:13:26 -0700449var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700450 file_proto2_enum_proto_rawDescOnce sync.Once
451 file_proto2_enum_proto_rawDescData = file_proto2_enum_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700452)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800453
Joe Tsai7ca70982019-04-15 13:57:56 -0700454func file_proto2_enum_proto_rawDescGZIP() []byte {
455 file_proto2_enum_proto_rawDescOnce.Do(func() {
456 file_proto2_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_enum_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700457 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700458 return file_proto2_enum_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700459}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800460
Joe Tsaid8881392019-06-06 13:01:53 -0700461var file_proto2_enum_proto_enumTypes = make([]prototype.Enum, 6)
Joe Tsai4fe96632019-05-22 05:12:36 -0400462var file_proto2_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
Joe Tsai7ca70982019-04-15 13:57:56 -0700463var file_proto2_enum_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800464 (EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
465 (EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
466 (EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
467 (EnumContainerMessage1_NestedEnumType1B)(0), // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B
468 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A
469 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B
470 (*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1
471 (*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800472}
Joe Tsai7ca70982019-04-15 13:57:56 -0700473var file_proto2_enum_proto_depIdxs = []int32{
Damien Neil8012b442019-01-18 09:32:24 -0800474 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2
475 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2
Joe Tsaid8881392019-06-06 13:01:53 -0700476 2, // starting offset of method output_type sub-list
477 2, // starting offset of method input_type sub-list
478 2, // starting offset of extension type_name sub-list
479 2, // starting offset of extension extendee sub-list
480 0, // starting offset of field type_name sub-list
Joe Tsaib6405bd2018-11-15 14:44:37 -0800481}
Damien Neil8012b442019-01-18 09:32:24 -0800482
Joe Tsai7ca70982019-04-15 13:57:56 -0700483func init() { file_proto2_enum_proto_init() }
484func file_proto2_enum_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800485 if File_proto2_enum_proto != nil {
486 return
487 }
Joe Tsaid8881392019-06-06 13:01:53 -0700488 out := protoimpl.TypeBuilder{
489 File: protoimpl.DescBuilder{
490 RawDescriptor: file_proto2_enum_proto_rawDesc,
491 NumEnums: 6,
492 NumMessages: 2,
493 NumExtensions: 0,
494 NumServices: 0,
495 },
496 GoTypes: file_proto2_enum_proto_goTypes,
497 DependencyIndexes: file_proto2_enum_proto_depIdxs,
498 MessageInfos: file_proto2_enum_proto_msgTypes,
499 }.Build()
500 File_proto2_enum_proto = out.File
501 file_proto2_enum_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700502 file_proto2_enum_proto_rawDesc = nil
503 file_proto2_enum_proto_goTypes = nil
504 file_proto2_enum_proto_depIdxs = nil
Joe Tsaib6405bd2018-11-15 14:44:37 -0800505}