1/**
2 * Autogenerated by Thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 *  @generated
6 */
7
8/**
9* @generated by Thrift
10*/
11
12#import <Foundation/Foundation.h>
13
14#import <thrift/TProtocol.h>
15#import <thrift/TApplicationException.h>
16#import <thrift/TProtocolException.h>
17#import <thrift/TProtocolUtil.h>
18#import <thrift/TProcessor.h>
19#import <thrift/TObjective-C.h>
20#import <thrift/TBase.h>
21#import <thrift/TBaseStruct.h>
22#import <thrift/TBaseException.h>
23#import "module.h"
24#import "includes.h"
25
26#import "service.h"
27
28@interface query_args : TBaseStruct <TBase, NSCoding> {
29  MyStruct * __thrift_s;
30  Included * __thrift_i;
31
32  BOOL __thrift_s_set;
33  BOOL __thrift_i_set;
34}
35
36@property (nonatomic, retain) MyStruct * s;
37@property (nonatomic, retain) Included * i;
38
39- (id) init NS_DESIGNATED_INITIALIZER;
40- (id) initWithCoder:(NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
41- (id) initWithS: (MyStruct *) s i: (Included *) i NS_DESIGNATED_INITIALIZER;
42- (void) read: (id <TProtocol>) inProtocol;
43- (void) write: (id <TProtocol>) outProtocol;
44- (void) validate;
45
46- (BOOL) sIsSet;
47- (BOOL) iIsSet;
48@end
49
50@implementation query_args
51
52- (instancetype) init
53{
54  self = [super init];
55  return self;
56}
57
58- (id) initWithS: (MyStruct *) s i: (Included *) i
59{
60  self = [super init];
61  __thrift_s = s;
62  __thrift_s_set = YES;
63  __thrift_i = i;
64  __thrift_i_set = YES;
65  return self;
66}
67
68- (id) initWithCoder: (NSCoder *) decoder
69{
70  self = [super init];
71  if ([decoder containsValueForKey: @"s"])
72  {
73    __thrift_s = [[decoder decodeObjectForKey: @"s"] retain_stub];
74    __thrift_s_set = YES;
75  }
76  if ([decoder containsValueForKey: @"i"])
77  {
78    __thrift_i = [[decoder decodeObjectForKey: @"i"] retain_stub];
79    __thrift_i_set = YES;
80  }
81  return self;
82}
83
84- (void) encodeWithCoder: (NSCoder *) encoder
85{
86  if (__thrift_s_set)
87  {
88    [encoder encodeObject: __thrift_s forKey: @"s"];
89  }
90  if (__thrift_i_set)
91  {
92    [encoder encodeObject: __thrift_i forKey: @"i"];
93  }
94}
95
96- (MyStruct *) s {
97  return __thrift_s;
98}
99
100- (void) setS: (MyStruct *) s {
101  [self throwExceptionIfImmutable];
102  __thrift_s = s;
103  __thrift_s_set = YES;
104}
105
106- (BOOL) sIsSet {
107  return __thrift_s_set;
108}
109
110- (void) unsetS {
111  __thrift_s = nil;
112  __thrift_s_set = NO;
113}
114
115- (Included *) i {
116  return __thrift_i;
117}
118
119- (void) setI: (Included *) i {
120  [self throwExceptionIfImmutable];
121  __thrift_i = i;
122  __thrift_i_set = YES;
123}
124
125- (BOOL) iIsSet {
126  return __thrift_i_set;
127}
128
129- (void) unsetI {
130  __thrift_i = nil;
131  __thrift_i_set = NO;
132}
133
134- (void) read: (id <TProtocol>) inProtocol
135{
136  NSString * fieldName;
137  int fieldType;
138  int fieldID;
139
140  [inProtocol readStructBeginReturningName: NULL];
141  while (true)
142  {
143    [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
144    if (fieldType == TType_STOP) {
145      break;
146    }
147    switch (fieldID)
148    {
149      case 1:
150        if (fieldType == TType_STRUCT) {
151          MyStruct *fieldValue = [[MyStruct alloc] init];
152          [fieldValue read: inProtocol];
153          [self setS: fieldValue];
154          [fieldValue release_stub];
155        } else {
156          [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
157        }
158        break;
159      case 2:
160        if (fieldType == TType_STRUCT) {
161          Included *fieldValue = [[Included alloc] init];
162          [fieldValue read: inProtocol];
163          [self setI: fieldValue];
164          [fieldValue release_stub];
165        } else {
166          [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
167        }
168        break;
169      default:
170        [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
171        break;
172    }
173    [inProtocol readFieldEnd];
174  }
175  [inProtocol readStructEnd];
176}
177
178- (void) write: (id <TProtocol>) outProtocol {
179  [outProtocol writeStructBeginWithName: @"query_args"];
180  if (__thrift_s_set) {
181    if (__thrift_s != nil) {
182      [outProtocol writeFieldBeginWithName: @"s" type: TType_STRUCT fieldID: 1];
183      [__thrift_s write: outProtocol];
184      [outProtocol writeFieldEnd];
185    }
186  }
187  if (__thrift_i_set) {
188    if (__thrift_i != nil) {
189      [outProtocol writeFieldBeginWithName: @"i" type: TType_STRUCT fieldID: 2];
190      [__thrift_i write: outProtocol];
191      [outProtocol writeFieldEnd];
192    }
193  }
194  [outProtocol writeFieldStop];
195  [outProtocol writeStructEnd];
196}
197
198- (void) validate {
199  // check for required fields
200}
201
202- (NSString *) description {
203  return [[self toDict] description];
204}
205
206- (NSDictionary *) toDict {
207  NSMutableDictionary *ret = [NSMutableDictionary dictionary];
208  ret[@"__thrift_struct_name"] = @"query_args";
209  if (__thrift_s) {
210    ret[@"s"] = [__thrift_s toDict];
211  }
212  if (__thrift_i) {
213    ret[@"i"] = [__thrift_i toDict];
214  }
215  return [ret copy];
216}
217
218- (BOOL) makeImmutable {
219  const BOOL wasImmutable = [self isImmutable];
220  if (!wasImmutable) {
221    if (__thrift_s && ![__thrift_s isImmutable]) {
222      [__thrift_s makeImmutable];
223    }
224    if (__thrift_i && ![__thrift_i isImmutable]) {
225      [__thrift_i makeImmutable];
226    }
227    [super makeImmutable];
228  }
229  return YES;
230}
231
232- (id) mutableCopyWithZone:(NSZone *)zone {
233  query_args *newCopy = [[[self class] alloc] init];;
234  if (__thrift_s) {
235    newCopy->__thrift_s = [self->__thrift_s mutableCopyWithZone:zone];
236  }
237  newCopy->__thrift_s_set = self->__thrift_s_set;
238  if (__thrift_i) {
239    newCopy->__thrift_i = [self->__thrift_i mutableCopyWithZone:zone];
240  }
241  newCopy->__thrift_i_set = self->__thrift_i_set;
242  return newCopy;
243}
244
245@end
246
247@interface Query_result : TBaseStruct <TBase, NSCoding> {
248}
249
250- (id) init NS_DESIGNATED_INITIALIZER;
251- (id) initWithCoder:(NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
252- (void) read: (id <TProtocol>) inProtocol;
253- (void) write: (id <TProtocol>) outProtocol;
254- (void) validate;
255
256@end
257
258@implementation Query_result
259
260- (instancetype) init
261{
262  self = [super init];
263  return self;
264}
265
266- (id) initWithCoder: (NSCoder *) decoder
267{
268  self = [super init];
269  return self;
270}
271
272- (void) encodeWithCoder: (NSCoder *) encoder
273{
274}
275
276- (void) read: (id <TProtocol>) inProtocol
277{
278  NSString * fieldName;
279  int fieldType;
280  int fieldID;
281
282  [inProtocol readStructBeginReturningName: NULL];
283  while (true)
284  {
285    [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
286    if (fieldType == TType_STOP) {
287      break;
288    }
289    switch (fieldID)
290    {
291      default:
292        [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
293        break;
294    }
295    [inProtocol readFieldEnd];
296  }
297  [inProtocol readStructEnd];
298}
299
300- (void) write: (id <TProtocol>) outProtocol {
301  [outProtocol writeStructBeginWithName: @"Query_result"];
302
303  [outProtocol writeFieldStop];
304  [outProtocol writeStructEnd];
305}
306
307- (void) validate {
308  // check for required fields
309}
310
311- (NSString *) description {
312  return [[self toDict] description];
313}
314
315- (NSDictionary *) toDict {
316  NSMutableDictionary *ret = [NSMutableDictionary dictionary];
317  ret[@"__thrift_struct_name"] = @"Query_result";
318  return [ret copy];
319}
320
321- (BOOL) makeImmutable {
322  const BOOL wasImmutable = [self isImmutable];
323  if (!wasImmutable) {
324    [super makeImmutable];
325  }
326  return YES;
327}
328
329- (id) mutableCopyWithZone:(NSZone *)zone {
330  Query_result *newCopy = [[[self class] alloc] init];;
331  return newCopy;
332}
333
334@end
335
336@interface has_arg_docs_args : TBaseStruct <TBase, NSCoding> {
337  MyStruct * __thrift_s;
338  Included * __thrift_i;
339
340  BOOL __thrift_s_set;
341  BOOL __thrift_i_set;
342}
343
344@property (nonatomic, retain) MyStruct * s;
345@property (nonatomic, retain) Included * i;
346
347- (id) init NS_DESIGNATED_INITIALIZER;
348- (id) initWithCoder:(NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
349- (id) initWithS: (MyStruct *) s i: (Included *) i NS_DESIGNATED_INITIALIZER;
350- (void) read: (id <TProtocol>) inProtocol;
351- (void) write: (id <TProtocol>) outProtocol;
352- (void) validate;
353
354- (BOOL) sIsSet;
355- (BOOL) iIsSet;
356@end
357
358@implementation has_arg_docs_args
359
360- (instancetype) init
361{
362  self = [super init];
363  return self;
364}
365
366- (id) initWithS: (MyStruct *) s i: (Included *) i
367{
368  self = [super init];
369  __thrift_s = s;
370  __thrift_s_set = YES;
371  __thrift_i = i;
372  __thrift_i_set = YES;
373  return self;
374}
375
376- (id) initWithCoder: (NSCoder *) decoder
377{
378  self = [super init];
379  if ([decoder containsValueForKey: @"s"])
380  {
381    __thrift_s = [[decoder decodeObjectForKey: @"s"] retain_stub];
382    __thrift_s_set = YES;
383  }
384  if ([decoder containsValueForKey: @"i"])
385  {
386    __thrift_i = [[decoder decodeObjectForKey: @"i"] retain_stub];
387    __thrift_i_set = YES;
388  }
389  return self;
390}
391
392- (void) encodeWithCoder: (NSCoder *) encoder
393{
394  if (__thrift_s_set)
395  {
396    [encoder encodeObject: __thrift_s forKey: @"s"];
397  }
398  if (__thrift_i_set)
399  {
400    [encoder encodeObject: __thrift_i forKey: @"i"];
401  }
402}
403
404- (MyStruct *) s {
405  return __thrift_s;
406}
407
408- (void) setS: (MyStruct *) s {
409  [self throwExceptionIfImmutable];
410  __thrift_s = s;
411  __thrift_s_set = YES;
412}
413
414- (BOOL) sIsSet {
415  return __thrift_s_set;
416}
417
418- (void) unsetS {
419  __thrift_s = nil;
420  __thrift_s_set = NO;
421}
422
423- (Included *) i {
424  return __thrift_i;
425}
426
427- (void) setI: (Included *) i {
428  [self throwExceptionIfImmutable];
429  __thrift_i = i;
430  __thrift_i_set = YES;
431}
432
433- (BOOL) iIsSet {
434  return __thrift_i_set;
435}
436
437- (void) unsetI {
438  __thrift_i = nil;
439  __thrift_i_set = NO;
440}
441
442- (void) read: (id <TProtocol>) inProtocol
443{
444  NSString * fieldName;
445  int fieldType;
446  int fieldID;
447
448  [inProtocol readStructBeginReturningName: NULL];
449  while (true)
450  {
451    [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
452    if (fieldType == TType_STOP) {
453      break;
454    }
455    switch (fieldID)
456    {
457      case 1:
458        if (fieldType == TType_STRUCT) {
459          MyStruct *fieldValue = [[MyStruct alloc] init];
460          [fieldValue read: inProtocol];
461          [self setS: fieldValue];
462          [fieldValue release_stub];
463        } else {
464          [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
465        }
466        break;
467      case 2:
468        if (fieldType == TType_STRUCT) {
469          Included *fieldValue = [[Included alloc] init];
470          [fieldValue read: inProtocol];
471          [self setI: fieldValue];
472          [fieldValue release_stub];
473        } else {
474          [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
475        }
476        break;
477      default:
478        [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
479        break;
480    }
481    [inProtocol readFieldEnd];
482  }
483  [inProtocol readStructEnd];
484}
485
486- (void) write: (id <TProtocol>) outProtocol {
487  [outProtocol writeStructBeginWithName: @"has_arg_docs_args"];
488  if (__thrift_s_set) {
489    if (__thrift_s != nil) {
490      [outProtocol writeFieldBeginWithName: @"s" type: TType_STRUCT fieldID: 1];
491      [__thrift_s write: outProtocol];
492      [outProtocol writeFieldEnd];
493    }
494  }
495  if (__thrift_i_set) {
496    if (__thrift_i != nil) {
497      [outProtocol writeFieldBeginWithName: @"i" type: TType_STRUCT fieldID: 2];
498      [__thrift_i write: outProtocol];
499      [outProtocol writeFieldEnd];
500    }
501  }
502  [outProtocol writeFieldStop];
503  [outProtocol writeStructEnd];
504}
505
506- (void) validate {
507  // check for required fields
508}
509
510- (NSString *) description {
511  return [[self toDict] description];
512}
513
514- (NSDictionary *) toDict {
515  NSMutableDictionary *ret = [NSMutableDictionary dictionary];
516  ret[@"__thrift_struct_name"] = @"has_arg_docs_args";
517  if (__thrift_s) {
518    ret[@"s"] = [__thrift_s toDict];
519  }
520  if (__thrift_i) {
521    ret[@"i"] = [__thrift_i toDict];
522  }
523  return [ret copy];
524}
525
526- (BOOL) makeImmutable {
527  const BOOL wasImmutable = [self isImmutable];
528  if (!wasImmutable) {
529    if (__thrift_s && ![__thrift_s isImmutable]) {
530      [__thrift_s makeImmutable];
531    }
532    if (__thrift_i && ![__thrift_i isImmutable]) {
533      [__thrift_i makeImmutable];
534    }
535    [super makeImmutable];
536  }
537  return YES;
538}
539
540- (id) mutableCopyWithZone:(NSZone *)zone {
541  has_arg_docs_args *newCopy = [[[self class] alloc] init];;
542  if (__thrift_s) {
543    newCopy->__thrift_s = [self->__thrift_s mutableCopyWithZone:zone];
544  }
545  newCopy->__thrift_s_set = self->__thrift_s_set;
546  if (__thrift_i) {
547    newCopy->__thrift_i = [self->__thrift_i mutableCopyWithZone:zone];
548  }
549  newCopy->__thrift_i_set = self->__thrift_i_set;
550  return newCopy;
551}
552
553@end
554
555@interface Has_arg_docs_result : TBaseStruct <TBase, NSCoding> {
556}
557
558- (id) init NS_DESIGNATED_INITIALIZER;
559- (id) initWithCoder:(NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
560- (void) read: (id <TProtocol>) inProtocol;
561- (void) write: (id <TProtocol>) outProtocol;
562- (void) validate;
563
564@end
565
566@implementation Has_arg_docs_result
567
568- (instancetype) init
569{
570  self = [super init];
571  return self;
572}
573
574- (id) initWithCoder: (NSCoder *) decoder
575{
576  self = [super init];
577  return self;
578}
579
580- (void) encodeWithCoder: (NSCoder *) encoder
581{
582}
583
584- (void) read: (id <TProtocol>) inProtocol
585{
586  NSString * fieldName;
587  int fieldType;
588  int fieldID;
589
590  [inProtocol readStructBeginReturningName: NULL];
591  while (true)
592  {
593    [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
594    if (fieldType == TType_STOP) {
595      break;
596    }
597    switch (fieldID)
598    {
599      default:
600        [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
601        break;
602    }
603    [inProtocol readFieldEnd];
604  }
605  [inProtocol readStructEnd];
606}
607
608- (void) write: (id <TProtocol>) outProtocol {
609  [outProtocol writeStructBeginWithName: @"Has_arg_docs_result"];
610
611  [outProtocol writeFieldStop];
612  [outProtocol writeStructEnd];
613}
614
615- (void) validate {
616  // check for required fields
617}
618
619- (NSString *) description {
620  return [[self toDict] description];
621}
622
623- (NSDictionary *) toDict {
624  NSMutableDictionary *ret = [NSMutableDictionary dictionary];
625  ret[@"__thrift_struct_name"] = @"Has_arg_docs_result";
626  return [ret copy];
627}
628
629- (BOOL) makeImmutable {
630  const BOOL wasImmutable = [self isImmutable];
631  if (!wasImmutable) {
632    [super makeImmutable];
633  }
634  return YES;
635}
636
637- (id) mutableCopyWithZone:(NSZone *)zone {
638  Has_arg_docs_result *newCopy = [[[self class] alloc] init];;
639  return newCopy;
640}
641
642@end
643
644@implementation MyServiceClient
645- (id) initWithProtocol: (id <TProtocol>) protocol
646{
647  return [self initWithInProtocol: protocol outProtocol: protocol];
648}
649
650- (id) initWithInProtocol: (id <TProtocol>) anInProtocol outProtocol: (id <TProtocol>) anOutProtocol
651{
652  self = [super init];
653  inProtocol = [anInProtocol retain_stub];
654  outProtocol = [anOutProtocol retain_stub];
655  return self;
656}
657
658- (void) dealloc
659{
660  [inProtocol release_stub];
661  [outProtocol release_stub];
662  [super dealloc_stub];
663}
664
665- (void) send_query: (MyStruct *) s i: (Included *) i
666{
667  [outProtocol writeMessageBeginWithName: @"query" type: TMessageType_CALL sequenceID: 0];
668  [outProtocol writeStructBeginWithName: @"query_args"];
669  if (s != nil)  {
670    [outProtocol writeFieldBeginWithName: @"s" type: TType_STRUCT fieldID: 1];
671    [s write: outProtocol];
672    [outProtocol writeFieldEnd];
673  }
674  if (i != nil)  {
675    [outProtocol writeFieldBeginWithName: @"i" type: TType_STRUCT fieldID: 2];
676    [i write: outProtocol];
677    [outProtocol writeFieldEnd];
678  }
679  [outProtocol writeFieldStop];
680  [outProtocol writeStructEnd];
681  [outProtocol writeMessageEnd];
682  [[outProtocol transport] flush];
683}
684
685- (void) recv_query
686{
687  int msgType = 0;
688  [inProtocol readMessageBeginReturningName: nil type: &msgType sequenceID: NULL];
689  if (msgType == TMessageType_EXCEPTION) {
690    TApplicationException * x = [TApplicationException read: inProtocol];
691    [inProtocol readMessageEnd];
692    @throw x;
693  }
694  Query_result * result = [[[Query_result alloc] init] autorelease_stub];
695  [result read: inProtocol];
696  [inProtocol readMessageEnd];
697  return;
698}
699
700- (void) query: (MyStruct *) s i: (Included *) i
701{
702  [self send_query : s i: i];
703  [self recv_query];
704}
705
706- (void) send_has_arg_docs: (MyStruct *) s i: (Included *) i
707{
708  [outProtocol writeMessageBeginWithName: @"has_arg_docs" type: TMessageType_CALL sequenceID: 0];
709  [outProtocol writeStructBeginWithName: @"has_arg_docs_args"];
710  if (s != nil)  {
711    [outProtocol writeFieldBeginWithName: @"s" type: TType_STRUCT fieldID: 1];
712    [s write: outProtocol];
713    [outProtocol writeFieldEnd];
714  }
715  if (i != nil)  {
716    [outProtocol writeFieldBeginWithName: @"i" type: TType_STRUCT fieldID: 2];
717    [i write: outProtocol];
718    [outProtocol writeFieldEnd];
719  }
720  [outProtocol writeFieldStop];
721  [outProtocol writeStructEnd];
722  [outProtocol writeMessageEnd];
723  [[outProtocol transport] flush];
724}
725
726- (void) recv_has_arg_docs
727{
728  int msgType = 0;
729  [inProtocol readMessageBeginReturningName: nil type: &msgType sequenceID: NULL];
730  if (msgType == TMessageType_EXCEPTION) {
731    TApplicationException * x = [TApplicationException read: inProtocol];
732    [inProtocol readMessageEnd];
733    @throw x;
734  }
735  Has_arg_docs_result * result = [[[Has_arg_docs_result alloc] init] autorelease_stub];
736  [result read: inProtocol];
737  [inProtocol readMessageEnd];
738  return;
739}
740
741- (void) has_arg_docs: (MyStruct *) s i: (Included *) i
742{
743  [self send_has_arg_docs : s i: i];
744  [self recv_has_arg_docs];
745}
746
747@end
748
749@implementation MyServiceProcessor
750
751- (id) initWithMyService: (id <MyService>) service
752{
753  self = [super init];
754  if (!self) {
755    return nil;
756  }
757  {
758    SEL s = @selector(process_query_withSequenceID:inProtocol:outProtocol:);
759    NSMethodSignature * sig = [self methodSignatureForSelector: s];
760    NSInvocation * invocation = [NSInvocation invocationWithMethodSignature: sig];
761    [invocation setSelector: s];
762    [invocation retainArguments];
763    [mMethodMap setValue: invocation forKey: @"query"];
764  }
765  {
766    SEL s = @selector(process_has_arg_docs_withSequenceID:inProtocol:outProtocol:);
767    NSMethodSignature * sig = [self methodSignatureForSelector: s];
768    NSInvocation * invocation = [NSInvocation invocationWithMethodSignature: sig];
769    [invocation setSelector: s];
770    [invocation retainArguments];
771    [mMethodMap setValue: invocation forKey: @"has_arg_docs"];
772  }
773  return self;
774}
775
776- (id<MyService>) service
777{
778  return [[mService retain_stub] autorelease_stub];
779}
780
781- (BOOL) processOnInputProtocol: (id <TProtocol>) inProtocol
782                 outputProtocol: (id <TProtocol>) outProtocol
783{
784  NSString * messageName;
785  int messageType;
786  int seqID;
787  [inProtocol readMessageBeginReturningName: &messageName
788                                       type: &messageType
789                                 sequenceID: &seqID];
790  NSInvocation * invocation = [mMethodMap valueForKey: messageName];
791  if (invocation == nil) {
792    [TProtocolUtil skipType: TType_STRUCT onProtocol: inProtocol];
793    [inProtocol readMessageEnd];
794    TApplicationException * x = [TApplicationException exceptionWithType: TApplicationException_UNKNOWN_METHOD reason: [NSString stringWithFormat: @"Invalid method name: '%@'", messageName]];
795    [outProtocol writeMessageBeginWithName: messageName
796                                      type: TMessageType_EXCEPTION
797                                sequenceID: seqID];
798    [x write: outProtocol];
799    [outProtocol writeMessageEnd];
800    [[outProtocol transport] flush];
801    return YES;
802  }
803  // NSInvocation does not conform to NSCopying protocol
804  NSInvocation * i = [NSInvocation invocationWithMethodSignature: [invocation methodSignature]];
805  [i setSelector: [invocation selector]];
806  [i setArgument: &seqID atIndex: 2];
807  [i setArgument: &inProtocol atIndex: 3];
808  [i setArgument: &outProtocol atIndex: 4];
809  [i setTarget: self];
810  [i invoke];
811  return YES;
812}
813
814- (void) process_query_withSequenceID: (int32_t) seqID inProtocol: (id<TProtocol>) inProtocol outProtocol: (id<TProtocol>) outProtocol
815{
816  query_args * args = [[query_args alloc] init];
817  [args read: inProtocol];
818  [inProtocol readMessageEnd];
819  Query_result * result = [[Query_result alloc] init];
820  [mService query: [args s] i: [args i]];
821  [outProtocol writeMessageBeginWithName: @"query"
822                                    type: TMessageType_REPLY
823                              sequenceID: seqID];
824  [result write: outProtocol];
825  [outProtocol writeMessageEnd];
826  [[outProtocol transport] flush];
827  [result release_stub];
828  [args release_stub];
829}
830
831- (void) process_has_arg_docs_withSequenceID: (int32_t) seqID inProtocol: (id<TProtocol>) inProtocol outProtocol: (id<TProtocol>) outProtocol
832{
833  has_arg_docs_args * args = [[has_arg_docs_args alloc] init];
834  [args read: inProtocol];
835  [inProtocol readMessageEnd];
836  Has_arg_docs_result * result = [[Has_arg_docs_result alloc] init];
837  [mService has_arg_docs: [args s] i: [args i]];
838  [outProtocol writeMessageBeginWithName: @"has_arg_docs"
839                                    type: TMessageType_REPLY
840                              sequenceID: seqID];
841  [result write: outProtocol];
842  [outProtocol writeMessageEnd];
843  [[outProtocol transport] flush];
844  [result release_stub];
845  [args release_stub];
846}
847
848- (void) dealloc
849{
850  [mService release_stub];
851  [mMethodMap release_stub];
852  [super dealloc_stub];
853}
854
855@end
856
857