Subversion Repositories php-qbpwcf

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 liveuser 1
<?php
2
/**
3
 * Autogenerated by Thrift
4
 *
5
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
6
 */
7
include_once $GLOBALS['THRIFT_ROOT'].'/Thrift.php';
8
 
9
include_once $GLOBALS['THRIFT_ROOT'].'/packages/fb303/fb303_types.php';
10
 
11
interface FacebookServiceIf {
12
  public function getName();
13
  public function getVersion();
14
  public function getStatus();
15
  public function getStatusDetails();
16
  public function getCounters();
17
  public function getCounter($key);
18
  public function setOption($key, $value);
19
  public function getOption($key);
20
  public function getOptions();
21
  public function getCpuProfile($profileDurationInSec);
22
  public function aliveSince();
23
  public function reinitialize();
24
  public function shutdown();
25
}
26
 
27
class FacebookServiceClient implements FacebookServiceIf {
28
  protected $input_ = null;
29
  protected $output_ = null;
30
 
31
  protected $seqid_ = 0;
32
 
33
  public function __construct($input, $output=null) {
34
    $this->input_ = $input;
35
    $this->output_ = $output ? $output : $input;
36
  }
37
 
38
  public function getName()
39
  {
40
    $this->send_getName();
41
    return $this->recv_getName();
42
  }
43
 
44
  public function send_getName()
45
  {
46
    $args = new FacebookService_getName_args();
47
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
48
    if ($bin_accel)
49
    {
50
      thrift_protocol_write_binary($this->output_, 'getName', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
51
    }
52
    else
53
    {
54
      $this->output_->writeMessageBegin('getName', TMessageType::CALL, $this->seqid_);
55
      $args->write($this->output_);
56
      $this->output_->writeMessageEnd();
57
      $this->output_->getTransport()->flush();
58
    }
59
  }
60
 
61
  public function recv_getName()
62
  {
63
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
64
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'FacebookService_getName_result', $this->input_->isStrictRead());
65
    else
66
    {
67
      $rseqid = 0;
68
      $fname = null;
69
      $mtype = 0;
70
 
71
      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
72
      if ($mtype == TMessageType::EXCEPTION) {
73
        $x = new TApplicationException();
74
        $x->read($this->input_);
75
        $this->input_->readMessageEnd();
76
        throw $x;
77
      }
78
      $result = new FacebookService_getName_result();
79
      $result->read($this->input_);
80
      $this->input_->readMessageEnd();
81
    }
82
    if ($result->success !== null) {
83
      return $result->success;
84
    }
85
    throw new Exception("getName failed: unknown result");
86
  }
87
 
88
  public function getVersion()
89
  {
90
    $this->send_getVersion();
91
    return $this->recv_getVersion();
92
  }
93
 
94
  public function send_getVersion()
95
  {
96
    $args = new FacebookService_getVersion_args();
97
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
98
    if ($bin_accel)
99
    {
100
      thrift_protocol_write_binary($this->output_, 'getVersion', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
101
    }
102
    else
103
    {
104
      $this->output_->writeMessageBegin('getVersion', TMessageType::CALL, $this->seqid_);
105
      $args->write($this->output_);
106
      $this->output_->writeMessageEnd();
107
      $this->output_->getTransport()->flush();
108
    }
109
  }
110
 
111
  public function recv_getVersion()
112
  {
113
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
114
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'FacebookService_getVersion_result', $this->input_->isStrictRead());
115
    else
116
    {
117
      $rseqid = 0;
118
      $fname = null;
119
      $mtype = 0;
120
 
121
      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
122
      if ($mtype == TMessageType::EXCEPTION) {
123
        $x = new TApplicationException();
124
        $x->read($this->input_);
125
        $this->input_->readMessageEnd();
126
        throw $x;
127
      }
128
      $result = new FacebookService_getVersion_result();
129
      $result->read($this->input_);
130
      $this->input_->readMessageEnd();
131
    }
132
    if ($result->success !== null) {
133
      return $result->success;
134
    }
135
    throw new Exception("getVersion failed: unknown result");
136
  }
137
 
138
  public function getStatus()
139
  {
140
    $this->send_getStatus();
141
    return $this->recv_getStatus();
142
  }
143
 
144
  public function send_getStatus()
145
  {
146
    $args = new FacebookService_getStatus_args();
147
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
148
    if ($bin_accel)
149
    {
150
      thrift_protocol_write_binary($this->output_, 'getStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
151
    }
152
    else
153
    {
154
      $this->output_->writeMessageBegin('getStatus', TMessageType::CALL, $this->seqid_);
155
      $args->write($this->output_);
156
      $this->output_->writeMessageEnd();
157
      $this->output_->getTransport()->flush();
158
    }
159
  }
160
 
161
  public function recv_getStatus()
162
  {
163
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
164
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'FacebookService_getStatus_result', $this->input_->isStrictRead());
165
    else
166
    {
167
      $rseqid = 0;
168
      $fname = null;
169
      $mtype = 0;
170
 
171
      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
172
      if ($mtype == TMessageType::EXCEPTION) {
173
        $x = new TApplicationException();
174
        $x->read($this->input_);
175
        $this->input_->readMessageEnd();
176
        throw $x;
177
      }
178
      $result = new FacebookService_getStatus_result();
179
      $result->read($this->input_);
180
      $this->input_->readMessageEnd();
181
    }
182
    if ($result->success !== null) {
183
      return $result->success;
184
    }
185
    throw new Exception("getStatus failed: unknown result");
186
  }
187
 
188
  public function getStatusDetails()
189
  {
190
    $this->send_getStatusDetails();
191
    return $this->recv_getStatusDetails();
192
  }
193
 
194
  public function send_getStatusDetails()
195
  {
196
    $args = new FacebookService_getStatusDetails_args();
197
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
198
    if ($bin_accel)
199
    {
200
      thrift_protocol_write_binary($this->output_, 'getStatusDetails', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
201
    }
202
    else
203
    {
204
      $this->output_->writeMessageBegin('getStatusDetails', TMessageType::CALL, $this->seqid_);
205
      $args->write($this->output_);
206
      $this->output_->writeMessageEnd();
207
      $this->output_->getTransport()->flush();
208
    }
209
  }
210
 
211
  public function recv_getStatusDetails()
212
  {
213
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
214
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'FacebookService_getStatusDetails_result', $this->input_->isStrictRead());
215
    else
216
    {
217
      $rseqid = 0;
218
      $fname = null;
219
      $mtype = 0;
220
 
221
      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
222
      if ($mtype == TMessageType::EXCEPTION) {
223
        $x = new TApplicationException();
224
        $x->read($this->input_);
225
        $this->input_->readMessageEnd();
226
        throw $x;
227
      }
228
      $result = new FacebookService_getStatusDetails_result();
229
      $result->read($this->input_);
230
      $this->input_->readMessageEnd();
231
    }
232
    if ($result->success !== null) {
233
      return $result->success;
234
    }
235
    throw new Exception("getStatusDetails failed: unknown result");
236
  }
237
 
238
  public function getCounters()
239
  {
240
    $this->send_getCounters();
241
    return $this->recv_getCounters();
242
  }
243
 
244
  public function send_getCounters()
245
  {
246
    $args = new FacebookService_getCounters_args();
247
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
248
    if ($bin_accel)
249
    {
250
      thrift_protocol_write_binary($this->output_, 'getCounters', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
251
    }
252
    else
253
    {
254
      $this->output_->writeMessageBegin('getCounters', TMessageType::CALL, $this->seqid_);
255
      $args->write($this->output_);
256
      $this->output_->writeMessageEnd();
257
      $this->output_->getTransport()->flush();
258
    }
259
  }
260
 
261
  public function recv_getCounters()
262
  {
263
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
264
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'FacebookService_getCounters_result', $this->input_->isStrictRead());
265
    else
266
    {
267
      $rseqid = 0;
268
      $fname = null;
269
      $mtype = 0;
270
 
271
      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
272
      if ($mtype == TMessageType::EXCEPTION) {
273
        $x = new TApplicationException();
274
        $x->read($this->input_);
275
        $this->input_->readMessageEnd();
276
        throw $x;
277
      }
278
      $result = new FacebookService_getCounters_result();
279
      $result->read($this->input_);
280
      $this->input_->readMessageEnd();
281
    }
282
    if ($result->success !== null) {
283
      return $result->success;
284
    }
285
    throw new Exception("getCounters failed: unknown result");
286
  }
287
 
288
  public function getCounter($key)
289
  {
290
    $this->send_getCounter($key);
291
    return $this->recv_getCounter();
292
  }
293
 
294
  public function send_getCounter($key)
295
  {
296
    $args = new FacebookService_getCounter_args();
297
    $args->key = $key;
298
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
299
    if ($bin_accel)
300
    {
301
      thrift_protocol_write_binary($this->output_, 'getCounter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
302
    }
303
    else
304
    {
305
      $this->output_->writeMessageBegin('getCounter', TMessageType::CALL, $this->seqid_);
306
      $args->write($this->output_);
307
      $this->output_->writeMessageEnd();
308
      $this->output_->getTransport()->flush();
309
    }
310
  }
311
 
312
  public function recv_getCounter()
313
  {
314
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
315
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'FacebookService_getCounter_result', $this->input_->isStrictRead());
316
    else
317
    {
318
      $rseqid = 0;
319
      $fname = null;
320
      $mtype = 0;
321
 
322
      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
323
      if ($mtype == TMessageType::EXCEPTION) {
324
        $x = new TApplicationException();
325
        $x->read($this->input_);
326
        $this->input_->readMessageEnd();
327
        throw $x;
328
      }
329
      $result = new FacebookService_getCounter_result();
330
      $result->read($this->input_);
331
      $this->input_->readMessageEnd();
332
    }
333
    if ($result->success !== null) {
334
      return $result->success;
335
    }
336
    throw new Exception("getCounter failed: unknown result");
337
  }
338
 
339
  public function setOption($key, $value)
340
  {
341
    $this->send_setOption($key, $value);
342
    $this->recv_setOption();
343
  }
344
 
345
  public function send_setOption($key, $value)
346
  {
347
    $args = new FacebookService_setOption_args();
348
    $args->key = $key;
349
    $args->value = $value;
350
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
351
    if ($bin_accel)
352
    {
353
      thrift_protocol_write_binary($this->output_, 'setOption', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
354
    }
355
    else
356
    {
357
      $this->output_->writeMessageBegin('setOption', TMessageType::CALL, $this->seqid_);
358
      $args->write($this->output_);
359
      $this->output_->writeMessageEnd();
360
      $this->output_->getTransport()->flush();
361
    }
362
  }
363
 
364
  public function recv_setOption()
365
  {
366
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
367
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'FacebookService_setOption_result', $this->input_->isStrictRead());
368
    else
369
    {
370
      $rseqid = 0;
371
      $fname = null;
372
      $mtype = 0;
373
 
374
      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
375
      if ($mtype == TMessageType::EXCEPTION) {
376
        $x = new TApplicationException();
377
        $x->read($this->input_);
378
        $this->input_->readMessageEnd();
379
        throw $x;
380
      }
381
      $result = new FacebookService_setOption_result();
382
      $result->read($this->input_);
383
      $this->input_->readMessageEnd();
384
    }
385
    return;
386
  }
387
 
388
  public function getOption($key)
389
  {
390
    $this->send_getOption($key);
391
    return $this->recv_getOption();
392
  }
393
 
394
  public function send_getOption($key)
395
  {
396
    $args = new FacebookService_getOption_args();
397
    $args->key = $key;
398
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
399
    if ($bin_accel)
400
    {
401
      thrift_protocol_write_binary($this->output_, 'getOption', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
402
    }
403
    else
404
    {
405
      $this->output_->writeMessageBegin('getOption', TMessageType::CALL, $this->seqid_);
406
      $args->write($this->output_);
407
      $this->output_->writeMessageEnd();
408
      $this->output_->getTransport()->flush();
409
    }
410
  }
411
 
412
  public function recv_getOption()
413
  {
414
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
415
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'FacebookService_getOption_result', $this->input_->isStrictRead());
416
    else
417
    {
418
      $rseqid = 0;
419
      $fname = null;
420
      $mtype = 0;
421
 
422
      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
423
      if ($mtype == TMessageType::EXCEPTION) {
424
        $x = new TApplicationException();
425
        $x->read($this->input_);
426
        $this->input_->readMessageEnd();
427
        throw $x;
428
      }
429
      $result = new FacebookService_getOption_result();
430
      $result->read($this->input_);
431
      $this->input_->readMessageEnd();
432
    }
433
    if ($result->success !== null) {
434
      return $result->success;
435
    }
436
    throw new Exception("getOption failed: unknown result");
437
  }
438
 
439
  public function getOptions()
440
  {
441
    $this->send_getOptions();
442
    return $this->recv_getOptions();
443
  }
444
 
445
  public function send_getOptions()
446
  {
447
    $args = new FacebookService_getOptions_args();
448
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
449
    if ($bin_accel)
450
    {
451
      thrift_protocol_write_binary($this->output_, 'getOptions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
452
    }
453
    else
454
    {
455
      $this->output_->writeMessageBegin('getOptions', TMessageType::CALL, $this->seqid_);
456
      $args->write($this->output_);
457
      $this->output_->writeMessageEnd();
458
      $this->output_->getTransport()->flush();
459
    }
460
  }
461
 
462
  public function recv_getOptions()
463
  {
464
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
465
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'FacebookService_getOptions_result', $this->input_->isStrictRead());
466
    else
467
    {
468
      $rseqid = 0;
469
      $fname = null;
470
      $mtype = 0;
471
 
472
      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
473
      if ($mtype == TMessageType::EXCEPTION) {
474
        $x = new TApplicationException();
475
        $x->read($this->input_);
476
        $this->input_->readMessageEnd();
477
        throw $x;
478
      }
479
      $result = new FacebookService_getOptions_result();
480
      $result->read($this->input_);
481
      $this->input_->readMessageEnd();
482
    }
483
    if ($result->success !== null) {
484
      return $result->success;
485
    }
486
    throw new Exception("getOptions failed: unknown result");
487
  }
488
 
489
  public function getCpuProfile($profileDurationInSec)
490
  {
491
    $this->send_getCpuProfile($profileDurationInSec);
492
    return $this->recv_getCpuProfile();
493
  }
494
 
495
  public function send_getCpuProfile($profileDurationInSec)
496
  {
497
    $args = new FacebookService_getCpuProfile_args();
498
    $args->profileDurationInSec = $profileDurationInSec;
499
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
500
    if ($bin_accel)
501
    {
502
      thrift_protocol_write_binary($this->output_, 'getCpuProfile', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
503
    }
504
    else
505
    {
506
      $this->output_->writeMessageBegin('getCpuProfile', TMessageType::CALL, $this->seqid_);
507
      $args->write($this->output_);
508
      $this->output_->writeMessageEnd();
509
      $this->output_->getTransport()->flush();
510
    }
511
  }
512
 
513
  public function recv_getCpuProfile()
514
  {
515
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
516
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'FacebookService_getCpuProfile_result', $this->input_->isStrictRead());
517
    else
518
    {
519
      $rseqid = 0;
520
      $fname = null;
521
      $mtype = 0;
522
 
523
      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
524
      if ($mtype == TMessageType::EXCEPTION) {
525
        $x = new TApplicationException();
526
        $x->read($this->input_);
527
        $this->input_->readMessageEnd();
528
        throw $x;
529
      }
530
      $result = new FacebookService_getCpuProfile_result();
531
      $result->read($this->input_);
532
      $this->input_->readMessageEnd();
533
    }
534
    if ($result->success !== null) {
535
      return $result->success;
536
    }
537
    throw new Exception("getCpuProfile failed: unknown result");
538
  }
539
 
540
  public function aliveSince()
541
  {
542
    $this->send_aliveSince();
543
    return $this->recv_aliveSince();
544
  }
545
 
546
  public function send_aliveSince()
547
  {
548
    $args = new FacebookService_aliveSince_args();
549
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
550
    if ($bin_accel)
551
    {
552
      thrift_protocol_write_binary($this->output_, 'aliveSince', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
553
    }
554
    else
555
    {
556
      $this->output_->writeMessageBegin('aliveSince', TMessageType::CALL, $this->seqid_);
557
      $args->write($this->output_);
558
      $this->output_->writeMessageEnd();
559
      $this->output_->getTransport()->flush();
560
    }
561
  }
562
 
563
  public function recv_aliveSince()
564
  {
565
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
566
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'FacebookService_aliveSince_result', $this->input_->isStrictRead());
567
    else
568
    {
569
      $rseqid = 0;
570
      $fname = null;
571
      $mtype = 0;
572
 
573
      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
574
      if ($mtype == TMessageType::EXCEPTION) {
575
        $x = new TApplicationException();
576
        $x->read($this->input_);
577
        $this->input_->readMessageEnd();
578
        throw $x;
579
      }
580
      $result = new FacebookService_aliveSince_result();
581
      $result->read($this->input_);
582
      $this->input_->readMessageEnd();
583
    }
584
    if ($result->success !== null) {
585
      return $result->success;
586
    }
587
    throw new Exception("aliveSince failed: unknown result");
588
  }
589
 
590
  public function reinitialize()
591
  {
592
    $this->send_reinitialize();
593
  }
594
 
595
  public function send_reinitialize()
596
  {
597
    $args = new FacebookService_reinitialize_args();
598
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
599
    if ($bin_accel)
600
    {
601
      thrift_protocol_write_binary($this->output_, 'reinitialize', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
602
    }
603
    else
604
    {
605
      $this->output_->writeMessageBegin('reinitialize', TMessageType::CALL, $this->seqid_);
606
      $args->write($this->output_);
607
      $this->output_->writeMessageEnd();
608
      $this->output_->getTransport()->flush();
609
    }
610
  }
611
  public function shutdown()
612
  {
613
    $this->send_shutdown();
614
  }
615
 
616
  public function send_shutdown()
617
  {
618
    $args = new FacebookService_shutdown_args();
619
    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
620
    if ($bin_accel)
621
    {
622
      thrift_protocol_write_binary($this->output_, 'shutdown', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
623
    }
624
    else
625
    {
626
      $this->output_->writeMessageBegin('shutdown', TMessageType::CALL, $this->seqid_);
627
      $args->write($this->output_);
628
      $this->output_->writeMessageEnd();
629
      $this->output_->getTransport()->flush();
630
    }
631
  }
632
}
633
 
634
// HELPER FUNCTIONS AND STRUCTURES
635
 
636
class FacebookService_getName_args {
637
  static $_TSPEC;
638
 
639
 
640
  public function __construct() {
641
    if (!isset(self::$_TSPEC)) {
642
      self::$_TSPEC = array(
643
        );
644
    }
645
  }
646
 
647
  public function getName() {
648
    return 'FacebookService_getName_args';
649
  }
650
 
651
  public function read($input)
652
  {
653
    $xfer = 0;
654
    $fname = null;
655
    $ftype = 0;
656
    $fid = 0;
657
    $xfer += $input->readStructBegin($fname);
658
    while (true)
659
    {
660
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
661
      if ($ftype == TType::STOP) {
662
        break;
663
      }
664
      switch ($fid)
665
      {
666
        default:
667
          $xfer += $input->skip($ftype);
668
          break;
669
      }
670
      $xfer += $input->readFieldEnd();
671
    }
672
    $xfer += $input->readStructEnd();
673
    return $xfer;
674
  }
675
 
676
  public function write($output) {
677
    $xfer = 0;
678
    $xfer += $output->writeStructBegin('FacebookService_getName_args');
679
    $xfer += $output->writeFieldStop();
680
    $xfer += $output->writeStructEnd();
681
    return $xfer;
682
  }
683
 
684
}
685
 
686
class FacebookService_getName_result {
687
  static $_TSPEC;
688
 
689
  public $success = null;
690
 
691
  public function __construct($vals=null) {
692
    if (!isset(self::$_TSPEC)) {
693
      self::$_TSPEC = array(
694
 
695
          'var' => 'success',
696
          'type' => TType::STRING,
697
          ),
698
        );
699
    }
700
    if (is_array($vals)) {
701
      if (isset($vals['success'])) {
702
        $this->success = $vals['success'];
703
      }
704
    }
705
  }
706
 
707
  public function getName() {
708
    return 'FacebookService_getName_result';
709
  }
710
 
711
  public function read($input)
712
  {
713
    $xfer = 0;
714
    $fname = null;
715
    $ftype = 0;
716
    $fid = 0;
717
    $xfer += $input->readStructBegin($fname);
718
    while (true)
719
    {
720
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
721
      if ($ftype == TType::STOP) {
722
        break;
723
      }
724
      switch ($fid)
725
      {
726
        case 0:
727
          if ($ftype == TType::STRING) {
728
            $xfer += $input->readString($this->success);
729
          } else {
730
            $xfer += $input->skip($ftype);
731
          }
732
          break;
733
        default:
734
          $xfer += $input->skip($ftype);
735
          break;
736
      }
737
      $xfer += $input->readFieldEnd();
738
    }
739
    $xfer += $input->readStructEnd();
740
    return $xfer;
741
  }
742
 
743
  public function write($output) {
744
    $xfer = 0;
745
    $xfer += $output->writeStructBegin('FacebookService_getName_result');
746
    if ($this->success !== null) {
747
      $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
748
      $xfer += $output->writeString($this->success);
749
      $xfer += $output->writeFieldEnd();
750
    }
751
    $xfer += $output->writeFieldStop();
752
    $xfer += $output->writeStructEnd();
753
    return $xfer;
754
  }
755
 
756
}
757
 
758
class FacebookService_getVersion_args {
759
  static $_TSPEC;
760
 
761
 
762
  public function __construct() {
763
    if (!isset(self::$_TSPEC)) {
764
      self::$_TSPEC = array(
765
        );
766
    }
767
  }
768
 
769
  public function getName() {
770
    return 'FacebookService_getVersion_args';
771
  }
772
 
773
  public function read($input)
774
  {
775
    $xfer = 0;
776
    $fname = null;
777
    $ftype = 0;
778
    $fid = 0;
779
    $xfer += $input->readStructBegin($fname);
780
    while (true)
781
    {
782
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
783
      if ($ftype == TType::STOP) {
784
        break;
785
      }
786
      switch ($fid)
787
      {
788
        default:
789
          $xfer += $input->skip($ftype);
790
          break;
791
      }
792
      $xfer += $input->readFieldEnd();
793
    }
794
    $xfer += $input->readStructEnd();
795
    return $xfer;
796
  }
797
 
798
  public function write($output) {
799
    $xfer = 0;
800
    $xfer += $output->writeStructBegin('FacebookService_getVersion_args');
801
    $xfer += $output->writeFieldStop();
802
    $xfer += $output->writeStructEnd();
803
    return $xfer;
804
  }
805
 
806
}
807
 
808
class FacebookService_getVersion_result {
809
  static $_TSPEC;
810
 
811
  public $success = null;
812
 
813
  public function __construct($vals=null) {
814
    if (!isset(self::$_TSPEC)) {
815
      self::$_TSPEC = array(
816
 
817
          'var' => 'success',
818
          'type' => TType::STRING,
819
          ),
820
        );
821
    }
822
    if (is_array($vals)) {
823
      if (isset($vals['success'])) {
824
        $this->success = $vals['success'];
825
      }
826
    }
827
  }
828
 
829
  public function getName() {
830
    return 'FacebookService_getVersion_result';
831
  }
832
 
833
  public function read($input)
834
  {
835
    $xfer = 0;
836
    $fname = null;
837
    $ftype = 0;
838
    $fid = 0;
839
    $xfer += $input->readStructBegin($fname);
840
    while (true)
841
    {
842
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
843
      if ($ftype == TType::STOP) {
844
        break;
845
      }
846
      switch ($fid)
847
      {
848
        case 0:
849
          if ($ftype == TType::STRING) {
850
            $xfer += $input->readString($this->success);
851
          } else {
852
            $xfer += $input->skip($ftype);
853
          }
854
          break;
855
        default:
856
          $xfer += $input->skip($ftype);
857
          break;
858
      }
859
      $xfer += $input->readFieldEnd();
860
    }
861
    $xfer += $input->readStructEnd();
862
    return $xfer;
863
  }
864
 
865
  public function write($output) {
866
    $xfer = 0;
867
    $xfer += $output->writeStructBegin('FacebookService_getVersion_result');
868
    if ($this->success !== null) {
869
      $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
870
      $xfer += $output->writeString($this->success);
871
      $xfer += $output->writeFieldEnd();
872
    }
873
    $xfer += $output->writeFieldStop();
874
    $xfer += $output->writeStructEnd();
875
    return $xfer;
876
  }
877
 
878
}
879
 
