blob: 4ed48119e6c78fe99616578f81b49c708e5e885b [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
Joe Tsai8e506a82019-03-16 00:05:34 -070027// Deprecated: Use Enum1.Type.Values instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -080028var Enum1_name = map[int32]string{
29 1: "ONE",
30}
31
Joe Tsai8e506a82019-03-16 00:05:34 -070032// Deprecated: Use Enum1.Type.Values instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -080033var Enum1_value = map[string]int32{
34 "ONE": 1,
35}
36
37func (x Enum1) Enum() *Enum1 {
Joe Tsai09b5b462019-04-10 15:29:01 -070038 p := new(Enum1)
39 *p = x
40 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -080041}
42
43func (x Enum1) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070044 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -080045}
46
Joe Tsai0fc49f82019-05-01 12:29:25 -070047func (Enum1) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -070048 return file_test_proto_enumTypes[0].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070049}
50
Joe Tsai61968ce2019-04-01 12:59:24 -070051func (x Enum1) Number() protoreflect.EnumNumber {
52 return protoreflect.EnumNumber(x)
53}
54
Joe Tsai8e506a82019-03-16 00:05:34 -070055// Deprecated: Do not use.
56func (x *Enum1) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -070057 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080058 if err != nil {
59 return err
60 }
Joe Tsai8e506a82019-03-16 00:05:34 -070061 *x = Enum1(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080062 return nil
63}
64
Joe Tsai8e506a82019-03-16 00:05:34 -070065// Deprecated: Use Enum1.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -080066func (Enum1) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070067 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -080068}
69
70type Enum2 int32
71
72const (
73 Enum2_UNO Enum2 = 1
74)
75
Joe Tsai8e506a82019-03-16 00:05:34 -070076// Deprecated: Use Enum2.Type.Values instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -080077var Enum2_name = map[int32]string{
78 1: "UNO",
79}
80
Joe Tsai8e506a82019-03-16 00:05:34 -070081// Deprecated: Use Enum2.Type.Values instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -080082var Enum2_value = map[string]int32{
83 "UNO": 1,
84}
85
86func (x Enum2) Enum() *Enum2 {
Joe Tsai09b5b462019-04-10 15:29:01 -070087 p := new(Enum2)
88 *p = x
89 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -080090}
91
92func (x Enum2) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070093 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -080094}
95
Joe Tsai0fc49f82019-05-01 12:29:25 -070096func (Enum2) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -070097 return file_test_proto_enumTypes[1].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070098}
99
Joe Tsai61968ce2019-04-01 12:59:24 -0700100func (x Enum2) Number() protoreflect.EnumNumber {
101 return protoreflect.EnumNumber(x)
102}
103
Joe Tsai8e506a82019-03-16 00:05:34 -0700104// Deprecated: Do not use.
105func (x *Enum2) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700106 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800107 if err != nil {
108 return err
109 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700110 *x = Enum2(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800111 return nil
112}
113
Joe Tsai8e506a82019-03-16 00:05:34 -0700114// Deprecated: Use Enum2.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800115func (Enum2) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700116 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800117}
118
119type Enum3 int32
120
121const (
122 Enum3_YI Enum3 = 1
123)
124
Joe Tsai8e506a82019-03-16 00:05:34 -0700125// Deprecated: Use Enum3.Type.Values instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800126var Enum3_name = map[int32]string{
127 1: "YI",
128}
129
Joe Tsai8e506a82019-03-16 00:05:34 -0700130// Deprecated: Use Enum3.Type.Values instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800131var Enum3_value = map[string]int32{
132 "YI": 1,
133}
134
135func (x Enum3) Enum() *Enum3 {
Joe Tsai09b5b462019-04-10 15:29:01 -0700136 p := new(Enum3)
137 *p = x
138 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800139}
140
141func (x Enum3) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700142 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800143}
144
Joe Tsai0fc49f82019-05-01 12:29:25 -0700145func (Enum3) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700146 return file_test_proto_enumTypes[2].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700147}
148
Joe Tsai61968ce2019-04-01 12:59:24 -0700149func (x Enum3) Number() protoreflect.EnumNumber {
150 return protoreflect.EnumNumber(x)
151}
152
Joe Tsai8e506a82019-03-16 00:05:34 -0700153// Deprecated: Do not use.
154func (x *Enum3) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700155 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800156 if err != nil {
157 return err
158 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700159 *x = Enum3(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800160 return nil
161}
162
Joe Tsai8e506a82019-03-16 00:05:34 -0700163// Deprecated: Use Enum3.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800164func (Enum3) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700165 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800166}
167
168type Message1 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700169 XXX_NoUnkeyedLiteral struct{} `json:"-"`
170 XXX_InternalExtensions protoimpl.ExtensionFields `json:"-"`
171 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
172 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800173}
174
Joe Tsai61968ce2019-04-01 12:59:24 -0700175func (x *Message1) Reset() {
176 *x = Message1{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800177}
Joe Tsai61968ce2019-04-01 12:59:24 -0700178
179func (x *Message1) String() string {
180 return protoimpl.X.MessageStringOf(x)
181}
182
183func (*Message1) ProtoMessage() {}
184
185func (x *Message1) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700186 return file_test_proto_msgTypes[0].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700187}
Joe Tsai8e506a82019-03-16 00:05:34 -0700188
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700189func (m *Message1) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700190 return file_test_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700191}
192
Joe Tsai8e506a82019-03-16 00:05:34 -0700193// Deprecated: Use Message1.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800194func (*Message1) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700195 return file_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800196}
197
Joe Tsai4fddeba2019-03-20 18:29:32 -0700198var extRange_Message1 = []protoiface.ExtensionRangeV1{
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800199 {Start: 10, End: 536870911},
200}
201
Joe Tsai8e506a82019-03-16 00:05:34 -0700202// Deprecated: Use Message1.ProtoReflect.Type.ExtensionRanges instead.
Joe Tsai4fddeba2019-03-20 18:29:32 -0700203func (*Message1) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800204 return extRange_Message1
205}
206
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800207type Message2 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700208 XXX_NoUnkeyedLiteral struct{} `json:"-"`
209 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
210 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800211}
212
Joe Tsai61968ce2019-04-01 12:59:24 -0700213func (x *Message2) Reset() {
214 *x = Message2{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800215}
Joe Tsai61968ce2019-04-01 12:59:24 -0700216
217func (x *Message2) String() string {
218 return protoimpl.X.MessageStringOf(x)
219}
220
221func (*Message2) ProtoMessage() {}
222
223func (x *Message2) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700224 return file_test_proto_msgTypes[1].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700225}
Joe Tsai8e506a82019-03-16 00:05:34 -0700226
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700227func (m *Message2) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700228 return file_test_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700229}
230
Joe Tsai8e506a82019-03-16 00:05:34 -0700231// Deprecated: Use Message2.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800232func (*Message2) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700233 return file_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800234}
235
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800236type Message3 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700237 XXX_NoUnkeyedLiteral struct{} `json:"-"`
238 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
239 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800240}
241
Joe Tsai61968ce2019-04-01 12:59:24 -0700242func (x *Message3) Reset() {
243 *x = Message3{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800244}
Joe Tsai61968ce2019-04-01 12:59:24 -0700245
246func (x *Message3) String() string {
247 return protoimpl.X.MessageStringOf(x)
248}
249
250func (*Message3) ProtoMessage() {}
251
252func (x *Message3) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700253 return file_test_proto_msgTypes[2].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700254}
Joe Tsai8e506a82019-03-16 00:05:34 -0700255
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700256func (m *Message3) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700257 return file_test_proto_msgTypes[2].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700258}
259
Joe Tsai8e506a82019-03-16 00:05:34 -0700260// Deprecated: Use Message3.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800261func (*Message3) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700262 return file_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800263}
264
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800265type Message4 struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700266 BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
267 XXX_NoUnkeyedLiteral struct{} `json:"-"`
268 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
269 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800270}
271
Joe Tsai61968ce2019-04-01 12:59:24 -0700272func (x *Message4) Reset() {
273 *x = Message4{}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800274}
Joe Tsai61968ce2019-04-01 12:59:24 -0700275
276func (x *Message4) String() string {
277 return protoimpl.X.MessageStringOf(x)
278}
279
280func (*Message4) ProtoMessage() {}
281
282func (x *Message4) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700283 return file_test_proto_msgTypes[3].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700284}
Joe Tsai8e506a82019-03-16 00:05:34 -0700285
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700286func (m *Message4) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700287 return file_test_proto_msgTypes[3].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700288}
289
Joe Tsai8e506a82019-03-16 00:05:34 -0700290// Deprecated: Use Message4.ProtoReflect.Type instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800291func (*Message4) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700292 return file_test_proto_rawDescGZIP(), []int{3}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800293}
294
Joe Tsai61968ce2019-04-01 12:59:24 -0700295func (x *Message4) GetBoolField() bool {
296 if x != nil && x.BoolField != nil {
297 return *x.BoolField
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800298 }
299 return false
300}
301
Joe Tsai7ca70982019-04-15 13:57:56 -0700302var file_test_proto_extDescs = []protoiface.ExtensionDescV1{
Joe Tsaiafb455e2019-03-14 16:08:22 -0700303 {
304 ExtendedType: (*Message1)(nil),
305 ExtensionType: (*string)(nil),
306 Field: 11,
307 Name: "testprotos.string_field",
308 Tag: "bytes,11,opt,name=string_field",
309 Filename: "test.proto",
310 },
311 {
312 ExtendedType: (*Message1)(nil),
313 ExtensionType: (*Enum1)(nil),
314 Field: 12,
315 Name: "testprotos.enum_field",
316 Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1",
317 Filename: "test.proto",
318 },
319 {
320 ExtendedType: (*Message1)(nil),
321 ExtensionType: (*Message2)(nil),
322 Field: 13,
323 Name: "testprotos.message_field",
324 Tag: "bytes,13,opt,name=message_field",
325 Filename: "test.proto",
326 },
327 {
328 ExtendedType: (*Message1)(nil),
329 ExtensionType: (*Message2)(nil),
330 Field: 21,
331 Name: "testprotos.Message4.message_field",
332 Tag: "bytes,21,opt,name=message_field",
333 Filename: "test.proto",
334 },
335 {
336 ExtendedType: (*Message1)(nil),
337 ExtensionType: (*Enum1)(nil),
338 Field: 22,
339 Name: "testprotos.Message4.enum_field",
340 Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1",
341 Filename: "test.proto",
342 },
343 {
344 ExtendedType: (*Message1)(nil),
345 ExtensionType: (*string)(nil),
346 Field: 23,
347 Name: "testprotos.Message4.string_field",
348 Tag: "bytes,23,opt,name=string_field",
349 Filename: "test.proto",
350 },
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800351}
Joe Tsaiafb455e2019-03-14 16:08:22 -0700352var (
353 // extend testprotos.Message1 { optional string string_field = 11; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700354 E_StringField = &file_test_proto_extDescs[0]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800355
Joe Tsaiafb455e2019-03-14 16:08:22 -0700356 // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 12; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700357 E_EnumField = &file_test_proto_extDescs[1]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800358
Joe Tsaiafb455e2019-03-14 16:08:22 -0700359 // extend testprotos.Message1 { optional testprotos.Message2 message_field = 13; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700360 E_MessageField = &file_test_proto_extDescs[2]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800361
Joe Tsaiafb455e2019-03-14 16:08:22 -0700362 // extend testprotos.Message1 { optional testprotos.Message2 message_field = 21; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700363 E_Message4_MessageField = &file_test_proto_extDescs[3]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800364
Joe Tsaiafb455e2019-03-14 16:08:22 -0700365 // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 22; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700366 E_Message4_EnumField = &file_test_proto_extDescs[4]
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800367
Joe Tsaiafb455e2019-03-14 16:08:22 -0700368 // extend testprotos.Message1 { optional string string_field = 23; }
Joe Tsai7ca70982019-04-15 13:57:56 -0700369 E_Message4_StringField = &file_test_proto_extDescs[5]
Joe Tsaiafb455e2019-03-14 16:08:22 -0700370)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700371var File_test_proto protoreflect.FileDescriptor
372
Joe Tsai7ca70982019-04-15 13:57:56 -0700373var file_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800374 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65,
375 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73,
376 0x61, 0x67, 0x65, 0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a,
377 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65,
378 0x73, 0x73, 0x61, 0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61,
379 0x67, 0x65, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c,
380 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65,
381 0x6c, 0x64, 0x32, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69,
382 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
383 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32,
384 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73,
385 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69,
386 0x65, 0x6c, 0x64, 0x32, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c,
Damien Neil8012b442019-01-18 09:32:24 -0800387 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d,
Joe Tsai19058432019-02-27 21:46:29 -0800388 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e,
Damien Neil8012b442019-01-18 09:32:24 -0800389 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31,
Joe Tsai19058432019-02-27 21:46:29 -0800390 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73,
391 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
392 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
393 0x31, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46,
394 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a,
395 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12,
396 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d,
397 0x33, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72,
398 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74,
399 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18,
400 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65,
401 0x6c, 0x64, 0x3a, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64,
402 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65,
403 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74,
404 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52,
405 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65,
406 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65,
407 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
408 0x31, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72,
409 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d,
Damien Neile89e6242019-05-13 23:55:40 -0700410 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x3d, 0x5a, 0x3b, 0x67,
411 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
412 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63,
413 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
414 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800415}
416
Joe Tsai5d72cc22019-03-28 01:13:26 -0700417var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700418 file_test_proto_rawDescOnce sync.Once
419 file_test_proto_rawDescData = file_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700420)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800421
Joe Tsai7ca70982019-04-15 13:57:56 -0700422func file_test_proto_rawDescGZIP() []byte {
423 file_test_proto_rawDescOnce.Do(func() {
424 file_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700425 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700426 return file_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700427}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800428
Joe Tsaid8881392019-06-06 13:01:53 -0700429var file_test_proto_enumTypes = make([]prototype.Enum, 3)
Joe Tsai4fe96632019-05-22 05:12:36 -0400430var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
Joe Tsai7ca70982019-04-15 13:57:56 -0700431var file_test_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800432 (Enum1)(0), // 0: testprotos.Enum1
433 (Enum2)(0), // 1: testprotos.Enum2
434 (Enum3)(0), // 2: testprotos.Enum3
435 (*Message1)(nil), // 3: testprotos.Message1
436 (*Message2)(nil), // 4: testprotos.Message2
437 (*Message3)(nil), // 5: testprotos.Message3
438 (*Message4)(nil), // 6: testprotos.Message4
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800439}
Joe Tsai7ca70982019-04-15 13:57:56 -0700440var file_test_proto_depIdxs = []int32{
Joe Tsaid8881392019-06-06 13:01:53 -0700441 3, // testprotos.string_field:extendee -> testprotos.Message1
442 3, // testprotos.enum_field:extendee -> testprotos.Message1
443 3, // testprotos.message_field:extendee -> testprotos.Message1
444 3, // testprotos.Message4.message_field:extendee -> testprotos.Message1
445 3, // testprotos.Message4.enum_field:extendee -> testprotos.Message1
446 3, // testprotos.Message4.string_field:extendee -> testprotos.Message1
447 0, // testprotos.enum_field:type_name -> testprotos.Enum1
448 4, // testprotos.message_field:type_name -> testprotos.Message2
449 4, // testprotos.Message4.message_field:type_name -> testprotos.Message2
450 0, // testprotos.Message4.enum_field:type_name -> testprotos.Enum1
451 10, // starting offset of method output_type sub-list
452 10, // starting offset of method input_type sub-list
453 6, // starting offset of extension type_name sub-list
454 0, // starting offset of extension extendee sub-list
455 0, // starting offset of field type_name sub-list
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800456}
Damien Neil8012b442019-01-18 09:32:24 -0800457
Joe Tsai7ca70982019-04-15 13:57:56 -0700458func init() { file_test_proto_init() }
459func file_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800460 if File_test_proto != nil {
461 return
462 }
Joe Tsaid8881392019-06-06 13:01:53 -0700463 out := protoimpl.TypeBuilder{
464 File: protoimpl.DescBuilder{
465 RawDescriptor: file_test_proto_rawDesc,
466 NumEnums: 3,
467 NumMessages: 4,
468 NumExtensions: 6,
469 NumServices: 0,
470 },
471 GoTypes: file_test_proto_goTypes,
472 DependencyIndexes: file_test_proto_depIdxs,
473 MessageInfos: file_test_proto_msgTypes,
474 LegacyExtensions: file_test_proto_extDescs,
475 }.Build()
476 File_test_proto = out.File
477 file_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700478 file_test_proto_rawDesc = nil
479 file_test_proto_goTypes = nil
480 file_test_proto_depIdxs = nil
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800481}