blob: c6ea2fd29d787dd74716ae08c25620011545b7e8 [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 Tsai5d72cc22019-03-28 01:13:26 -070011 sync "sync"
Herbie Ong6e67a1d2018-12-26 15:57:16 -080012)
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
Herbie Ong6e67a1d2018-12-26 15:57:16 -080021type Enum1 int32
22
23const (
24 Enum1_ONE Enum1 = 1
25)
26
Herbie Ong6e67a1d2018-12-26 15:57:16 -080027var Enum1_name = map[int32]string{
28 1: "ONE",
29}
30
31var Enum1_value = map[string]int32{
32 "ONE": 1,
33}
34
35func (x Enum1) Enum() *Enum1 {
Joe Tsai09b5b462019-04-10 15:29:01 -070036 p := new(Enum1)
37 *p = x
38 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -080039}
40
41func (x Enum1) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070042 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -080043}
44
Joe Tsai0fc49f82019-05-01 12:29:25 -070045func (Enum1) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -070046 return file_test_proto_enumTypes[0].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070047}
48
Joe Tsai61968ce2019-04-01 12:59:24 -070049func (x Enum1) Number() protoreflect.EnumNumber {
50 return protoreflect.EnumNumber(x)
51}
52
Joe Tsai8e506a82019-03-16 00:05:34 -070053// Deprecated: Do not use.
54func (x *Enum1) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -070055 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080056 if err != nil {
57 return err
58 }
Joe Tsai8e506a82019-03-16 00:05:34 -070059 *x = Enum1(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080060 return nil
61}
62
Joe Tsai8e506a82019-03-16 00:05:34 -070063// Deprecated: Use Enum1.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -080064func (Enum1) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070065 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -080066}
67
68type Enum2 int32
69
70const (
71 Enum2_UNO Enum2 = 1
72)
73
Herbie Ong6e67a1d2018-12-26 15:57:16 -080074var Enum2_name = map[int32]string{
75 1: "UNO",
76}
77
78var Enum2_value = map[string]int32{
79 "UNO": 1,
80}
81
82func (x Enum2) Enum() *Enum2 {
Joe Tsai09b5b462019-04-10 15:29:01 -070083 p := new(Enum2)
84 *p = x
85 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -080086}
87
88func (x Enum2) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070089 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -080090}
91
Joe Tsai0fc49f82019-05-01 12:29:25 -070092func (Enum2) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -070093 return file_test_proto_enumTypes[1].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070094}
95
Joe Tsai61968ce2019-04-01 12:59:24 -070096func (x Enum2) Number() protoreflect.EnumNumber {
97 return protoreflect.EnumNumber(x)
98}
99
Joe Tsai8e506a82019-03-16 00:05:34 -0700100// Deprecated: Do not use.
101func (x *Enum2) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700102 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800103 if err != nil {
104 return err
105 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700106 *x = Enum2(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800107 return nil
108}
109
Joe Tsai8e506a82019-03-16 00:05:34 -0700110// Deprecated: Use Enum2.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800111func (Enum2) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700112 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800113}
114
115type Enum3 int32
116
117const (
118 Enum3_YI Enum3 = 1
119)
120
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800121var Enum3_name = map[int32]string{
122 1: "YI",
123}
124
125var Enum3_value = map[string]int32{
126 "YI": 1,
127}
128
129func (x Enum3) Enum() *Enum3 {
Joe Tsai09b5b462019-04-10 15:29:01 -0700130 p := new(Enum3)
131 *p = x
132 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800133}
134
135func (x Enum3) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700136 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800137}
138
Joe Tsai0fc49f82019-05-01 12:29:25 -0700139func (Enum3) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700140 return file_test_proto_enumTypes[2].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700141}
142
Joe Tsai61968ce2019-04-01 12:59:24 -0700143func (x Enum3) Number() protoreflect.EnumNumber {
144 return protoreflect.EnumNumber(x)
145}
146
Joe Tsai8e506a82019-03-16 00:05:34 -0700147// Deprecated: Do not use.
148func (x *Enum3) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700149 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800150 if err != nil {
151 return err
152 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700153 *x = Enum3(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800154 return nil
155}
156
Joe Tsai8e506a82019-03-16 00:05:34 -0700157// Deprecated: Use Enum3.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800158func (Enum3) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700159 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800160}
161
162type Message1 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700163 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700164 sizeCache protoimpl.SizeCache
165 unknownFields protoimpl.UnknownFields
Joe Tsai6ceeaab2019-07-08 12:31:21 -0700166 extensionFields protoimpl.ExtensionFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800167}
168
Joe Tsai61968ce2019-04-01 12:59:24 -0700169func (x *Message1) Reset() {
170 *x = Message1{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800171}
Joe Tsai61968ce2019-04-01 12:59:24 -0700172
173func (x *Message1) String() string {
174 return protoimpl.X.MessageStringOf(x)
175}
176
177func (*Message1) ProtoMessage() {}
178
179func (x *Message1) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700180 mi := &file_test_proto_msgTypes[0]
181 if protoimpl.UnsafeEnabled && x != nil {
182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
183 if ms.LoadMessageInfo() == nil {
184 ms.StoreMessageInfo(mi)
185 }
186 return ms
187 }
188 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700189}
Joe Tsai8e506a82019-03-16 00:05:34 -0700190
Joe Tsai82760ce2019-06-20 03:09:57 -0700191func (x *Message1) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700192 return file_test_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700193}
194
Joe Tsai8e506a82019-03-16 00:05:34 -0700195// Deprecated: Use Message1.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800196func (*Message1) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700197 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800198}
199
Joe Tsai4fddeba2019-03-20 18:29:32 -0700200var extRange_Message1 = []protoiface.ExtensionRangeV1{
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800201 {Start: 10, End: 536870911},
202}
203
Joe Tsai8e506a82019-03-16 00:05:34 -0700204// Deprecated: Use Message1.ProtoReflect.Type.ExtensionRanges instead.
Joe Tsai4fddeba2019-03-20 18:29:32 -0700205func (*Message1) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800206 return extRange_Message1
207}
208
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800209type Message2 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700210 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700211 sizeCache protoimpl.SizeCache
212 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800213}
214
Joe Tsai61968ce2019-04-01 12:59:24 -0700215func (x *Message2) Reset() {
216 *x = Message2{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800217}
Joe Tsai61968ce2019-04-01 12:59:24 -0700218
219func (x *Message2) String() string {
220 return protoimpl.X.MessageStringOf(x)
221}
222
223func (*Message2) ProtoMessage() {}
224
225func (x *Message2) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700226 mi := &file_test_proto_msgTypes[1]
227 if protoimpl.UnsafeEnabled && x != nil {
228 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
229 if ms.LoadMessageInfo() == nil {
230 ms.StoreMessageInfo(mi)
231 }
232 return ms
233 }
234 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700235}
Joe Tsai8e506a82019-03-16 00:05:34 -0700236
Joe Tsai82760ce2019-06-20 03:09:57 -0700237func (x *Message2) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700238 return file_test_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700239}
240
Joe Tsai8e506a82019-03-16 00:05:34 -0700241// Deprecated: Use Message2.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800242func (*Message2) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700243 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800244}
245
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800246type Message3 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700247 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700248 sizeCache protoimpl.SizeCache
249 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800250}
251
Joe Tsai61968ce2019-04-01 12:59:24 -0700252func (x *Message3) Reset() {
253 *x = Message3{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800254}
Joe Tsai61968ce2019-04-01 12:59:24 -0700255
256func (x *Message3) String() string {
257 return protoimpl.X.MessageStringOf(x)
258}
259
260func (*Message3) ProtoMessage() {}
261
262func (x *Message3) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700263 mi := &file_test_proto_msgTypes[2]
264 if protoimpl.UnsafeEnabled && x != nil {
265 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
266 if ms.LoadMessageInfo() == nil {
267 ms.StoreMessageInfo(mi)
268 }
269 return ms
270 }
271 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700272}
Joe Tsai8e506a82019-03-16 00:05:34 -0700273
Joe Tsai82760ce2019-06-20 03:09:57 -0700274func (x *Message3) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700275 return file_test_proto_msgTypes[2].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700276}
277
Joe Tsai8e506a82019-03-16 00:05:34 -0700278// Deprecated: Use Message3.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800279func (*Message3) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700280 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800281}
282
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800283type Message4 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700284 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700285 BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
286 sizeCache protoimpl.SizeCache
287 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800288}
289
Joe Tsai61968ce2019-04-01 12:59:24 -0700290func (x *Message4) Reset() {
291 *x = Message4{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800292}
Joe Tsai61968ce2019-04-01 12:59:24 -0700293
294func (x *Message4) String() string {
295 return protoimpl.X.MessageStringOf(x)
296}
297
298func (*Message4) ProtoMessage() {}
299
300func (x *Message4) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700301 mi := &file_test_proto_msgTypes[3]
302 if protoimpl.UnsafeEnabled && x != nil {
303 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
304 if ms.LoadMessageInfo() == nil {
305 ms.StoreMessageInfo(mi)
306 }
307 return ms
308 }
309 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700310}
Joe Tsai8e506a82019-03-16 00:05:34 -0700311
Joe Tsai82760ce2019-06-20 03:09:57 -0700312func (x *Message4) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700313 return file_test_proto_msgTypes[3].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700314}
315
Joe Tsai8e506a82019-03-16 00:05:34 -0700316// Deprecated: Use Message4.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800317func (*Message4) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700318 return file_test_proto_rawDescGZIP(), []int{3}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800319}
320
Joe Tsai61968ce2019-04-01 12:59:24 -0700321func (x *Message4) GetBoolField() bool {
322 if x != nil && x.BoolField != nil {
323 return *x.BoolField
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800324 }
325 return false
326}
327
Joe Tsai7ca70982019-04-15 13:57:56 -0700328var file_test_proto_extDescs = []protoiface.ExtensionDescV1{
Joe Tsaiafb455e2019-03-14 16:08:22 -0700329 {
330 ExtendedType: (*Message1)(nil),
331 ExtensionType: (*string)(nil),
332 Field: 11,
333 Name: "testprotos.string_field",
334 Tag: "bytes,11,opt,name=string_field",
335 Filename: "test.proto",
336 },
337 {
338 ExtendedType: (*Message1)(nil),
339 ExtensionType: (*Enum1)(nil),
340 Field: 12,
341 Name: "testprotos.enum_field",
342 Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1",
343 Filename: "test.proto",
344 },
345 {
346 ExtendedType: (*Message1)(nil),
347 ExtensionType: (*Message2)(nil),
348 Field: 13,
349 Name: "testprotos.message_field",
350 Tag: "bytes,13,opt,name=message_field",
351 Filename: "test.proto",
352 },
353 {
354 ExtendedType: (*Message1)(nil),
355 ExtensionType: (*Message2)(nil),
356 Field: 21,
357 Name: "testprotos.Message4.message_field",
358 Tag: "bytes,21,opt,name=message_field",
359 Filename: "test.proto",
360 },
361 {
362 ExtendedType: (*Message1)(nil),
363 ExtensionType: (*Enum1)(nil),
364 Field: 22,
365 Name: "testprotos.Message4.enum_field",
366 Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1",
367 Filename: "test.proto",
368 },
369 {
370 ExtendedType: (*Message1)(nil),
371 ExtensionType: (*string)(nil),
372 Field: 23,
373 Name: "testprotos.Message4.string_field",
374 Tag: "bytes,23,opt,name=string_field",
375 Filename: "test.proto",
376 },
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800377}
Joe Tsaiafb455e2019-03-14 16:08:22 -0700378var (
379 // extend testprotos.Message1 { optional string string_field = 11; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700380 E_StringField = &file_test_proto_extDescs[0]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800381
Joe Tsaiafb455e2019-03-14 16:08:22 -0700382 // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 12; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700383 E_EnumField = &file_test_proto_extDescs[1]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800384
Joe Tsaiafb455e2019-03-14 16:08:22 -0700385 // extend testprotos.Message1 { optional testprotos.Message2 message_field = 13; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700386 E_MessageField = &file_test_proto_extDescs[2]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800387
Joe Tsaiafb455e2019-03-14 16:08:22 -0700388 // extend testprotos.Message1 { optional testprotos.Message2 message_field = 21; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700389 E_Message4_MessageField = &file_test_proto_extDescs[3]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800390
Joe Tsaiafb455e2019-03-14 16:08:22 -0700391 // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 22; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700392 E_Message4_EnumField = &file_test_proto_extDescs[4]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800393
Joe Tsaiafb455e2019-03-14 16:08:22 -0700394 // extend testprotos.Message1 { 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 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
Joe Tsaid8881392019-06-06 13:01:53 -0700455var file_test_proto_enumTypes = make([]prototype.Enum, 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 Tsaic0e4bb22019-07-06 13:05:11 -0700532 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700533 return &v.sizeCache
534 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700535 return &v.unknownFields
536 default:
537 return nil
538 }
539 }
540 }
Joe Tsaid8881392019-06-06 13:01:53 -0700541 out := protoimpl.TypeBuilder{
542 File: protoimpl.DescBuilder{
543 RawDescriptor: file_test_proto_rawDesc,
544 NumEnums: 3,
545 NumMessages: 4,
546 NumExtensions: 6,
547 NumServices: 0,
548 },
549 GoTypes: file_test_proto_goTypes,
550 DependencyIndexes: file_test_proto_depIdxs,
551 MessageInfos: file_test_proto_msgTypes,
552 LegacyExtensions: file_test_proto_extDescs,
553 }.Build()
554 File_test_proto = out.File
555 file_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700556 file_test_proto_rawDesc = nil
557 file_test_proto_goTypes = nil
558 file_test_proto_depIdxs = nil
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800559}