880
class FacebookService_getStatus_args {
881
  static $_TSPEC;
882
 
883
 
884
  public function __construct() {
885
    if (!isset(self::$_TSPEC)) {
886
      self::$_TSPEC = array(
887
        );
888
    }
889
  }
890
 
891
  public function getName() {
892
    return 'FacebookService_getStatus_args';
893
  }
894
 
895
  public function read($input)
896
  {
897
    $xfer = 0;
898
    $fname = null;
899
    $ftype = 0;
900
    $fid = 0;
901
    $xfer += $input->readStructBegin($fname);
902
    while (true)
903
    {
904
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
905
      if ($ftype == TType::STOP) {
906
        break;
907
      }
908
      switch ($fid)
909
      {
910
        default:
911
          $xfer += $input->skip($ftype);
912
          break;
913
      }
914
      $xfer += $input->readFieldEnd();
915
    }
916
    $xfer += $input->readStructEnd();
917
    return $xfer;
918
  }
919
 
920
  public function write($output) {
921
    $xfer = 0;
922
    $xfer += $output->writeStructBegin('FacebookService_getStatus_args');
923
    $xfer += $output->writeFieldStop();
924
    $xfer += $output->writeStructEnd();
925
    return $xfer;
926
  }
927
 
928
}
929
 
