blob: ef91bf9b296cb0df74a5f5724601b83d14701622 [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 Tsai5e71dc92019-04-16 13:22:20 -0700163 XXX_NoUnkeyedLiteral struct{} `json:"-"`
164 XXX_InternalExtensions protoimpl.ExtensionFields `json:"-"`
165 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
166 XXX_sizecache protoimpl.SizeCache `json:"-"`
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 Tsai7ca70982019-04-15 13:57:56 -0700180 return file_test_proto_msgTypes[0].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700181}
Joe Tsai8e506a82019-03-16 00:05:34 -0700182
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700183func (m *Message1) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700184 return file_test_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700185}
186
Joe Tsai8e506a82019-03-16 00:05:34 -0700187// Deprecated: Use Message1.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800188func (*Message1) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700189 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800190}
191
Joe Tsai4fddeba2019-03-20 18:29:32 -0700192var extRange_Message1 = []protoiface.ExtensionRangeV1{
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800193 {Start: 10, End: 536870911},
194}
195
Joe Tsai8e506a82019-03-16 00:05:34 -0700196// Deprecated: Use Message1.ProtoReflect.Type.ExtensionRanges instead.
Joe Tsai4fddeba2019-03-20 18:29:32 -0700197func (*Message1) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800198 return extRange_Message1
199}
200
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800201type Message2 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700202 XXX_NoUnkeyedLiteral struct{} `json:"-"`
203 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
204 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800205}
206
Joe Tsai61968ce2019-04-01 12:59:24 -0700207func (x *Message2) Reset() {
208 *x = Message2{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800209}
Joe Tsai61968ce2019-04-01 12:59:24 -0700210
211func (x *Message2) String() string {
212 return protoimpl.X.MessageStringOf(x)
213}
214
215func (*Message2) ProtoMessage() {}
216
217func (x *Message2) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700218 return file_test_proto_msgTypes[1].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700219}
Joe Tsai8e506a82019-03-16 00:05:34 -0700220
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700221func (m *Message2) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700222 return file_test_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700223}
224
Joe Tsai8e506a82019-03-16 00:05:34 -0700225// Deprecated: Use Message2.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800226func (*Message2) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700227 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800228}
229
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800230type Message3 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700231 XXX_NoUnkeyedLiteral struct{} `json:"-"`
232 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
233 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800234}
235
Joe Tsai61968ce2019-04-01 12:59:24 -0700236func (x *Message3) Reset() {
237 *x = Message3{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800238}
Joe Tsai61968ce2019-04-01 12:59:24 -0700239
240func (x *Message3) String() string {
241 return protoimpl.X.MessageStringOf(x)
242}
243
244func (*Message3) ProtoMessage() {}
245
246func (x *Message3) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700247 return file_test_proto_msgTypes[2].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700248}
Joe Tsai8e506a82019-03-16 00:05:34 -0700249
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700250func (m *Message3) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700251 return file_test_proto_msgTypes[2].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700252}
253
Joe Tsai8e506a82019-03-16 00:05:34 -0700254// Deprecated: Use Message3.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800255func (*Message3) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700256 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800257}
258
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800259type Message4 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700260 BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
261 XXX_NoUnkeyedLiteral struct{} `json:"-"`
262 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
263 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800264}
265
Joe Tsai61968ce2019-04-01 12:59:24 -0700266func (x *Message4) Reset() {
267 *x = Message4{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800268}
Joe Tsai61968ce2019-04-01 12:59:24 -0700269
270func (x *Message4) String() string {
271 return protoimpl.X.MessageStringOf(x)
272}
273
274func (*Message4) ProtoMessage() {}
275
276func (x *Message4) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700277 return file_test_proto_msgTypes[3].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700278}
Joe Tsai8e506a82019-03-16 00:05:34 -0700279
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700280func (m *Message4) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700281 return file_test_proto_msgTypes[3].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700282}
283
Joe Tsai8e506a82019-03-16 00:05:34 -0700284// Deprecated: Use Message4.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800285func (*Message4) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700286 return file_test_proto_rawDescGZIP(), []int{3}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800287}
288
Joe Tsai61968ce2019-04-01 12:59:24 -0700289func (x *Message4) GetBoolField() bool {
290 if x != nil && x.BoolField != nil {
291 return *x.BoolField
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800292 }
293 return false
294}
295
Joe Tsai7ca70982019-04-15 13:57:56 -0700296var file_test_proto_extDescs = []protoiface.ExtensionDescV1{
Joe Tsaiafb455e2019-03-14 16:08:22 -0700297 {
298 ExtendedType: (*Message1)(nil),
299 ExtensionType: (*string)(nil),
300 Field: 11,
301 Name: "testprotos.string_field",
302 Tag: "bytes,11,opt,name=string_field",
303 Filename: "test.proto",
304 },
305 {
306 ExtendedType: (*Message1)(nil),
307 ExtensionType: (*Enum1)(nil),
308 Field: 12,
309 Name: "testprotos.enum_field",
310 Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1",
311 Filename: "test.proto",
312 },
313 {
314 ExtendedType: (*Message1)(nil),
315 ExtensionType: (*Message2)(nil),
316 Field: 13,
317 Name: "testprotos.message_field",
318 Tag: "bytes,13,opt,name=message_field",
319 Filename: "test.proto",
320 },
321 {
322 ExtendedType: (*Message1)(nil),
323 ExtensionType: (*Message2)(nil),
324 Field: 21,
325 Name: "testprotos.Message4.message_field",
326 Tag: "bytes,21,opt,name=message_field",
327 Filename: "test.proto",
328 },
329 {
330 ExtendedType: (*Message1)(nil),
331 ExtensionType: (*Enum1)(nil),
332 Field: 22,
333 Name: "testprotos.Message4.enum_field",
334 Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1",
335 Filename: "test.proto",
336 },
337 {
338 ExtendedType: (*Message1)(nil),
339 ExtensionType: (*string)(nil),
340 Field: 23,
341 Name: "testprotos.Message4.string_field",
342 Tag: "bytes,23,opt,name=string_field",
343 Filename: "test.proto",
344 },
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800345}
Joe Tsaiafb455e2019-03-14 16:08:22 -0700346var (
347 // extend testprotos.Message1 { optional string string_field = 11; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700348 E_StringField = &file_test_proto_extDescs[0]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800349
Joe Tsaiafb455e2019-03-14 16:08:22 -0700350 // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 12; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700351 E_EnumField = &file_test_proto_extDescs[1]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800352
Joe Tsaiafb455e2019-03-14 16:08:22 -0700353 // extend testprotos.Message1 { optional testprotos.Message2 message_field = 13; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700354 E_MessageField = &file_test_proto_extDescs[2]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800355
Joe Tsaiafb455e2019-03-14 16:08:22 -0700356 // extend testprotos.Message1 { optional testprotos.Message2 message_field = 21; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700357 E_Message4_MessageField = &file_test_proto_extDescs[3]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800358
Joe Tsaiafb455e2019-03-14 16:08:22 -0700359 // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 22; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700360 E_Message4_EnumField = &file_test_proto_extDescs[4]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800361
Joe Tsaiafb455e2019-03-14 16:08:22 -0700362 // extend testprotos.Message1 { optional string string_field = 23; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700363 E_Message4_StringField = &file_test_proto_extDescs[5]
Joe Tsaiafb455e2019-03-14 16:08:22 -0700364)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700365var File_test_proto protoreflect.FileDescriptor
366
Joe Tsai7ca70982019-04-15 13:57:56 -0700367var file_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800368 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65,
369 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73,
370 0x61, 0x67, 0x65, 0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a,
371 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65,
372 0x73, 0x73, 0x61, 0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61,
373 0x67, 0x65, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c,
374 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65,
375 0x6c, 0x64, 0x32, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69,
376 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
377 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32,
378 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73,
379 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69,
380 0x65, 0x6c, 0x64, 0x32, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c,
Damien Neil8012b442019-01-18 09:32:24 -0800381 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d,
Joe Tsai19058432019-02-27 21:46:29 -0800382 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e,
Damien Neil8012b442019-01-18 09:32:24 -0800383 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31,
Joe Tsai19058432019-02-27 21:46:29 -0800384 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73,
385 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
386 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
387 0x31, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46,
388 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a,
389 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12,
390 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d,
391 0x33, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72,
392 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74,
393 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18,
394 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65,
395 0x6c, 0x64, 0x3a, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64,
396 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65,
397 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74,
398 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52,
399 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65,
400 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
401 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
402 0x31, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72,
403 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d,
Damien Neile89e6242019-05-13 23:55:40 -0700404 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x3d, 0x5a, 0x3b, 0x67,
405 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
406 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63,
407 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
408 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800409}
410
Joe Tsai5d72cc22019-03-28 01:13:26 -0700411var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700412 file_test_proto_rawDescOnce sync.Once
413 file_test_proto_rawDescData = file_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700414)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800415
Joe Tsai7ca70982019-04-15 13:57:56 -0700416func file_test_proto_rawDescGZIP() []byte {
417 file_test_proto_rawDescOnce.Do(func() {
418 file_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700419 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700420 return file_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700421}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800422
Joe Tsaid8881392019-06-06 13:01:53 -0700423var file_test_proto_enumTypes = make([]prototype.Enum, 3)
Joe Tsai4fe96632019-05-22 05:12:36 -0400424var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
Joe Tsai7ca70982019-04-15 13:57:56 -0700425var file_test_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800426 (Enum1)(0), // 0: testprotos.Enum1
427 (Enum2)(0), // 1: testprotos.Enum2
428 (Enum3)(0), // 2: testprotos.Enum3
429 (*Message1)(nil), // 3: testprotos.Message1
430 (*Message2)(nil), // 4: testprotos.Message2
431 (*Message3)(nil), // 5: testprotos.Message3
432 (*Message4)(nil), // 6: testprotos.Message4
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800433}
Joe Tsai7ca70982019-04-15 13:57:56 -0700434var file_test_proto_depIdxs = []int32{
Joe Tsaid8881392019-06-06 13:01:53 -0700435 3, // testprotos.string_field:extendee -> testprotos.Message1
436 3, // testprotos.enum_field:extendee -> testprotos.Message1
437 3, // testprotos.message_field:extendee -> testprotos.Message1
438 3, // testprotos.Message4.message_field:extendee -> testprotos.Message1
439 3, // testprotos.Message4.enum_field:extendee -> testprotos.Message1
440 3, // testprotos.Message4.string_field:extendee -> testprotos.Message1
441 0, // testprotos.enum_field:type_name -> testprotos.Enum1
442 4, // testprotos.message_field:type_name -> testprotos.Message2
443 4, // testprotos.Message4.message_field:type_name -> testprotos.Message2
444 0, // testprotos.Message4.enum_field:type_name -> testprotos.Enum1
445 10, // starting offset of method output_type sub-list
446 10, // starting offset of method input_type sub-list
447 6, // starting offset of extension type_name sub-list
448 0, // starting offset of extension extendee sub-list
449 0, // starting offset of field type_name sub-list
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800450}
Damien Neil8012b442019-01-18 09:32:24 -0800451
Joe Tsai7ca70982019-04-15 13:57:56 -0700452func init() { file_test_proto_init() }
453func file_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800454 if File_test_proto != nil {
455 return
456 }
Joe Tsaid8881392019-06-06 13:01:53 -0700457 out := protoimpl.TypeBuilder{
458 File: protoimpl.DescBuilder{
459 RawDescriptor: file_test_proto_rawDesc,
460 NumEnums: 3,
461 NumMessages: 4,
462 NumExtensions: 6,
463 NumServices: 0,
464 },
465 GoTypes: file_test_proto_goTypes,
466 DependencyIndexes: file_test_proto_depIdxs,
467 MessageInfos: file_test_proto_msgTypes,
468 LegacyExtensions: file_test_proto_extDescs,
469 }.Build()
470 File_test_proto = out.File
471 file_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700472 file_test_proto_rawDesc = nil
473 file_test_proto_goTypes = nil
474 file_test_proto_depIdxs = nil
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800475}