blob: d79e2d6454e55439bd9010290f2952831bdb0608 [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 Tsaic0e4bb22019-07-06 13:05:11 -0700163 sizeCache protoimpl.SizeCache
164 unknownFields protoimpl.UnknownFields
165 extensionFields protoimpl.ExtensionFields ``
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800166}
167
Joe Tsai61968ce2019-04-01 12:59:24 -0700168func (x *Message1) Reset() {
169 *x = Message1{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800170}
Joe Tsai61968ce2019-04-01 12:59:24 -0700171
172func (x *Message1) String() string {
173 return protoimpl.X.MessageStringOf(x)
174}
175
176func (*Message1) ProtoMessage() {}
177
178func (x *Message1) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700179 return file_test_proto_msgTypes[0].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700180}
Joe Tsai8e506a82019-03-16 00:05:34 -0700181
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700182func (m *Message1) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700183 return file_test_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700184}
185
Joe Tsai8e506a82019-03-16 00:05:34 -0700186// Deprecated: Use Message1.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800187func (*Message1) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700188 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800189}
190
Joe Tsai4fddeba2019-03-20 18:29:32 -0700191var extRange_Message1 = []protoiface.ExtensionRangeV1{
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800192 {Start: 10, End: 536870911},
193}
194
Joe Tsai8e506a82019-03-16 00:05:34 -0700195// Deprecated: Use Message1.ProtoReflect.Type.ExtensionRanges instead.
Joe Tsai4fddeba2019-03-20 18:29:32 -0700196func (*Message1) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800197 return extRange_Message1
198}
199
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800200type Message2 struct {
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700201 sizeCache protoimpl.SizeCache
202 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800203}
204
Joe Tsai61968ce2019-04-01 12:59:24 -0700205func (x *Message2) Reset() {
206 *x = Message2{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800207}
Joe Tsai61968ce2019-04-01 12:59:24 -0700208
209func (x *Message2) String() string {
210 return protoimpl.X.MessageStringOf(x)
211}
212
213func (*Message2) ProtoMessage() {}
214
215func (x *Message2) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700216 return file_test_proto_msgTypes[1].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700217}
Joe Tsai8e506a82019-03-16 00:05:34 -0700218
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700219func (m *Message2) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700220 return file_test_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700221}
222
Joe Tsai8e506a82019-03-16 00:05:34 -0700223// Deprecated: Use Message2.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800224func (*Message2) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700225 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800226}
227
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800228type Message3 struct {
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700229 sizeCache protoimpl.SizeCache
230 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800231}
232
Joe Tsai61968ce2019-04-01 12:59:24 -0700233func (x *Message3) Reset() {
234 *x = Message3{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800235}
Joe Tsai61968ce2019-04-01 12:59:24 -0700236
237func (x *Message3) String() string {
238 return protoimpl.X.MessageStringOf(x)
239}
240
241func (*Message3) ProtoMessage() {}
242
243func (x *Message3) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700244 return file_test_proto_msgTypes[2].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700245}
Joe Tsai8e506a82019-03-16 00:05:34 -0700246
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700247func (m *Message3) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700248 return file_test_proto_msgTypes[2].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700249}
250
Joe Tsai8e506a82019-03-16 00:05:34 -0700251// Deprecated: Use Message3.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800252func (*Message3) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700253 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800254}
255
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800256type Message4 struct {
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700257 BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
258 sizeCache protoimpl.SizeCache
259 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800260}
261
Joe Tsai61968ce2019-04-01 12:59:24 -0700262func (x *Message4) Reset() {
263 *x = Message4{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800264}
Joe Tsai61968ce2019-04-01 12:59:24 -0700265
266func (x *Message4) String() string {
267 return protoimpl.X.MessageStringOf(x)
268}
269
270func (*Message4) ProtoMessage() {}
271
272func (x *Message4) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700273 return file_test_proto_msgTypes[3].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700274}
Joe Tsai8e506a82019-03-16 00:05:34 -0700275
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700276func (m *Message4) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700277 return file_test_proto_msgTypes[3].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700278}
279
Joe Tsai8e506a82019-03-16 00:05:34 -0700280// Deprecated: Use Message4.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800281func (*Message4) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700282 return file_test_proto_rawDescGZIP(), []int{3}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800283}
284
Joe Tsai61968ce2019-04-01 12:59:24 -0700285func (x *Message4) GetBoolField() bool {
286 if x != nil && x.BoolField != nil {
287 return *x.BoolField
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800288 }
289 return false
290}
291
Joe Tsai7ca70982019-04-15 13:57:56 -0700292var file_test_proto_extDescs = []protoiface.ExtensionDescV1{
Joe Tsaiafb455e2019-03-14 16:08:22 -0700293 {
294 ExtendedType: (*Message1)(nil),
295 ExtensionType: (*string)(nil),
296 Field: 11,
297 Name: "testprotos.string_field",
298 Tag: "bytes,11,opt,name=string_field",
299 Filename: "test.proto",
300 },
301 {
302 ExtendedType: (*Message1)(nil),
303 ExtensionType: (*Enum1)(nil),
304 Field: 12,
305 Name: "testprotos.enum_field",
306 Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1",
307 Filename: "test.proto",
308 },
309 {
310 ExtendedType: (*Message1)(nil),
311 ExtensionType: (*Message2)(nil),
312 Field: 13,
313 Name: "testprotos.message_field",
314 Tag: "bytes,13,opt,name=message_field",
315 Filename: "test.proto",
316 },
317 {
318 ExtendedType: (*Message1)(nil),
319 ExtensionType: (*Message2)(nil),
320 Field: 21,
321 Name: "testprotos.Message4.message_field",
322 Tag: "bytes,21,opt,name=message_field",
323 Filename: "test.proto",
324 },
325 {
326 ExtendedType: (*Message1)(nil),
327 ExtensionType: (*Enum1)(nil),
328 Field: 22,
329 Name: "testprotos.Message4.enum_field",
330 Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1",
331 Filename: "test.proto",
332 },
333 {
334 ExtendedType: (*Message1)(nil),
335 ExtensionType: (*string)(nil),
336 Field: 23,
337 Name: "testprotos.Message4.string_field",
338 Tag: "bytes,23,opt,name=string_field",
339 Filename: "test.proto",
340 },
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800341}
Joe Tsaiafb455e2019-03-14 16:08:22 -0700342var (
343 // extend testprotos.Message1 { optional string string_field = 11; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700344 E_StringField = &file_test_proto_extDescs[0]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800345
Joe Tsaiafb455e2019-03-14 16:08:22 -0700346 // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 12; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700347 E_EnumField = &file_test_proto_extDescs[1]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800348
Joe Tsaiafb455e2019-03-14 16:08:22 -0700349 // extend testprotos.Message1 { optional testprotos.Message2 message_field = 13; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700350 E_MessageField = &file_test_proto_extDescs[2]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800351
Joe Tsaiafb455e2019-03-14 16:08:22 -0700352 // extend testprotos.Message1 { optional testprotos.Message2 message_field = 21; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700353 E_Message4_MessageField = &file_test_proto_extDescs[3]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800354
Joe Tsaiafb455e2019-03-14 16:08:22 -0700355 // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 22; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700356 E_Message4_EnumField = &file_test_proto_extDescs[4]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800357
Joe Tsaiafb455e2019-03-14 16:08:22 -0700358 // extend testprotos.Message1 { optional string string_field = 23; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700359 E_Message4_StringField = &file_test_proto_extDescs[5]
Joe Tsaiafb455e2019-03-14 16:08:22 -0700360)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700361var File_test_proto protoreflect.FileDescriptor
362
Joe Tsai7ca70982019-04-15 13:57:56 -0700363var file_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800364 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65,
365 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73,
366 0x61, 0x67, 0x65, 0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a,
367 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65,
368 0x73, 0x73, 0x61, 0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61,
369 0x67, 0x65, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c,
370 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65,
371 0x6c, 0x64, 0x32, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69,
372 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
373 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32,
374 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73,
375 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69,
376 0x65, 0x6c, 0x64, 0x32, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c,
Damien Neil8012b442019-01-18 09:32:24 -0800377 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d,
Joe Tsai19058432019-02-27 21:46:29 -0800378 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e,
Damien Neil8012b442019-01-18 09:32:24 -0800379 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31,
Joe Tsai19058432019-02-27 21:46:29 -0800380 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73,
381 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
382 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
383 0x31, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46,
384 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a,
385 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12,
386 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d,
387 0x33, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72,
388 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74,
389 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18,
390 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65,
391 0x6c, 0x64, 0x3a, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64,
392 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65,
393 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74,
394 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52,
395 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65,
396 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
397 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
398 0x31, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72,
399 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d,
Damien Neile89e6242019-05-13 23:55:40 -0700400 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x3d, 0x5a, 0x3b, 0x67,
401 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
402 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63,
403 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
404 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800405}
406
Joe Tsai5d72cc22019-03-28 01:13:26 -0700407var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700408 file_test_proto_rawDescOnce sync.Once
409 file_test_proto_rawDescData = file_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700410)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800411
Joe Tsai7ca70982019-04-15 13:57:56 -0700412func file_test_proto_rawDescGZIP() []byte {
413 file_test_proto_rawDescOnce.Do(func() {
414 file_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700415 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700416 return file_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700417}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800418
Joe Tsaid8881392019-06-06 13:01:53 -0700419var file_test_proto_enumTypes = make([]prototype.Enum, 3)
Joe Tsai4fe96632019-05-22 05:12:36 -0400420var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
Joe Tsai7ca70982019-04-15 13:57:56 -0700421var file_test_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800422 (Enum1)(0), // 0: testprotos.Enum1
423 (Enum2)(0), // 1: testprotos.Enum2
424 (Enum3)(0), // 2: testprotos.Enum3
425 (*Message1)(nil), // 3: testprotos.Message1
426 (*Message2)(nil), // 4: testprotos.Message2
427 (*Message3)(nil), // 5: testprotos.Message3
428 (*Message4)(nil), // 6: testprotos.Message4
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800429}
Joe Tsai7ca70982019-04-15 13:57:56 -0700430var file_test_proto_depIdxs = []int32{
Joe Tsaid8881392019-06-06 13:01:53 -0700431 3, // testprotos.string_field:extendee -> testprotos.Message1
432 3, // testprotos.enum_field:extendee -> testprotos.Message1
433 3, // testprotos.message_field:extendee -> testprotos.Message1
434 3, // testprotos.Message4.message_field:extendee -> testprotos.Message1
435 3, // testprotos.Message4.enum_field:extendee -> testprotos.Message1
436 3, // testprotos.Message4.string_field:extendee -> testprotos.Message1
437 0, // testprotos.enum_field:type_name -> testprotos.Enum1
438 4, // testprotos.message_field:type_name -> testprotos.Message2
439 4, // testprotos.Message4.message_field:type_name -> testprotos.Message2
440 0, // testprotos.Message4.enum_field:type_name -> testprotos.Enum1
441 10, // starting offset of method output_type sub-list
442 10, // starting offset of method input_type sub-list
443 6, // starting offset of extension type_name sub-list
444 0, // starting offset of extension extendee sub-list
445 0, // starting offset of field type_name sub-list
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800446}
Damien Neil8012b442019-01-18 09:32:24 -0800447
Joe Tsai7ca70982019-04-15 13:57:56 -0700448func init() { file_test_proto_init() }
449func file_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800450 if File_test_proto != nil {
451 return
452 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700453 if !protoimpl.UnsafeEnabled {
454 file_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
455 switch v := v.(*Message1); i {
456 case 0:
457 return &v.sizeCache
458 case 1:
459 return &v.unknownFields
460 case 2:
461 return &v.extensionFields
462 default:
463 return nil
464 }
465 }
466 file_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
467 switch v := v.(*Message2); i {
468 case 0:
469 return &v.sizeCache
470 case 1:
471 return &v.unknownFields
472 default:
473 return nil
474 }
475 }
476 file_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
477 switch v := v.(*Message3); i {
478 case 0:
479 return &v.sizeCache
480 case 1:
481 return &v.unknownFields
482 default:
483 return nil
484 }
485 }
486 file_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
487 switch v := v.(*Message4); i {
488 case 1:
489 return &v.sizeCache
490 case 2:
491 return &v.unknownFields
492 default:
493 return nil
494 }
495 }
496 }
Joe Tsaid8881392019-06-06 13:01:53 -0700497 out := protoimpl.TypeBuilder{
498 File: protoimpl.DescBuilder{
499 RawDescriptor: file_test_proto_rawDesc,
500 NumEnums: 3,
501 NumMessages: 4,
502 NumExtensions: 6,
503 NumServices: 0,
504 },
505 GoTypes: file_test_proto_goTypes,
506 DependencyIndexes: file_test_proto_depIdxs,
507 MessageInfos: file_test_proto_msgTypes,
508 LegacyExtensions: file_test_proto_extDescs,
509 }.Build()
510 File_test_proto = out.File
511 file_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700512 file_test_proto_rawDesc = nil
513 file_test_proto_goTypes = nil
514 file_test_proto_depIdxs = nil
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800515}