930
class FacebookService_getStatus_result {
931
  static $_TSPEC;
932
 
933
  public $success = null;
934
 
935
  public function __construct($vals=null) {
936
    if (!isset(self::$_TSPEC)) {
937
      self::$_TSPEC = array(
938
 
939
          'var' => 'success',
940
          'type' => TType::I32,
941
          ),
942
        );
943
    }
944
    if (is_array($vals)) {
945
      if (isset($vals['success'])) {
946
        $this->success = $vals['success'];
947
      }
948
    }
949
  }
950
 
951
  public function getName() {
952
    return 'FacebookService_getStatus_result';
953
  }
954
 
955
  public function read($input)
956
  {
957
    $xfer = 0;
958
    $fname = null;
959
    $ftype = 0;
960
    $fid = 0;
961
    $xfer += $input->readStructBegin($fname);
962
    while (true)
963
    {
964
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
965
      if ($ftype == TType::STOP) {
966
        break;
967
      }
968
      switch ($fid)
969
      {
970
        case 0:
971
          if ($ftype == TType::I32) {
972
            $xfer += $input->readI32($this->success);
973
          } else {
974
            $xfer += $input->skip($ftype);
975
          }
976
          break;
977
        default:
978
          $xfer += $input->skip($ftype);
979
          break;
980
      }
981
      $xfer += $input->readFieldEnd();
982
    }
983
    $xfer += $input->readStructEnd();
984
    return $xfer;
985
  }
