blob: e819612e4e39983279d1f8ae91182cd1be9739bb [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"
Joe Tsaid8881392019-06-06 13:01:53 -070014 prototype "google.golang.org/protobuf/reflect/prototype"
Damien Neile89e6242019-05-13 23:55:40 -070015 protoiface "google.golang.org/protobuf/runtime/protoiface"
16 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
Joe Tsaiaf570872019-07-14 23:04:40 -070017 reflect "reflect"
Joe Tsai5d72cc22019-03-28 01:13:26 -070018 sync "sync"
Herbie Ong6e67a1d2018-12-26 15:57:16 -080019)
20
Joe Tsai58b42d82019-05-22 16:27:51 -040021const (
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
24 // Verify that this generated code is sufficiently up-to-date.
25 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
26)
Joe Tsai5d72cc22019-03-28 01:13:26 -070027
Herbie Ong6e67a1d2018-12-26 15:57:16 -080028type Enum1 int32
29
30const (
31 Enum1_ONE Enum1 = 1
32)
33
Joe Tsai9b8a4332019-08-05 18:38:48 -070034// Enum value maps for Enum1.
35var (
36 Enum1_name = map[int32]string{
37 1: "ONE",
38 }
39 Enum1_value = map[string]int32{
40 "ONE": 1,
41 }
42)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080043
44func (x Enum1) Enum() *Enum1 {
Joe Tsai09b5b462019-04-10 15:29:01 -070045 p := new(Enum1)
46 *p = x
47 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -080048}
49
50func (x Enum1) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070051 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -080052}
53
Joe Tsai0fc49f82019-05-01 12:29:25 -070054func (Enum1) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -070055 return file_test_proto_enumTypes[0].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070056}
57
Joe Tsaid4211502019-07-02 14:58:02 -070058func (Enum1) Type() protoreflect.EnumType {
59 return &file_test_proto_enumTypes[0]
60}
61
Joe Tsai61968ce2019-04-01 12:59:24 -070062func (x Enum1) Number() protoreflect.EnumNumber {
63 return protoreflect.EnumNumber(x)
64}
65
Joe Tsai8e506a82019-03-16 00:05:34 -070066// Deprecated: Do not use.
67func (x *Enum1) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -070068 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080069 if err != nil {
70 return err
71 }
Joe Tsai8e506a82019-03-16 00:05:34 -070072 *x = Enum1(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080073 return nil
74}
75
Joe Tsai43761bd2019-07-17 18:06:47 -070076// Deprecated: Use Enum1.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -080077func (Enum1) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070078 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -080079}
80
81type Enum2 int32
82
83const (
84 Enum2_UNO Enum2 = 1
85)
86
Joe Tsai9b8a4332019-08-05 18:38:48 -070087// Enum value maps for Enum2.
88var (
89 Enum2_name = map[int32]string{
90 1: "UNO",
91 }
92 Enum2_value = map[string]int32{
93 "UNO": 1,
94 }
95)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080096
97func (x Enum2) Enum() *Enum2 {
Joe Tsai09b5b462019-04-10 15:29:01 -070098 p := new(Enum2)
99 *p = x
100 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800101}
102
103func (x Enum2) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700104 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800105}
106
Joe Tsai0fc49f82019-05-01 12:29:25 -0700107func (Enum2) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700108 return file_test_proto_enumTypes[1].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700109}
110
Joe Tsaid4211502019-07-02 14:58:02 -0700111func (Enum2) Type() protoreflect.EnumType {
112 return &file_test_proto_enumTypes[1]
113}
114
Joe Tsai61968ce2019-04-01 12:59:24 -0700115func (x Enum2) Number() protoreflect.EnumNumber {
116 return protoreflect.EnumNumber(x)
117}
118
Joe Tsai8e506a82019-03-16 00:05:34 -0700119// Deprecated: Do not use.
120func (x *Enum2) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700121 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800122 if err != nil {
123 return err
124 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700125 *x = Enum2(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800126 return nil
127}
128
Joe Tsai43761bd2019-07-17 18:06:47 -0700129// Deprecated: Use Enum2.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800130func (Enum2) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700131 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800132}
133
134type Enum3 int32
135
136const (
137 Enum3_YI Enum3 = 1
138)
139
Joe Tsai9b8a4332019-08-05 18:38:48 -0700140// Enum value maps for Enum3.
141var (
142 Enum3_name = map[int32]string{
143 1: "YI",
144 }
145 Enum3_value = map[string]int32{
146 "YI": 1,
147 }
148)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800149
150func (x Enum3) Enum() *Enum3 {
Joe Tsai09b5b462019-04-10 15:29:01 -0700151 p := new(Enum3)
152 *p = x
153 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800154}
155
156func (x Enum3) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700157 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800158}
159
Joe Tsai0fc49f82019-05-01 12:29:25 -0700160func (Enum3) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700161 return file_test_proto_enumTypes[2].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700162}
163
Joe Tsaid4211502019-07-02 14:58:02 -0700164func (Enum3) Type() protoreflect.EnumType {
165 return &file_test_proto_enumTypes[2]
166}
167
Joe Tsai61968ce2019-04-01 12:59:24 -0700168func (x Enum3) Number() protoreflect.EnumNumber {
169 return protoreflect.EnumNumber(x)
170}
171
Joe Tsai8e506a82019-03-16 00:05:34 -0700172// Deprecated: Do not use.
173func (x *Enum3) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700174 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800175 if err != nil {
176 return err
177 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700178 *x = Enum3(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800179 return nil
180}
181
Joe Tsai43761bd2019-07-17 18:06:47 -0700182// Deprecated: Use Enum3.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800183func (Enum3) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700184 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800185}
186
187type Message1 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700188 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700189 sizeCache protoimpl.SizeCache
190 unknownFields protoimpl.UnknownFields
Joe Tsai6ceeaab2019-07-08 12:31:21 -0700191 extensionFields protoimpl.ExtensionFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800192}
193
Joe Tsai61968ce2019-04-01 12:59:24 -0700194func (x *Message1) Reset() {
195 *x = Message1{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800196}
Joe Tsai61968ce2019-04-01 12:59:24 -0700197
198func (x *Message1) String() string {
199 return protoimpl.X.MessageStringOf(x)
200}
201
202func (*Message1) ProtoMessage() {}
203
204func (x *Message1) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700205 mi := &file_test_proto_msgTypes[0]
206 if protoimpl.UnsafeEnabled && x != nil {
207 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
208 if ms.LoadMessageInfo() == nil {
209 ms.StoreMessageInfo(mi)
210 }
211 return ms
212 }
213 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700214}
Joe Tsai8e506a82019-03-16 00:05:34 -0700215
Joe Tsai43761bd2019-07-17 18:06:47 -0700216// Deprecated: Use Message1.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800217func (*Message1) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700218 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800219}
220
Joe Tsai4fddeba2019-03-20 18:29:32 -0700221var extRange_Message1 = []protoiface.ExtensionRangeV1{
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800222 {Start: 10, End: 536870911},
223}
224
Joe Tsai43761bd2019-07-17 18:06:47 -0700225// Deprecated: Use Message1.ProtoReflect.Descriptor.ExtensionRanges instead.
Joe Tsai4fddeba2019-03-20 18:29:32 -0700226func (*Message1) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800227 return extRange_Message1
228}
229
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800230type Message2 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700231 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700232 sizeCache protoimpl.SizeCache
233 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800234}
235
Joe Tsai61968ce2019-04-01 12:59:24 -0700236func (x *Message2) Reset() {
237 *x = Message2{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800238}
Joe Tsai61968ce2019-04-01 12:59:24 -0700239
240func (x *Message2) String() string {
241 return protoimpl.X.MessageStringOf(x)
242}
243
244func (*Message2) ProtoMessage() {}
245
246func (x *Message2) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700247 mi := &file_test_proto_msgTypes[1]
248 if protoimpl.UnsafeEnabled && x != nil {
249 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
250 if ms.LoadMessageInfo() == nil {
251 ms.StoreMessageInfo(mi)
252 }
253 return ms
254 }
255 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700256}
Joe Tsai8e506a82019-03-16 00:05:34 -0700257
Joe Tsai43761bd2019-07-17 18:06:47 -0700258// Deprecated: Use Message2.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800259func (*Message2) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700260 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800261}
262
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800263type Message3 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700264 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700265 sizeCache protoimpl.SizeCache
266 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800267}
268
Joe Tsai61968ce2019-04-01 12:59:24 -0700269func (x *Message3) Reset() {
270 *x = Message3{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800271}
Joe Tsai61968ce2019-04-01 12:59:24 -0700272
273func (x *Message3) String() string {
274 return protoimpl.X.MessageStringOf(x)
275}
276
277func (*Message3) ProtoMessage() {}
278
279func (x *Message3) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700280 mi := &file_test_proto_msgTypes[2]
281 if protoimpl.UnsafeEnabled && x != nil {
282 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
283 if ms.LoadMessageInfo() == nil {
284 ms.StoreMessageInfo(mi)
285 }
286 return ms
287 }
288 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700289}
Joe Tsai8e506a82019-03-16 00:05:34 -0700290
Joe Tsai43761bd2019-07-17 18:06:47 -0700291// Deprecated: Use Message3.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800292func (*Message3) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700293 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800294}
295
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800296type Message4 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700297 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700298 sizeCache protoimpl.SizeCache
299 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700300
301 BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800302}
303
Joe Tsai61968ce2019-04-01 12:59:24 -0700304func (x *Message4) Reset() {
305 *x = Message4{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800306}
Joe Tsai61968ce2019-04-01 12:59:24 -0700307
308func (x *Message4) String() string {
309 return protoimpl.X.MessageStringOf(x)
310}
311
312func (*Message4) ProtoMessage() {}
313
314func (x *Message4) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700315 mi := &file_test_proto_msgTypes[3]
316 if protoimpl.UnsafeEnabled && x != nil {
317 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
318 if ms.LoadMessageInfo() == nil {
319 ms.StoreMessageInfo(mi)
320 }
321 return ms
322 }
323 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700324}
Joe Tsai8e506a82019-03-16 00:05:34 -0700325
Joe Tsai43761bd2019-07-17 18:06:47 -0700326// Deprecated: Use Message4.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800327func (*Message4) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700328 return file_test_proto_rawDescGZIP(), []int{3}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800329}
330
Joe Tsai61968ce2019-04-01 12:59:24 -0700331func (x *Message4) GetBoolField() bool {
332 if x != nil && x.BoolField != nil {
333 return *x.BoolField
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800334 }
335 return false
336}
337
Joe Tsai7ca70982019-04-15 13:57:56 -0700338var file_test_proto_extDescs = []protoiface.ExtensionDescV1{
Joe Tsaiafb455e2019-03-14 16:08:22 -0700339 {
340 ExtendedType: (*Message1)(nil),
341 ExtensionType: (*string)(nil),
342 Field: 11,
343 Name: "testprotos.string_field",
344 Tag: "bytes,11,opt,name=string_field",
345 Filename: "test.proto",
346 },
347 {
348 ExtendedType: (*Message1)(nil),
349 ExtensionType: (*Enum1)(nil),
350 Field: 12,
351 Name: "testprotos.enum_field",
352 Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1",
353 Filename: "test.proto",
354 },
355 {
356 ExtendedType: (*Message1)(nil),
357 ExtensionType: (*Message2)(nil),
358 Field: 13,
359 Name: "testprotos.message_field",
360 Tag: "bytes,13,opt,name=message_field",
361 Filename: "test.proto",
362 },
363 {
364 ExtendedType: (*Message1)(nil),
365 ExtensionType: (*Message2)(nil),
366 Field: 21,
367 Name: "testprotos.Message4.message_field",
368 Tag: "bytes,21,opt,name=message_field",
369 Filename: "test.proto",
370 },
371 {
372 ExtendedType: (*Message1)(nil),
373 ExtensionType: (*Enum1)(nil),
374 Field: 22,
375 Name: "testprotos.Message4.enum_field",
376 Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1",
377 Filename: "test.proto",
378 },
379 {
380 ExtendedType: (*Message1)(nil),
381 ExtensionType: (*string)(nil),
382 Field: 23,
383 Name: "testprotos.Message4.string_field",
384 Tag: "bytes,23,opt,name=string_field",
385 Filename: "test.proto",
386 },
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800387}
Joe Tsai4a7d6332019-08-06 16:45:11 -0700388
389// Extension fields to Message1.
Joe Tsaiafb455e2019-03-14 16:08:22 -0700390var (
Joe Tsai4a7d6332019-08-06 16:45:11 -0700391 // optional string string_field = 11;
Joe Tsai7ca70982019-04-15 13:57:56 -0700392 E_StringField = &file_test_proto_extDescs[0]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700393 // optional testprotos.Enum1 enum_field = 12;
Joe Tsai7ca70982019-04-15 13:57:56 -0700394 E_EnumField = &file_test_proto_extDescs[1]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700395 // optional testprotos.Message2 message_field = 13;
Joe Tsai7ca70982019-04-15 13:57:56 -0700396 E_MessageField = &file_test_proto_extDescs[2]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700397 // optional testprotos.Message2 message_field = 21;
Joe Tsai7ca70982019-04-15 13:57:56 -0700398 E_Message4_MessageField = &file_test_proto_extDescs[3]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700399 // optional testprotos.Enum1 enum_field = 22;
Joe Tsai7ca70982019-04-15 13:57:56 -0700400 E_Message4_EnumField = &file_test_proto_extDescs[4]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700401 // optional string string_field = 23;
Joe Tsai7ca70982019-04-15 13:57:56 -0700402 E_Message4_StringField = &file_test_proto_extDescs[5]
Joe Tsaiafb455e2019-03-14 16:08:22 -0700403)
Joe Tsai4a7d6332019-08-06 16:45:11 -0700404
Joe Tsai5d72cc22019-03-28 01:13:26 -0700405var File_test_proto protoreflect.FileDescriptor
406
Joe Tsai7ca70982019-04-15 13:57:56 -0700407var file_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800408 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65,
409 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73,
410 0x61, 0x67, 0x65, 0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a,
411 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65,
412 0x73, 0x73, 0x61, 0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61,
413 0x67, 0x65, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c,
414 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65,
415 0x6c, 0x64, 0x32, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69,
416 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
417 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32,
418 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73,
419 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69,
420 0x65, 0x6c, 0x64, 0x32, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c,
Damien Neil8012b442019-01-18 09:32:24 -0800421 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d,
Joe Tsai19058432019-02-27 21:46:29 -0800422 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e,
Damien Neil8012b442019-01-18 09:32:24 -0800423 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31,
Joe Tsai19058432019-02-27 21:46:29 -0800424 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73,
425 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
426 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
427 0x31, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46,
428 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a,
429 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12,
430 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d,
431 0x33, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72,
432 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74,
433 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18,
434 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65,
435 0x6c, 0x64, 0x3a, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64,
436 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65,
437 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74,
438 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52,
439 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65,
440 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
441 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
442 0x31, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72,
443 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d,
Damien Neile89e6242019-05-13 23:55:40 -0700444 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x3d, 0x5a, 0x3b, 0x67,
445 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
446 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63,
447 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
448 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800449}
450
Joe Tsai5d72cc22019-03-28 01:13:26 -0700451var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700452 file_test_proto_rawDescOnce sync.Once
453 file_test_proto_rawDescData = file_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700454)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800455
Joe Tsai7ca70982019-04-15 13:57:56 -0700456func file_test_proto_rawDescGZIP() []byte {
457 file_test_proto_rawDescOnce.Do(func() {
458 file_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700459 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700460 return file_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700461}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800462
Joe Tsaid8881392019-06-06 13:01:53 -0700463var file_test_proto_enumTypes = make([]prototype.Enum, 3)
Joe Tsai4fe96632019-05-22 05:12:36 -0400464var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
Joe Tsai7ca70982019-04-15 13:57:56 -0700465var file_test_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800466 (Enum1)(0), // 0: testprotos.Enum1
467 (Enum2)(0), // 1: testprotos.Enum2
468 (Enum3)(0), // 2: testprotos.Enum3
469 (*Message1)(nil), // 3: testprotos.Message1
470 (*Message2)(nil), // 4: testprotos.Message2
471 (*Message3)(nil), // 5: testprotos.Message3
472 (*Message4)(nil), // 6: testprotos.Message4
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800473}
Joe Tsai7ca70982019-04-15 13:57:56 -0700474var file_test_proto_depIdxs = []int32{
Joe Tsaid8881392019-06-06 13:01:53 -0700475 3, // testprotos.string_field:extendee -> testprotos.Message1
476 3, // testprotos.enum_field:extendee -> testprotos.Message1
477 3, // testprotos.message_field:extendee -> testprotos.Message1
478 3, // testprotos.Message4.message_field:extendee -> testprotos.Message1
479 3, // testprotos.Message4.enum_field:extendee -> testprotos.Message1
480 3, // testprotos.Message4.string_field:extendee -> testprotos.Message1
481 0, // testprotos.enum_field:type_name -> testprotos.Enum1
482 4, // testprotos.message_field:type_name -> testprotos.Message2
483 4, // testprotos.Message4.message_field:type_name -> testprotos.Message2
484 0, // testprotos.Message4.enum_field:type_name -> testprotos.Enum1
485 10, // starting offset of method output_type sub-list
486 10, // starting offset of method input_type sub-list
487 6, // starting offset of extension type_name sub-list
488 0, // starting offset of extension extendee sub-list
489 0, // starting offset of field type_name sub-list
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800490}
Damien Neil8012b442019-01-18 09:32:24 -0800491
Joe Tsai7ca70982019-04-15 13:57:56 -0700492func init() { file_test_proto_init() }
493func file_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800494 if File_test_proto != nil {
495 return
496 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700497 if !protoimpl.UnsafeEnabled {
498 file_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
499 switch v := v.(*Message1); i {
500 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700501 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700502 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700503 return &v.sizeCache
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700504 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700505 return &v.unknownFields
506 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700507 return &v.extensionFields
508 default:
509 return nil
510 }
511 }
512 file_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
513 switch v := v.(*Message2); i {
514 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700515 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700516 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700517 return &v.sizeCache
518 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700519 return &v.unknownFields
520 default:
521 return nil
522 }
523 }
524 file_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
525 switch v := v.(*Message3); i {
526 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700527 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700528 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700529 return &v.sizeCache
530 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700531 return &v.unknownFields
532 default:
533 return nil
534 }
535 }
536 file_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
537 switch v := v.(*Message4); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700538 case 0:
539 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700540 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700541 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700542 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700543 return &v.unknownFields
544 default:
545 return nil
546 }
547 }
548 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700549 type x struct{}
Joe Tsaid8881392019-06-06 13:01:53 -0700550 out := protoimpl.TypeBuilder{
551 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700552 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Joe Tsaid8881392019-06-06 13:01:53 -0700553 RawDescriptor: file_test_proto_rawDesc,
554 NumEnums: 3,
555 NumMessages: 4,
556 NumExtensions: 6,
557 NumServices: 0,
558 },
559 GoTypes: file_test_proto_goTypes,
560 DependencyIndexes: file_test_proto_depIdxs,
561 MessageInfos: file_test_proto_msgTypes,
562 LegacyExtensions: file_test_proto_extDescs,
563 }.Build()
564 File_test_proto = out.File
565 file_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700566 file_test_proto_rawDesc = nil
567 file_test_proto_goTypes = nil
568 file_test_proto_depIdxs = nil
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800569}