blob: 1f04065d879e2bd567010233669ed815acffdf90 [file] [log] [blame]
Joe Tsai8d5e6d62019-08-06 01:15:48 -07001// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Different proto type definitions for testing the Types registry.
6
Herbie Ong6e67a1d2018-12-26 15:57:16 -08007// Code generated by protoc-gen-go. DO NOT EDIT.
Joe Tsai19058432019-02-27 21:46:29 -08008// source: test.proto
Herbie Ong6e67a1d2018-12-26 15:57:16 -08009
10package testprotos
11
12import (
Damien Neile89e6242019-05-13 23:55:40 -070013 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
Damien Neile89e6242019-05-13 23:55:40 -070014 protoiface "google.golang.org/protobuf/runtime/protoiface"
15 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
Joe Tsaiaf570872019-07-14 23:04:40 -070016 reflect "reflect"
Joe Tsai5d72cc22019-03-28 01:13:26 -070017 sync "sync"
Herbie Ong6e67a1d2018-12-26 15:57:16 -080018)
19
Herbie Ong6e67a1d2018-12-26 15:57:16 -080020type Enum1 int32
21
22const (
23 Enum1_ONE Enum1 = 1
24)
25
Joe Tsai9b8a4332019-08-05 18:38:48 -070026// Enum value maps for Enum1.
27var (
28 Enum1_name = map[int32]string{
29 1: "ONE",
30 }
31 Enum1_value = map[string]int32{
32 "ONE": 1,
33 }
34)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080035
36func (x Enum1) Enum() *Enum1 {
Joe Tsai09b5b462019-04-10 15:29:01 -070037 p := new(Enum1)
38 *p = x
39 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -080040}
41
42func (x Enum1) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070043 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -080044}
45
Joe Tsai0fc49f82019-05-01 12:29:25 -070046func (Enum1) Descriptor() protoreflect.EnumDescriptor {
Damien Neil4401a0d2019-08-06 15:26:36 -070047 return file_test_proto_enumTypes[0].Descriptor()
Joe Tsai0fc49f82019-05-01 12:29:25 -070048}
49
Joe Tsaid4211502019-07-02 14:58:02 -070050func (Enum1) Type() protoreflect.EnumType {
51 return &file_test_proto_enumTypes[0]
52}
53
Joe Tsai61968ce2019-04-01 12:59:24 -070054func (x Enum1) Number() protoreflect.EnumNumber {
55 return protoreflect.EnumNumber(x)
56}
57
Joe Tsai8e506a82019-03-16 00:05:34 -070058// Deprecated: Do not use.
59func (x *Enum1) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -070060 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080061 if err != nil {
62 return err
63 }
Joe Tsai8e506a82019-03-16 00:05:34 -070064 *x = Enum1(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080065 return nil
66}
67
Joe Tsai43761bd2019-07-17 18:06:47 -070068// Deprecated: Use Enum1.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -080069func (Enum1) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070070 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -080071}
72
73type Enum2 int32
74
75const (
76 Enum2_UNO Enum2 = 1
77)
78
Joe Tsai9b8a4332019-08-05 18:38:48 -070079// Enum value maps for Enum2.
80var (
81 Enum2_name = map[int32]string{
82 1: "UNO",
83 }
84 Enum2_value = map[string]int32{
85 "UNO": 1,
86 }
87)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080088
89func (x Enum2) Enum() *Enum2 {
Joe Tsai09b5b462019-04-10 15:29:01 -070090 p := new(Enum2)
91 *p = x
92 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -080093}
94
95func (x Enum2) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070096 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -080097}
98
Joe Tsai0fc49f82019-05-01 12:29:25 -070099func (Enum2) Descriptor() protoreflect.EnumDescriptor {
Damien Neil4401a0d2019-08-06 15:26:36 -0700100 return file_test_proto_enumTypes[1].Descriptor()
Joe Tsai0fc49f82019-05-01 12:29:25 -0700101}
102
Joe Tsaid4211502019-07-02 14:58:02 -0700103func (Enum2) Type() protoreflect.EnumType {
104 return &file_test_proto_enumTypes[1]
105}
106
Joe Tsai61968ce2019-04-01 12:59:24 -0700107func (x Enum2) Number() protoreflect.EnumNumber {
108 return protoreflect.EnumNumber(x)
109}
110
Joe Tsai8e506a82019-03-16 00:05:34 -0700111// Deprecated: Do not use.
112func (x *Enum2) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700113 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800114 if err != nil {
115 return err
116 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700117 *x = Enum2(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800118 return nil
119}
120
Joe Tsai43761bd2019-07-17 18:06:47 -0700121// Deprecated: Use Enum2.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800122func (Enum2) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700123 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800124}
125
126type Enum3 int32
127
128const (
129 Enum3_YI Enum3 = 1
130)
131
Joe Tsai9b8a4332019-08-05 18:38:48 -0700132// Enum value maps for Enum3.
133var (
134 Enum3_name = map[int32]string{
135 1: "YI",
136 }
137 Enum3_value = map[string]int32{
138 "YI": 1,
139 }
140)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800141
142func (x Enum3) Enum() *Enum3 {
Joe Tsai09b5b462019-04-10 15:29:01 -0700143 p := new(Enum3)
144 *p = x
145 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800146}
147
148func (x Enum3) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700149 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800150}
151
Joe Tsai0fc49f82019-05-01 12:29:25 -0700152func (Enum3) Descriptor() protoreflect.EnumDescriptor {
Damien Neil4401a0d2019-08-06 15:26:36 -0700153 return file_test_proto_enumTypes[2].Descriptor()
Joe Tsai0fc49f82019-05-01 12:29:25 -0700154}
155
Joe Tsaid4211502019-07-02 14:58:02 -0700156func (Enum3) Type() protoreflect.EnumType {
157 return &file_test_proto_enumTypes[2]
158}
159
Joe Tsai61968ce2019-04-01 12:59:24 -0700160func (x Enum3) Number() protoreflect.EnumNumber {
161 return protoreflect.EnumNumber(x)
162}
163
Joe Tsai8e506a82019-03-16 00:05:34 -0700164// Deprecated: Do not use.
165func (x *Enum3) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700166 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800167 if err != nil {
168 return err
169 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700170 *x = Enum3(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800171 return nil
172}
173
Joe Tsai43761bd2019-07-17 18:06:47 -0700174// Deprecated: Use Enum3.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800175func (Enum3) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700176 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800177}
178
179type Message1 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700180 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700181 sizeCache protoimpl.SizeCache
182 unknownFields protoimpl.UnknownFields
Joe Tsai6ceeaab2019-07-08 12:31:21 -0700183 extensionFields protoimpl.ExtensionFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800184}
185
Joe Tsai61968ce2019-04-01 12:59:24 -0700186func (x *Message1) Reset() {
187 *x = Message1{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800188}
Joe Tsai61968ce2019-04-01 12:59:24 -0700189
190func (x *Message1) String() string {
191 return protoimpl.X.MessageStringOf(x)
192}
193
194func (*Message1) ProtoMessage() {}
195
196func (x *Message1) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700197 mi := &file_test_proto_msgTypes[0]
198 if protoimpl.UnsafeEnabled && x != nil {
199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
200 if ms.LoadMessageInfo() == nil {
201 ms.StoreMessageInfo(mi)
202 }
203 return ms
204 }
205 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700206}
Joe Tsai8e506a82019-03-16 00:05:34 -0700207
Joe Tsai43761bd2019-07-17 18:06:47 -0700208// Deprecated: Use Message1.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800209func (*Message1) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700210 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800211}
212
Joe Tsai4fddeba2019-03-20 18:29:32 -0700213var extRange_Message1 = []protoiface.ExtensionRangeV1{
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800214 {Start: 10, End: 536870911},
215}
216
Joe Tsai43761bd2019-07-17 18:06:47 -0700217// Deprecated: Use Message1.ProtoReflect.Descriptor.ExtensionRanges instead.
Joe Tsai4fddeba2019-03-20 18:29:32 -0700218func (*Message1) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800219 return extRange_Message1
220}
221
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800222type Message2 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700223 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700224 sizeCache protoimpl.SizeCache
225 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800226}
227
Joe Tsai61968ce2019-04-01 12:59:24 -0700228func (x *Message2) Reset() {
229 *x = Message2{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800230}
Joe Tsai61968ce2019-04-01 12:59:24 -0700231
232func (x *Message2) String() string {
233 return protoimpl.X.MessageStringOf(x)
234}
235
236func (*Message2) ProtoMessage() {}
237
238func (x *Message2) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700239 mi := &file_test_proto_msgTypes[1]
240 if protoimpl.UnsafeEnabled && x != nil {
241 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
242 if ms.LoadMessageInfo() == nil {
243 ms.StoreMessageInfo(mi)
244 }
245 return ms
246 }
247 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700248}
Joe Tsai8e506a82019-03-16 00:05:34 -0700249
Joe Tsai43761bd2019-07-17 18:06:47 -0700250// Deprecated: Use Message2.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800251func (*Message2) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700252 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800253}
254
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800255type Message3 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700256 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700257 sizeCache protoimpl.SizeCache
258 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800259}
260
Joe Tsai61968ce2019-04-01 12:59:24 -0700261func (x *Message3) Reset() {
262 *x = Message3{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800263}
Joe Tsai61968ce2019-04-01 12:59:24 -0700264
265func (x *Message3) String() string {
266 return protoimpl.X.MessageStringOf(x)
267}
268
269func (*Message3) ProtoMessage() {}
270
271func (x *Message3) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700272 mi := &file_test_proto_msgTypes[2]
273 if protoimpl.UnsafeEnabled && x != nil {
274 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
275 if ms.LoadMessageInfo() == nil {
276 ms.StoreMessageInfo(mi)
277 }
278 return ms
279 }
280 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700281}
Joe Tsai8e506a82019-03-16 00:05:34 -0700282
Joe Tsai43761bd2019-07-17 18:06:47 -0700283// Deprecated: Use Message3.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800284func (*Message3) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700285 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800286}
287
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800288type Message4 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700289 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700290 sizeCache protoimpl.SizeCache
291 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700292
293 BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800294}
295
Joe Tsai61968ce2019-04-01 12:59:24 -0700296func (x *Message4) Reset() {
297 *x = Message4{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800298}
Joe Tsai61968ce2019-04-01 12:59:24 -0700299
300func (x *Message4) String() string {
301 return protoimpl.X.MessageStringOf(x)
302}
303
304func (*Message4) ProtoMessage() {}
305
306func (x *Message4) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700307 mi := &file_test_proto_msgTypes[3]
308 if protoimpl.UnsafeEnabled && x != nil {
309 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
310 if ms.LoadMessageInfo() == nil {
311 ms.StoreMessageInfo(mi)
312 }
313 return ms
314 }
315 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700316}
Joe Tsai8e506a82019-03-16 00:05:34 -0700317
Joe Tsai43761bd2019-07-17 18:06:47 -0700318// Deprecated: Use Message4.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800319func (*Message4) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700320 return file_test_proto_rawDescGZIP(), []int{3}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800321}
322
Joe Tsai61968ce2019-04-01 12:59:24 -0700323func (x *Message4) GetBoolField() bool {
324 if x != nil && x.BoolField != nil {
325 return *x.BoolField
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800326 }
327 return false
328}
329
Joe Tsai7ca70982019-04-15 13:57:56 -0700330var file_test_proto_extDescs = []protoiface.ExtensionDescV1{
Joe Tsaiafb455e2019-03-14 16:08:22 -0700331 {
332 ExtendedType: (*Message1)(nil),
333 ExtensionType: (*string)(nil),
334 Field: 11,
335 Name: "testprotos.string_field",
336 Tag: "bytes,11,opt,name=string_field",
337 Filename: "test.proto",
338 },
339 {
340 ExtendedType: (*Message1)(nil),
341 ExtensionType: (*Enum1)(nil),
342 Field: 12,
343 Name: "testprotos.enum_field",
344 Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1",
345 Filename: "test.proto",
346 },
347 {
348 ExtendedType: (*Message1)(nil),
349 ExtensionType: (*Message2)(nil),
350 Field: 13,
351 Name: "testprotos.message_field",
352 Tag: "bytes,13,opt,name=message_field",
353 Filename: "test.proto",
354 },
355 {
356 ExtendedType: (*Message1)(nil),
357 ExtensionType: (*Message2)(nil),
358 Field: 21,
359 Name: "testprotos.Message4.message_field",
360 Tag: "bytes,21,opt,name=message_field",
361 Filename: "test.proto",
362 },
363 {
364 ExtendedType: (*Message1)(nil),
365 ExtensionType: (*Enum1)(nil),
366 Field: 22,
367 Name: "testprotos.Message4.enum_field",
368 Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1",
369 Filename: "test.proto",
370 },
371 {
372 ExtendedType: (*Message1)(nil),
373 ExtensionType: (*string)(nil),
374 Field: 23,
375 Name: "testprotos.Message4.string_field",
376 Tag: "bytes,23,opt,name=string_field",
377 Filename: "test.proto",
378 },
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800379}
Joe Tsai4a7d6332019-08-06 16:45:11 -0700380
381// Extension fields to Message1.
Joe Tsaiafb455e2019-03-14 16:08:22 -0700382var (
Joe Tsai4a7d6332019-08-06 16:45:11 -0700383 // optional string string_field = 11;
Joe Tsai7ca70982019-04-15 13:57:56 -0700384 E_StringField = &file_test_proto_extDescs[0]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700385 // optional testprotos.Enum1 enum_field = 12;
Joe Tsai7ca70982019-04-15 13:57:56 -0700386 E_EnumField = &file_test_proto_extDescs[1]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700387 // optional testprotos.Message2 message_field = 13;
Joe Tsai7ca70982019-04-15 13:57:56 -0700388 E_MessageField = &file_test_proto_extDescs[2]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700389 // optional testprotos.Message2 message_field = 21;
Joe Tsai7ca70982019-04-15 13:57:56 -0700390 E_Message4_MessageField = &file_test_proto_extDescs[3]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700391 // optional testprotos.Enum1 enum_field = 22;
Joe Tsai7ca70982019-04-15 13:57:56 -0700392 E_Message4_EnumField = &file_test_proto_extDescs[4]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700393 // optional string string_field = 23;
Joe Tsai7ca70982019-04-15 13:57:56 -0700394 E_Message4_StringField = &file_test_proto_extDescs[5]
Joe Tsaiafb455e2019-03-14 16:08:22 -0700395)
Joe Tsai4a7d6332019-08-06 16:45:11 -0700396
Joe Tsai5d72cc22019-03-28 01:13:26 -0700397var File_test_proto protoreflect.FileDescriptor
398
Joe Tsai7ca70982019-04-15 13:57:56 -0700399var file_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800400 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65,
401 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73,
402 0x61, 0x67, 0x65, 0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a,
403 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65,
404 0x73, 0x73, 0x61, 0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61,
405 0x67, 0x65, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c,
406 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65,
407 0x6c, 0x64, 0x32, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69,
408 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
409 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32,
410 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73,
411 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69,
412 0x65, 0x6c, 0x64, 0x32, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c,
Damien Neil8012b442019-01-18 09:32:24 -0800413 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d,
Joe Tsai19058432019-02-27 21:46:29 -0800414 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e,
Damien Neil8012b442019-01-18 09:32:24 -0800415 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31,
Joe Tsai19058432019-02-27 21:46:29 -0800416 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73,
417 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
418 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
419 0x31, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46,
420 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a,
421 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12,
422 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d,
423 0x33, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72,
424 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74,
425 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18,
426 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65,
427 0x6c, 0x64, 0x3a, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64,
428 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65,
429 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74,
430 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52,
431 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65,
432 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
433 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
434 0x31, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72,
435 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d,
Damien Neile89e6242019-05-13 23:55:40 -0700436 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x3d, 0x5a, 0x3b, 0x67,
437 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
438 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63,
439 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
440 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800441}
442
Joe Tsai5d72cc22019-03-28 01:13:26 -0700443var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700444 file_test_proto_rawDescOnce sync.Once
445 file_test_proto_rawDescData = file_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700446)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800447
Joe Tsai7ca70982019-04-15 13:57:56 -0700448func file_test_proto_rawDescGZIP() []byte {
449 file_test_proto_rawDescOnce.Do(func() {
450 file_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700451 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700452 return file_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700453}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800454
Damien Neil4401a0d2019-08-06 15:26:36 -0700455var file_test_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
Joe Tsai4fe96632019-05-22 05:12:36 -0400456var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
Joe Tsai7ca70982019-04-15 13:57:56 -0700457var file_test_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800458 (Enum1)(0), // 0: testprotos.Enum1
459 (Enum2)(0), // 1: testprotos.Enum2
460 (Enum3)(0), // 2: testprotos.Enum3
461 (*Message1)(nil), // 3: testprotos.Message1
462 (*Message2)(nil), // 4: testprotos.Message2
463 (*Message3)(nil), // 5: testprotos.Message3
464 (*Message4)(nil), // 6: testprotos.Message4
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800465}
Joe Tsai7ca70982019-04-15 13:57:56 -0700466var file_test_proto_depIdxs = []int32{
Joe Tsaid8881392019-06-06 13:01:53 -0700467 3, // testprotos.string_field:extendee -> testprotos.Message1
468 3, // testprotos.enum_field:extendee -> testprotos.Message1
469 3, // testprotos.message_field:extendee -> testprotos.Message1
470 3, // testprotos.Message4.message_field:extendee -> testprotos.Message1
471 3, // testprotos.Message4.enum_field:extendee -> testprotos.Message1
472 3, // testprotos.Message4.string_field:extendee -> testprotos.Message1
473 0, // testprotos.enum_field:type_name -> testprotos.Enum1
474 4, // testprotos.message_field:type_name -> testprotos.Message2
475 4, // testprotos.Message4.message_field:type_name -> testprotos.Message2
476 0, // testprotos.Message4.enum_field:type_name -> testprotos.Enum1
477 10, // starting offset of method output_type sub-list
478 10, // starting offset of method input_type sub-list
479 6, // starting offset of extension type_name sub-list
480 0, // starting offset of extension extendee sub-list
481 0, // starting offset of field type_name sub-list
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800482}
Damien Neil8012b442019-01-18 09:32:24 -0800483
Joe Tsai7ca70982019-04-15 13:57:56 -0700484func init() { file_test_proto_init() }
485func file_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800486 if File_test_proto != nil {
487 return
488 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700489 if !protoimpl.UnsafeEnabled {
490 file_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
491 switch v := v.(*Message1); i {
492 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700493 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700494 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700495 return &v.sizeCache
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700496 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700497 return &v.unknownFields
498 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700499 return &v.extensionFields
500 default:
501 return nil
502 }
503 }
504 file_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
505 switch v := v.(*Message2); i {
506 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700507 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700508 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700509 return &v.sizeCache
510 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700511 return &v.unknownFields
512 default:
513 return nil
514 }
515 }
516 file_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
517 switch v := v.(*Message3); i {
518 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700519 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700520 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700521 return &v.sizeCache
522 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700523 return &v.unknownFields
524 default:
525 return nil
526 }
527 }
528 file_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
529 switch v := v.(*Message4); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700530 case 0:
531 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700532 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700533 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700534 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700535 return &v.unknownFields
536 default:
537 return nil
538 }
539 }
540 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700541 type x struct{}
Joe Tsaid8881392019-06-06 13:01:53 -0700542 out := protoimpl.TypeBuilder{
543 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700544 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Joe Tsaid8881392019-06-06 13:01:53 -0700545 RawDescriptor: file_test_proto_rawDesc,
546 NumEnums: 3,
547 NumMessages: 4,
548 NumExtensions: 6,
549 NumServices: 0,
550 },
551 GoTypes: file_test_proto_goTypes,
552 DependencyIndexes: file_test_proto_depIdxs,
Damien Neil4401a0d2019-08-06 15:26:36 -0700553 EnumInfos: file_test_proto_enumTypes,
Joe Tsaid8881392019-06-06 13:01:53 -0700554 MessageInfos: file_test_proto_msgTypes,
555 LegacyExtensions: file_test_proto_extDescs,
556 }.Build()
557 File_test_proto = out.File
Joe Tsai7ca70982019-04-15 13:57:56 -0700558 file_test_proto_rawDesc = nil
559 file_test_proto_goTypes = nil
560 file_test_proto_depIdxs = nil
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800561}