986
 
987
  public function write($output) {
988
    $xfer = 0;
989
    $xfer += $output->writeStructBegin('FacebookService_getStatus_result');
990
    if ($this->success !== null) {
991
      $xfer += $output->writeFieldBegin('success', TType::I32, 0);
992
      $xfer += $output->writeI32($this->success);
993
      $xfer += $output->writeFieldEnd();
994
    }
995
    $xfer += $output->writeFieldStop();
996
    $xfer += $output->writeStructEnd();
997
    return $xfer;
998
  }
999
 
1000
}
1001
 
1002
class FacebookService_getStatusDetails_args {
1003
  static $_TSPEC;
1004
 
1005
 
1006
  public function __construct() {
1007
    if (!isset(self::$_TSPEC)) {
1008
      self::$_TSPEC = array(
1009
        );
1010
    }
1011
  }
1012
 
1013
  public function getName() {
1014
    return 'FacebookService_getStatusDetails_args';
1015
  }
1016
 
1017
  public function read($input)
1018
  {
1019
    $xfer = 0;
1020
    $fname = null;
1021
    $ftype = 0;
1022
    $fid = 0;
1023
    $xfer += $input->readStructBegin($fname);
1024
    while (true)
1025
    {
1026
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1027
      if ($ftype == TType::STOP) {
1028
        break;
1029
      }
1030
      switch ($fid)
1031
      {
1032
        default:
1033
          $xfer += $input->skip($ftype);
1034
          break;
1035
      }
1036
      $xfer += $input->readFieldEnd();
1037
    }
1038
    $xfer += $input->readStructEnd();
1039
    return $xfer;
1040
  }
1041
 
1042
  public function write($output) {
1043
    $xfer = 0;
1044
    $xfer += $output->writeStructBegin('FacebookService_getStatusDetails_args');
1045
    $xfer += $output->writeFieldStop();
1046
    $xfer += $output->writeStructEnd();
1047
    return $xfer;
1048
  }
1049
 
1050
}
1051
 
1052
class FacebookService_getStatusDetails_result {
1053
  static $_TSPEC;
1054
 
1055
  public $success = null;
1056
 
1057
  public function __construct($vals=null) {
1058
    if (!isset(self::$_TSPEC)) {
1059
      self::$_TSPEC = array(
1060
 
1061
          'var' => 'success',
1062
          'type' => TType::STRING,
1063
          ),
1064
        );
1065
    }
1066
    if (is_array($vals)) {
1067
      if (isset($vals['success'])) {
1068
        $this->success = $vals['success'];
1069
      }
1070
    }
1071
  }
1072
 
1073
  public function getName() {
1074
    return 'FacebookService_getStatusDetails_result';
1075
  }
1076
 
1077
  public function read($input)
1078
  {
1079
    $xfer = 0;
1080
    $fname = null;
1081
    $ftype = 0;
1082
    $fid = 0;
1083
    $xfer += $input->readStructBegin($fname);
1084
    while (true)
1085
    {
1086
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1087
      if ($ftype == TType::STOP) {
1088
        break;
1089
      }
1090
      switch ($fid)
1091
      {
1092
        case 0:
1093
          if ($ftype == TType::STRING) {
1094
            $xfer += $input->readString($this->success);
1095
          } else {
1096
            $xfer += $input->skip($ftype);
1097
          }
1098
          break;
1099
        default:
1100
          $xfer += $input->skip($ftype);
1101
          break;
1102
      }
1103
      $xfer += $input->readFieldEnd();
1104
    }
1105
    $xfer += $input->readStructEnd();
1106
    return $xfer;
1107
  }
1108
 
1109
  public function write($output) {
1110
    $xfer = 0;
1111
    $xfer += $output->writeStructBegin('FacebookService_getStatusDetails_result');
1112
    if ($this->success !== null) {
1113
      $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
1114
      $xfer += $output->writeString($this->success);
1115
      $xfer += $output->writeFieldEnd();
1116
    }
1117
    $xfer += $output->writeFieldStop();
1118
    $xfer += $output->writeStructEnd();
1119
    return $xfer;
1120
  }
1121
 
1122
}
1123
 
1124
class FacebookService_getCounters_args {
1125
  static $_TSPEC;
1126
 
1127
 
1128
  public function __construct() {
1129
    if (!isset(self::$_TSPEC)) {
1130
      self::$_TSPEC = array(
1131
        );
1132
    }
1133
  }
1134
 
1135
  public function getName() {
1136
    return 'FacebookService_getCounters_args';
1137
  }
1138
 
1139
  public function read($input)
1140
  {
1141
    $xfer = 0;
1142
    $fname = null;
1143
    $ftype = 0;
1144
    $fid = 0;
1145
    $xfer += $input->readStructBegin($fname);
1146
    while (true)
1147
    {
1148
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1149
      if ($ftype == TType::STOP) {
1150
        break;
1151
      }
1152
      switch ($fid)
1153
      {
1154
        default:
1155
          $xfer += $input->skip($ftype);
1156
          break;
1157
      }
1158
      $xfer += $input->readFieldEnd();
1159
    }
1160
    $xfer += $input->readStructEnd();
1161
    return $xfer;
1162
  }
1163
 
1164
  public function write($output) {
1165
    $xfer = 0;
1166
    $xfer += $output->writeStructBegin('FacebookService_getCounters_args');
1167
    $xfer += $output->writeFieldStop();
1168
    $xfer += $output->writeStructEnd();
1169
    return $xfer;
1170
  }
1171
 
1172
}
1173
 
1174
class FacebookService_getCounters_result {
1175
  static $_TSPEC;
1176
 
1177
  public $success = null;
1178
 
1179
  public function __construct($vals=null) {
1180
    if (!isset(self::$_TSPEC)) {
1181
      self::$_TSPEC = array(
1182
 
1183
          'var' => 'success',
1184
          'type' => TType::MAP,
1185
          'ktype' => TType::STRING,
1186
          'vtype' => TType::I64,
1187
          'key' => array(
1188
            'type' => TType::STRING,
1189
          ),
1190
          'val' => array(
1191
            'type' => TType::I64,
1192
            ),
1193
          ),
1194
        );
1195
    }
1196
    if (is_array($vals)) {
1197
      if (isset($vals['success'])) {
1198
        $this->success = $vals['success'];
1199
      }
1200
    }
1201
  }
1202
 
1203
  public function getName() {
1204
    return 'FacebookService_getCounters_result';
1205
  }
1206
 
1207
  public function read($input)
1208
  {
1209
    $xfer = 0;
1210
    $fname = null;
1211
    $ftype = 0;
1212
    $fid = 0;
1213
    $xfer += $input->readStructBegin($fname);
1214
    while (true)
1215
    {
1216
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1217
      if ($ftype == TType::STOP) {
1218
        break;
1219
      }
1220
      switch ($fid)
1221
      {
1222
        case 0:
1223
          if ($ftype == TType::MAP) {
1224
            $this->success = array();
1225
            $_size0 = 0;
1226
            $_ktype1 = 0;
1227
            $_vtype2 = 0;
1228
            $xfer += $input->readMapBegin($_ktype1, $_vtype2, $_size0);
1229
            for ($_i4 = 0; $_i4 < $_size0; ++$_i4)
1230
            {
1231
              $key5 = '';
1232
              $val6 = 0;
1233
              $xfer += $input->readString($key5);
1234
              $xfer += $input->readI64($val6);
1235
              $this->success[$key5] = $val6;
1236
            }
1237
            $xfer += $input->readMapEnd();
1238
          } else {
1239
            $xfer += $input->skip($ftype);
1240
          }
1241
          break;
1242
        default:
1243
          $xfer += $input->skip($ftype);
1244
          break;
1245
      }
1246
      $xfer += $input->readFieldEnd();
1247
    }
1248
    $xfer += $input->readStructEnd();
1249
    return $xfer;
1250
  }
1251
 
