-
Notifications
You must be signed in to change notification settings - Fork 192
/
schema.tl.core_types.pb.go
503 lines (440 loc) · 14.4 KB
/
schema.tl.core_types.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: schema.tl.core_types.proto
package mtproto
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Type forward declarations
type Bool struct {
// Types that are valid to be assigned to Payload:
// *Bool_BoolFalse
// *Bool_BoolTrue
Payload isBool_Payload `protobuf_oneof:"payload"`
}
func (m *Bool) Reset() { *m = Bool{} }
func (m *Bool) String() string { return proto.CompactTextString(m) }
func (*Bool) ProtoMessage() {}
func (*Bool) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
type isBool_Payload interface {
isBool_Payload()
}
type Bool_BoolFalse struct {
BoolFalse *TLBoolFalse `protobuf:"bytes,1,opt,name=boolFalse,oneof"`
}
type Bool_BoolTrue struct {
BoolTrue *TLBoolTrue `protobuf:"bytes,2,opt,name=boolTrue,oneof"`
}
func (*Bool_BoolFalse) isBool_Payload() {}
func (*Bool_BoolTrue) isBool_Payload() {}
func (m *Bool) GetPayload() isBool_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *Bool) GetBoolFalse() *TLBoolFalse {
if x, ok := m.GetPayload().(*Bool_BoolFalse); ok {
return x.BoolFalse
}
return nil
}
func (m *Bool) GetBoolTrue() *TLBoolTrue {
if x, ok := m.GetPayload().(*Bool_BoolTrue); ok {
return x.BoolTrue
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Bool) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Bool_OneofMarshaler, _Bool_OneofUnmarshaler, _Bool_OneofSizer, []interface{}{
(*Bool_BoolFalse)(nil),
(*Bool_BoolTrue)(nil),
}
}
func _Bool_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Bool)
// payload
switch x := m.Payload.(type) {
case *Bool_BoolFalse:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BoolFalse); err != nil {
return err
}
case *Bool_BoolTrue:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BoolTrue); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Bool.Payload has unexpected type %T", x)
}
return nil
}
func _Bool_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Bool)
switch tag {
case 1: // payload.boolFalse
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TLBoolFalse)
err := b.DecodeMessage(msg)
m.Payload = &Bool_BoolFalse{msg}
return true, err
case 2: // payload.boolTrue
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TLBoolTrue)
err := b.DecodeMessage(msg)
m.Payload = &Bool_BoolTrue{msg}
return true, err
default:
return false, nil
}
}
func _Bool_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Bool)
// payload
switch x := m.Payload.(type) {
case *Bool_BoolFalse:
s := proto.Size(x.BoolFalse)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Bool_BoolTrue:
s := proto.Size(x.BoolTrue)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type True struct {
// Types that are valid to be assigned to Payload:
// *True_True
Payload isTrue_Payload `protobuf_oneof:"payload"`
}
func (m *True) Reset() { *m = True{} }
func (m *True) String() string { return proto.CompactTextString(m) }
func (*True) ProtoMessage() {}
func (*True) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
type isTrue_Payload interface {
isTrue_Payload()
}
type True_True struct {
True *TLTrue `protobuf:"bytes,1,opt,name=true,oneof"`
}
func (*True_True) isTrue_Payload() {}
func (m *True) GetPayload() isTrue_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *True) GetTrue() *TLTrue {
if x, ok := m.GetPayload().(*True_True); ok {
return x.True
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*True) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _True_OneofMarshaler, _True_OneofUnmarshaler, _True_OneofSizer, []interface{}{
(*True_True)(nil),
}
}
func _True_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*True)
// payload
switch x := m.Payload.(type) {
case *True_True:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.True); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("True.Payload has unexpected type %T", x)
}
return nil
}
func _True_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*True)
switch tag {
case 1: // payload.true
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TLTrue)
err := b.DecodeMessage(msg)
m.Payload = &True_True{msg}
return true, err
default:
return false, nil
}
}
func _True_OneofSizer(msg proto.Message) (n int) {
m := msg.(*True)
// payload
switch x := m.Payload.(type) {
case *True_True:
s := proto.Size(x.True)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type Error struct {
// Types that are valid to be assigned to Payload:
// *Error_Error
Payload isError_Payload `protobuf_oneof:"payload"`
}
func (m *Error) Reset() { *m = Error{} }
func (m *Error) String() string { return proto.CompactTextString(m) }
func (*Error) ProtoMessage() {}
func (*Error) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
type isError_Payload interface {
isError_Payload()
}
type Error_Error struct {
Error *TLError `protobuf:"bytes,1,opt,name=error,oneof"`
}
func (*Error_Error) isError_Payload() {}
func (m *Error) GetPayload() isError_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *Error) GetError() *TLError {
if x, ok := m.GetPayload().(*Error_Error); ok {
return x.Error
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Error) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Error_OneofMarshaler, _Error_OneofUnmarshaler, _Error_OneofSizer, []interface{}{
(*Error_Error)(nil),
}
}
func _Error_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Error)
// payload
switch x := m.Payload.(type) {
case *Error_Error:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Error); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Error.Payload has unexpected type %T", x)
}
return nil
}
func _Error_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Error)
switch tag {
case 1: // payload.error
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TLError)
err := b.DecodeMessage(msg)
m.Payload = &Error_Error{msg}
return true, err
default:
return false, nil
}
}
func _Error_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Error)
// payload
switch x := m.Payload.(type) {
case *Error_Error:
s := proto.Size(x.Error)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type Null struct {
// Types that are valid to be assigned to Payload:
// *Null_Null
Payload isNull_Payload `protobuf_oneof:"payload"`
}
func (m *Null) Reset() { *m = Null{} }
func (m *Null) String() string { return proto.CompactTextString(m) }
func (*Null) ProtoMessage() {}
func (*Null) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
type isNull_Payload interface {
isNull_Payload()
}
type Null_Null struct {
Null *TLNull `protobuf:"bytes,1,opt,name=null,oneof"`
}
func (*Null_Null) isNull_Payload() {}
func (m *Null) GetPayload() isNull_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *Null) GetNull() *TLNull {
if x, ok := m.GetPayload().(*Null_Null); ok {
return x.Null
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Null) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Null_OneofMarshaler, _Null_OneofUnmarshaler, _Null_OneofSizer, []interface{}{
(*Null_Null)(nil),
}
}
func _Null_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Null)
// payload
switch x := m.Payload.(type) {
case *Null_Null:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Null); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Null.Payload has unexpected type %T", x)
}
return nil
}
func _Null_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Null)
switch tag {
case 1: // payload.null
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TLNull)
err := b.DecodeMessage(msg)
m.Payload = &Null_Null{msg}
return true, err
default:
return false, nil
}
}
func _Null_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Null)
// payload
switch x := m.Payload.(type) {
case *Null_Null:
s := proto.Size(x.Null)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// boolFalse#bc799737 = Bool;
type TLBoolFalse struct {
}
func (m *TLBoolFalse) Reset() { *m = TLBoolFalse{} }
func (m *TLBoolFalse) String() string { return proto.CompactTextString(m) }
func (*TLBoolFalse) ProtoMessage() {}
func (*TLBoolFalse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
// boolTrue#997275b5 = Bool;
type TLBoolTrue struct {
}
func (m *TLBoolTrue) Reset() { *m = TLBoolTrue{} }
func (m *TLBoolTrue) String() string { return proto.CompactTextString(m) }
func (*TLBoolTrue) ProtoMessage() {}
func (*TLBoolTrue) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
// true#3fedd339 = True;
type TLTrue struct {
}
func (m *TLTrue) Reset() { *m = TLTrue{} }
func (m *TLTrue) String() string { return proto.CompactTextString(m) }
func (*TLTrue) ProtoMessage() {}
func (*TLTrue) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
// error#c4b9f9bb code:int text:string = Error;
type TLError struct {
Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
}
func (m *TLError) Reset() { *m = TLError{} }
func (m *TLError) String() string { return proto.CompactTextString(m) }
func (*TLError) ProtoMessage() {}
func (*TLError) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
func (m *TLError) GetCode() int32 {
if m != nil {
return m.Code
}
return 0
}
func (m *TLError) GetText() string {
if m != nil {
return m.Text
}
return ""
}
// null#56730bcc = Null;
type TLNull struct {
}
func (m *TLNull) Reset() { *m = TLNull{} }
func (m *TLNull) String() string { return proto.CompactTextString(m) }
func (*TLNull) ProtoMessage() {}
func (*TLNull) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} }
func init() {
proto.RegisterType((*Bool)(nil), "mtproto.Bool")
proto.RegisterType((*True)(nil), "mtproto.True")
proto.RegisterType((*Error)(nil), "mtproto.Error")
proto.RegisterType((*Null)(nil), "mtproto.Null")
proto.RegisterType((*TLBoolFalse)(nil), "mtproto.TL_boolFalse")
proto.RegisterType((*TLBoolTrue)(nil), "mtproto.TL_boolTrue")
proto.RegisterType((*TLTrue)(nil), "mtproto.TL_true")
proto.RegisterType((*TLError)(nil), "mtproto.TL_error")
proto.RegisterType((*TLNull)(nil), "mtproto.TL_null")
}
func init() { proto.RegisterFile("schema.tl.core_types.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 290 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4b, 0xc3, 0x30,
0x14, 0xc6, 0xbb, 0xd1, 0xda, 0xf5, 0x4d, 0x45, 0x83, 0xc2, 0xd0, 0x8b, 0xf4, 0x20, 0xf3, 0x92,
0x43, 0xc5, 0x83, 0x07, 0x2f, 0x05, 0xa5, 0x07, 0x15, 0x29, 0xbd, 0x8f, 0xb4, 0x0b, 0x3a, 0x48,
0xfb, 0x4a, 0x9a, 0x82, 0x03, 0xff, 0x78, 0x79, 0x69, 0x37, 0xc3, 0xf0, 0xd4, 0xaf, 0xef, 0xfb,
0x7e, 0xf9, 0x5e, 0x02, 0x57, 0x5d, 0xf5, 0x25, 0x6b, 0xc1, 0x8d, 0xe2, 0x15, 0x6a, 0xb9, 0x32,
0xdb, 0x56, 0x76, 0xbc, 0xd5, 0x68, 0x90, 0x85, 0xb5, 0xb1, 0x22, 0xfe, 0x01, 0x3f, 0x45, 0x54,
0xec, 0x01, 0xa2, 0x12, 0x51, 0xbd, 0x08, 0xd5, 0xc9, 0xc5, 0xe4, 0x66, 0xb2, 0x9c, 0x27, 0x97,
0x7c, 0x0c, 0xf1, 0xe2, 0x75, 0xb5, 0x37, 0x33, 0x2f, 0xff, 0x4b, 0xb2, 0x04, 0x66, 0xf4, 0x53,
0xe8, 0x5e, 0x2e, 0xa6, 0x96, 0xba, 0x38, 0xa4, 0xc8, 0xcb, 0xbc, 0x7c, 0x9f, 0x4b, 0x23, 0x08,
0x5b, 0xb1, 0x55, 0x28, 0xd6, 0xf1, 0x23, 0xf8, 0x34, 0x62, 0xb7, 0xe0, 0x1b, 0x3a, 0x62, 0x28,
0x3e, 0x73, 0x8f, 0x30, 0x03, 0x6e, 0x7d, 0x17, 0x7d, 0x82, 0xe0, 0x59, 0x6b, 0xd4, 0xec, 0x0e,
0x02, 0x49, 0x62, 0x84, 0xcf, 0x5d, 0xd8, 0x1a, 0x99, 0x97, 0x0f, 0x89, 0x83, 0xe6, 0xf7, 0x5e,
0x29, 0x6a, 0x6e, 0x7a, 0xa5, 0xfe, 0x6b, 0xa6, 0x39, 0x35, 0xd3, 0xd7, 0x45, 0x4f, 0xe1, 0xd8,
0x7d, 0x90, 0xf8, 0x04, 0xe6, 0xce, 0x55, 0xe3, 0x08, 0xc2, 0x71, 0xed, 0x38, 0x81, 0xd9, 0x6e,
0x09, 0xc6, 0xc0, 0xaf, 0x70, 0x3d, 0x5c, 0x31, 0xc8, 0xad, 0xa6, 0x99, 0x91, 0xdf, 0xc6, 0xbe,
0x5c, 0x94, 0x5b, 0x3d, 0xe2, 0xb6, 0x73, 0x09, 0xd7, 0x15, 0xd6, 0xbc, 0x91, 0x65, 0xaf, 0xc4,
0xa6, 0xe6, 0xb2, 0xf9, 0xdc, 0x34, 0x72, 0xb7, 0x62, 0x1a, 0xbe, 0x15, 0x1f, 0x24, 0xb2, 0x69,
0x79, 0x64, 0x27, 0xf7, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x92, 0xa7, 0x7d, 0xf3, 0x01,
0x00, 0x00,
}