blob: 2e100758078167fe611c1408ae5e4ca0bd9309d4 [file] [log] [blame]
Herbie Ong6e67a1d2018-12-26 15:57:16 -08001// Code generated by protoc-gen-go. DO NOT EDIT.
Joe Tsai19058432019-02-27 21:46:29 -08002// source: test.proto
Herbie Ong6e67a1d2018-12-26 15:57:16 -08003
4package testprotos
5
6import (
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 Tsaiaf570872019-07-14 23:04:40 -070011 reflect "reflect"
Joe Tsai5d72cc22019-03-28 01:13:26 -070012 sync "sync"
Herbie Ong6e67a1d2018-12-26 15:57:16 -080013)
14
Joe Tsai58b42d82019-05-22 16:27:51 -040015const (
16 // Verify that runtime/protoimpl is sufficiently up-to-date.
17 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
18 // Verify that this generated code is sufficiently up-to-date.
19 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
20)
Joe Tsai5d72cc22019-03-28 01:13:26 -070021
Herbie Ong6e67a1d2018-12-26 15:57:16 -080022type Enum1 int32
23
24const (
25 Enum1_ONE Enum1 = 1
26)
27
Joe Tsai9b8a4332019-08-05 18:38:48 -070028// Enum value maps for Enum1.
29var (
30 Enum1_name = map[int32]string{
31 1: "ONE",
32 }
33 Enum1_value = map[string]int32{
34 "ONE": 1,
35 }
36)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080037
38func (x Enum1) Enum() *Enum1 {
Joe Tsai09b5b462019-04-10 15:29:01 -070039 p := new(Enum1)
40 *p = x
41 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -080042}
43
44func (x Enum1) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070045 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -080046}
47
Joe Tsai0fc49f82019-05-01 12:29:25 -070048func (Enum1) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -070049 return file_test_proto_enumTypes[0].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070050}
51
Joe Tsaid4211502019-07-02 14:58:02 -070052func (Enum1) Type() protoreflect.EnumType {
53 return &file_test_proto_enumTypes[0]
54}
55
Joe Tsai61968ce2019-04-01 12:59:24 -070056func (x Enum1) Number() protoreflect.EnumNumber {
57 return protoreflect.EnumNumber(x)
58}
59
Joe Tsai8e506a82019-03-16 00:05:34 -070060// Deprecated: Do not use.
61func (x *Enum1) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -070062 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080063 if err != nil {
64 return err
65 }
Joe Tsai8e506a82019-03-16 00:05:34 -070066 *x = Enum1(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080067 return nil
68}
69
Joe Tsai43761bd2019-07-17 18:06:47 -070070// Deprecated: Use Enum1.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -080071func (Enum1) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070072 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -080073}
74
75type Enum2 int32
76
77const (
78 Enum2_UNO Enum2 = 1
79)
80
Joe Tsai9b8a4332019-08-05 18:38:48 -070081// Enum value maps for Enum2.
82var (
83 Enum2_name = map[int32]string{
84 1: "UNO",
85 }
86 Enum2_value = map[string]int32{
87 "UNO": 1,
88 }
89)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080090
91func (x Enum2) Enum() *Enum2 {
Joe Tsai09b5b462019-04-10 15:29:01 -070092 p := new(Enum2)
93 *p = x
94 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -080095}
96
97func (x Enum2) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070098 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -080099}
100
Joe Tsai0fc49f82019-05-01 12:29:25 -0700101func (Enum2) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700102 return file_test_proto_enumTypes[1].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700103}
104
Joe Tsaid4211502019-07-02 14:58:02 -0700105func (Enum2) Type() protoreflect.EnumType {
106 return &file_test_proto_enumTypes[1]
107}
108
Joe Tsai61968ce2019-04-01 12:59:24 -0700109func (x Enum2) Number() protoreflect.EnumNumber {
110 return protoreflect.EnumNumber(x)
111}
112
Joe Tsai8e506a82019-03-16 00:05:34 -0700113// Deprecated: Do not use.
114func (x *Enum2) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700115 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800116 if err != nil {
117 return err
118 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700119 *x = Enum2(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800120 return nil
121}
122
Joe Tsai43761bd2019-07-17 18:06:47 -0700123// Deprecated: Use Enum2.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800124func (Enum2) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700125 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800126}
127
128type Enum3 int32
129
130const (
131 Enum3_YI Enum3 = 1
132)
133
Joe Tsai9b8a4332019-08-05 18:38:48 -0700134// Enum value maps for Enum3.
135var (
136 Enum3_name = map[int32]string{
137 1: "YI",
138 }
139 Enum3_value = map[string]int32{
140 "YI": 1,
141 }
142)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800143
144func (x Enum3) Enum() *Enum3 {
Joe Tsai09b5b462019-04-10 15:29:01 -0700145 p := new(Enum3)
146 *p = x
147 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800148}
149
150func (x Enum3) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700151 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800152}
153
Joe Tsai0fc49f82019-05-01 12:29:25 -0700154func (Enum3) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700155 return file_test_proto_enumTypes[2].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700156}
157
Joe Tsaid4211502019-07-02 14:58:02 -0700158func (Enum3) Type() protoreflect.EnumType {
159 return &file_test_proto_enumTypes[2]
160}
161
Joe Tsai61968ce2019-04-01 12:59:24 -0700162func (x Enum3) Number() protoreflect.EnumNumber {
163 return protoreflect.EnumNumber(x)
164}
165
Joe Tsai8e506a82019-03-16 00:05:34 -0700166// Deprecated: Do not use.
167func (x *Enum3) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700168 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800169 if err != nil {
170 return err
171 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700172 *x = Enum3(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800173 return nil
174}
175
Joe Tsai43761bd2019-07-17 18:06:47 -0700176// Deprecated: Use Enum3.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800177func (Enum3) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700178 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800179}
180
181type Message1 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700182 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700183 sizeCache protoimpl.SizeCache
184 unknownFields protoimpl.UnknownFields
Joe Tsai6ceeaab2019-07-08 12:31:21 -0700185 extensionFields protoimpl.ExtensionFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800186}
187
Joe Tsai61968ce2019-04-01 12:59:24 -0700188func (x *Message1) Reset() {
189 *x = Message1{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800190}
Joe Tsai61968ce2019-04-01 12:59:24 -0700191
192func (x *Message1) String() string {
193 return protoimpl.X.MessageStringOf(x)
194}
195
196func (*Message1) ProtoMessage() {}
197
198func (x *Message1) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700199 mi := &file_test_proto_msgTypes[0]
200 if protoimpl.UnsafeEnabled && x != nil {
201 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
202 if ms.LoadMessageInfo() == nil {
203 ms.StoreMessageInfo(mi)
204 }
205 return ms
206 }
207 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700208}
Joe Tsai8e506a82019-03-16 00:05:34 -0700209
Joe Tsai43761bd2019-07-17 18:06:47 -0700210// Deprecated: Use Message1.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800211func (*Message1) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700212 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800213}
214
Joe Tsai4fddeba2019-03-20 18:29:32 -0700215var extRange_Message1 = []protoiface.ExtensionRangeV1{
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800216 {Start: 10, End: 536870911},
217}
218
Joe Tsai43761bd2019-07-17 18:06:47 -0700219// Deprecated: Use Message1.ProtoReflect.Descriptor.ExtensionRanges instead.
Joe Tsai4fddeba2019-03-20 18:29:32 -0700220func (*Message1) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800221 return extRange_Message1
222}
223
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800224type Message2 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700225 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700226 sizeCache protoimpl.SizeCache
227 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800228}
229
Joe Tsai61968ce2019-04-01 12:59:24 -0700230func (x *Message2) Reset() {
231 *x = Message2{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800232}
Joe Tsai61968ce2019-04-01 12:59:24 -0700233
234func (x *Message2) String() string {
235 return protoimpl.X.MessageStringOf(x)
236}
237
238func (*Message2) ProtoMessage() {}
239
240func (x *Message2) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700241 mi := &file_test_proto_msgTypes[1]
242 if protoimpl.UnsafeEnabled && x != nil {
243 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
244 if ms.LoadMessageInfo() == nil {
245 ms.StoreMessageInfo(mi)
246 }
247 return ms
248 }
249 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700250}
Joe Tsai8e506a82019-03-16 00:05:34 -0700251
Joe Tsai43761bd2019-07-17 18:06:47 -0700252// Deprecated: Use Message2.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800253func (*Message2) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700254 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800255}
256
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800257type Message3 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700258 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700259 sizeCache protoimpl.SizeCache
260 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800261}
262
Joe Tsai61968ce2019-04-01 12:59:24 -0700263func (x *Message3) Reset() {
264 *x = Message3{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800265}
Joe Tsai61968ce2019-04-01 12:59:24 -0700266
267func (x *Message3) String() string {
268 return protoimpl.X.MessageStringOf(x)
269}
270
271func (*Message3) ProtoMessage() {}
272
273func (x *Message3) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700274 mi := &file_test_proto_msgTypes[2]
275 if protoimpl.UnsafeEnabled && x != nil {
276 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
277 if ms.LoadMessageInfo() == nil {
278 ms.StoreMessageInfo(mi)
279 }
280 return ms
281 }
282 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700283}
Joe Tsai8e506a82019-03-16 00:05:34 -0700284
Joe Tsai43761bd2019-07-17 18:06:47 -0700285// Deprecated: Use Message3.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800286func (*Message3) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700287 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800288}
289
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800290type Message4 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700291 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700292 sizeCache protoimpl.SizeCache
293 unknownFields protoimpl.UnknownFields
Joe Tsai38b61962019-08-05 13:09:30 -0700294 BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800295}
296
Joe Tsai61968ce2019-04-01 12:59:24 -0700297func (x *Message4) Reset() {
298 *x = Message4{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800299}
Joe Tsai61968ce2019-04-01 12:59:24 -0700300
301func (x *Message4) String() string {
302 return protoimpl.X.MessageStringOf(x)
303}
304
305func (*Message4) ProtoMessage() {}
306
307func (x *Message4) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700308 mi := &file_test_proto_msgTypes[3]
309 if protoimpl.UnsafeEnabled && x != nil {
310 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
311 if ms.LoadMessageInfo() == nil {
312 ms.StoreMessageInfo(mi)
313 }
314 return ms
315 }
316 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700317}
Joe Tsai8e506a82019-03-16 00:05:34 -0700318
Joe Tsai43761bd2019-07-17 18:06:47 -0700319// Deprecated: Use Message4.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800320func (*Message4) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700321 return file_test_proto_rawDescGZIP(), []int{3}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800322}
323
Joe Tsai61968ce2019-04-01 12:59:24 -0700324func (x *Message4) GetBoolField() bool {
325 if x != nil && x.BoolField != nil {
326 return *x.BoolField
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800327 }
328 return false
329}
330
Joe Tsai7ca70982019-04-15 13:57:56 -0700331var file_test_proto_extDescs = []protoiface.ExtensionDescV1{
Joe Tsaiafb455e2019-03-14 16:08:22 -0700332 {
333 ExtendedType: (*Message1)(nil),
334 ExtensionType: (*string)(nil),
335 Field: 11,
336 Name: "testprotos.string_field",
337 Tag: "bytes,11,opt,name=string_field",
338 Filename: "test.proto",
339 },
340 {
341 ExtendedType: (*Message1)(nil),
342 ExtensionType: (*Enum1)(nil),
343 Field: 12,
344 Name: "testprotos.enum_field",
345 Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1",
346 Filename: "test.proto",
347 },
348 {
349 ExtendedType: (*Message1)(nil),
350 ExtensionType: (*Message2)(nil),
351 Field: 13,
352 Name: "testprotos.message_field",
353 Tag: "bytes,13,opt,name=message_field",
354 Filename: "test.proto",
355 },
356 {
357 ExtendedType: (*Message1)(nil),
358 ExtensionType: (*Message2)(nil),
359 Field: 21,
360 Name: "testprotos.Message4.message_field",
361 Tag: "bytes,21,opt,name=message_field",
362 Filename: "test.proto",
363 },
364 {
365 ExtendedType: (*Message1)(nil),
366 ExtensionType: (*Enum1)(nil),
367 Field: 22,
368 Name: "testprotos.Message4.enum_field",
369 Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1",
370 Filename: "test.proto",
371 },
372 {
373 ExtendedType: (*Message1)(nil),
374 ExtensionType: (*string)(nil),
375 Field: 23,
376 Name: "testprotos.Message4.string_field",
377 Tag: "bytes,23,opt,name=string_field",
378 Filename: "test.proto",
379 },
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800380}
Joe Tsai4a7d6332019-08-06 16:45:11 -0700381
382// Extension fields to Message1.
Joe Tsaiafb455e2019-03-14 16:08:22 -0700383var (
Joe Tsai4a7d6332019-08-06 16:45:11 -0700384 // optional string string_field = 11;
Joe Tsai7ca70982019-04-15 13:57:56 -0700385 E_StringField = &file_test_proto_extDescs[0]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700386 // optional testprotos.Enum1 enum_field = 12;
Joe Tsai7ca70982019-04-15 13:57:56 -0700387 E_EnumField = &file_test_proto_extDescs[1]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700388 // optional testprotos.Message2 message_field = 13;
Joe Tsai7ca70982019-04-15 13:57:56 -0700389 E_MessageField = &file_test_proto_extDescs[2]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700390 // optional testprotos.Message2 message_field = 21;
Joe Tsai7ca70982019-04-15 13:57:56 -0700391 E_Message4_MessageField = &file_test_proto_extDescs[3]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700392 // optional testprotos.Enum1 enum_field = 22;
Joe Tsai7ca70982019-04-15 13:57:56 -0700393 E_Message4_EnumField = &file_test_proto_extDescs[4]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700394 // optional string string_field = 23;
Joe Tsai7ca70982019-04-15 13:57:56 -0700395 E_Message4_StringField = &file_test_proto_extDescs[5]
Joe Tsaiafb455e2019-03-14 16:08:22 -0700396)
Joe Tsai4a7d6332019-08-06 16:45:11 -0700397
Joe Tsai5d72cc22019-03-28 01:13:26 -0700398var File_test_proto protoreflect.FileDescriptor
399
Joe Tsai7ca70982019-04-15 13:57:56 -0700400var file_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800401 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65,
402 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73,
403 0x61, 0x67, 0x65, 0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a,
404 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65,
405 0x73, 0x73, 0x61, 0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61,
406 0x67, 0x65, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c,
407 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65,
408 0x6c, 0x64, 0x32, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69,
409 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
410 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32,
411 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73,
412 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69,
413 0x65, 0x6c, 0x64, 0x32, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c,
Damien Neil8012b442019-01-18 09:32:24 -0800414 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d,
Joe Tsai19058432019-02-27 21:46:29 -0800415 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e,
Damien Neil8012b442019-01-18 09:32:24 -0800416 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31,
Joe Tsai19058432019-02-27 21:46:29 -0800417 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73,
418 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
419 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
420 0x31, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46,
421 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a,
422 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12,
423 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d,
424 0x33, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72,
425 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74,
426 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18,
427 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65,
428 0x6c, 0x64, 0x3a, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64,
429 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65,
430 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74,
431 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52,
432 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65,
433 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
434 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
435 0x31, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72,
436 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d,
Damien Neile89e6242019-05-13 23:55:40 -0700437 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x3d, 0x5a, 0x3b, 0x67,
438 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
439 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63,
440 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
441 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800442}
443
Joe Tsai5d72cc22019-03-28 01:13:26 -0700444var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700445 file_test_proto_rawDescOnce sync.Once
446 file_test_proto_rawDescData = file_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700447)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800448
Joe Tsai7ca70982019-04-15 13:57:56 -0700449func file_test_proto_rawDescGZIP() []byte {
450 file_test_proto_rawDescOnce.Do(func() {
451 file_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700452 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700453 return file_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700454}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800455
Joe Tsaid8881392019-06-06 13:01:53 -0700456var file_test_proto_enumTypes = make([]prototype.Enum, 3)
Joe Tsai4fe96632019-05-22 05:12:36 -0400457var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
Joe Tsai7ca70982019-04-15 13:57:56 -0700458var file_test_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800459 (Enum1)(0), // 0: testprotos.Enum1
460 (Enum2)(0), // 1: testprotos.Enum2
461 (Enum3)(0), // 2: testprotos.Enum3
462 (*Message1)(nil), // 3: testprotos.Message1
463 (*Message2)(nil), // 4: testprotos.Message2
464 (*Message3)(nil), // 5: testprotos.Message3
465 (*Message4)(nil), // 6: testprotos.Message4
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800466}
Joe Tsai7ca70982019-04-15 13:57:56 -0700467var file_test_proto_depIdxs = []int32{
Joe Tsaid8881392019-06-06 13:01:53 -0700468 3, // testprotos.string_field:extendee -> testprotos.Message1
469 3, // testprotos.enum_field:extendee -> testprotos.Message1
470 3, // testprotos.message_field:extendee -> testprotos.Message1
471 3, // testprotos.Message4.message_field:extendee -> testprotos.Message1
472 3, // testprotos.Message4.enum_field:extendee -> testprotos.Message1
473 3, // testprotos.Message4.string_field:extendee -> testprotos.Message1
474 0, // testprotos.enum_field:type_name -> testprotos.Enum1
475 4, // testprotos.message_field:type_name -> testprotos.Message2
476 4, // testprotos.Message4.message_field:type_name -> testprotos.Message2
477 0, // testprotos.Message4.enum_field:type_name -> testprotos.Enum1
478 10, // starting offset of method output_type sub-list
479 10, // starting offset of method input_type sub-list
480 6, // starting offset of extension type_name sub-list
481 0, // starting offset of extension extendee sub-list
482 0, // starting offset of field type_name sub-list
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800483}
Damien Neil8012b442019-01-18 09:32:24 -0800484
Joe Tsai7ca70982019-04-15 13:57:56 -0700485func init() { file_test_proto_init() }
486func file_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800487 if File_test_proto != nil {
488 return
489 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700490 if !protoimpl.UnsafeEnabled {
491 file_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
492 switch v := v.(*Message1); i {
493 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700494 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700495 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700496 return &v.sizeCache
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700497 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700498 return &v.unknownFields
499 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700500 return &v.extensionFields
501 default:
502 return nil
503 }
504 }
505 file_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
506 switch v := v.(*Message2); i {
507 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700508 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700509 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700510 return &v.sizeCache
511 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700512 return &v.unknownFields
513 default:
514 return nil
515 }
516 }
517 file_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
518 switch v := v.(*Message3); i {
519 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700520 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700521 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700522 return &v.sizeCache
523 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700524 return &v.unknownFields
525 default:
526 return nil
527 }
528 }
529 file_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
530 switch v := v.(*Message4); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700531 case 0:
532 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700533 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700534 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700535 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700536 return &v.unknownFields
537 default:
538 return nil
539 }
540 }
541 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700542 type x struct{}
Joe Tsaid8881392019-06-06 13:01:53 -0700543 out := protoimpl.TypeBuilder{
544 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700545 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Joe Tsaid8881392019-06-06 13:01:53 -0700546 RawDescriptor: file_test_proto_rawDesc,
547 NumEnums: 3,
548 NumMessages: 4,
549 NumExtensions: 6,
550 NumServices: 0,
551 },
552 GoTypes: file_test_proto_goTypes,
553 DependencyIndexes: file_test_proto_depIdxs,
554 MessageInfos: file_test_proto_msgTypes,
555 LegacyExtensions: file_test_proto_extDescs,
556 }.Build()
557 File_test_proto = out.File
558 file_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700559 file_test_proto_rawDesc = nil
560 file_test_proto_goTypes = nil
561 file_test_proto_depIdxs = nil
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800562}