1252
  public function write($output) {
1253
    $xfer = 0;
1254
    $xfer += $output->writeStructBegin('FacebookService_getCounters_result');
1255
    if ($this->success !== null) {
1256
      if (!is_array($this->success)) {
1257
        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
1258
      }
1259
      $xfer += $output->writeFieldBegin('success', TType::MAP, 0);
1260
      {
1261
        $output->writeMapBegin(TType::STRING, TType::I64, count($this->success));
1262
        {
1263
          foreach ($this->success as $kiter7 => $viter8)
1264
          {
1265
            $xfer += $output->writeString($kiter7);
1266
            $xfer += $output->writeI64($viter8);
1267
          }
1268
        }
1269
        $output->writeMapEnd();
1270
      }
1271
      $xfer += $output->writeFieldEnd();
1272
    }
1273
    $xfer += $output->writeFieldStop();
1274
    $xfer += $output->writeStructEnd();
1275
    return $xfer;
1276
  }
1277
 
1278
}
1279
 
1280
class FacebookService_getCounter_args {
1281
  static $_TSPEC;
1282
 
1283
  public $key = null;
1284
 
1285
  public function __construct($vals=null) {
1286
    if (!isset(self::$_TSPEC)) {
1287
      self::$_TSPEC = array(
1288
        1 => array(
1289
          'var' => 'key',
1290
          'type' => TType::STRING,
1291
          ),
1292
        );
1293
    }
1294
    if (is_array($vals)) {
1295
      if (isset($vals['key'])) {
1296
        $this->key = $vals['key'];
1297
      }
1298
    }
1299
  }
1300
 
1301
  public function getName() {
1302
    return 'FacebookService_getCounter_args';
1303
  }
1304
 
1305
  public function read($input)
1306
  {
1307
    $xfer = 0;
1308
    $fname = null;
1309
    $ftype = 0;
1310
    $fid = 0;
1311
    $xfer += $input->readStructBegin($fname);
1312
    while (true)
1313
    {
1314
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1315
      if ($ftype == TType::STOP) {
1316
        break;
1317
      }
1318
      switch ($fid)
1319
      {
1320
        case 1:
1321
          if ($ftype == TType::STRING) {
1322
            $xfer += $input->readString($this->key);
1323
          } else {
1324
            $xfer += $input->skip($ftype);
1325
          }
1326
          break;
1327
        default:
1328
          $xfer += $input->skip($ftype);
1329
          break;
1330
      }
1331
      $xfer += $input->readFieldEnd();
1332
    }
1333
    $xfer += $input->readStructEnd();
1334
    return $xfer;
1335
  }
1336
 
1337
  public function write($output) {
1338
    $xfer = 0;
1339
    $xfer += $output->writeStructBegin('FacebookService_getCounter_args');
1340
    if ($this->key !== null) {
1341
      $xfer += $output->writeFieldBegin('key', TType::STRING, 1);
1342
      $xfer += $output->writeString($this->key);
1343
      $xfer += $output->writeFieldEnd();
1344
    }
1345
    $xfer += $output->writeFieldStop();
1346
    $xfer += $output->writeStructEnd();
1347
    return $xfer;
1348
  }
1349
 
1350
}
1351
 
1352
class FacebookService_getCounter_result {
1353
  static $_TSPEC;
1354
 
1355
  public $success = null;
1356
 
1357
  public function __construct($vals=null) {
1358
    if (!isset(self::$_TSPEC)) {
1359
      self::$_TSPEC = array(
1360
 
1361
          'var' => 'success',
1362
          'type' => TType::I64,
1363
          ),
1364
        );
1365
    }
1366
    if (is_array($vals)) {
1367
      if (isset($vals['success'])) {
1368
        $this->success = $vals['success'];
1369
      }
1370
    }
1371
  }
1372
 
1373
  public function getName() {
1374
    return 'FacebookService_getCounter_result';
1375
  }
1376
 
1377
  public function read($input)
1378
  {
1379
    $xfer = 0;
1380
    $fname = null;
1381
    $ftype = 0;
1382
    $fid = 0;
1383
    $xfer += $input->readStructBegin($fname);
1384
    while (true)
1385
    {
1386
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1387
      if ($ftype == TType::STOP) {
1388
        break;
1389
      }
1390
      switch ($fid)
1391
      {
1392
        case 0:
1393
          if ($ftype == TType::I64) {
1394
            $xfer += $input->readI64($this->success);
1395
          } else {
1396
            $xfer += $input->skip($ftype);
1397
          }
1398
          break;
1399
        default:
1400
          $xfer += $input->skip($ftype);
1401
          break;
1402
      }
1403
      $xfer += $input->readFieldEnd();
1404
    }
1405
    $xfer += $input->readStructEnd();
1406
    return $xfer;
1407
  }
1408
 
1409
  public function write($output) {
1410
    $xfer = 0;
1411
    $xfer += $output->writeStructBegin('FacebookService_getCounter_result');
1412
    if ($this->success !== null) {
1413
      $xfer += $output->writeFieldBegin('success', TType::I64, 0);
1414
      $xfer += $output->writeI64($this->success);
1415
      $xfer += $output->writeFieldEnd();
1416
    }
1417
    $xfer += $output->writeFieldStop();
1418
    $xfer += $output->writeStructEnd();
1419
    return $xfer;
1420
  }
1421
 
1422
}
1423
 
1424
class FacebookService_setOption_args {
1425
  static $_TSPEC;
1426
 
1427
  public $key = null;
1428
  public $value = null;
1429
 
1430
  public function __construct($vals=null) {
1431
    if (!isset(self::$_TSPEC)) {
1432
      self::$_TSPEC = array(
1433
        1 => array(
1434
          'var' => 'key',
1435
          'type' => TType::STRING,
1436
          ),
1437
        2 => array(
1438
          'var' => 'value',
1439
          'type' => TType::STRING,
1440
          ),
1441
        );
1442
    }
1443
    if (is_array($vals)) {
1444
      if (isset($vals['key'])) {
1445
        $this->key = $vals['key'];
1446
      }
1447
      if (isset($vals['value'])) {
1448
        $this->value = $vals['value'];
1449
      }
1450
    }
1451
  }
1452
 
1453
  public function getName() {
1454
    return 'FacebookService_setOption_args';
1455
  }
1456
 
1457
  public function read($input)
1458
  {
1459
    $xfer = 0;
1460
    $fname = null;
1461
    $ftype = 0;
1462
    $fid = 0;
1463
    $xfer += $input->readStructBegin($fname);
1464
    while (true)
1465
    {
1466
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1467
      if ($ftype == TType::STOP) {
1468
        break;
1469
      }
1470
      switch ($fid)
1471
      {
1472
        case 1:
1473
          if ($ftype == TType::STRING) {
1474
            $xfer += $input->readString($this->key);
1475
          } else {
1476
            $xfer += $input->skip($ftype);
1477
          }
1478
          break;
1479
        case 2:
1480
          if ($ftype == TType::STRING) {
1481
            $xfer += $input->readString($this->value);
1482
          } else {
1483
            $xfer += $input->skip($ftype);
1484
          }
1485
          break;
1486
        default:
1487
          $xfer += $input->skip($ftype);
1488
          break;
1489
      }
1490
      $xfer += $input->readFieldEnd();
1491
    }
1492
    $xfer += $input->readStructEnd();
1493
    return $xfer;
1494
  }
1495
 
1496
  public function write($output) {
1497
    $xfer = 0;
1498
    $xfer += $output->writeStructBegin('FacebookService_setOption_args');
1499
    if ($this->key !== null) {
1500
      $xfer += $output->writeFieldBegin('key', TType::STRING, 1);
1501
      $xfer += $output->writeString($this->key);
1502
      $xfer += $output->writeFieldEnd();
1503
    }
1504
    if ($this->value !== null) {
1505
      $xfer += $output->writeFieldBegin('value', TType::STRING, 2);
1506
      $xfer += $output->writeString($this->value);
1507
      $xfer += $output->writeFieldEnd();
1508
    }
1509
    $xfer += $output->writeFieldStop();
1510
    $xfer += $output->writeStructEnd();
1511
    return $xfer;
1512
  }
1513
 
1514
}
1515
 
1516
class FacebookService_setOption_result {
1517
  static $_TSPEC;
1518
 
1519
 
1520
  public function __construct() {
1521
    if (!isset(self::$_TSPEC)) {
1522
      self::$_TSPEC = array(
1523
        );
1524
    }
1525
  }
1526
 
1527
  public function getName() {
1528
    return 'FacebookService_setOption_result';
1529
  }
1530
 
1531
  public function read($input)
1532
  {
1533
    $xfer = 0;
1534
    $fname = null;
1535
    $ftype = 0;
1536
    $fid = 0;
1537
    $xfer += $input->readStructBegin($fname);
1538
    while (true)
1539
    {
1540
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1541
      if ($ftype == TType::STOP) {
1542
        break;
1543
      }
1544
      switch ($fid)
1545
      {
1546
        default:
1547
          $xfer += $input->skip($ftype);
1548
          break;
1549
      }
1550
      $xfer += $input->readFieldEnd();
1551
    }
1552
    $xfer += $input->readStructEnd();
1553
    return $xfer;
1554
  }
1555
 
1556
  public function write($output) {
1557
    $xfer = 0;
1558
    $xfer += $output->writeStructBegin('FacebookService_setOption_result');
1559
    $xfer += $output->writeFieldStop();
1560
    $xfer += $output->writeStructEnd();
1561
    return $xfer;
1562
  }
1563
 
1564
}
1565
 
1566
class FacebookService_getOption_args {
1567
  static $_TSPEC;
1568
 
1569
  public $key = null;
1570
 
1571
  public function __construct($vals=null) {
1572
    if (!isset(self::$_TSPEC)) {
1573
      self::$_TSPEC = array(
1574
        1 => array(
1575
          'var' => 'key',
1576
          'type' => TType::STRING,
1577
          ),
1578
        );
1579
    }
1580
    if (is_array($vals)) {
1581
      if (isset($vals['key'])) {
1582
        $this->key = $vals['key'];
1583
      }
1584
    }
1585
  }
1586
 
1587
  public function getName() {
1588
    return 'FacebookService_getOption_args';
1589
  }
1590
 
1591
  public function read($input)
1592
  {
1593
    $xfer = 0;
1594
    $fname = null;
1595
    $ftype = 0;
1596
    $fid = 0;
1597
    $xfer += $input->readStructBegin($fname);
1598
    while (true)
1599
    {
1600
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1601
      if ($ftype == TType::STOP) {
1602
        break;
1603
      }
1604
      switch ($fid)
1605
      {
1606
        case 1:
1607
          if ($ftype == TType::STRING) {
1608
            $xfer += $input->readString($this->key);
1609
          } else {
1610
            $xfer += $input->skip($ftype);
1611
          }
1612
          break;
1613
        default:
1614
          $xfer += $input->skip($ftype);
1615
          break;
1616
      }
1617
      $xfer += $input->readFieldEnd();
1618
    }
1619
    $xfer += $input->readStructEnd();
1620
    return $xfer;
1621
  }
1622
 
1623
  public function write($output) {
1624
    $xfer = 0;
1625
    $xfer += $output->writeStructBegin('FacebookService_getOption_args');
1626
    if ($this->key !== null) {
1627
      $xfer += $output->writeFieldBegin('key', TType::STRING, 1);
1628
      $xfer += $output->writeString($this->key);
1629
      $xfer += $output->writeFieldEnd();
1630
    }
1631
    $xfer += $output->writeFieldStop();
1632
    $xfer += $output->writeStructEnd();
1633
    return $xfer;
1634
  }
1635
 
1636
}
1637
 
1638
class FacebookService_getOption_result {
1639
  static $_TSPEC;
1640
 
1641
  public $success = null;
1642
 
1643
  public function __construct($vals=null) {
1644
    if (!isset(self::$_TSPEC)) {
1645
      self::$_TSPEC = array(
1646
 
1647
          'var' => 'success',
1648
          'type' => TType::STRING,
1649
          ),
1650
        );
1651
    }
1652
    if (is_array($vals)) {
1653
      if (isset($vals['success'])) {
1654
        $this->success = $vals['success'];
1655
      }
1656
    }
1657
  }
1658
 
1659
  public function getName() {
1660
    return 'FacebookService_getOption_result';
1661
  }
1662
 
1663
  public function read($input)
1664
  {
1665
    $xfer = 0;
1666
    $fname = null;
1667
    $ftype = 0;
1668
    $fid = 0;
1669
    $xfer += $input->readStructBegin($fname);
1670
    while (true)
1671
    {
1672
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1673
      if ($ftype == TType::STOP) {
1674
        break;
1675
      }
1676
      switch ($fid)
1677
      {
1678
        case 0:
1679
          if ($ftype == TType::STRING) {
1680
            $xfer += $input->readString($this->success);
1681
          } else {
1682
            $xfer += $input->skip($ftype);
1683
          }
1684
          break;
1685
        default:
1686
          $xfer += $input->skip($ftype);
1687
          break;
1688
      }
1689
      $xfer += $input->readFieldEnd();
1690
    }
1691
    $xfer += $input->readStructEnd();
1692
    return $xfer;
1693
  }
1694
 
1695
  public function write($output) {
1696
    $xfer = 0;
1697
    $xfer += $output->writeStructBegin('FacebookService_getOption_result');
1698
    if ($this->success !== null) {
1699
      $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
1700
      $xfer += $output->writeString($this->success);
1701
      $xfer += $output->writeFieldEnd();
1702
    }
1703
    $xfer += $output->writeFieldStop();
1704
    $xfer += $output->writeStructEnd();
1705
    return $xfer;
1706
  }
1707
 
1708
}
1709
 
1710
class FacebookService_getOptions_args {
1711
  static $_TSPEC;
1712
 
1713
 
1714
  public function __construct() {
1715
    if (!isset(self::$_TSPEC)) {
1716
      self::$_TSPEC = array(
1717
        );
1718
    }
1719
  }
1720
 
1721
  public function getName() {
1722
    return 'FacebookService_getOptions_args';
1723
  }
1724
 
1725
  public function read($input)
1726
  {
1727
    $xfer = 0;
1728
    $fname = null;
1729
    $ftype = 0;
1730
    $fid = 0;
1731
    $xfer += $input->readStructBegin($fname);
1732
    while (true)
1733
    {
1734
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1735
      if ($ftype == TType::STOP) {
1736
        break;
1737
      }
1738
      switch ($fid)
1739
      {
1740
        default:
1741
          $xfer += $input->skip($ftype);
1742
          break;
1743
      }
1744
      $xfer += $input->readFieldEnd();
1745
    }
1746
    $xfer += $input->readStructEnd();
1747
    return $xfer;
1748
  }
1749
 
1750
  public function write($output) {
1751
    $xfer = 0;
1752
    $xfer += $output->writeStructBegin('FacebookService_getOptions_args');
1753
    $xfer += $output->writeFieldStop();
1754
    $xfer += $output->writeStructEnd();
1755
    return $xfer;
1756
  }
1757
 
1758
}
1759
 
1760
class FacebookService_getOptions_result {
1761
  static $_TSPEC;
1762
 
1763
  public $success = null;
1764
 
1765
  public function __construct($vals=null) {
1766
    if (!isset(self::$_TSPEC)) {
1767
      self::$_TSPEC = array(
1768
 
1769
          'var' => 'success',
1770
          'type' => TType::MAP,
1771
          'ktype' => TType::STRING,
1772
          'vtype' => TType::STRING,
1773
          'key' => array(
1774
            'type' => TType::STRING,
1775
          ),
1776
          'val' => array(
1777
            'type' => TType::STRING,
1778
            ),
1779
          ),
1780
        );
1781
    }
1782
    if (is_array($vals)) {
1783
      if (isset($vals['success'])) {
1784
        $this->success = $vals['success'];
1785
      }
1786
    }
1787
  }
1788
 
1789
  public function getName() {
1790
    return 'FacebookService_getOptions_result';
1791
  }
1792
 
1793
  public function read($input)
1794
  {
1795
    $xfer = 0;
1796
    $fname = null;
1797
    $ftype = 0;
1798
    $fid = 0;
1799
    $xfer += $input->readStructBegin($fname);
1800
    while (true)
1801
    {
1802
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1803
      if ($ftype == TType::STOP) {
1804
        break;
1805
      }
1806
      switch ($fid)
1807
      {
1808
        case 0:
1809
          if ($ftype == TType::MAP) {
1810
            $this->success = array();
1811
            $_size9 = 0;
1812
            $_ktype10 = 0;
1813
            $_vtype11 = 0;
1814
            $xfer += $input->readMapBegin($_ktype10, $_vtype11, $_size9);
1815
            for ($_i13 = 0; $_i13 < $_size9; ++$_i13)
1816
            {
1817
              $key14 = '';
1818
              $val15 = '';
1819
              $xfer += $input->readString($key14);
1820
              $xfer += $input->readString($val15);
1821
              $this->success[$key14] = $val15;
1822
            }
1823
            $xfer += $input->readMapEnd();
1824
          } else {
1825
            $xfer += $input->skip($ftype);
1826
          }
1827
          break;
1828
        default:
1829
          $xfer += $input->skip($ftype);
1830
          break;
1831
      }
1832
      $xfer += $input->readFieldEnd();
1833
    }
1834
    $xfer += $input->readStructEnd();
1835
    return $xfer;
1836
  }
1837
 
1838
  public function write($output) {
1839
    $xfer = 0;
1840
    $xfer += $output->writeStructBegin('FacebookService_getOptions_result');
1841
    if ($this->success !== null) {
1842
      if (!is_array($this->success)) {
1843
        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
1844
      }
1845
      $xfer += $output->writeFieldBegin('success', TType::MAP, 0);
1846
      {
1847
        $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success));
1848
        {
1849
          foreach ($this->success as $kiter16 => $viter17)
1850
          {
1851
            $xfer += $output->writeString($kiter16);
1852
            $xfer += $output->writeString($viter17);
1853
          }
1854
        }
1855
        $output->writeMapEnd();
1856
      }
1857
      $xfer += $output->writeFieldEnd();
1858
    }
1859
    $xfer += $output->writeFieldStop();
1860
    $xfer += $output->writeStructEnd();
1861
    return $xfer;
1862
  }
1863
 
1864
}
1865
 
1866
class FacebookService_getCpuProfile_args {
1867
  static $_TSPEC;
1868
 
1869
  public $profileDurationInSec = null;
1870
 
1871
  public function __construct($vals=null) {
1872
    if (!isset(self::$_TSPEC)) {
1873
      self::$_TSPEC = array(
1874
        1 => array(
1875
          'var' => 'profileDurationInSec',
1876
          'type' => TType::I32,
1877
          ),
1878
        );
1879
    }
1880
    if (is_array($vals)) {
1881
      if (isset($vals['profileDurationInSec'])) {
1882
        $this->profileDurationInSec = $vals['profileDurationInSec'];
1883
      }
1884
    }
1885
  }
1886
 
1887
  public function getName() {
1888
    return 'FacebookService_getCpuProfile_args';
1889
  }
1890
 
1891
  public function read($input)
1892
  {
1893
    $xfer = 0;
1894
    $fname = null;
1895
    $ftype = 0;
1896
    $fid = 0;
1897
    $xfer += $input->readStructBegin($fname);
1898
    while (true)
1899
    {
1900
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1901
      if ($ftype == TType::STOP) {
1902
        break;
1903
      }
1904
      switch ($fid)
1905
      {
1906
        case 1:
1907
          if ($ftype == TType::I32) {
1908
            $xfer += $input->readI32($this->profileDurationInSec);
1909
          } else {
1910
            $xfer += $input->skip($ftype);
1911
          }
1912
          break;
1913
        default:
1914
          $xfer += $input->skip($ftype);
1915
          break;
1916
      }
1917
      $xfer += $input->readFieldEnd();
1918
    }
1919
    $xfer += $input->readStructEnd();
1920
    return $xfer;
1921
  }
1922
 
1923
  public function write($output) {
1924
    $xfer = 0;
1925
    $xfer += $output->writeStructBegin('FacebookService_getCpuProfile_args');
1926
    if ($this->profileDurationInSec !== null) {
1927
      $xfer += $output->writeFieldBegin('profileDurationInSec', TType::I32, 1);
1928
      $xfer += $output->writeI32($this->profileDurationInSec);
1929
      $xfer += $output->writeFieldEnd();
1930
    }
1931
    $xfer += $output->writeFieldStop();
1932
    $xfer += $output->writeStructEnd();
1933
    return $xfer;
1934
  }
1935
 
1936
}
1937
 
1938
class FacebookService_getCpuProfile_result {
1939
  static $_TSPEC;
1940
 
1941
  public $success = null;
1942
 
1943
  public function __construct($vals=null) {
1944
    if (!isset(self::$_TSPEC)) {
1945
      self::$_TSPEC = array(
1946
 
1947
          'var' => 'success',
1948
          'type' => TType::STRING,
1949
          ),
1950
        );
1951
    }
1952
    if (is_array($vals)) {
1953
      if (isset($vals['success'])) {
1954
        $this->success = $vals['success'];
1955
      }
1956
    }
1957
  }
1958
 
1959
  public function getName() {
1960
    return 'FacebookService_getCpuProfile_result';
1961
  }
1962
 
1963
  public function read($input)
1964
  {
1965
    $xfer = 0;
1966
    $fname = null;
1967
    $ftype = 0;
1968
    $fid = 0;
1969
    $xfer += $input->readStructBegin($fname);
1970
    while (true)
1971
    {
1972
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
1973
      if ($ftype == TType::STOP) {
1974
        break;
1975
      }
1976
      switch ($fid)
1977
      {
1978
        case 0:
1979
          if ($ftype == TType::STRING) {
1980
            $xfer += $input->readString($this->success);
1981
          } else {
1982
            $xfer += $input->skip($ftype);
1983
          }
1984
          break;
1985
        default:
1986
          $xfer += $input->skip($ftype);
1987
          break;
1988
      }
1989
      $xfer += $input->readFieldEnd();
1990
    }
1991
    $xfer += $input->readStructEnd();
1992
    return $xfer;
1993
  }
1994
 
1995
  public function write($output) {
1996
    $xfer = 0;
1997
    $xfer += $output->writeStructBegin('FacebookService_getCpuProfile_result');
1998
    if ($this->success !== null) {
1999
      $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
2000
      $xfer += $output->writeString($this->success);
2001
      $xfer += $output->writeFieldEnd();
2002
    }
2003
    $xfer += $output->writeFieldStop();
2004
    $xfer += $output->writeStructEnd();
2005
    return $xfer;
2006
  }
2007
 
2008
}
2009
 
2010
class FacebookService_aliveSince_args {
2011
  static $_TSPEC;
2012
 
2013
 
2014
  public function __construct() {
2015
    if (!isset(self::$_TSPEC)) {
2016
      self::$_TSPEC = array(
2017
        );
2018
    }
2019
  }
2020
 
2021
  public function getName() {
2022
    return 'FacebookService_aliveSince_args';
2023
  }
2024
 
2025
  public function read($input)
2026
  {
2027
    $xfer = 0;
2028
    $fname = null;
2029
    $ftype = 0;
2030
    $fid = 0;
2031
    $xfer += $input->readStructBegin($fname);
2032
    while (true)
2033
    {
2034
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
2035
      if ($ftype == TType::STOP) {
2036
        break;
2037
      }
2038
      switch ($fid)
2039
      {
2040
        default:
2041
          $xfer += $input->skip($ftype);
2042
          break;
2043
      }
2044
      $xfer += $input->readFieldEnd();
2045
    }
2046
    $xfer += $input->readStructEnd();
2047
    return $xfer;
2048
  }
2049
 
2050
  public function write($output) {
2051
    $xfer = 0;
2052
    $xfer += $output->writeStructBegin('FacebookService_aliveSince_args');
2053
    $xfer += $output->writeFieldStop();
2054
    $xfer += $output->writeStructEnd();
2055
    return $xfer;
2056
  }
2057
 
2058
}
2059
 
2060
class FacebookService_aliveSince_result {
2061
  static $_TSPEC;
2062
 
2063
  public $success = null;
2064
 
2065
  public function __construct($vals=null) {
2066
    if (!isset(self::$_TSPEC)) {
2067
      self::$_TSPEC = array(
2068
 
2069
          'var' => 'success',
2070
          'type' => TType::I64,
2071
          ),
2072
        );
2073
    }
2074
    if (is_array($vals)) {
2075
      if (isset($vals['success'])) {
2076
        $this->success = $vals['success'];
2077
      }
2078
    }
2079
  }
2080
 
2081
  public function getName() {
2082
    return 'FacebookService_aliveSince_result';
2083
  }
2084
 
2085
  public function read($input)
2086
  {
2087
    $xfer = 0;
2088
    $fname = null;
2089
    $ftype = 0;
2090
    $fid = 0;
2091
    $xfer += $input->readStructBegin($fname);
2092
    while (true)
2093
    {
2094
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
2095
      if ($ftype == TType::STOP) {
2096
        break;
2097
      }
2098
      switch ($fid)
2099
      {
2100
        case 0:
2101
          if ($ftype == TType::I64) {
2102
            $xfer += $input->readI64($this->success);
2103
          } else {
2104
            $xfer += $input->skip($ftype);
2105
          }
2106
          break;
2107
        default:
2108
          $xfer += $input->skip($ftype);
2109
          break;
2110
      }
2111
      $xfer += $input->readFieldEnd();
2112
    }
2113
    $xfer += $input->readStructEnd();
2114
    return $xfer;
2115
  }
2116
 
2117
  public function write($output) {
2118
    $xfer = 0;
2119
    $xfer += $output->writeStructBegin('FacebookService_aliveSince_result');
2120
    if ($this->success !== null) {
2121
      $xfer += $output->writeFieldBegin('success', TType::I64, 0);
2122
      $xfer += $output->writeI64($this->success);
2123
      $xfer += $output->writeFieldEnd();
2124
    }
2125
    $xfer += $output->writeFieldStop();
2126
    $xfer += $output->writeStructEnd();
2127
    return $xfer;
2128
  }
2129
 
2130
}
2131
 
2132
class FacebookService_reinitialize_args {
2133
  static $_TSPEC;
2134
 
2135
 
2136
  public function __construct() {
2137
    if (!isset(self::$_TSPEC)) {
2138
      self::$_TSPEC = array(
2139
        );
2140
    }
2141
  }
2142
 
2143
  public function getName() {
2144
    return 'FacebookService_reinitialize_args';
2145
  }
2146
 
2147
  public function read($input)
2148
  {
2149
    $xfer = 0;
2150
    $fname = null;
2151
    $ftype = 0;
2152
    $fid = 0;
2153
    $xfer += $input->readStructBegin($fname);
2154
    while (true)
2155
    {
2156
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
2157
      if ($ftype == TType::STOP) {
2158
        break;
2159
      }
2160
      switch ($fid)
2161
      {
2162
        default:
2163
          $xfer += $input->skip($ftype);
2164
          break;
2165
      }
2166
      $xfer += $input->readFieldEnd();
2167
    }
2168
    $xfer += $input->readStructEnd();
2169
    return $xfer;
2170
  }
2171
 
2172
  public function write($output) {
2173
    $xfer = 0;
2174
    $xfer += $output->writeStructBegin('FacebookService_reinitialize_args');
2175
    $xfer += $output->writeFieldStop();
2176
    $xfer += $output->writeStructEnd();
2177
    return $xfer;
2178
  }
2179
 
2180
}
2181
 
2182
class FacebookService_shutdown_args {
2183
  static $_TSPEC;
2184
 
2185
 
2186
  public function __construct() {
2187
    if (!isset(self::$_TSPEC)) {
2188
      self::$_TSPEC = array(
2189
        );
2190
    }
2191
  }
2192
 
2193
  public function getName() {
2194
    return 'FacebookService_shutdown_args';
2195
  }
2196
 
2197
  public function read($input)
2198
  {
2199
    $xfer = 0;
2200
    $fname = null;
2201
    $ftype = 0;
2202
    $fid = 0;
2203
    $xfer += $input->readStructBegin($fname);
2204
    while (true)
2205
    {
2206
      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
2207
      if ($ftype == TType::STOP) {
2208
        break;
2209
      }
2210
      switch ($fid)
2211
      {
2212
        default:
2213
          $xfer += $input->skip($ftype);
2214
          break;
2215
      }
2216
      $xfer += $input->readFieldEnd();
2217
    }
2218
    $xfer += $input->readStructEnd();
2219
    return $xfer;
2220
  }
2221
 
2222
  public function write($output) {
2223
    $xfer = 0;
2224
    $xfer += $output->writeStructBegin('FacebookService_shutdown_args');
2225
    $xfer += $output->writeFieldStop();
2226
    $xfer += $output->writeStructEnd();
2227
    return $xfer;
2228
  }
2229
 
2230
}
2231
 
2232
class FacebookServiceProcessor {
2233
  protected $handler_ = null;
2234
  public function __construct($handler) {
2235
    $this->handler_ = $handler;
2236
  }
2237
 
2238
  public function process($input, $output) {
2239
    $rseqid = 0;
2240
    $fname = null;
2241
    $mtype = 0;
2242
 
2243
    $input->readMessageBegin($fname, $mtype, $rseqid);
2244
    $methodname = 'process_'.$fname;
2245
    if (!method_exists($this, $methodname)) {
2246
      $input->skip(TType::STRUCT);
2247
      $input->readMessageEnd();
2248
      $x = new TApplicationException('Function '.$fname.' not implemented.', TApplicationException::UNKNOWN_METHOD);
2249
      $output->writeMessageBegin($fname, TMessageType::EXCEPTION, $rseqid);
2250
      $x->write($output);
2251
      $output->writeMessageEnd();
2252
      $output->getTransport()->flush();
2253
      return;
2254
    }
2255
    $this->$methodname($rseqid, $input, $output);
2256
    return true;
2257
  }
2258
 
2259
  protected function process_getName($seqid, $input, $output) {
2260
    $args = new FacebookService_getName_args();
2261
    $args->read($input);
2262
    $input->readMessageEnd();
2263
    $result = new FacebookService_getName_result();
2264
    $result->success = $this->handler_->getName();
2265
    $output->writeMessageBegin('getName', TMessageType::REPLY, $seqid);
2266
    $result->write($output);
2267
    $output->getTransport()->flush();
2268
  }
2269
  protected function process_getVersion($seqid, $input, $output) {
2270
    $args = new FacebookService_getVersion_args();
2271
    $args->read($input);
2272
    $input->readMessageEnd();
2273
    $result = new FacebookService_getVersion_result();
2274
    $result->success = $this->handler_->getVersion();
2275
    $output->writeMessageBegin('getVersion', TMessageType::REPLY, $seqid);
2276
    $result->write($output);
2277
    $output->getTransport()->flush();
2278
  }
2279
  protected function process_getStatus($seqid, $input, $output) {
2280
    $args = new FacebookService_getStatus_args();
2281
    $args->read($input);
2282
    $input->readMessageEnd();
2283
    $result = new FacebookService_getStatus_result();
2284
    $result->success = $this->handler_->getStatus();
2285
    $output->writeMessageBegin('getStatus', TMessageType::REPLY, $seqid);
2286
    $result->write($output);
2287
    $output->getTransport()->flush();
2288
  }
2289
  protected function process_getStatusDetails($seqid, $input, $output) {
2290
    $args = new FacebookService_getStatusDetails_args();
2291
    $args->read($input);
2292
    $input->readMessageEnd();
2293
    $result = new FacebookService_getStatusDetails_result();
2294
    $result->success = $this->handler_->getStatusDetails();
2295
    $output->writeMessageBegin('getStatusDetails', TMessageType::REPLY, $seqid);
2296
    $result->write($output);
2297
    $output->getTransport()->flush();
2298
  }
2299
  protected function process_getCounters($seqid, $input, $output) {
2300
    $args = new FacebookService_getCounters_args();
2301
    $args->read($input);
2302
    $input->readMessageEnd();
2303
    $result = new FacebookService_getCounters_result();
2304
    $result->success = $this->handler_->getCounters();
2305
    $output->writeMessageBegin('getCounters', TMessageType::REPLY, $seqid);
2306
    $result->write($output);
2307
    $output->getTransport()->flush();
2308
  }
2309
  protected function process_getCounter($seqid, $input, $output) {
2310
    $args = new FacebookService_getCounter_args();
2311
    $args->read($input);
2312
    $input->readMessageEnd();
2313
    $result = new FacebookService_getCounter_result();
2314
    $result->success = $this->handler_->getCounter($args->key);
2315
    $output->writeMessageBegin('getCounter', TMessageType::REPLY, $seqid);
2316
    $result->write($output);
2317
    $output->getTransport()->flush();
2318
  }
2319
  protected function process_setOption($seqid, $input, $output) {
2320
    $args = new FacebookService_setOption_args();
2321
    $args->read($input);
2322
    $input->readMessageEnd();
2323
    $result = new FacebookService_setOption_result();
2324
    $this->handler_->setOption($args->key, $args->value);
2325
    $output->writeMessageBegin('setOption', TMessageType::REPLY, $seqid);
2326
    $result->write($output);
2327
    $output->getTransport()->flush();
2328
  }
2329
  protected function process_getOption($seqid, $input, $output) {
2330
    $args = new FacebookService_getOption_args();
2331
    $args->read($input);
2332
    $input->readMessageEnd();
2333
    $result = new FacebookService_getOption_result();
2334
    $result->success = $this->handler_->getOption($args->key);
2335
    $output->writeMessageBegin('getOption', TMessageType::REPLY, $seqid);
2336
    $result->write($output);
2337
    $output->getTransport()->flush();
2338
  }
2339
  protected function process_getOptions($seqid, $input, $output) {
2340
    $args = new FacebookService_getOptions_args();
2341
    $args->read($input);
2342
    $input->readMessageEnd();
2343
    $result = new FacebookService_getOptions_result();
2344
    $result->success = $this->handler_->getOptions();
2345
    $output->writeMessageBegin('getOptions', TMessageType::REPLY, $seqid);
2346
    $result->write($output);
2347
    $output->getTransport()->flush();
2348
  }
2349
  protected function process_getCpuProfile($seqid, $input, $output) {
2350
    $args = new FacebookService_getCpuProfile_args();
2351
    $args->read($input);
2352
    $input->readMessageEnd();
2353
    $result = new FacebookService_getCpuProfile_result();
2354
    $result->success = $this->handler_->getCpuProfile($args->profileDurationInSec);
2355
    $output->writeMessageBegin('getCpuProfile', TMessageType::REPLY, $seqid);
2356
    $result->write($output);
2357
    $output->getTransport()->flush();
2358
  }
2359
  protected function process_aliveSince($seqid, $input, $output) {
2360
    $args = new FacebookService_aliveSince_args();
2361
    $args->read($input);
2362
    $input->readMessageEnd();
2363
    $result = new FacebookService_aliveSince_result();
2364
    $result->success = $this->handler_->aliveSince();
2365
    $output->writeMessageBegin('aliveSince', TMessageType::REPLY, $seqid);
2366
    $result->write($output);
2367
    $output->getTransport()->flush();
2368
  }
2369
  protected function process_reinitialize($seqid, $input, $output) {
2370
    $args = new FacebookService_reinitialize_args();
2371
    $args->read($input);
2372
    $input->readMessageEnd();
2373
    $this->handler_->reinitialize();
2374
    return;
2375
  }
2376
  protected function process_shutdown($seqid, $input, $output) {
2377
    $args = new FacebookService_shutdown_args();
2378
    $args->read($input);
2379
    $input->readMessageEnd();
2380
    $this->handler_->shutdown();
2381
    return;
2382
  }
2383
}
2384
?>