Subversion Repositories SmartDukaan

Rev

Rev 6850 | Rev 6962 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addItem(self, item):
21
    """
22
    Availability and inventory attributes
23
 
24
    Parameters:
25
     - item
26
    """
27
    pass
28
 
29
  def updateItem(self, item):
30
    """
31
    Parameters:
32
     - item
33
    """
34
    pass
35
 
36
  def isActive(self, itemId):
37
    """
38
    Checks if the item given to the corresponding itemId is active. If it's active,
39
    whether it's risky and if it's risky, its inventory position.
40
 
41
    Parameters:
42
     - itemId
43
    """
44
    pass
45
 
46
  def getItemStatusDescription(self, itemId):
47
    """
48
    Parameters:
49
     - itemId
50
    """
51
    pass
52
 
53
  def startItemOn(self, item_id, timestamp):
54
    """
55
    Parameters:
56
     - item_id
57
     - timestamp
58
    """
59
    pass
60
 
61
  def retireItemOn(self, item_id, timestamp):
62
    """
63
    Parameters:
64
     - item_id
65
     - timestamp
66
    """
67
    pass
68
 
69
  def changeItemStatus(self, item_id, timestamp, newstatus):
70
    """
71
    Parameters:
72
     - item_id
73
     - timestamp
74
     - newstatus
75
    """
76
    pass
77
 
78
  def getItem(self, item_id):
79
    """
80
    Parameters:
81
     - item_id
82
    """
83
    pass
84
 
85
  def getItemsByCatalogId(self, catalog_item_id):
86
    """
87
    Parameters:
88
     - catalog_item_id
89
    """
90
    pass
91
 
92
  def getValidItemsByCatalogId(self, catalog_item_id):
93
    """
94
    Parameters:
95
     - catalog_item_id
96
    """
97
    pass
98
 
99
  def getAllItems(self, isActive):
100
    """
101
    Parameters:
102
     - isActive
103
    """
104
    pass
105
 
106
  def getAllItemsByStatus(self, itemStatus):
107
    """
108
    Parameters:
109
     - itemStatus
110
    """
111
    pass
112
 
113
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
114
    """
115
    Parameters:
116
     - entityId
117
     - category
118
     - brand
119
     - modelName
120
     - modelNumber
121
    """
122
    pass
123
 
124
  def getAllItemsInRange(self, offset, limit):
125
    """
126
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
127
 
128
    Parameters:
129
     - offset
130
     - limit
131
    """
132
    pass
133
 
134
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
135
    """
136
    Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
137
 
138
    Parameters:
139
     - itemStatus
140
     - offset
141
     - limit
142
    """
143
    pass
144
 
145
  def getItemCountByStatus(self, useStatus, itemStatus):
146
    """
147
    Gets a count of all items by status
148
 
149
    Parameters:
150
     - useStatus
151
     - itemStatus
152
    """
153
    pass
154
 
155
  def getBestSellers(self, ):
156
    pass
157
 
158
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
159
    """
160
    Parameters:
161
     - beginIndex
162
     - totalItems
163
     - brand
164
     - category
165
    """
166
    pass
167
 
168
  def getBestSellersCount(self, ):
169
    pass
170
 
171
  def getBestDeals(self, ):
172
    pass
173
 
174
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
175
    """
176
    Parameters:
177
     - beginIndex
178
     - totalItems
179
     - brand
180
     - category
181
    """
182
    pass
183
 
184
  def getBestDealsCount(self, ):
185
    pass
186
 
187
  def getComingSoon(self, ):
188
    pass
189
 
190
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
191
    """
192
    Parameters:
193
     - beginIndex
194
     - totalItems
195
     - brand
196
     - category
197
    """
198
    pass
199
 
200
  def getComingSoonCount(self, ):
201
    pass
202
 
203
  def getLatestArrivals(self, ):
204
    """
205
    Returns a list of items sorted in the descending order by start date.
206
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
207
    """
208
    pass
209
 
210
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
211
    """
212
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
213
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
214
 
215
    Parameters:
216
     - beginIndex
217
     - totalItems
218
     - brand
219
     - categories
220
    """
221
    pass
222
 
223
  def getLatestArrivalsCount(self, ):
224
    """
225
    Get the total number of latest arrivals we are willing to show.
226
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
227
    """
228
    pass
229
 
230
  def generateNewEntityID(self, ):
231
    pass
232
 
233
  def addCategory(self, category):
234
    """
235
    All category related functions
236
 
237
    Parameters:
238
     - category
239
    """
240
    pass
241
 
242
  def getCategory(self, id):
243
    """
244
    Parameters:
245
     - id
246
    """
247
    pass
248
 
249
  def getAllCategories(self, ):
250
    pass
251
 
252
  def getAllSimilarItems(self, itemId):
253
    """
254
    Returns the list of similar items.
255
 
256
    Parameters:
257
     - itemId
258
    """
259
    pass
260
 
261
  def addSimilarItem(self, itemId, catalogItemId):
262
    """
263
    Adds similar item.
264
 
265
    Parameters:
266
     - itemId
267
     - catalogItemId
268
    """
269
    pass
270
 
6512 kshitij.so 271
  def addTag(self, displayName, itemId):
272
    """
273
    Tag Related
274
 
275
    Parameters:
276
     - displayName
277
     - itemId
278
    """
279
    pass
280
 
281
  def deleteEntityTag(self, displayName, itemId):
282
    """
283
    Parameters:
284
     - displayName
285
     - itemId
286
    """
287
    pass
288
 
289
  def deleteTag(self, displayName):
290
    """
291
    Parameters:
292
     - displayName
293
    """
294
    pass
295
 
296
  def getAllTags(self, ):
297
    pass
298
 
299
  def getAllEntitiesByTagName(self, displayName):
300
    """
301
    Parameters:
302
     - displayName
303
    """
304
    pass
305
 
6845 amit.gupta 306
  def getAllEntityTags(self, ):
307
    pass
308
 
6850 kshitij.so 309
  def addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
310
    """
311
    Parameters:
312
     - bannerName
313
     - imageName
314
     - link
315
     - priority
316
     - isActive
317
     - hasMap
318
    """
319
    pass
320
 
321
  def getAllBanners(self, ):
322
    pass
323
 
324
  def deleteBanner(self, bannerName):
325
    """
326
    Parameters:
327
     - bannerName
328
    """
329
    pass
330
 
331
  def getBannerDetails(self, bannerName):
332
    """
333
    Parameters:
334
     - bannerName
335
    """
336
    pass
337
 
338
  def getActiveBanners(self, ):
339
    pass
340
 
6849 kshitij.so 341
  def addBannerMap(self, bannerName, mapLink, coordinates):
342
    """
343
    Parameters:
344
     - bannerName
345
     - mapLink
346
     - coordinates
347
    """
348
    pass
349
 
350
  def deleteBannerMap(self, bannerName):
351
    """
352
    Parameters:
353
     - bannerName
354
    """
355
    pass
356
 
357
  def getBannerMapDetails(self, bannerName):
358
    """
359
    Parameters:
360
     - bannerName
361
    """
362
    pass
363
 
5944 mandeep.dh 364
  def deleteSimilarItem(self, itemId, catalogItemId):
365
    """
366
    Delete similar item.
367
 
368
    Parameters:
369
     - itemId
370
     - catalogItemId
371
    """
372
    pass
373
 
374
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
375
    """
376
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
377
    If yes, returns the itemId else returns 0
378
 
379
    Parameters:
380
     - brand
381
     - modelNumber
382
     - modelName
383
     - color
384
    """
385
    pass
386
 
387
  def validateRiskyStatus(self, itemId):
388
    """
389
    Check wether item is risky and change status if inventory is not available for risky items
390
 
391
    Parameters:
392
     - itemId
393
    """
394
    pass
395
 
396
  def changeItemRiskyFlag(self, itemId, risky):
397
    """
398
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
399
 
400
    Parameters:
401
     - itemId
402
     - risky
403
    """
404
    pass
405
 
406
  def getItemsByRiskyFlag(self, ):
407
    """
408
    Returns list of items marked as risky.
409
    """
410
    pass
411
 
412
  def getItemsForMasterSheet(self, category, brand):
413
    """
414
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
415
 
416
    Parameters:
417
     - category
418
     - brand
419
    """
420
    pass
421
 
422
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
423
    """
424
    Returns list of catalog ids of items with same similarity index as of the given itemId
425
 
426
    Parameters:
427
     - beginIndex
428
     - totalItems
429
     - itemId
430
    """
431
    pass
432
 
433
  def addProductNotification(self, itemId, email):
434
    """
435
    Add user requests for out of stock items. Once user will ask for notify me an entry will
436
 
437
    Parameters:
438
     - itemId
439
     - email
440
    """
441
    pass
442
 
443
  def sendProductNotifications(self, ):
444
    """
445
    Send the product notifications to the users for items which has stock.
446
    """
447
    pass
448
 
449
  def getAllBrandsByCategory(self, categoryId):
450
    """
451
    Returns list of brand names for a given category Id
452
 
453
    Parameters:
454
     - categoryId
455
    """
456
    pass
457
 
458
  def getAllBrands(self, ):
459
    """
460
    Returns list of brand names
461
    """
462
    pass
463
 
464
  def getAllSources(self, ):
465
    """
466
    Return list of all sources
467
    """
468
    pass
469
 
470
  def getItemPricingBySource(self, itemId, sourceId):
471
    """
472
    Returns the pricing information of an item. If no information is found, exception will be thrown.
473
 
474
    Parameters:
475
     - itemId
476
     - sourceId
477
    """
478
    pass
479
 
480
  def addSourceItemPricing(self, sourceItemPricing):
481
    """
482
    Adds prices to be displayed corresponding to the item if user comes from a source.
483
    If item is not found or source is not found, it will throw exception.
484
 
485
    Parameters:
486
     - sourceItemPricing
487
    """
488
    pass
489
 
490
  def getAllSourcePricing(self, itemId):
491
    """
492
    Returns the list of source pricing information of an item.
493
    Raises an exception if item not found corresponding to itemId
494
 
495
    Parameters:
496
     - itemId
497
    """
498
    pass
499
 
500
  def getItemForSource(self, item_id, sourceId):
501
    """
502
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
503
 
504
    Parameters:
505
     - item_id
506
     - sourceId
507
    """
508
    pass
509
 
510
  def searchItemsInRange(self, searchTerms, offset, limit):
511
    """
512
    Searches items matching the the given terms in the catalog and returns results within the specified range.
513
 
514
    Parameters:
515
     - searchTerms
516
     - offset
517
     - limit
518
    """
519
    pass
520
 
521
  def getSearchResultCount(self, searchTerms):
522
    """
523
    Gets the count of search results for the given search terms so that the user can go through all the pages.
524
 
525
    Parameters:
526
     - searchTerms
527
    """
528
    pass
529
 
530
  def getProductNotifications(self, startDateTime):
531
    """
532
    Returns a list of product notifications added after a supplied datetime
533
 
534
    Parameters:
535
     - startDateTime
536
    """
537
    pass
538
 
539
  def getProductNotificationRequestCount(self, startDateTime):
540
    """
541
    Returns a list of count of requests for product notification against each item
542
 
543
    Parameters:
544
     - startDateTime
545
    """
546
    pass
547
 
548
  def addAuthorizationLog(self, itemId, username, reason):
549
    """
550
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
551
 
552
    Parameters:
553
     - itemId
554
     - username
555
     - reason
556
    """
557
    pass
558
 
559
  def getClearanceSaleCatalogIds(self, ):
560
    pass
561
 
562
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
563
    """
564
    Parameters:
565
     - catalog_item_id
566
     - voucherType
567
     - voucherAmount
568
    """
569
    pass
570
 
571
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
572
    """
573
    Parameters:
574
     - catalog_item_id
575
     - voucherType
576
    """
577
    pass
578
 
579
  def getVoucherAmount(self, itemId, voucherType):
580
    """
581
    Parameters:
582
     - itemId
583
     - voucherType
584
    """
585
    pass
586
 
587
  def getAllItemVouchers(self, itemId):
588
    """
589
    Parameters:
590
     - itemId
591
    """
592
    pass
593
 
594
  def isValidCatalogItemId(self, catalog_item_id):
595
    """
596
    Parameters:
597
     - catalog_item_id
598
    """
599
    pass
600
 
6039 amit.gupta 601
  def getVatPercentageForItem(self, itemId, price):
602
    """
603
    Parameters:
604
     - itemId
605
     - price
606
    """
607
    pass
5944 mandeep.dh 608
 
6039 amit.gupta 609
  def getVatAmountForItem(self, itemId, price):
610
    """
611
    Parameters:
612
     - itemId
613
     - price
614
    """
615
    pass
616
 
6531 vikram.rag 617
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
618
    """
619
    Parameters:
620
     - offset
621
     - limit
622
    """
623
    pass
6039 amit.gupta 624
 
6821 amar.kumar 625
  def getAllAliveItems(self, ):
626
    pass
627
 
6921 anupam.sin 628
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 629
    """
630
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 631
 
6805 anupam.sin 632
    Parameters:
633
     - itemId
6921 anupam.sin 634
     - price
6805 anupam.sin 635
     - insurerId
636
     - quantity
637
    """
638
    pass
639
 
640
  def getInsurer(self, insurerId):
641
    """
642
    Parameters:
643
     - insurerId
644
    """
645
    pass
646
 
6838 vikram.rag 647
  def getAllInsurers(self, ):
648
    pass
6805 anupam.sin 649
 
6838 vikram.rag 650
 
5944 mandeep.dh 651
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
652
  def __init__(self, iprot, oprot=None):
653
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
654
 
655
  def addItem(self, item):
656
    """
657
    Availability and inventory attributes
658
 
659
    Parameters:
660
     - item
661
    """
662
    self.send_addItem(item)
663
    return self.recv_addItem()
664
 
665
  def send_addItem(self, item):
666
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
667
    args = addItem_args()
668
    args.item = item
669
    args.write(self._oprot)
670
    self._oprot.writeMessageEnd()
671
    self._oprot.trans.flush()
672
 
673
  def recv_addItem(self, ):
674
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
675
    if mtype == TMessageType.EXCEPTION:
676
      x = TApplicationException()
677
      x.read(self._iprot)
678
      self._iprot.readMessageEnd()
679
      raise x
680
    result = addItem_result()
681
    result.read(self._iprot)
682
    self._iprot.readMessageEnd()
683
    if result.success is not None:
684
      return result.success
685
    if result.cex is not None:
686
      raise result.cex
687
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
688
 
689
  def updateItem(self, item):
690
    """
691
    Parameters:
692
     - item
693
    """
694
    self.send_updateItem(item)
695
    return self.recv_updateItem()
696
 
697
  def send_updateItem(self, item):
698
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
699
    args = updateItem_args()
700
    args.item = item
701
    args.write(self._oprot)
702
    self._oprot.writeMessageEnd()
703
    self._oprot.trans.flush()
704
 
705
  def recv_updateItem(self, ):
706
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
707
    if mtype == TMessageType.EXCEPTION:
708
      x = TApplicationException()
709
      x.read(self._iprot)
710
      self._iprot.readMessageEnd()
711
      raise x
712
    result = updateItem_result()
713
    result.read(self._iprot)
714
    self._iprot.readMessageEnd()
715
    if result.success is not None:
716
      return result.success
717
    if result.cex is not None:
718
      raise result.cex
719
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
720
 
721
  def isActive(self, itemId):
722
    """
723
    Checks if the item given to the corresponding itemId is active. If it's active,
724
    whether it's risky and if it's risky, its inventory position.
725
 
726
    Parameters:
727
     - itemId
728
    """
729
    self.send_isActive(itemId)
730
    return self.recv_isActive()
731
 
732
  def send_isActive(self, itemId):
733
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
734
    args = isActive_args()
735
    args.itemId = itemId
736
    args.write(self._oprot)
737
    self._oprot.writeMessageEnd()
738
    self._oprot.trans.flush()
739
 
740
  def recv_isActive(self, ):
741
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
742
    if mtype == TMessageType.EXCEPTION:
743
      x = TApplicationException()
744
      x.read(self._iprot)
745
      self._iprot.readMessageEnd()
746
      raise x
747
    result = isActive_result()
748
    result.read(self._iprot)
749
    self._iprot.readMessageEnd()
750
    if result.success is not None:
751
      return result.success
752
    if result.isex is not None:
753
      raise result.isex
754
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
755
 
756
  def getItemStatusDescription(self, itemId):
757
    """
758
    Parameters:
759
     - itemId
760
    """
761
    self.send_getItemStatusDescription(itemId)
762
    return self.recv_getItemStatusDescription()
763
 
764
  def send_getItemStatusDescription(self, itemId):
765
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
766
    args = getItemStatusDescription_args()
767
    args.itemId = itemId
768
    args.write(self._oprot)
769
    self._oprot.writeMessageEnd()
770
    self._oprot.trans.flush()
771
 
772
  def recv_getItemStatusDescription(self, ):
773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
774
    if mtype == TMessageType.EXCEPTION:
775
      x = TApplicationException()
776
      x.read(self._iprot)
777
      self._iprot.readMessageEnd()
778
      raise x
779
    result = getItemStatusDescription_result()
780
    result.read(self._iprot)
781
    self._iprot.readMessageEnd()
782
    if result.success is not None:
783
      return result.success
784
    if result.isex is not None:
785
      raise result.isex
786
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
787
 
788
  def startItemOn(self, item_id, timestamp):
789
    """
790
    Parameters:
791
     - item_id
792
     - timestamp
793
    """
794
    self.send_startItemOn(item_id, timestamp)
795
    self.recv_startItemOn()
796
 
797
  def send_startItemOn(self, item_id, timestamp):
798
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
799
    args = startItemOn_args()
800
    args.item_id = item_id
801
    args.timestamp = timestamp
802
    args.write(self._oprot)
803
    self._oprot.writeMessageEnd()
804
    self._oprot.trans.flush()
805
 
806
  def recv_startItemOn(self, ):
807
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
808
    if mtype == TMessageType.EXCEPTION:
809
      x = TApplicationException()
810
      x.read(self._iprot)
811
      self._iprot.readMessageEnd()
812
      raise x
813
    result = startItemOn_result()
814
    result.read(self._iprot)
815
    self._iprot.readMessageEnd()
816
    if result.cex is not None:
817
      raise result.cex
818
    return
819
 
820
  def retireItemOn(self, item_id, timestamp):
821
    """
822
    Parameters:
823
     - item_id
824
     - timestamp
825
    """
826
    self.send_retireItemOn(item_id, timestamp)
827
    self.recv_retireItemOn()
828
 
829
  def send_retireItemOn(self, item_id, timestamp):
830
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
831
    args = retireItemOn_args()
832
    args.item_id = item_id
833
    args.timestamp = timestamp
834
    args.write(self._oprot)
835
    self._oprot.writeMessageEnd()
836
    self._oprot.trans.flush()
837
 
838
  def recv_retireItemOn(self, ):
839
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
840
    if mtype == TMessageType.EXCEPTION:
841
      x = TApplicationException()
842
      x.read(self._iprot)
843
      self._iprot.readMessageEnd()
844
      raise x
845
    result = retireItemOn_result()
846
    result.read(self._iprot)
847
    self._iprot.readMessageEnd()
848
    if result.cex is not None:
849
      raise result.cex
850
    return
851
 
852
  def changeItemStatus(self, item_id, timestamp, newstatus):
853
    """
854
    Parameters:
855
     - item_id
856
     - timestamp
857
     - newstatus
858
    """
859
    self.send_changeItemStatus(item_id, timestamp, newstatus)
860
    self.recv_changeItemStatus()
861
 
862
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
863
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
864
    args = changeItemStatus_args()
865
    args.item_id = item_id
866
    args.timestamp = timestamp
867
    args.newstatus = newstatus
868
    args.write(self._oprot)
869
    self._oprot.writeMessageEnd()
870
    self._oprot.trans.flush()
871
 
872
  def recv_changeItemStatus(self, ):
873
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
874
    if mtype == TMessageType.EXCEPTION:
875
      x = TApplicationException()
876
      x.read(self._iprot)
877
      self._iprot.readMessageEnd()
878
      raise x
879
    result = changeItemStatus_result()
880
    result.read(self._iprot)
881
    self._iprot.readMessageEnd()
882
    if result.cex is not None:
883
      raise result.cex
884
    return
885
 
886
  def getItem(self, item_id):
887
    """
888
    Parameters:
889
     - item_id
890
    """
891
    self.send_getItem(item_id)
892
    return self.recv_getItem()
893
 
894
  def send_getItem(self, item_id):
895
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
896
    args = getItem_args()
897
    args.item_id = item_id
898
    args.write(self._oprot)
899
    self._oprot.writeMessageEnd()
900
    self._oprot.trans.flush()
901
 
902
  def recv_getItem(self, ):
903
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
904
    if mtype == TMessageType.EXCEPTION:
905
      x = TApplicationException()
906
      x.read(self._iprot)
907
      self._iprot.readMessageEnd()
908
      raise x
909
    result = getItem_result()
910
    result.read(self._iprot)
911
    self._iprot.readMessageEnd()
912
    if result.success is not None:
913
      return result.success
914
    if result.cex is not None:
915
      raise result.cex
916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
917
 
918
  def getItemsByCatalogId(self, catalog_item_id):
919
    """
920
    Parameters:
921
     - catalog_item_id
922
    """
923
    self.send_getItemsByCatalogId(catalog_item_id)
924
    return self.recv_getItemsByCatalogId()
925
 
926
  def send_getItemsByCatalogId(self, catalog_item_id):
927
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
928
    args = getItemsByCatalogId_args()
929
    args.catalog_item_id = catalog_item_id
930
    args.write(self._oprot)
931
    self._oprot.writeMessageEnd()
932
    self._oprot.trans.flush()
933
 
934
  def recv_getItemsByCatalogId(self, ):
935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
936
    if mtype == TMessageType.EXCEPTION:
937
      x = TApplicationException()
938
      x.read(self._iprot)
939
      self._iprot.readMessageEnd()
940
      raise x
941
    result = getItemsByCatalogId_result()
942
    result.read(self._iprot)
943
    self._iprot.readMessageEnd()
944
    if result.success is not None:
945
      return result.success
946
    if result.cex is not None:
947
      raise result.cex
948
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
949
 
950
  def getValidItemsByCatalogId(self, catalog_item_id):
951
    """
952
    Parameters:
953
     - catalog_item_id
954
    """
955
    self.send_getValidItemsByCatalogId(catalog_item_id)
956
    return self.recv_getValidItemsByCatalogId()
957
 
958
  def send_getValidItemsByCatalogId(self, catalog_item_id):
959
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
960
    args = getValidItemsByCatalogId_args()
961
    args.catalog_item_id = catalog_item_id
962
    args.write(self._oprot)
963
    self._oprot.writeMessageEnd()
964
    self._oprot.trans.flush()
965
 
966
  def recv_getValidItemsByCatalogId(self, ):
967
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
968
    if mtype == TMessageType.EXCEPTION:
969
      x = TApplicationException()
970
      x.read(self._iprot)
971
      self._iprot.readMessageEnd()
972
      raise x
973
    result = getValidItemsByCatalogId_result()
974
    result.read(self._iprot)
975
    self._iprot.readMessageEnd()
976
    if result.success is not None:
977
      return result.success
978
    if result.cex is not None:
979
      raise result.cex
980
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
981
 
982
  def getAllItems(self, isActive):
983
    """
984
    Parameters:
985
     - isActive
986
    """
987
    self.send_getAllItems(isActive)
988
    return self.recv_getAllItems()
989
 
990
  def send_getAllItems(self, isActive):
991
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
992
    args = getAllItems_args()
993
    args.isActive = isActive
994
    args.write(self._oprot)
995
    self._oprot.writeMessageEnd()
996
    self._oprot.trans.flush()
997
 
998
  def recv_getAllItems(self, ):
999
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1000
    if mtype == TMessageType.EXCEPTION:
1001
      x = TApplicationException()
1002
      x.read(self._iprot)
1003
      self._iprot.readMessageEnd()
1004
      raise x
1005
    result = getAllItems_result()
1006
    result.read(self._iprot)
1007
    self._iprot.readMessageEnd()
1008
    if result.success is not None:
1009
      return result.success
1010
    if result.cex is not None:
1011
      raise result.cex
1012
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1013
 
1014
  def getAllItemsByStatus(self, itemStatus):
1015
    """
1016
    Parameters:
1017
     - itemStatus
1018
    """
1019
    self.send_getAllItemsByStatus(itemStatus)
1020
    return self.recv_getAllItemsByStatus()
1021
 
1022
  def send_getAllItemsByStatus(self, itemStatus):
1023
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1024
    args = getAllItemsByStatus_args()
1025
    args.itemStatus = itemStatus
1026
    args.write(self._oprot)
1027
    self._oprot.writeMessageEnd()
1028
    self._oprot.trans.flush()
1029
 
1030
  def recv_getAllItemsByStatus(self, ):
1031
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1032
    if mtype == TMessageType.EXCEPTION:
1033
      x = TApplicationException()
1034
      x.read(self._iprot)
1035
      self._iprot.readMessageEnd()
1036
      raise x
1037
    result = getAllItemsByStatus_result()
1038
    result.read(self._iprot)
1039
    self._iprot.readMessageEnd()
1040
    if result.success is not None:
1041
      return result.success
1042
    if result.cex is not None:
1043
      raise result.cex
1044
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1045
 
1046
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1047
    """
1048
    Parameters:
1049
     - entityId
1050
     - category
1051
     - brand
1052
     - modelName
1053
     - modelNumber
1054
    """
1055
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
1056
    return self.recv_markItemAsContentComplete()
1057
 
1058
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1059
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1060
    args = markItemAsContentComplete_args()
1061
    args.entityId = entityId
1062
    args.category = category
1063
    args.brand = brand
1064
    args.modelName = modelName
1065
    args.modelNumber = modelNumber
1066
    args.write(self._oprot)
1067
    self._oprot.writeMessageEnd()
1068
    self._oprot.trans.flush()
1069
 
1070
  def recv_markItemAsContentComplete(self, ):
1071
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1072
    if mtype == TMessageType.EXCEPTION:
1073
      x = TApplicationException()
1074
      x.read(self._iprot)
1075
      self._iprot.readMessageEnd()
1076
      raise x
1077
    result = markItemAsContentComplete_result()
1078
    result.read(self._iprot)
1079
    self._iprot.readMessageEnd()
1080
    if result.success is not None:
1081
      return result.success
1082
    if result.cex is not None:
1083
      raise result.cex
1084
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1085
 
1086
  def getAllItemsInRange(self, offset, limit):
1087
    """
1088
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1089
 
1090
    Parameters:
1091
     - offset
1092
     - limit
1093
    """
1094
    self.send_getAllItemsInRange(offset, limit)
1095
    return self.recv_getAllItemsInRange()
1096
 
1097
  def send_getAllItemsInRange(self, offset, limit):
1098
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1099
    args = getAllItemsInRange_args()
1100
    args.offset = offset
1101
    args.limit = limit
1102
    args.write(self._oprot)
1103
    self._oprot.writeMessageEnd()
1104
    self._oprot.trans.flush()
1105
 
1106
  def recv_getAllItemsInRange(self, ):
1107
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1108
    if mtype == TMessageType.EXCEPTION:
1109
      x = TApplicationException()
1110
      x.read(self._iprot)
1111
      self._iprot.readMessageEnd()
1112
      raise x
1113
    result = getAllItemsInRange_result()
1114
    result.read(self._iprot)
1115
    self._iprot.readMessageEnd()
1116
    if result.success is not None:
1117
      return result.success
1118
    if result.cex is not None:
1119
      raise result.cex
1120
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1121
 
1122
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1123
    """
1124
    Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
1125
 
1126
    Parameters:
1127
     - itemStatus
1128
     - offset
1129
     - limit
1130
    """
1131
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1132
    return self.recv_getAllItemsByStatusInRange()
1133
 
1134
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1135
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1136
    args = getAllItemsByStatusInRange_args()
1137
    args.itemStatus = itemStatus
1138
    args.offset = offset
1139
    args.limit = limit
1140
    args.write(self._oprot)
1141
    self._oprot.writeMessageEnd()
1142
    self._oprot.trans.flush()
1143
 
1144
  def recv_getAllItemsByStatusInRange(self, ):
1145
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1146
    if mtype == TMessageType.EXCEPTION:
1147
      x = TApplicationException()
1148
      x.read(self._iprot)
1149
      self._iprot.readMessageEnd()
1150
      raise x
1151
    result = getAllItemsByStatusInRange_result()
1152
    result.read(self._iprot)
1153
    self._iprot.readMessageEnd()
1154
    if result.success is not None:
1155
      return result.success
1156
    if result.cex is not None:
1157
      raise result.cex
1158
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1159
 
1160
  def getItemCountByStatus(self, useStatus, itemStatus):
1161
    """
1162
    Gets a count of all items by status
1163
 
1164
    Parameters:
1165
     - useStatus
1166
     - itemStatus
1167
    """
1168
    self.send_getItemCountByStatus(useStatus, itemStatus)
1169
    return self.recv_getItemCountByStatus()
1170
 
1171
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1172
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1173
    args = getItemCountByStatus_args()
1174
    args.useStatus = useStatus
1175
    args.itemStatus = itemStatus
1176
    args.write(self._oprot)
1177
    self._oprot.writeMessageEnd()
1178
    self._oprot.trans.flush()
1179
 
1180
  def recv_getItemCountByStatus(self, ):
1181
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1182
    if mtype == TMessageType.EXCEPTION:
1183
      x = TApplicationException()
1184
      x.read(self._iprot)
1185
      self._iprot.readMessageEnd()
1186
      raise x
1187
    result = getItemCountByStatus_result()
1188
    result.read(self._iprot)
1189
    self._iprot.readMessageEnd()
1190
    if result.success is not None:
1191
      return result.success
1192
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1193
 
1194
  def getBestSellers(self, ):
1195
    self.send_getBestSellers()
1196
    return self.recv_getBestSellers()
1197
 
1198
  def send_getBestSellers(self, ):
1199
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1200
    args = getBestSellers_args()
1201
    args.write(self._oprot)
1202
    self._oprot.writeMessageEnd()
1203
    self._oprot.trans.flush()
1204
 
1205
  def recv_getBestSellers(self, ):
1206
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1207
    if mtype == TMessageType.EXCEPTION:
1208
      x = TApplicationException()
1209
      x.read(self._iprot)
1210
      self._iprot.readMessageEnd()
1211
      raise x
1212
    result = getBestSellers_result()
1213
    result.read(self._iprot)
1214
    self._iprot.readMessageEnd()
1215
    if result.success is not None:
1216
      return result.success
1217
    if result.isex is not None:
1218
      raise result.isex
1219
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1220
 
1221
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1222
    """
1223
    Parameters:
1224
     - beginIndex
1225
     - totalItems
1226
     - brand
1227
     - category
1228
    """
1229
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1230
    return self.recv_getBestSellersCatalogIds()
1231
 
1232
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1233
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1234
    args = getBestSellersCatalogIds_args()
1235
    args.beginIndex = beginIndex
1236
    args.totalItems = totalItems
1237
    args.brand = brand
1238
    args.category = category
1239
    args.write(self._oprot)
1240
    self._oprot.writeMessageEnd()
1241
    self._oprot.trans.flush()
1242
 
1243
  def recv_getBestSellersCatalogIds(self, ):
1244
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1245
    if mtype == TMessageType.EXCEPTION:
1246
      x = TApplicationException()
1247
      x.read(self._iprot)
1248
      self._iprot.readMessageEnd()
1249
      raise x
1250
    result = getBestSellersCatalogIds_result()
1251
    result.read(self._iprot)
1252
    self._iprot.readMessageEnd()
1253
    if result.success is not None:
1254
      return result.success
1255
    if result.cex is not None:
1256
      raise result.cex
1257
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1258
 
1259
  def getBestSellersCount(self, ):
1260
    self.send_getBestSellersCount()
1261
    return self.recv_getBestSellersCount()
1262
 
1263
  def send_getBestSellersCount(self, ):
1264
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1265
    args = getBestSellersCount_args()
1266
    args.write(self._oprot)
1267
    self._oprot.writeMessageEnd()
1268
    self._oprot.trans.flush()
1269
 
1270
  def recv_getBestSellersCount(self, ):
1271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1272
    if mtype == TMessageType.EXCEPTION:
1273
      x = TApplicationException()
1274
      x.read(self._iprot)
1275
      self._iprot.readMessageEnd()
1276
      raise x
1277
    result = getBestSellersCount_result()
1278
    result.read(self._iprot)
1279
    self._iprot.readMessageEnd()
1280
    if result.success is not None:
1281
      return result.success
1282
    if result.cex is not None:
1283
      raise result.cex
1284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1285
 
1286
  def getBestDeals(self, ):
1287
    self.send_getBestDeals()
1288
    return self.recv_getBestDeals()
1289
 
1290
  def send_getBestDeals(self, ):
1291
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1292
    args = getBestDeals_args()
1293
    args.write(self._oprot)
1294
    self._oprot.writeMessageEnd()
1295
    self._oprot.trans.flush()
1296
 
1297
  def recv_getBestDeals(self, ):
1298
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1299
    if mtype == TMessageType.EXCEPTION:
1300
      x = TApplicationException()
1301
      x.read(self._iprot)
1302
      self._iprot.readMessageEnd()
1303
      raise x
1304
    result = getBestDeals_result()
1305
    result.read(self._iprot)
1306
    self._iprot.readMessageEnd()
1307
    if result.success is not None:
1308
      return result.success
1309
    if result.isex is not None:
1310
      raise result.isex
1311
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1312
 
1313
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1314
    """
1315
    Parameters:
1316
     - beginIndex
1317
     - totalItems
1318
     - brand
1319
     - category
1320
    """
1321
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1322
    return self.recv_getBestDealsCatalogIds()
1323
 
1324
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1325
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1326
    args = getBestDealsCatalogIds_args()
1327
    args.beginIndex = beginIndex
1328
    args.totalItems = totalItems
1329
    args.brand = brand
1330
    args.category = category
1331
    args.write(self._oprot)
1332
    self._oprot.writeMessageEnd()
1333
    self._oprot.trans.flush()
1334
 
1335
  def recv_getBestDealsCatalogIds(self, ):
1336
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1337
    if mtype == TMessageType.EXCEPTION:
1338
      x = TApplicationException()
1339
      x.read(self._iprot)
1340
      self._iprot.readMessageEnd()
1341
      raise x
1342
    result = getBestDealsCatalogIds_result()
1343
    result.read(self._iprot)
1344
    self._iprot.readMessageEnd()
1345
    if result.success is not None:
1346
      return result.success
1347
    if result.cex is not None:
1348
      raise result.cex
1349
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1350
 
1351
  def getBestDealsCount(self, ):
1352
    self.send_getBestDealsCount()
1353
    return self.recv_getBestDealsCount()
1354
 
1355
  def send_getBestDealsCount(self, ):
1356
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1357
    args = getBestDealsCount_args()
1358
    args.write(self._oprot)
1359
    self._oprot.writeMessageEnd()
1360
    self._oprot.trans.flush()
1361
 
1362
  def recv_getBestDealsCount(self, ):
1363
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1364
    if mtype == TMessageType.EXCEPTION:
1365
      x = TApplicationException()
1366
      x.read(self._iprot)
1367
      self._iprot.readMessageEnd()
1368
      raise x
1369
    result = getBestDealsCount_result()
1370
    result.read(self._iprot)
1371
    self._iprot.readMessageEnd()
1372
    if result.success is not None:
1373
      return result.success
1374
    if result.cex is not None:
1375
      raise result.cex
1376
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1377
 
1378
  def getComingSoon(self, ):
1379
    self.send_getComingSoon()
1380
    return self.recv_getComingSoon()
1381
 
1382
  def send_getComingSoon(self, ):
1383
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1384
    args = getComingSoon_args()
1385
    args.write(self._oprot)
1386
    self._oprot.writeMessageEnd()
1387
    self._oprot.trans.flush()
1388
 
1389
  def recv_getComingSoon(self, ):
1390
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1391
    if mtype == TMessageType.EXCEPTION:
1392
      x = TApplicationException()
1393
      x.read(self._iprot)
1394
      self._iprot.readMessageEnd()
1395
      raise x
1396
    result = getComingSoon_result()
1397
    result.read(self._iprot)
1398
    self._iprot.readMessageEnd()
1399
    if result.success is not None:
1400
      return result.success
1401
    if result.isex is not None:
1402
      raise result.isex
1403
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1404
 
1405
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1406
    """
1407
    Parameters:
1408
     - beginIndex
1409
     - totalItems
1410
     - brand
1411
     - category
1412
    """
1413
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1414
    return self.recv_getComingSoonCatalogIds()
1415
 
1416
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1417
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1418
    args = getComingSoonCatalogIds_args()
1419
    args.beginIndex = beginIndex
1420
    args.totalItems = totalItems
1421
    args.brand = brand
1422
    args.category = category
1423
    args.write(self._oprot)
1424
    self._oprot.writeMessageEnd()
1425
    self._oprot.trans.flush()
1426
 
1427
  def recv_getComingSoonCatalogIds(self, ):
1428
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1429
    if mtype == TMessageType.EXCEPTION:
1430
      x = TApplicationException()
1431
      x.read(self._iprot)
1432
      self._iprot.readMessageEnd()
1433
      raise x
1434
    result = getComingSoonCatalogIds_result()
1435
    result.read(self._iprot)
1436
    self._iprot.readMessageEnd()
1437
    if result.success is not None:
1438
      return result.success
1439
    if result.cex is not None:
1440
      raise result.cex
1441
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1442
 
1443
  def getComingSoonCount(self, ):
1444
    self.send_getComingSoonCount()
1445
    return self.recv_getComingSoonCount()
1446
 
1447
  def send_getComingSoonCount(self, ):
1448
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1449
    args = getComingSoonCount_args()
1450
    args.write(self._oprot)
1451
    self._oprot.writeMessageEnd()
1452
    self._oprot.trans.flush()
1453
 
1454
  def recv_getComingSoonCount(self, ):
1455
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1456
    if mtype == TMessageType.EXCEPTION:
1457
      x = TApplicationException()
1458
      x.read(self._iprot)
1459
      self._iprot.readMessageEnd()
1460
      raise x
1461
    result = getComingSoonCount_result()
1462
    result.read(self._iprot)
1463
    self._iprot.readMessageEnd()
1464
    if result.success is not None:
1465
      return result.success
1466
    if result.cex is not None:
1467
      raise result.cex
1468
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1469
 
1470
  def getLatestArrivals(self, ):
1471
    """
1472
    Returns a list of items sorted in the descending order by start date.
1473
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1474
    """
1475
    self.send_getLatestArrivals()
1476
    return self.recv_getLatestArrivals()
1477
 
1478
  def send_getLatestArrivals(self, ):
1479
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1480
    args = getLatestArrivals_args()
1481
    args.write(self._oprot)
1482
    self._oprot.writeMessageEnd()
1483
    self._oprot.trans.flush()
1484
 
1485
  def recv_getLatestArrivals(self, ):
1486
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1487
    if mtype == TMessageType.EXCEPTION:
1488
      x = TApplicationException()
1489
      x.read(self._iprot)
1490
      self._iprot.readMessageEnd()
1491
      raise x
1492
    result = getLatestArrivals_result()
1493
    result.read(self._iprot)
1494
    self._iprot.readMessageEnd()
1495
    if result.success is not None:
1496
      return result.success
1497
    if result.isex is not None:
1498
      raise result.isex
1499
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1500
 
1501
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1502
    """
1503
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1504
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1505
 
1506
    Parameters:
1507
     - beginIndex
1508
     - totalItems
1509
     - brand
1510
     - categories
1511
    """
1512
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1513
    return self.recv_getLatestArrivalsCatalogIds()
1514
 
1515
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1516
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1517
    args = getLatestArrivalsCatalogIds_args()
1518
    args.beginIndex = beginIndex
1519
    args.totalItems = totalItems
1520
    args.brand = brand
1521
    args.categories = categories
1522
    args.write(self._oprot)
1523
    self._oprot.writeMessageEnd()
1524
    self._oprot.trans.flush()
1525
 
1526
  def recv_getLatestArrivalsCatalogIds(self, ):
1527
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1528
    if mtype == TMessageType.EXCEPTION:
1529
      x = TApplicationException()
1530
      x.read(self._iprot)
1531
      self._iprot.readMessageEnd()
1532
      raise x
1533
    result = getLatestArrivalsCatalogIds_result()
1534
    result.read(self._iprot)
1535
    self._iprot.readMessageEnd()
1536
    if result.success is not None:
1537
      return result.success
1538
    if result.cex is not None:
1539
      raise result.cex
1540
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1541
 
1542
  def getLatestArrivalsCount(self, ):
1543
    """
1544
    Get the total number of latest arrivals we are willing to show.
1545
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1546
    """
1547
    self.send_getLatestArrivalsCount()
1548
    return self.recv_getLatestArrivalsCount()
1549
 
1550
  def send_getLatestArrivalsCount(self, ):
1551
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1552
    args = getLatestArrivalsCount_args()
1553
    args.write(self._oprot)
1554
    self._oprot.writeMessageEnd()
1555
    self._oprot.trans.flush()
1556
 
1557
  def recv_getLatestArrivalsCount(self, ):
1558
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1559
    if mtype == TMessageType.EXCEPTION:
1560
      x = TApplicationException()
1561
      x.read(self._iprot)
1562
      self._iprot.readMessageEnd()
1563
      raise x
1564
    result = getLatestArrivalsCount_result()
1565
    result.read(self._iprot)
1566
    self._iprot.readMessageEnd()
1567
    if result.success is not None:
1568
      return result.success
1569
    if result.cex is not None:
1570
      raise result.cex
1571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1572
 
1573
  def generateNewEntityID(self, ):
1574
    self.send_generateNewEntityID()
1575
    return self.recv_generateNewEntityID()
1576
 
1577
  def send_generateNewEntityID(self, ):
1578
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1579
    args = generateNewEntityID_args()
1580
    args.write(self._oprot)
1581
    self._oprot.writeMessageEnd()
1582
    self._oprot.trans.flush()
1583
 
1584
  def recv_generateNewEntityID(self, ):
1585
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1586
    if mtype == TMessageType.EXCEPTION:
1587
      x = TApplicationException()
1588
      x.read(self._iprot)
1589
      self._iprot.readMessageEnd()
1590
      raise x
1591
    result = generateNewEntityID_result()
1592
    result.read(self._iprot)
1593
    self._iprot.readMessageEnd()
1594
    if result.success is not None:
1595
      return result.success
1596
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1597
 
1598
  def addCategory(self, category):
1599
    """
1600
    All category related functions
1601
 
1602
    Parameters:
1603
     - category
1604
    """
1605
    self.send_addCategory(category)
1606
    return self.recv_addCategory()
1607
 
1608
  def send_addCategory(self, category):
1609
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1610
    args = addCategory_args()
1611
    args.category = category
1612
    args.write(self._oprot)
1613
    self._oprot.writeMessageEnd()
1614
    self._oprot.trans.flush()
1615
 
1616
  def recv_addCategory(self, ):
1617
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1618
    if mtype == TMessageType.EXCEPTION:
1619
      x = TApplicationException()
1620
      x.read(self._iprot)
1621
      self._iprot.readMessageEnd()
1622
      raise x
1623
    result = addCategory_result()
1624
    result.read(self._iprot)
1625
    self._iprot.readMessageEnd()
1626
    if result.success is not None:
1627
      return result.success
1628
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1629
 
1630
  def getCategory(self, id):
1631
    """
1632
    Parameters:
1633
     - id
1634
    """
1635
    self.send_getCategory(id)
1636
    return self.recv_getCategory()
1637
 
1638
  def send_getCategory(self, id):
1639
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1640
    args = getCategory_args()
1641
    args.id = id
1642
    args.write(self._oprot)
1643
    self._oprot.writeMessageEnd()
1644
    self._oprot.trans.flush()
1645
 
1646
  def recv_getCategory(self, ):
1647
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1648
    if mtype == TMessageType.EXCEPTION:
1649
      x = TApplicationException()
1650
      x.read(self._iprot)
1651
      self._iprot.readMessageEnd()
1652
      raise x
1653
    result = getCategory_result()
1654
    result.read(self._iprot)
1655
    self._iprot.readMessageEnd()
1656
    if result.success is not None:
1657
      return result.success
1658
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1659
 
1660
  def getAllCategories(self, ):
1661
    self.send_getAllCategories()
1662
    return self.recv_getAllCategories()
1663
 
1664
  def send_getAllCategories(self, ):
1665
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1666
    args = getAllCategories_args()
1667
    args.write(self._oprot)
1668
    self._oprot.writeMessageEnd()
1669
    self._oprot.trans.flush()
1670
 
1671
  def recv_getAllCategories(self, ):
1672
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1673
    if mtype == TMessageType.EXCEPTION:
1674
      x = TApplicationException()
1675
      x.read(self._iprot)
1676
      self._iprot.readMessageEnd()
1677
      raise x
1678
    result = getAllCategories_result()
1679
    result.read(self._iprot)
1680
    self._iprot.readMessageEnd()
1681
    if result.success is not None:
1682
      return result.success
1683
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1684
 
1685
  def getAllSimilarItems(self, itemId):
1686
    """
1687
    Returns the list of similar items.
1688
 
1689
    Parameters:
1690
     - itemId
1691
    """
1692
    self.send_getAllSimilarItems(itemId)
1693
    return self.recv_getAllSimilarItems()
1694
 
1695
  def send_getAllSimilarItems(self, itemId):
1696
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1697
    args = getAllSimilarItems_args()
1698
    args.itemId = itemId
1699
    args.write(self._oprot)
1700
    self._oprot.writeMessageEnd()
1701
    self._oprot.trans.flush()
1702
 
1703
  def recv_getAllSimilarItems(self, ):
1704
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1705
    if mtype == TMessageType.EXCEPTION:
1706
      x = TApplicationException()
1707
      x.read(self._iprot)
1708
      self._iprot.readMessageEnd()
1709
      raise x
1710
    result = getAllSimilarItems_result()
1711
    result.read(self._iprot)
1712
    self._iprot.readMessageEnd()
1713
    if result.success is not None:
1714
      return result.success
1715
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1716
 
1717
  def addSimilarItem(self, itemId, catalogItemId):
1718
    """
1719
    Adds similar item.
1720
 
1721
    Parameters:
1722
     - itemId
1723
     - catalogItemId
1724
    """
1725
    self.send_addSimilarItem(itemId, catalogItemId)
1726
    return self.recv_addSimilarItem()
1727
 
1728
  def send_addSimilarItem(self, itemId, catalogItemId):
1729
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1730
    args = addSimilarItem_args()
1731
    args.itemId = itemId
1732
    args.catalogItemId = catalogItemId
1733
    args.write(self._oprot)
1734
    self._oprot.writeMessageEnd()
1735
    self._oprot.trans.flush()
1736
 
1737
  def recv_addSimilarItem(self, ):
1738
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1739
    if mtype == TMessageType.EXCEPTION:
1740
      x = TApplicationException()
1741
      x.read(self._iprot)
1742
      self._iprot.readMessageEnd()
1743
      raise x
1744
    result = addSimilarItem_result()
1745
    result.read(self._iprot)
1746
    self._iprot.readMessageEnd()
1747
    if result.success is not None:
1748
      return result.success
1749
    if result.cex is not None:
1750
      raise result.cex
1751
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1752
 
6512 kshitij.so 1753
  def addTag(self, displayName, itemId):
1754
    """
1755
    Tag Related
1756
 
1757
    Parameters:
1758
     - displayName
1759
     - itemId
1760
    """
1761
    self.send_addTag(displayName, itemId)
1762
    return self.recv_addTag()
1763
 
1764
  def send_addTag(self, displayName, itemId):
1765
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1766
    args = addTag_args()
1767
    args.displayName = displayName
1768
    args.itemId = itemId
1769
    args.write(self._oprot)
1770
    self._oprot.writeMessageEnd()
1771
    self._oprot.trans.flush()
1772
 
1773
  def recv_addTag(self, ):
1774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1775
    if mtype == TMessageType.EXCEPTION:
1776
      x = TApplicationException()
1777
      x.read(self._iprot)
1778
      self._iprot.readMessageEnd()
1779
      raise x
1780
    result = addTag_result()
1781
    result.read(self._iprot)
1782
    self._iprot.readMessageEnd()
1783
    if result.success is not None:
1784
      return result.success
1785
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1786
 
1787
  def deleteEntityTag(self, displayName, itemId):
1788
    """
1789
    Parameters:
1790
     - displayName
1791
     - itemId
1792
    """
1793
    self.send_deleteEntityTag(displayName, itemId)
1794
    return self.recv_deleteEntityTag()
1795
 
1796
  def send_deleteEntityTag(self, displayName, itemId):
1797
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1798
    args = deleteEntityTag_args()
1799
    args.displayName = displayName
1800
    args.itemId = itemId
1801
    args.write(self._oprot)
1802
    self._oprot.writeMessageEnd()
1803
    self._oprot.trans.flush()
1804
 
1805
  def recv_deleteEntityTag(self, ):
1806
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1807
    if mtype == TMessageType.EXCEPTION:
1808
      x = TApplicationException()
1809
      x.read(self._iprot)
1810
      self._iprot.readMessageEnd()
1811
      raise x
1812
    result = deleteEntityTag_result()
1813
    result.read(self._iprot)
1814
    self._iprot.readMessageEnd()
1815
    if result.success is not None:
1816
      return result.success
1817
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1818
 
1819
  def deleteTag(self, displayName):
1820
    """
1821
    Parameters:
1822
     - displayName
1823
    """
1824
    self.send_deleteTag(displayName)
1825
    return self.recv_deleteTag()
1826
 
1827
  def send_deleteTag(self, displayName):
1828
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1829
    args = deleteTag_args()
1830
    args.displayName = displayName
1831
    args.write(self._oprot)
1832
    self._oprot.writeMessageEnd()
1833
    self._oprot.trans.flush()
1834
 
1835
  def recv_deleteTag(self, ):
1836
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1837
    if mtype == TMessageType.EXCEPTION:
1838
      x = TApplicationException()
1839
      x.read(self._iprot)
1840
      self._iprot.readMessageEnd()
1841
      raise x
1842
    result = deleteTag_result()
1843
    result.read(self._iprot)
1844
    self._iprot.readMessageEnd()
1845
    if result.success is not None:
1846
      return result.success
1847
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1848
 
1849
  def getAllTags(self, ):
1850
    self.send_getAllTags()
1851
    return self.recv_getAllTags()
1852
 
1853
  def send_getAllTags(self, ):
1854
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1855
    args = getAllTags_args()
1856
    args.write(self._oprot)
1857
    self._oprot.writeMessageEnd()
1858
    self._oprot.trans.flush()
1859
 
1860
  def recv_getAllTags(self, ):
1861
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1862
    if mtype == TMessageType.EXCEPTION:
1863
      x = TApplicationException()
1864
      x.read(self._iprot)
1865
      self._iprot.readMessageEnd()
1866
      raise x
1867
    result = getAllTags_result()
1868
    result.read(self._iprot)
1869
    self._iprot.readMessageEnd()
1870
    if result.success is not None:
1871
      return result.success
1872
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1873
 
1874
  def getAllEntitiesByTagName(self, displayName):
1875
    """
1876
    Parameters:
1877
     - displayName
1878
    """
1879
    self.send_getAllEntitiesByTagName(displayName)
1880
    return self.recv_getAllEntitiesByTagName()
1881
 
1882
  def send_getAllEntitiesByTagName(self, displayName):
1883
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1884
    args = getAllEntitiesByTagName_args()
1885
    args.displayName = displayName
1886
    args.write(self._oprot)
1887
    self._oprot.writeMessageEnd()
1888
    self._oprot.trans.flush()
1889
 
1890
  def recv_getAllEntitiesByTagName(self, ):
1891
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1892
    if mtype == TMessageType.EXCEPTION:
1893
      x = TApplicationException()
1894
      x.read(self._iprot)
1895
      self._iprot.readMessageEnd()
1896
      raise x
1897
    result = getAllEntitiesByTagName_result()
1898
    result.read(self._iprot)
1899
    self._iprot.readMessageEnd()
1900
    if result.success is not None:
1901
      return result.success
1902
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1903
 
6845 amit.gupta 1904
  def getAllEntityTags(self, ):
1905
    self.send_getAllEntityTags()
1906
    return self.recv_getAllEntityTags()
1907
 
1908
  def send_getAllEntityTags(self, ):
1909
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
1910
    args = getAllEntityTags_args()
1911
    args.write(self._oprot)
1912
    self._oprot.writeMessageEnd()
1913
    self._oprot.trans.flush()
1914
 
1915
  def recv_getAllEntityTags(self, ):
1916
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1917
    if mtype == TMessageType.EXCEPTION:
1918
      x = TApplicationException()
1919
      x.read(self._iprot)
1920
      self._iprot.readMessageEnd()
1921
      raise x
1922
    result = getAllEntityTags_result()
1923
    result.read(self._iprot)
1924
    self._iprot.readMessageEnd()
1925
    if result.success is not None:
1926
      return result.success
1927
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1928
 
6850 kshitij.so 1929
  def addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1930
    """
1931
    Parameters:
1932
     - bannerName
1933
     - imageName
1934
     - link
1935
     - priority
1936
     - isActive
1937
     - hasMap
1938
    """
1939
    self.send_addBanner(bannerName, imageName, link, priority, isActive, hasMap)
1940
    return self.recv_addBanner()
1941
 
1942
  def send_addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1943
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
1944
    args = addBanner_args()
1945
    args.bannerName = bannerName
1946
    args.imageName = imageName
1947
    args.link = link
1948
    args.priority = priority
1949
    args.isActive = isActive
1950
    args.hasMap = hasMap
1951
    args.write(self._oprot)
1952
    self._oprot.writeMessageEnd()
1953
    self._oprot.trans.flush()
1954
 
1955
  def recv_addBanner(self, ):
1956
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1957
    if mtype == TMessageType.EXCEPTION:
1958
      x = TApplicationException()
1959
      x.read(self._iprot)
1960
      self._iprot.readMessageEnd()
1961
      raise x
1962
    result = addBanner_result()
1963
    result.read(self._iprot)
1964
    self._iprot.readMessageEnd()
1965
    if result.success is not None:
1966
      return result.success
1967
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
1968
 
1969
  def getAllBanners(self, ):
1970
    self.send_getAllBanners()
1971
    return self.recv_getAllBanners()
1972
 
1973
  def send_getAllBanners(self, ):
1974
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
1975
    args = getAllBanners_args()
1976
    args.write(self._oprot)
1977
    self._oprot.writeMessageEnd()
1978
    self._oprot.trans.flush()
1979
 
1980
  def recv_getAllBanners(self, ):
1981
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1982
    if mtype == TMessageType.EXCEPTION:
1983
      x = TApplicationException()
1984
      x.read(self._iprot)
1985
      self._iprot.readMessageEnd()
1986
      raise x
1987
    result = getAllBanners_result()
1988
    result.read(self._iprot)
1989
    self._iprot.readMessageEnd()
1990
    if result.success is not None:
1991
      return result.success
1992
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
1993
 
1994
  def deleteBanner(self, bannerName):
1995
    """
1996
    Parameters:
1997
     - bannerName
1998
    """
1999
    self.send_deleteBanner(bannerName)
2000
    return self.recv_deleteBanner()
2001
 
2002
  def send_deleteBanner(self, bannerName):
2003
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2004
    args = deleteBanner_args()
2005
    args.bannerName = bannerName
2006
    args.write(self._oprot)
2007
    self._oprot.writeMessageEnd()
2008
    self._oprot.trans.flush()
2009
 
2010
  def recv_deleteBanner(self, ):
2011
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2012
    if mtype == TMessageType.EXCEPTION:
2013
      x = TApplicationException()
2014
      x.read(self._iprot)
2015
      self._iprot.readMessageEnd()
2016
      raise x
2017
    result = deleteBanner_result()
2018
    result.read(self._iprot)
2019
    self._iprot.readMessageEnd()
2020
    if result.success is not None:
2021
      return result.success
2022
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2023
 
2024
  def getBannerDetails(self, bannerName):
2025
    """
2026
    Parameters:
2027
     - bannerName
2028
    """
2029
    self.send_getBannerDetails(bannerName)
2030
    return self.recv_getBannerDetails()
2031
 
2032
  def send_getBannerDetails(self, bannerName):
2033
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2034
    args = getBannerDetails_args()
2035
    args.bannerName = bannerName
2036
    args.write(self._oprot)
2037
    self._oprot.writeMessageEnd()
2038
    self._oprot.trans.flush()
2039
 
2040
  def recv_getBannerDetails(self, ):
2041
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2042
    if mtype == TMessageType.EXCEPTION:
2043
      x = TApplicationException()
2044
      x.read(self._iprot)
2045
      self._iprot.readMessageEnd()
2046
      raise x
2047
    result = getBannerDetails_result()
2048
    result.read(self._iprot)
2049
    self._iprot.readMessageEnd()
2050
    if result.success is not None:
2051
      return result.success
2052
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2053
 
2054
  def getActiveBanners(self, ):
2055
    self.send_getActiveBanners()
2056
    return self.recv_getActiveBanners()
2057
 
2058
  def send_getActiveBanners(self, ):
2059
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2060
    args = getActiveBanners_args()
2061
    args.write(self._oprot)
2062
    self._oprot.writeMessageEnd()
2063
    self._oprot.trans.flush()
2064
 
2065
  def recv_getActiveBanners(self, ):
2066
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2067
    if mtype == TMessageType.EXCEPTION:
2068
      x = TApplicationException()
2069
      x.read(self._iprot)
2070
      self._iprot.readMessageEnd()
2071
      raise x
2072
    result = getActiveBanners_result()
2073
    result.read(self._iprot)
2074
    self._iprot.readMessageEnd()
2075
    if result.success is not None:
2076
      return result.success
2077
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2078
 
6849 kshitij.so 2079
  def addBannerMap(self, bannerName, mapLink, coordinates):
2080
    """
2081
    Parameters:
2082
     - bannerName
2083
     - mapLink
2084
     - coordinates
2085
    """
2086
    self.send_addBannerMap(bannerName, mapLink, coordinates)
2087
    return self.recv_addBannerMap()
2088
 
2089
  def send_addBannerMap(self, bannerName, mapLink, coordinates):
2090
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2091
    args = addBannerMap_args()
2092
    args.bannerName = bannerName
2093
    args.mapLink = mapLink
2094
    args.coordinates = coordinates
2095
    args.write(self._oprot)
2096
    self._oprot.writeMessageEnd()
2097
    self._oprot.trans.flush()
2098
 
2099
  def recv_addBannerMap(self, ):
2100
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2101
    if mtype == TMessageType.EXCEPTION:
2102
      x = TApplicationException()
2103
      x.read(self._iprot)
2104
      self._iprot.readMessageEnd()
2105
      raise x
2106
    result = addBannerMap_result()
2107
    result.read(self._iprot)
2108
    self._iprot.readMessageEnd()
2109
    if result.success is not None:
2110
      return result.success
2111
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2112
 
2113
  def deleteBannerMap(self, bannerName):
2114
    """
2115
    Parameters:
2116
     - bannerName
2117
    """
2118
    self.send_deleteBannerMap(bannerName)
2119
    return self.recv_deleteBannerMap()
2120
 
2121
  def send_deleteBannerMap(self, bannerName):
2122
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2123
    args = deleteBannerMap_args()
2124
    args.bannerName = bannerName
2125
    args.write(self._oprot)
2126
    self._oprot.writeMessageEnd()
2127
    self._oprot.trans.flush()
2128
 
2129
  def recv_deleteBannerMap(self, ):
2130
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2131
    if mtype == TMessageType.EXCEPTION:
2132
      x = TApplicationException()
2133
      x.read(self._iprot)
2134
      self._iprot.readMessageEnd()
2135
      raise x
2136
    result = deleteBannerMap_result()
2137
    result.read(self._iprot)
2138
    self._iprot.readMessageEnd()
2139
    if result.success is not None:
2140
      return result.success
2141
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2142
 
2143
  def getBannerMapDetails(self, bannerName):
2144
    """
2145
    Parameters:
2146
     - bannerName
2147
    """
2148
    self.send_getBannerMapDetails(bannerName)
2149
    return self.recv_getBannerMapDetails()
2150
 
2151
  def send_getBannerMapDetails(self, bannerName):
2152
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2153
    args = getBannerMapDetails_args()
2154
    args.bannerName = bannerName
2155
    args.write(self._oprot)
2156
    self._oprot.writeMessageEnd()
2157
    self._oprot.trans.flush()
2158
 
2159
  def recv_getBannerMapDetails(self, ):
2160
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2161
    if mtype == TMessageType.EXCEPTION:
2162
      x = TApplicationException()
2163
      x.read(self._iprot)
2164
      self._iprot.readMessageEnd()
2165
      raise x
2166
    result = getBannerMapDetails_result()
2167
    result.read(self._iprot)
2168
    self._iprot.readMessageEnd()
2169
    if result.success is not None:
2170
      return result.success
2171
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2172
 
5944 mandeep.dh 2173
  def deleteSimilarItem(self, itemId, catalogItemId):
2174
    """
2175
    Delete similar item.
2176
 
2177
    Parameters:
2178
     - itemId
2179
     - catalogItemId
2180
    """
2181
    self.send_deleteSimilarItem(itemId, catalogItemId)
2182
    return self.recv_deleteSimilarItem()
2183
 
2184
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2185
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2186
    args = deleteSimilarItem_args()
2187
    args.itemId = itemId
2188
    args.catalogItemId = catalogItemId
2189
    args.write(self._oprot)
2190
    self._oprot.writeMessageEnd()
2191
    self._oprot.trans.flush()
2192
 
2193
  def recv_deleteSimilarItem(self, ):
2194
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2195
    if mtype == TMessageType.EXCEPTION:
2196
      x = TApplicationException()
2197
      x.read(self._iprot)
2198
      self._iprot.readMessageEnd()
2199
      raise x
2200
    result = deleteSimilarItem_result()
2201
    result.read(self._iprot)
2202
    self._iprot.readMessageEnd()
2203
    if result.success is not None:
2204
      return result.success
2205
    if result.cex is not None:
2206
      raise result.cex
2207
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2208
 
2209
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2210
    """
2211
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2212
    If yes, returns the itemId else returns 0
2213
 
2214
    Parameters:
2215
     - brand
2216
     - modelNumber
2217
     - modelName
2218
     - color
2219
    """
2220
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2221
    return self.recv_checkSimilarItem()
2222
 
2223
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2224
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2225
    args = checkSimilarItem_args()
2226
    args.brand = brand
2227
    args.modelNumber = modelNumber
2228
    args.modelName = modelName
2229
    args.color = color
2230
    args.write(self._oprot)
2231
    self._oprot.writeMessageEnd()
2232
    self._oprot.trans.flush()
2233
 
2234
  def recv_checkSimilarItem(self, ):
2235
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2236
    if mtype == TMessageType.EXCEPTION:
2237
      x = TApplicationException()
2238
      x.read(self._iprot)
2239
      self._iprot.readMessageEnd()
2240
      raise x
2241
    result = checkSimilarItem_result()
2242
    result.read(self._iprot)
2243
    self._iprot.readMessageEnd()
2244
    if result.success is not None:
2245
      return result.success
2246
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2247
 
2248
  def validateRiskyStatus(self, itemId):
2249
    """
2250
    Check wether item is risky and change status if inventory is not available for risky items
2251
 
2252
    Parameters:
2253
     - itemId
2254
    """
2255
    self.send_validateRiskyStatus(itemId)
2256
    self.recv_validateRiskyStatus()
2257
 
2258
  def send_validateRiskyStatus(self, itemId):
2259
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
2260
    args = validateRiskyStatus_args()
2261
    args.itemId = itemId
2262
    args.write(self._oprot)
2263
    self._oprot.writeMessageEnd()
2264
    self._oprot.trans.flush()
2265
 
2266
  def recv_validateRiskyStatus(self, ):
2267
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2268
    if mtype == TMessageType.EXCEPTION:
2269
      x = TApplicationException()
2270
      x.read(self._iprot)
2271
      self._iprot.readMessageEnd()
2272
      raise x
2273
    result = validateRiskyStatus_result()
2274
    result.read(self._iprot)
2275
    self._iprot.readMessageEnd()
2276
    return
2277
 
2278
  def changeItemRiskyFlag(self, itemId, risky):
2279
    """
2280
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
2281
 
2282
    Parameters:
2283
     - itemId
2284
     - risky
2285
    """
2286
    self.send_changeItemRiskyFlag(itemId, risky)
2287
    self.recv_changeItemRiskyFlag()
2288
 
2289
  def send_changeItemRiskyFlag(self, itemId, risky):
2290
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
2291
    args = changeItemRiskyFlag_args()
2292
    args.itemId = itemId
2293
    args.risky = risky
2294
    args.write(self._oprot)
2295
    self._oprot.writeMessageEnd()
2296
    self._oprot.trans.flush()
2297
 
2298
  def recv_changeItemRiskyFlag(self, ):
2299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2300
    if mtype == TMessageType.EXCEPTION:
2301
      x = TApplicationException()
2302
      x.read(self._iprot)
2303
      self._iprot.readMessageEnd()
2304
      raise x
2305
    result = changeItemRiskyFlag_result()
2306
    result.read(self._iprot)
2307
    self._iprot.readMessageEnd()
2308
    return
2309
 
2310
  def getItemsByRiskyFlag(self, ):
2311
    """
2312
    Returns list of items marked as risky.
2313
    """
2314
    self.send_getItemsByRiskyFlag()
2315
    return self.recv_getItemsByRiskyFlag()
2316
 
2317
  def send_getItemsByRiskyFlag(self, ):
2318
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2319
    args = getItemsByRiskyFlag_args()
2320
    args.write(self._oprot)
2321
    self._oprot.writeMessageEnd()
2322
    self._oprot.trans.flush()
2323
 
2324
  def recv_getItemsByRiskyFlag(self, ):
2325
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2326
    if mtype == TMessageType.EXCEPTION:
2327
      x = TApplicationException()
2328
      x.read(self._iprot)
2329
      self._iprot.readMessageEnd()
2330
      raise x
2331
    result = getItemsByRiskyFlag_result()
2332
    result.read(self._iprot)
2333
    self._iprot.readMessageEnd()
2334
    if result.success is not None:
2335
      return result.success
2336
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2337
 
2338
  def getItemsForMasterSheet(self, category, brand):
2339
    """
2340
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2341
 
2342
    Parameters:
2343
     - category
2344
     - brand
2345
    """
2346
    self.send_getItemsForMasterSheet(category, brand)
2347
    return self.recv_getItemsForMasterSheet()
2348
 
2349
  def send_getItemsForMasterSheet(self, category, brand):
2350
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2351
    args = getItemsForMasterSheet_args()
2352
    args.category = category
2353
    args.brand = brand
2354
    args.write(self._oprot)
2355
    self._oprot.writeMessageEnd()
2356
    self._oprot.trans.flush()
2357
 
2358
  def recv_getItemsForMasterSheet(self, ):
2359
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2360
    if mtype == TMessageType.EXCEPTION:
2361
      x = TApplicationException()
2362
      x.read(self._iprot)
2363
      self._iprot.readMessageEnd()
2364
      raise x
2365
    result = getItemsForMasterSheet_result()
2366
    result.read(self._iprot)
2367
    self._iprot.readMessageEnd()
2368
    if result.success is not None:
2369
      return result.success
2370
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2371
 
2372
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2373
    """
2374
    Returns list of catalog ids of items with same similarity index as of the given itemId
2375
 
2376
    Parameters:
2377
     - beginIndex
2378
     - totalItems
2379
     - itemId
2380
    """
2381
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2382
    return self.recv_getSimilarItemsCatalogIds()
2383
 
2384
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2385
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2386
    args = getSimilarItemsCatalogIds_args()
2387
    args.beginIndex = beginIndex
2388
    args.totalItems = totalItems
2389
    args.itemId = itemId
2390
    args.write(self._oprot)
2391
    self._oprot.writeMessageEnd()
2392
    self._oprot.trans.flush()
2393
 
2394
  def recv_getSimilarItemsCatalogIds(self, ):
2395
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2396
    if mtype == TMessageType.EXCEPTION:
2397
      x = TApplicationException()
2398
      x.read(self._iprot)
2399
      self._iprot.readMessageEnd()
2400
      raise x
2401
    result = getSimilarItemsCatalogIds_result()
2402
    result.read(self._iprot)
2403
    self._iprot.readMessageEnd()
2404
    if result.success is not None:
2405
      return result.success
2406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2407
 
2408
  def addProductNotification(self, itemId, email):
2409
    """
2410
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2411
 
2412
    Parameters:
2413
     - itemId
2414
     - email
2415
    """
2416
    self.send_addProductNotification(itemId, email)
2417
    return self.recv_addProductNotification()
2418
 
2419
  def send_addProductNotification(self, itemId, email):
2420
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2421
    args = addProductNotification_args()
2422
    args.itemId = itemId
2423
    args.email = email
2424
    args.write(self._oprot)
2425
    self._oprot.writeMessageEnd()
2426
    self._oprot.trans.flush()
2427
 
2428
  def recv_addProductNotification(self, ):
2429
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2430
    if mtype == TMessageType.EXCEPTION:
2431
      x = TApplicationException()
2432
      x.read(self._iprot)
2433
      self._iprot.readMessageEnd()
2434
      raise x
2435
    result = addProductNotification_result()
2436
    result.read(self._iprot)
2437
    self._iprot.readMessageEnd()
2438
    if result.success is not None:
2439
      return result.success
2440
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2441
 
2442
  def sendProductNotifications(self, ):
2443
    """
2444
    Send the product notifications to the users for items which has stock.
2445
    """
2446
    self.send_sendProductNotifications()
2447
    return self.recv_sendProductNotifications()
2448
 
2449
  def send_sendProductNotifications(self, ):
2450
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2451
    args = sendProductNotifications_args()
2452
    args.write(self._oprot)
2453
    self._oprot.writeMessageEnd()
2454
    self._oprot.trans.flush()
2455
 
2456
  def recv_sendProductNotifications(self, ):
2457
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2458
    if mtype == TMessageType.EXCEPTION:
2459
      x = TApplicationException()
2460
      x.read(self._iprot)
2461
      self._iprot.readMessageEnd()
2462
      raise x
2463
    result = sendProductNotifications_result()
2464
    result.read(self._iprot)
2465
    self._iprot.readMessageEnd()
2466
    if result.success is not None:
2467
      return result.success
2468
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2469
 
2470
  def getAllBrandsByCategory(self, categoryId):
2471
    """
2472
    Returns list of brand names for a given category Id
2473
 
2474
    Parameters:
2475
     - categoryId
2476
    """
2477
    self.send_getAllBrandsByCategory(categoryId)
2478
    return self.recv_getAllBrandsByCategory()
2479
 
2480
  def send_getAllBrandsByCategory(self, categoryId):
2481
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2482
    args = getAllBrandsByCategory_args()
2483
    args.categoryId = categoryId
2484
    args.write(self._oprot)
2485
    self._oprot.writeMessageEnd()
2486
    self._oprot.trans.flush()
2487
 
2488
  def recv_getAllBrandsByCategory(self, ):
2489
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2490
    if mtype == TMessageType.EXCEPTION:
2491
      x = TApplicationException()
2492
      x.read(self._iprot)
2493
      self._iprot.readMessageEnd()
2494
      raise x
2495
    result = getAllBrandsByCategory_result()
2496
    result.read(self._iprot)
2497
    self._iprot.readMessageEnd()
2498
    if result.success is not None:
2499
      return result.success
2500
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2501
 
2502
  def getAllBrands(self, ):
2503
    """
2504
    Returns list of brand names
2505
    """
2506
    self.send_getAllBrands()
2507
    return self.recv_getAllBrands()
2508
 
2509
  def send_getAllBrands(self, ):
2510
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2511
    args = getAllBrands_args()
2512
    args.write(self._oprot)
2513
    self._oprot.writeMessageEnd()
2514
    self._oprot.trans.flush()
2515
 
2516
  def recv_getAllBrands(self, ):
2517
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2518
    if mtype == TMessageType.EXCEPTION:
2519
      x = TApplicationException()
2520
      x.read(self._iprot)
2521
      self._iprot.readMessageEnd()
2522
      raise x
2523
    result = getAllBrands_result()
2524
    result.read(self._iprot)
2525
    self._iprot.readMessageEnd()
2526
    if result.success is not None:
2527
      return result.success
2528
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2529
 
2530
  def getAllSources(self, ):
2531
    """
2532
    Return list of all sources
2533
    """
2534
    self.send_getAllSources()
2535
    return self.recv_getAllSources()
2536
 
2537
  def send_getAllSources(self, ):
2538
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2539
    args = getAllSources_args()
2540
    args.write(self._oprot)
2541
    self._oprot.writeMessageEnd()
2542
    self._oprot.trans.flush()
2543
 
2544
  def recv_getAllSources(self, ):
2545
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2546
    if mtype == TMessageType.EXCEPTION:
2547
      x = TApplicationException()
2548
      x.read(self._iprot)
2549
      self._iprot.readMessageEnd()
2550
      raise x
2551
    result = getAllSources_result()
2552
    result.read(self._iprot)
2553
    self._iprot.readMessageEnd()
2554
    if result.success is not None:
2555
      return result.success
2556
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2557
 
2558
  def getItemPricingBySource(self, itemId, sourceId):
2559
    """
2560
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2561
 
2562
    Parameters:
2563
     - itemId
2564
     - sourceId
2565
    """
2566
    self.send_getItemPricingBySource(itemId, sourceId)
2567
    return self.recv_getItemPricingBySource()
2568
 
2569
  def send_getItemPricingBySource(self, itemId, sourceId):
2570
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2571
    args = getItemPricingBySource_args()
2572
    args.itemId = itemId
2573
    args.sourceId = sourceId
2574
    args.write(self._oprot)
2575
    self._oprot.writeMessageEnd()
2576
    self._oprot.trans.flush()
2577
 
2578
  def recv_getItemPricingBySource(self, ):
2579
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2580
    if mtype == TMessageType.EXCEPTION:
2581
      x = TApplicationException()
2582
      x.read(self._iprot)
2583
      self._iprot.readMessageEnd()
2584
      raise x
2585
    result = getItemPricingBySource_result()
2586
    result.read(self._iprot)
2587
    self._iprot.readMessageEnd()
2588
    if result.success is not None:
2589
      return result.success
2590
    if result.cex is not None:
2591
      raise result.cex
2592
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2593
 
2594
  def addSourceItemPricing(self, sourceItemPricing):
2595
    """
2596
    Adds prices to be displayed corresponding to the item if user comes from a source.
2597
    If item is not found or source is not found, it will throw exception.
2598
 
2599
    Parameters:
2600
     - sourceItemPricing
2601
    """
2602
    self.send_addSourceItemPricing(sourceItemPricing)
2603
    self.recv_addSourceItemPricing()
2604
 
2605
  def send_addSourceItemPricing(self, sourceItemPricing):
2606
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2607
    args = addSourceItemPricing_args()
2608
    args.sourceItemPricing = sourceItemPricing
2609
    args.write(self._oprot)
2610
    self._oprot.writeMessageEnd()
2611
    self._oprot.trans.flush()
2612
 
2613
  def recv_addSourceItemPricing(self, ):
2614
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2615
    if mtype == TMessageType.EXCEPTION:
2616
      x = TApplicationException()
2617
      x.read(self._iprot)
2618
      self._iprot.readMessageEnd()
2619
      raise x
2620
    result = addSourceItemPricing_result()
2621
    result.read(self._iprot)
2622
    self._iprot.readMessageEnd()
2623
    if result.cex is not None:
2624
      raise result.cex
2625
    return
2626
 
2627
  def getAllSourcePricing(self, itemId):
2628
    """
2629
    Returns the list of source pricing information of an item.
2630
    Raises an exception if item not found corresponding to itemId
2631
 
2632
    Parameters:
2633
     - itemId
2634
    """
2635
    self.send_getAllSourcePricing(itemId)
2636
    return self.recv_getAllSourcePricing()
2637
 
2638
  def send_getAllSourcePricing(self, itemId):
2639
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2640
    args = getAllSourcePricing_args()
2641
    args.itemId = itemId
2642
    args.write(self._oprot)
2643
    self._oprot.writeMessageEnd()
2644
    self._oprot.trans.flush()
2645
 
2646
  def recv_getAllSourcePricing(self, ):
2647
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2648
    if mtype == TMessageType.EXCEPTION:
2649
      x = TApplicationException()
2650
      x.read(self._iprot)
2651
      self._iprot.readMessageEnd()
2652
      raise x
2653
    result = getAllSourcePricing_result()
2654
    result.read(self._iprot)
2655
    self._iprot.readMessageEnd()
2656
    if result.success is not None:
2657
      return result.success
2658
    if result.cex is not None:
2659
      raise result.cex
2660
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2661
 
2662
  def getItemForSource(self, item_id, sourceId):
2663
    """
2664
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2665
 
2666
    Parameters:
2667
     - item_id
2668
     - sourceId
2669
    """
2670
    self.send_getItemForSource(item_id, sourceId)
2671
    return self.recv_getItemForSource()
2672
 
2673
  def send_getItemForSource(self, item_id, sourceId):
2674
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2675
    args = getItemForSource_args()
2676
    args.item_id = item_id
2677
    args.sourceId = sourceId
2678
    args.write(self._oprot)
2679
    self._oprot.writeMessageEnd()
2680
    self._oprot.trans.flush()
2681
 
2682
  def recv_getItemForSource(self, ):
2683
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2684
    if mtype == TMessageType.EXCEPTION:
2685
      x = TApplicationException()
2686
      x.read(self._iprot)
2687
      self._iprot.readMessageEnd()
2688
      raise x
2689
    result = getItemForSource_result()
2690
    result.read(self._iprot)
2691
    self._iprot.readMessageEnd()
2692
    if result.success is not None:
2693
      return result.success
2694
    if result.cex is not None:
2695
      raise result.cex
2696
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2697
 
2698
  def searchItemsInRange(self, searchTerms, offset, limit):
2699
    """
2700
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2701
 
2702
    Parameters:
2703
     - searchTerms
2704
     - offset
2705
     - limit
2706
    """
2707
    self.send_searchItemsInRange(searchTerms, offset, limit)
2708
    return self.recv_searchItemsInRange()
2709
 
2710
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2711
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2712
    args = searchItemsInRange_args()
2713
    args.searchTerms = searchTerms
2714
    args.offset = offset
2715
    args.limit = limit
2716
    args.write(self._oprot)
2717
    self._oprot.writeMessageEnd()
2718
    self._oprot.trans.flush()
2719
 
2720
  def recv_searchItemsInRange(self, ):
2721
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2722
    if mtype == TMessageType.EXCEPTION:
2723
      x = TApplicationException()
2724
      x.read(self._iprot)
2725
      self._iprot.readMessageEnd()
2726
      raise x
2727
    result = searchItemsInRange_result()
2728
    result.read(self._iprot)
2729
    self._iprot.readMessageEnd()
2730
    if result.success is not None:
2731
      return result.success
2732
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2733
 
2734
  def getSearchResultCount(self, searchTerms):
2735
    """
2736
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2737
 
2738
    Parameters:
2739
     - searchTerms
2740
    """
2741
    self.send_getSearchResultCount(searchTerms)
2742
    return self.recv_getSearchResultCount()
2743
 
2744
  def send_getSearchResultCount(self, searchTerms):
2745
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2746
    args = getSearchResultCount_args()
2747
    args.searchTerms = searchTerms
2748
    args.write(self._oprot)
2749
    self._oprot.writeMessageEnd()
2750
    self._oprot.trans.flush()
2751
 
2752
  def recv_getSearchResultCount(self, ):
2753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2754
    if mtype == TMessageType.EXCEPTION:
2755
      x = TApplicationException()
2756
      x.read(self._iprot)
2757
      self._iprot.readMessageEnd()
2758
      raise x
2759
    result = getSearchResultCount_result()
2760
    result.read(self._iprot)
2761
    self._iprot.readMessageEnd()
2762
    if result.success is not None:
2763
      return result.success
2764
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2765
 
2766
  def getProductNotifications(self, startDateTime):
2767
    """
2768
    Returns a list of product notifications added after a supplied datetime
2769
 
2770
    Parameters:
2771
     - startDateTime
2772
    """
2773
    self.send_getProductNotifications(startDateTime)
2774
    return self.recv_getProductNotifications()
2775
 
2776
  def send_getProductNotifications(self, startDateTime):
2777
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2778
    args = getProductNotifications_args()
2779
    args.startDateTime = startDateTime
2780
    args.write(self._oprot)
2781
    self._oprot.writeMessageEnd()
2782
    self._oprot.trans.flush()
2783
 
2784
  def recv_getProductNotifications(self, ):
2785
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2786
    if mtype == TMessageType.EXCEPTION:
2787
      x = TApplicationException()
2788
      x.read(self._iprot)
2789
      self._iprot.readMessageEnd()
2790
      raise x
2791
    result = getProductNotifications_result()
2792
    result.read(self._iprot)
2793
    self._iprot.readMessageEnd()
2794
    if result.success is not None:
2795
      return result.success
2796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2797
 
2798
  def getProductNotificationRequestCount(self, startDateTime):
2799
    """
2800
    Returns a list of count of requests for product notification against each item
2801
 
2802
    Parameters:
2803
     - startDateTime
2804
    """
2805
    self.send_getProductNotificationRequestCount(startDateTime)
2806
    return self.recv_getProductNotificationRequestCount()
2807
 
2808
  def send_getProductNotificationRequestCount(self, startDateTime):
2809
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2810
    args = getProductNotificationRequestCount_args()
2811
    args.startDateTime = startDateTime
2812
    args.write(self._oprot)
2813
    self._oprot.writeMessageEnd()
2814
    self._oprot.trans.flush()
2815
 
2816
  def recv_getProductNotificationRequestCount(self, ):
2817
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2818
    if mtype == TMessageType.EXCEPTION:
2819
      x = TApplicationException()
2820
      x.read(self._iprot)
2821
      self._iprot.readMessageEnd()
2822
      raise x
2823
    result = getProductNotificationRequestCount_result()
2824
    result.read(self._iprot)
2825
    self._iprot.readMessageEnd()
2826
    if result.success is not None:
2827
      return result.success
2828
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2829
 
2830
  def addAuthorizationLog(self, itemId, username, reason):
2831
    """
2832
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2833
 
2834
    Parameters:
2835
     - itemId
2836
     - username
2837
     - reason
2838
    """
2839
    self.send_addAuthorizationLog(itemId, username, reason)
2840
    return self.recv_addAuthorizationLog()
2841
 
2842
  def send_addAuthorizationLog(self, itemId, username, reason):
2843
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2844
    args = addAuthorizationLog_args()
2845
    args.itemId = itemId
2846
    args.username = username
2847
    args.reason = reason
2848
    args.write(self._oprot)
2849
    self._oprot.writeMessageEnd()
2850
    self._oprot.trans.flush()
2851
 
2852
  def recv_addAuthorizationLog(self, ):
2853
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2854
    if mtype == TMessageType.EXCEPTION:
2855
      x = TApplicationException()
2856
      x.read(self._iprot)
2857
      self._iprot.readMessageEnd()
2858
      raise x
2859
    result = addAuthorizationLog_result()
2860
    result.read(self._iprot)
2861
    self._iprot.readMessageEnd()
2862
    if result.success is not None:
2863
      return result.success
2864
    if result.cex is not None:
2865
      raise result.cex
2866
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2867
 
2868
  def getClearanceSaleCatalogIds(self, ):
2869
    self.send_getClearanceSaleCatalogIds()
2870
    return self.recv_getClearanceSaleCatalogIds()
2871
 
2872
  def send_getClearanceSaleCatalogIds(self, ):
2873
    self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)
2874
    args = getClearanceSaleCatalogIds_args()
2875
    args.write(self._oprot)
2876
    self._oprot.writeMessageEnd()
2877
    self._oprot.trans.flush()
2878
 
2879
  def recv_getClearanceSaleCatalogIds(self, ):
2880
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2881
    if mtype == TMessageType.EXCEPTION:
2882
      x = TApplicationException()
2883
      x.read(self._iprot)
2884
      self._iprot.readMessageEnd()
2885
      raise x
2886
    result = getClearanceSaleCatalogIds_result()
2887
    result.read(self._iprot)
2888
    self._iprot.readMessageEnd()
2889
    if result.success is not None:
2890
      return result.success
2891
    if result.cex is not None:
2892
      raise result.cex
2893
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2894
 
2895
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2896
    """
2897
    Parameters:
2898
     - catalog_item_id
2899
     - voucherType
2900
     - voucherAmount
2901
    """
2902
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2903
    return self.recv_addupdateVoucherForItem()
2904
 
2905
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2906
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2907
    args = addupdateVoucherForItem_args()
2908
    args.catalog_item_id = catalog_item_id
2909
    args.voucherType = voucherType
2910
    args.voucherAmount = voucherAmount
2911
    args.write(self._oprot)
2912
    self._oprot.writeMessageEnd()
2913
    self._oprot.trans.flush()
2914
 
2915
  def recv_addupdateVoucherForItem(self, ):
2916
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2917
    if mtype == TMessageType.EXCEPTION:
2918
      x = TApplicationException()
2919
      x.read(self._iprot)
2920
      self._iprot.readMessageEnd()
2921
      raise x
2922
    result = addupdateVoucherForItem_result()
2923
    result.read(self._iprot)
2924
    self._iprot.readMessageEnd()
2925
    if result.success is not None:
2926
      return result.success
2927
    if result.cex is not None:
2928
      raise result.cex
2929
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2930
 
2931
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2932
    """
2933
    Parameters:
2934
     - catalog_item_id
2935
     - voucherType
2936
    """
2937
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2938
    return self.recv_deleteVoucherForItem()
2939
 
2940
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2941
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2942
    args = deleteVoucherForItem_args()
2943
    args.catalog_item_id = catalog_item_id
2944
    args.voucherType = voucherType
2945
    args.write(self._oprot)
2946
    self._oprot.writeMessageEnd()
2947
    self._oprot.trans.flush()
2948
 
2949
  def recv_deleteVoucherForItem(self, ):
2950
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2951
    if mtype == TMessageType.EXCEPTION:
2952
      x = TApplicationException()
2953
      x.read(self._iprot)
2954
      self._iprot.readMessageEnd()
2955
      raise x
2956
    result = deleteVoucherForItem_result()
2957
    result.read(self._iprot)
2958
    self._iprot.readMessageEnd()
2959
    if result.success is not None:
2960
      return result.success
2961
    if result.cex is not None:
2962
      raise result.cex
2963
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2964
 
2965
  def getVoucherAmount(self, itemId, voucherType):
2966
    """
2967
    Parameters:
2968
     - itemId
2969
     - voucherType
2970
    """
2971
    self.send_getVoucherAmount(itemId, voucherType)
2972
    return self.recv_getVoucherAmount()
2973
 
2974
  def send_getVoucherAmount(self, itemId, voucherType):
2975
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2976
    args = getVoucherAmount_args()
2977
    args.itemId = itemId
2978
    args.voucherType = voucherType
2979
    args.write(self._oprot)
2980
    self._oprot.writeMessageEnd()
2981
    self._oprot.trans.flush()
2982
 
2983
  def recv_getVoucherAmount(self, ):
2984
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2985
    if mtype == TMessageType.EXCEPTION:
2986
      x = TApplicationException()
2987
      x.read(self._iprot)
2988
      self._iprot.readMessageEnd()
2989
      raise x
2990
    result = getVoucherAmount_result()
2991
    result.read(self._iprot)
2992
    self._iprot.readMessageEnd()
2993
    if result.success is not None:
2994
      return result.success
2995
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
2996
 
2997
  def getAllItemVouchers(self, itemId):
2998
    """
2999
    Parameters:
3000
     - itemId
3001
    """
3002
    self.send_getAllItemVouchers(itemId)
3003
    return self.recv_getAllItemVouchers()
3004
 
3005
  def send_getAllItemVouchers(self, itemId):
3006
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3007
    args = getAllItemVouchers_args()
3008
    args.itemId = itemId
3009
    args.write(self._oprot)
3010
    self._oprot.writeMessageEnd()
3011
    self._oprot.trans.flush()
3012
 
3013
  def recv_getAllItemVouchers(self, ):
3014
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3015
    if mtype == TMessageType.EXCEPTION:
3016
      x = TApplicationException()
3017
      x.read(self._iprot)
3018
      self._iprot.readMessageEnd()
3019
      raise x
3020
    result = getAllItemVouchers_result()
3021
    result.read(self._iprot)
3022
    self._iprot.readMessageEnd()
3023
    if result.success is not None:
3024
      return result.success
3025
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3026
 
3027
  def isValidCatalogItemId(self, catalog_item_id):
3028
    """
3029
    Parameters:
3030
     - catalog_item_id
3031
    """
3032
    self.send_isValidCatalogItemId(catalog_item_id)
3033
    return self.recv_isValidCatalogItemId()
3034
 
3035
  def send_isValidCatalogItemId(self, catalog_item_id):
3036
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3037
    args = isValidCatalogItemId_args()
3038
    args.catalog_item_id = catalog_item_id
3039
    args.write(self._oprot)
3040
    self._oprot.writeMessageEnd()
3041
    self._oprot.trans.flush()
3042
 
3043
  def recv_isValidCatalogItemId(self, ):
3044
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3045
    if mtype == TMessageType.EXCEPTION:
3046
      x = TApplicationException()
3047
      x.read(self._iprot)
3048
      self._iprot.readMessageEnd()
3049
      raise x
3050
    result = isValidCatalogItemId_result()
3051
    result.read(self._iprot)
3052
    self._iprot.readMessageEnd()
3053
    if result.success is not None:
3054
      return result.success
3055
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3056
 
6039 amit.gupta 3057
  def getVatPercentageForItem(self, itemId, price):
3058
    """
3059
    Parameters:
3060
     - itemId
3061
     - price
3062
    """
3063
    self.send_getVatPercentageForItem(itemId, price)
3064
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3065
 
6039 amit.gupta 3066
  def send_getVatPercentageForItem(self, itemId, price):
3067
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3068
    args = getVatPercentageForItem_args()
3069
    args.itemId = itemId
3070
    args.price = price
3071
    args.write(self._oprot)
3072
    self._oprot.writeMessageEnd()
3073
    self._oprot.trans.flush()
3074
 
3075
  def recv_getVatPercentageForItem(self, ):
3076
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3077
    if mtype == TMessageType.EXCEPTION:
3078
      x = TApplicationException()
3079
      x.read(self._iprot)
3080
      self._iprot.readMessageEnd()
3081
      raise x
3082
    result = getVatPercentageForItem_result()
3083
    result.read(self._iprot)
3084
    self._iprot.readMessageEnd()
3085
    if result.success is not None:
3086
      return result.success
3087
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3088
 
3089
  def getVatAmountForItem(self, itemId, price):
3090
    """
3091
    Parameters:
3092
     - itemId
3093
     - price
3094
    """
3095
    self.send_getVatAmountForItem(itemId, price)
3096
    return self.recv_getVatAmountForItem()
3097
 
3098
  def send_getVatAmountForItem(self, itemId, price):
3099
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3100
    args = getVatAmountForItem_args()
3101
    args.itemId = itemId
3102
    args.price = price
3103
    args.write(self._oprot)
3104
    self._oprot.writeMessageEnd()
3105
    self._oprot.trans.flush()
3106
 
3107
  def recv_getVatAmountForItem(self, ):
3108
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3109
    if mtype == TMessageType.EXCEPTION:
3110
      x = TApplicationException()
3111
      x.read(self._iprot)
3112
      self._iprot.readMessageEnd()
3113
      raise x
3114
    result = getVatAmountForItem_result()
3115
    result.read(self._iprot)
3116
    self._iprot.readMessageEnd()
3117
    if result.success is not None:
3118
      return result.success
3119
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3120
 
6531 vikram.rag 3121
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3122
    """
3123
    Parameters:
3124
     - offset
3125
     - limit
3126
    """
3127
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3128
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3129
 
6531 vikram.rag 3130
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3131
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3132
    args = getAllIgnoredInventoryUpdateItemsList_args()
3133
    args.offset = offset
3134
    args.limit = limit
3135
    args.write(self._oprot)
3136
    self._oprot.writeMessageEnd()
3137
    self._oprot.trans.flush()
3138
 
3139
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3140
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3141
    if mtype == TMessageType.EXCEPTION:
3142
      x = TApplicationException()
3143
      x.read(self._iprot)
3144
      self._iprot.readMessageEnd()
3145
      raise x
3146
    result = getAllIgnoredInventoryUpdateItemsList_result()
3147
    result.read(self._iprot)
3148
    self._iprot.readMessageEnd()
3149
    if result.success is not None:
3150
      return result.success
3151
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3152
 
6821 amar.kumar 3153
  def getAllAliveItems(self, ):
3154
    self.send_getAllAliveItems()
3155
    return self.recv_getAllAliveItems()
3156
 
3157
  def send_getAllAliveItems(self, ):
3158
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3159
    args = getAllAliveItems_args()
3160
    args.write(self._oprot)
3161
    self._oprot.writeMessageEnd()
3162
    self._oprot.trans.flush()
3163
 
3164
  def recv_getAllAliveItems(self, ):
3165
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3166
    if mtype == TMessageType.EXCEPTION:
3167
      x = TApplicationException()
3168
      x.read(self._iprot)
3169
      self._iprot.readMessageEnd()
3170
      raise x
3171
    result = getAllAliveItems_result()
3172
    result.read(self._iprot)
3173
    self._iprot.readMessageEnd()
3174
    if result.success is not None:
3175
      return result.success
3176
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3177
 
6921 anupam.sin 3178
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3179
    """
3180
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3181
 
6805 anupam.sin 3182
    Parameters:
3183
     - itemId
6921 anupam.sin 3184
     - price
6805 anupam.sin 3185
     - insurerId
3186
     - quantity
3187
    """
6921 anupam.sin 3188
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 3189
    return self.recv_getInsuranceAmount()
3190
 
6921 anupam.sin 3191
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3192
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3193
    args = getInsuranceAmount_args()
3194
    args.itemId = itemId
6921 anupam.sin 3195
    args.price = price
6805 anupam.sin 3196
    args.insurerId = insurerId
3197
    args.quantity = quantity
3198
    args.write(self._oprot)
3199
    self._oprot.writeMessageEnd()
3200
    self._oprot.trans.flush()
3201
 
3202
  def recv_getInsuranceAmount(self, ):
3203
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3204
    if mtype == TMessageType.EXCEPTION:
3205
      x = TApplicationException()
3206
      x.read(self._iprot)
3207
      self._iprot.readMessageEnd()
3208
      raise x
3209
    result = getInsuranceAmount_result()
3210
    result.read(self._iprot)
3211
    self._iprot.readMessageEnd()
3212
    if result.success is not None:
3213
      return result.success
3214
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3215
 
3216
  def getInsurer(self, insurerId):
3217
    """
3218
    Parameters:
3219
     - insurerId
3220
    """
3221
    self.send_getInsurer(insurerId)
3222
    return self.recv_getInsurer()
3223
 
3224
  def send_getInsurer(self, insurerId):
3225
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3226
    args = getInsurer_args()
3227
    args.insurerId = insurerId
3228
    args.write(self._oprot)
3229
    self._oprot.writeMessageEnd()
3230
    self._oprot.trans.flush()
3231
 
3232
  def recv_getInsurer(self, ):
3233
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3234
    if mtype == TMessageType.EXCEPTION:
3235
      x = TApplicationException()
3236
      x.read(self._iprot)
3237
      self._iprot.readMessageEnd()
3238
      raise x
3239
    result = getInsurer_result()
3240
    result.read(self._iprot)
3241
    self._iprot.readMessageEnd()
3242
    if result.success is not None:
3243
      return result.success
3244
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3245
 
6838 vikram.rag 3246
  def getAllInsurers(self, ):
3247
    self.send_getAllInsurers()
3248
    return self.recv_getAllInsurers()
6805 anupam.sin 3249
 
6838 vikram.rag 3250
  def send_getAllInsurers(self, ):
3251
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3252
    args = getAllInsurers_args()
3253
    args.write(self._oprot)
3254
    self._oprot.writeMessageEnd()
3255
    self._oprot.trans.flush()
3256
 
3257
  def recv_getAllInsurers(self, ):
3258
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3259
    if mtype == TMessageType.EXCEPTION:
3260
      x = TApplicationException()
3261
      x.read(self._iprot)
3262
      self._iprot.readMessageEnd()
3263
      raise x
3264
    result = getAllInsurers_result()
3265
    result.read(self._iprot)
3266
    self._iprot.readMessageEnd()
3267
    if result.success is not None:
3268
      return result.success
3269
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3270
 
3271
 
5944 mandeep.dh 3272
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3273
  def __init__(self, handler):
3274
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3275
    self._processMap["addItem"] = Processor.process_addItem
3276
    self._processMap["updateItem"] = Processor.process_updateItem
3277
    self._processMap["isActive"] = Processor.process_isActive
3278
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
3279
    self._processMap["startItemOn"] = Processor.process_startItemOn
3280
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
3281
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3282
    self._processMap["getItem"] = Processor.process_getItem
3283
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
3284
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
3285
    self._processMap["getAllItems"] = Processor.process_getAllItems
3286
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
3287
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
3288
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
3289
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
3290
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
3291
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
3292
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
3293
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
3294
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
3295
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
3296
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
3297
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
3298
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
3299
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
3300
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
3301
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
3302
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
3303
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
3304
    self._processMap["addCategory"] = Processor.process_addCategory
3305
    self._processMap["getCategory"] = Processor.process_getCategory
3306
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
3307
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
3308
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 3309
    self._processMap["addTag"] = Processor.process_addTag
3310
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
3311
    self._processMap["deleteTag"] = Processor.process_deleteTag
3312
    self._processMap["getAllTags"] = Processor.process_getAllTags
3313
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 3314
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 3315
    self._processMap["addBanner"] = Processor.process_addBanner
3316
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
3317
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
3318
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
3319
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 3320
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
3321
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
3322
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
5944 mandeep.dh 3323
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
3324
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
3325
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
3326
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
3327
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
3328
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
3329
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
3330
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
3331
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
3332
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
3333
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
3334
    self._processMap["getAllSources"] = Processor.process_getAllSources
3335
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
3336
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
3337
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
3338
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
3339
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
3340
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
3341
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
3342
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
3343
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
3344
    self._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIds
3345
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
3346
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
3347
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
3348
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
3349
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 3350
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
3351
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 3352
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 3353
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 3354
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
3355
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 3356
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
5944 mandeep.dh 3357
 
3358
  def process(self, iprot, oprot):
3359
    (name, type, seqid) = iprot.readMessageBegin()
3360
    if name not in self._processMap:
3361
      iprot.skip(TType.STRUCT)
3362
      iprot.readMessageEnd()
3363
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3364
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3365
      x.write(oprot)
3366
      oprot.writeMessageEnd()
3367
      oprot.trans.flush()
3368
      return
3369
    else:
3370
      self._processMap[name](self, seqid, iprot, oprot)
3371
    return True
3372
 
3373
  def process_addItem(self, seqid, iprot, oprot):
3374
    args = addItem_args()
3375
    args.read(iprot)
3376
    iprot.readMessageEnd()
3377
    result = addItem_result()
3378
    try:
3379
      result.success = self._handler.addItem(args.item)
3380
    except CatalogServiceException, cex:
3381
      result.cex = cex
3382
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
3383
    result.write(oprot)
3384
    oprot.writeMessageEnd()
3385
    oprot.trans.flush()
3386
 
3387
  def process_updateItem(self, seqid, iprot, oprot):
3388
    args = updateItem_args()
3389
    args.read(iprot)
3390
    iprot.readMessageEnd()
3391
    result = updateItem_result()
3392
    try:
3393
      result.success = self._handler.updateItem(args.item)
3394
    except CatalogServiceException, cex:
3395
      result.cex = cex
3396
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3397
    result.write(oprot)
3398
    oprot.writeMessageEnd()
3399
    oprot.trans.flush()
3400
 
3401
  def process_isActive(self, seqid, iprot, oprot):
3402
    args = isActive_args()
3403
    args.read(iprot)
3404
    iprot.readMessageEnd()
3405
    result = isActive_result()
3406
    try:
3407
      result.success = self._handler.isActive(args.itemId)
3408
    except CatalogServiceException, isex:
3409
      result.isex = isex
3410
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3411
    result.write(oprot)
3412
    oprot.writeMessageEnd()
3413
    oprot.trans.flush()
3414
 
3415
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3416
    args = getItemStatusDescription_args()
3417
    args.read(iprot)
3418
    iprot.readMessageEnd()
3419
    result = getItemStatusDescription_result()
3420
    try:
3421
      result.success = self._handler.getItemStatusDescription(args.itemId)
3422
    except CatalogServiceException, isex:
3423
      result.isex = isex
3424
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3425
    result.write(oprot)
3426
    oprot.writeMessageEnd()
3427
    oprot.trans.flush()
3428
 
3429
  def process_startItemOn(self, seqid, iprot, oprot):
3430
    args = startItemOn_args()
3431
    args.read(iprot)
3432
    iprot.readMessageEnd()
3433
    result = startItemOn_result()
3434
    try:
3435
      self._handler.startItemOn(args.item_id, args.timestamp)
3436
    except CatalogServiceException, cex:
3437
      result.cex = cex
3438
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3439
    result.write(oprot)
3440
    oprot.writeMessageEnd()
3441
    oprot.trans.flush()
3442
 
3443
  def process_retireItemOn(self, seqid, iprot, oprot):
3444
    args = retireItemOn_args()
3445
    args.read(iprot)
3446
    iprot.readMessageEnd()
3447
    result = retireItemOn_result()
3448
    try:
3449
      self._handler.retireItemOn(args.item_id, args.timestamp)
3450
    except CatalogServiceException, cex:
3451
      result.cex = cex
3452
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3453
    result.write(oprot)
3454
    oprot.writeMessageEnd()
3455
    oprot.trans.flush()
3456
 
3457
  def process_changeItemStatus(self, seqid, iprot, oprot):
3458
    args = changeItemStatus_args()
3459
    args.read(iprot)
3460
    iprot.readMessageEnd()
3461
    result = changeItemStatus_result()
3462
    try:
3463
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3464
    except CatalogServiceException, cex:
3465
      result.cex = cex
3466
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3467
    result.write(oprot)
3468
    oprot.writeMessageEnd()
3469
    oprot.trans.flush()
3470
 
3471
  def process_getItem(self, seqid, iprot, oprot):
3472
    args = getItem_args()
3473
    args.read(iprot)
3474
    iprot.readMessageEnd()
3475
    result = getItem_result()
3476
    try:
3477
      result.success = self._handler.getItem(args.item_id)
3478
    except CatalogServiceException, cex:
3479
      result.cex = cex
3480
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3481
    result.write(oprot)
3482
    oprot.writeMessageEnd()
3483
    oprot.trans.flush()
3484
 
3485
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3486
    args = getItemsByCatalogId_args()
3487
    args.read(iprot)
3488
    iprot.readMessageEnd()
3489
    result = getItemsByCatalogId_result()
3490
    try:
3491
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3492
    except CatalogServiceException, cex:
3493
      result.cex = cex
3494
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3495
    result.write(oprot)
3496
    oprot.writeMessageEnd()
3497
    oprot.trans.flush()
3498
 
3499
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3500
    args = getValidItemsByCatalogId_args()
3501
    args.read(iprot)
3502
    iprot.readMessageEnd()
3503
    result = getValidItemsByCatalogId_result()
3504
    try:
3505
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3506
    except CatalogServiceException, cex:
3507
      result.cex = cex
3508
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3509
    result.write(oprot)
3510
    oprot.writeMessageEnd()
3511
    oprot.trans.flush()
3512
 
3513
  def process_getAllItems(self, seqid, iprot, oprot):
3514
    args = getAllItems_args()
3515
    args.read(iprot)
3516
    iprot.readMessageEnd()
3517
    result = getAllItems_result()
3518
    try:
3519
      result.success = self._handler.getAllItems(args.isActive)
3520
    except CatalogServiceException, cex:
3521
      result.cex = cex
3522
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3523
    result.write(oprot)
3524
    oprot.writeMessageEnd()
3525
    oprot.trans.flush()
3526
 
3527
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3528
    args = getAllItemsByStatus_args()
3529
    args.read(iprot)
3530
    iprot.readMessageEnd()
3531
    result = getAllItemsByStatus_result()
3532
    try:
3533
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3534
    except CatalogServiceException, cex:
3535
      result.cex = cex
3536
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3537
    result.write(oprot)
3538
    oprot.writeMessageEnd()
3539
    oprot.trans.flush()
3540
 
3541
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3542
    args = markItemAsContentComplete_args()
3543
    args.read(iprot)
3544
    iprot.readMessageEnd()
3545
    result = markItemAsContentComplete_result()
3546
    try:
3547
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3548
    except CatalogServiceException, cex:
3549
      result.cex = cex
3550
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3551
    result.write(oprot)
3552
    oprot.writeMessageEnd()
3553
    oprot.trans.flush()
3554
 
3555
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3556
    args = getAllItemsInRange_args()
3557
    args.read(iprot)
3558
    iprot.readMessageEnd()
3559
    result = getAllItemsInRange_result()
3560
    try:
3561
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3562
    except CatalogServiceException, cex:
3563
      result.cex = cex
3564
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3565
    result.write(oprot)
3566
    oprot.writeMessageEnd()
3567
    oprot.trans.flush()
3568
 
3569
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3570
    args = getAllItemsByStatusInRange_args()
3571
    args.read(iprot)
3572
    iprot.readMessageEnd()
3573
    result = getAllItemsByStatusInRange_result()
3574
    try:
3575
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3576
    except CatalogServiceException, cex:
3577
      result.cex = cex
3578
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3579
    result.write(oprot)
3580
    oprot.writeMessageEnd()
3581
    oprot.trans.flush()
3582
 
3583
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3584
    args = getItemCountByStatus_args()
3585
    args.read(iprot)
3586
    iprot.readMessageEnd()
3587
    result = getItemCountByStatus_result()
3588
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3589
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3590
    result.write(oprot)
3591
    oprot.writeMessageEnd()
3592
    oprot.trans.flush()
3593
 
3594
  def process_getBestSellers(self, seqid, iprot, oprot):
3595
    args = getBestSellers_args()
3596
    args.read(iprot)
3597
    iprot.readMessageEnd()
3598
    result = getBestSellers_result()
3599
    try:
3600
      result.success = self._handler.getBestSellers()
3601
    except CatalogServiceException, isex:
3602
      result.isex = isex
3603
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3604
    result.write(oprot)
3605
    oprot.writeMessageEnd()
3606
    oprot.trans.flush()
3607
 
3608
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3609
    args = getBestSellersCatalogIds_args()
3610
    args.read(iprot)
3611
    iprot.readMessageEnd()
3612
    result = getBestSellersCatalogIds_result()
3613
    try:
3614
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3615
    except CatalogServiceException, cex:
3616
      result.cex = cex
3617
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3618
    result.write(oprot)
3619
    oprot.writeMessageEnd()
3620
    oprot.trans.flush()
3621
 
3622
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3623
    args = getBestSellersCount_args()
3624
    args.read(iprot)
3625
    iprot.readMessageEnd()
3626
    result = getBestSellersCount_result()
3627
    try:
3628
      result.success = self._handler.getBestSellersCount()
3629
    except CatalogServiceException, cex:
3630
      result.cex = cex
3631
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3632
    result.write(oprot)
3633
    oprot.writeMessageEnd()
3634
    oprot.trans.flush()
3635
 
3636
  def process_getBestDeals(self, seqid, iprot, oprot):
3637
    args = getBestDeals_args()
3638
    args.read(iprot)
3639
    iprot.readMessageEnd()
3640
    result = getBestDeals_result()
3641
    try:
3642
      result.success = self._handler.getBestDeals()
3643
    except CatalogServiceException, isex:
3644
      result.isex = isex
3645
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3646
    result.write(oprot)
3647
    oprot.writeMessageEnd()
3648
    oprot.trans.flush()
3649
 
3650
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3651
    args = getBestDealsCatalogIds_args()
3652
    args.read(iprot)
3653
    iprot.readMessageEnd()
3654
    result = getBestDealsCatalogIds_result()
3655
    try:
3656
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3657
    except CatalogServiceException, cex:
3658
      result.cex = cex
3659
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3660
    result.write(oprot)
3661
    oprot.writeMessageEnd()
3662
    oprot.trans.flush()
3663
 
3664
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3665
    args = getBestDealsCount_args()
3666
    args.read(iprot)
3667
    iprot.readMessageEnd()
3668
    result = getBestDealsCount_result()
3669
    try:
3670
      result.success = self._handler.getBestDealsCount()
3671
    except CatalogServiceException, cex:
3672
      result.cex = cex
3673
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3674
    result.write(oprot)
3675
    oprot.writeMessageEnd()
3676
    oprot.trans.flush()
3677
 
3678
  def process_getComingSoon(self, seqid, iprot, oprot):
3679
    args = getComingSoon_args()
3680
    args.read(iprot)
3681
    iprot.readMessageEnd()
3682
    result = getComingSoon_result()
3683
    try:
3684
      result.success = self._handler.getComingSoon()
3685
    except CatalogServiceException, isex:
3686
      result.isex = isex
3687
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3688
    result.write(oprot)
3689
    oprot.writeMessageEnd()
3690
    oprot.trans.flush()
3691
 
3692
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3693
    args = getComingSoonCatalogIds_args()
3694
    args.read(iprot)
3695
    iprot.readMessageEnd()
3696
    result = getComingSoonCatalogIds_result()
3697
    try:
3698
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3699
    except CatalogServiceException, cex:
3700
      result.cex = cex
3701
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3702
    result.write(oprot)
3703
    oprot.writeMessageEnd()
3704
    oprot.trans.flush()
3705
 
3706
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3707
    args = getComingSoonCount_args()
3708
    args.read(iprot)
3709
    iprot.readMessageEnd()
3710
    result = getComingSoonCount_result()
3711
    try:
3712
      result.success = self._handler.getComingSoonCount()
3713
    except CatalogServiceException, cex:
3714
      result.cex = cex
3715
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3716
    result.write(oprot)
3717
    oprot.writeMessageEnd()
3718
    oprot.trans.flush()
3719
 
3720
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3721
    args = getLatestArrivals_args()
3722
    args.read(iprot)
3723
    iprot.readMessageEnd()
3724
    result = getLatestArrivals_result()
3725
    try:
3726
      result.success = self._handler.getLatestArrivals()
3727
    except CatalogServiceException, isex:
3728
      result.isex = isex
3729
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3730
    result.write(oprot)
3731
    oprot.writeMessageEnd()
3732
    oprot.trans.flush()
3733
 
3734
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3735
    args = getLatestArrivalsCatalogIds_args()
3736
    args.read(iprot)
3737
    iprot.readMessageEnd()
3738
    result = getLatestArrivalsCatalogIds_result()
3739
    try:
3740
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3741
    except CatalogServiceException, cex:
3742
      result.cex = cex
3743
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3744
    result.write(oprot)
3745
    oprot.writeMessageEnd()
3746
    oprot.trans.flush()
3747
 
3748
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3749
    args = getLatestArrivalsCount_args()
3750
    args.read(iprot)
3751
    iprot.readMessageEnd()
3752
    result = getLatestArrivalsCount_result()
3753
    try:
3754
      result.success = self._handler.getLatestArrivalsCount()
3755
    except CatalogServiceException, cex:
3756
      result.cex = cex
3757
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3758
    result.write(oprot)
3759
    oprot.writeMessageEnd()
3760
    oprot.trans.flush()
3761
 
3762
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3763
    args = generateNewEntityID_args()
3764
    args.read(iprot)
3765
    iprot.readMessageEnd()
3766
    result = generateNewEntityID_result()
3767
    result.success = self._handler.generateNewEntityID()
3768
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3769
    result.write(oprot)
3770
    oprot.writeMessageEnd()
3771
    oprot.trans.flush()
3772
 
3773
  def process_addCategory(self, seqid, iprot, oprot):
3774
    args = addCategory_args()
3775
    args.read(iprot)
3776
    iprot.readMessageEnd()
3777
    result = addCategory_result()
3778
    result.success = self._handler.addCategory(args.category)
3779
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3780
    result.write(oprot)
3781
    oprot.writeMessageEnd()
3782
    oprot.trans.flush()
3783
 
3784
  def process_getCategory(self, seqid, iprot, oprot):
3785
    args = getCategory_args()
3786
    args.read(iprot)
3787
    iprot.readMessageEnd()
3788
    result = getCategory_result()
3789
    result.success = self._handler.getCategory(args.id)
3790
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3791
    result.write(oprot)
3792
    oprot.writeMessageEnd()
3793
    oprot.trans.flush()
3794
 
3795
  def process_getAllCategories(self, seqid, iprot, oprot):
3796
    args = getAllCategories_args()
3797
    args.read(iprot)
3798
    iprot.readMessageEnd()
3799
    result = getAllCategories_result()
3800
    result.success = self._handler.getAllCategories()
3801
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3802
    result.write(oprot)
3803
    oprot.writeMessageEnd()
3804
    oprot.trans.flush()
3805
 
3806
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3807
    args = getAllSimilarItems_args()
3808
    args.read(iprot)
3809
    iprot.readMessageEnd()
3810
    result = getAllSimilarItems_result()
3811
    result.success = self._handler.getAllSimilarItems(args.itemId)
3812
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3813
    result.write(oprot)
3814
    oprot.writeMessageEnd()
3815
    oprot.trans.flush()
3816
 
3817
  def process_addSimilarItem(self, seqid, iprot, oprot):
3818
    args = addSimilarItem_args()
3819
    args.read(iprot)
3820
    iprot.readMessageEnd()
3821
    result = addSimilarItem_result()
3822
    try:
3823
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3824
    except CatalogServiceException, cex:
3825
      result.cex = cex
3826
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3827
    result.write(oprot)
3828
    oprot.writeMessageEnd()
3829
    oprot.trans.flush()
3830
 
6512 kshitij.so 3831
  def process_addTag(self, seqid, iprot, oprot):
3832
    args = addTag_args()
3833
    args.read(iprot)
3834
    iprot.readMessageEnd()
3835
    result = addTag_result()
3836
    result.success = self._handler.addTag(args.displayName, args.itemId)
3837
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3838
    result.write(oprot)
3839
    oprot.writeMessageEnd()
3840
    oprot.trans.flush()
3841
 
3842
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3843
    args = deleteEntityTag_args()
3844
    args.read(iprot)
3845
    iprot.readMessageEnd()
3846
    result = deleteEntityTag_result()
3847
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3848
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3849
    result.write(oprot)
3850
    oprot.writeMessageEnd()
3851
    oprot.trans.flush()
3852
 
3853
  def process_deleteTag(self, seqid, iprot, oprot):
3854
    args = deleteTag_args()
3855
    args.read(iprot)
3856
    iprot.readMessageEnd()
3857
    result = deleteTag_result()
3858
    result.success = self._handler.deleteTag(args.displayName)
3859
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3860
    result.write(oprot)
3861
    oprot.writeMessageEnd()
3862
    oprot.trans.flush()
3863
 
3864
  def process_getAllTags(self, seqid, iprot, oprot):
3865
    args = getAllTags_args()
3866
    args.read(iprot)
3867
    iprot.readMessageEnd()
3868
    result = getAllTags_result()
3869
    result.success = self._handler.getAllTags()
3870
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3871
    result.write(oprot)
3872
    oprot.writeMessageEnd()
3873
    oprot.trans.flush()
3874
 
3875
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3876
    args = getAllEntitiesByTagName_args()
3877
    args.read(iprot)
3878
    iprot.readMessageEnd()
3879
    result = getAllEntitiesByTagName_result()
3880
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
3881
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
3882
    result.write(oprot)
3883
    oprot.writeMessageEnd()
3884
    oprot.trans.flush()
3885
 
6845 amit.gupta 3886
  def process_getAllEntityTags(self, seqid, iprot, oprot):
3887
    args = getAllEntityTags_args()
3888
    args.read(iprot)
3889
    iprot.readMessageEnd()
3890
    result = getAllEntityTags_result()
3891
    result.success = self._handler.getAllEntityTags()
3892
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
3893
    result.write(oprot)
3894
    oprot.writeMessageEnd()
3895
    oprot.trans.flush()
3896
 
6850 kshitij.so 3897
  def process_addBanner(self, seqid, iprot, oprot):
3898
    args = addBanner_args()
3899
    args.read(iprot)
3900
    iprot.readMessageEnd()
3901
    result = addBanner_result()
3902
    result.success = self._handler.addBanner(args.bannerName, args.imageName, args.link, args.priority, args.isActive, args.hasMap)
3903
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
3904
    result.write(oprot)
3905
    oprot.writeMessageEnd()
3906
    oprot.trans.flush()
3907
 
3908
  def process_getAllBanners(self, seqid, iprot, oprot):
3909
    args = getAllBanners_args()
3910
    args.read(iprot)
3911
    iprot.readMessageEnd()
3912
    result = getAllBanners_result()
3913
    result.success = self._handler.getAllBanners()
3914
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
3915
    result.write(oprot)
3916
    oprot.writeMessageEnd()
3917
    oprot.trans.flush()
3918
 
3919
  def process_deleteBanner(self, seqid, iprot, oprot):
3920
    args = deleteBanner_args()
3921
    args.read(iprot)
3922
    iprot.readMessageEnd()
3923
    result = deleteBanner_result()
3924
    result.success = self._handler.deleteBanner(args.bannerName)
3925
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
3926
    result.write(oprot)
3927
    oprot.writeMessageEnd()
3928
    oprot.trans.flush()
3929
 
3930
  def process_getBannerDetails(self, seqid, iprot, oprot):
3931
    args = getBannerDetails_args()
3932
    args.read(iprot)
3933
    iprot.readMessageEnd()
3934
    result = getBannerDetails_result()
3935
    result.success = self._handler.getBannerDetails(args.bannerName)
3936
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
3937
    result.write(oprot)
3938
    oprot.writeMessageEnd()
3939
    oprot.trans.flush()
3940
 
3941
  def process_getActiveBanners(self, seqid, iprot, oprot):
3942
    args = getActiveBanners_args()
3943
    args.read(iprot)
3944
    iprot.readMessageEnd()
3945
    result = getActiveBanners_result()
3946
    result.success = self._handler.getActiveBanners()
3947
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
3948
    result.write(oprot)
3949
    oprot.writeMessageEnd()
3950
    oprot.trans.flush()
3951
 
6849 kshitij.so 3952
  def process_addBannerMap(self, seqid, iprot, oprot):
3953
    args = addBannerMap_args()
3954
    args.read(iprot)
3955
    iprot.readMessageEnd()
3956
    result = addBannerMap_result()
3957
    result.success = self._handler.addBannerMap(args.bannerName, args.mapLink, args.coordinates)
3958
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
3959
    result.write(oprot)
3960
    oprot.writeMessageEnd()
3961
    oprot.trans.flush()
3962
 
3963
  def process_deleteBannerMap(self, seqid, iprot, oprot):
3964
    args = deleteBannerMap_args()
3965
    args.read(iprot)
3966
    iprot.readMessageEnd()
3967
    result = deleteBannerMap_result()
3968
    result.success = self._handler.deleteBannerMap(args.bannerName)
3969
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
3970
    result.write(oprot)
3971
    oprot.writeMessageEnd()
3972
    oprot.trans.flush()
3973
 
3974
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
3975
    args = getBannerMapDetails_args()
3976
    args.read(iprot)
3977
    iprot.readMessageEnd()
3978
    result = getBannerMapDetails_result()
3979
    result.success = self._handler.getBannerMapDetails(args.bannerName)
3980
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
3981
    result.write(oprot)
3982
    oprot.writeMessageEnd()
3983
    oprot.trans.flush()
3984
 
5944 mandeep.dh 3985
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
3986
    args = deleteSimilarItem_args()
3987
    args.read(iprot)
3988
    iprot.readMessageEnd()
3989
    result = deleteSimilarItem_result()
3990
    try:
3991
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
3992
    except CatalogServiceException, cex:
3993
      result.cex = cex
3994
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
3995
    result.write(oprot)
3996
    oprot.writeMessageEnd()
3997
    oprot.trans.flush()
3998
 
3999
  def process_checkSimilarItem(self, seqid, iprot, oprot):
4000
    args = checkSimilarItem_args()
4001
    args.read(iprot)
4002
    iprot.readMessageEnd()
4003
    result = checkSimilarItem_result()
4004
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
4005
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
4006
    result.write(oprot)
4007
    oprot.writeMessageEnd()
4008
    oprot.trans.flush()
4009
 
4010
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
4011
    args = validateRiskyStatus_args()
4012
    args.read(iprot)
4013
    iprot.readMessageEnd()
4014
    result = validateRiskyStatus_result()
4015
    self._handler.validateRiskyStatus(args.itemId)
4016
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
4017
    result.write(oprot)
4018
    oprot.writeMessageEnd()
4019
    oprot.trans.flush()
4020
 
4021
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
4022
    args = changeItemRiskyFlag_args()
4023
    args.read(iprot)
4024
    iprot.readMessageEnd()
4025
    result = changeItemRiskyFlag_result()
4026
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
4027
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
4028
    result.write(oprot)
4029
    oprot.writeMessageEnd()
4030
    oprot.trans.flush()
4031
 
4032
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
4033
    args = getItemsByRiskyFlag_args()
4034
    args.read(iprot)
4035
    iprot.readMessageEnd()
4036
    result = getItemsByRiskyFlag_result()
4037
    result.success = self._handler.getItemsByRiskyFlag()
4038
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
4039
    result.write(oprot)
4040
    oprot.writeMessageEnd()
4041
    oprot.trans.flush()
4042
 
4043
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
4044
    args = getItemsForMasterSheet_args()
4045
    args.read(iprot)
4046
    iprot.readMessageEnd()
4047
    result = getItemsForMasterSheet_result()
4048
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
4049
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
4050
    result.write(oprot)
4051
    oprot.writeMessageEnd()
4052
    oprot.trans.flush()
4053
 
4054
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
4055
    args = getSimilarItemsCatalogIds_args()
4056
    args.read(iprot)
4057
    iprot.readMessageEnd()
4058
    result = getSimilarItemsCatalogIds_result()
4059
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
4060
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
4061
    result.write(oprot)
4062
    oprot.writeMessageEnd()
4063
    oprot.trans.flush()
4064
 
4065
  def process_addProductNotification(self, seqid, iprot, oprot):
4066
    args = addProductNotification_args()
4067
    args.read(iprot)
4068
    iprot.readMessageEnd()
4069
    result = addProductNotification_result()
4070
    result.success = self._handler.addProductNotification(args.itemId, args.email)
4071
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
4072
    result.write(oprot)
4073
    oprot.writeMessageEnd()
4074
    oprot.trans.flush()
4075
 
4076
  def process_sendProductNotifications(self, seqid, iprot, oprot):
4077
    args = sendProductNotifications_args()
4078
    args.read(iprot)
4079
    iprot.readMessageEnd()
4080
    result = sendProductNotifications_result()
4081
    result.success = self._handler.sendProductNotifications()
4082
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
4083
    result.write(oprot)
4084
    oprot.writeMessageEnd()
4085
    oprot.trans.flush()
4086
 
4087
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
4088
    args = getAllBrandsByCategory_args()
4089
    args.read(iprot)
4090
    iprot.readMessageEnd()
4091
    result = getAllBrandsByCategory_result()
4092
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
4093
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
4094
    result.write(oprot)
4095
    oprot.writeMessageEnd()
4096
    oprot.trans.flush()
4097
 
4098
  def process_getAllBrands(self, seqid, iprot, oprot):
4099
    args = getAllBrands_args()
4100
    args.read(iprot)
4101
    iprot.readMessageEnd()
4102
    result = getAllBrands_result()
4103
    result.success = self._handler.getAllBrands()
4104
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
4105
    result.write(oprot)
4106
    oprot.writeMessageEnd()
4107
    oprot.trans.flush()
4108
 
4109
  def process_getAllSources(self, seqid, iprot, oprot):
4110
    args = getAllSources_args()
4111
    args.read(iprot)
4112
    iprot.readMessageEnd()
4113
    result = getAllSources_result()
4114
    result.success = self._handler.getAllSources()
4115
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
4116
    result.write(oprot)
4117
    oprot.writeMessageEnd()
4118
    oprot.trans.flush()
4119
 
4120
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
4121
    args = getItemPricingBySource_args()
4122
    args.read(iprot)
4123
    iprot.readMessageEnd()
4124
    result = getItemPricingBySource_result()
4125
    try:
4126
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
4127
    except CatalogServiceException, cex:
4128
      result.cex = cex
4129
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
4130
    result.write(oprot)
4131
    oprot.writeMessageEnd()
4132
    oprot.trans.flush()
4133
 
4134
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
4135
    args = addSourceItemPricing_args()
4136
    args.read(iprot)
4137
    iprot.readMessageEnd()
4138
    result = addSourceItemPricing_result()
4139
    try:
4140
      self._handler.addSourceItemPricing(args.sourceItemPricing)
4141
    except CatalogServiceException, cex:
4142
      result.cex = cex
4143
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
4144
    result.write(oprot)
4145
    oprot.writeMessageEnd()
4146
    oprot.trans.flush()
4147
 
4148
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
4149
    args = getAllSourcePricing_args()
4150
    args.read(iprot)
4151
    iprot.readMessageEnd()
4152
    result = getAllSourcePricing_result()
4153
    try:
4154
      result.success = self._handler.getAllSourcePricing(args.itemId)
4155
    except CatalogServiceException, cex:
4156
      result.cex = cex
4157
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
4158
    result.write(oprot)
4159
    oprot.writeMessageEnd()
4160
    oprot.trans.flush()
4161
 
4162
  def process_getItemForSource(self, seqid, iprot, oprot):
4163
    args = getItemForSource_args()
4164
    args.read(iprot)
4165
    iprot.readMessageEnd()
4166
    result = getItemForSource_result()
4167
    try:
4168
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
4169
    except CatalogServiceException, cex:
4170
      result.cex = cex
4171
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
4172
    result.write(oprot)
4173
    oprot.writeMessageEnd()
4174
    oprot.trans.flush()
4175
 
4176
  def process_searchItemsInRange(self, seqid, iprot, oprot):
4177
    args = searchItemsInRange_args()
4178
    args.read(iprot)
4179
    iprot.readMessageEnd()
4180
    result = searchItemsInRange_result()
4181
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
4182
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
4183
    result.write(oprot)
4184
    oprot.writeMessageEnd()
4185
    oprot.trans.flush()
4186
 
4187
  def process_getSearchResultCount(self, seqid, iprot, oprot):
4188
    args = getSearchResultCount_args()
4189
    args.read(iprot)
4190
    iprot.readMessageEnd()
4191
    result = getSearchResultCount_result()
4192
    result.success = self._handler.getSearchResultCount(args.searchTerms)
4193
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
4194
    result.write(oprot)
4195
    oprot.writeMessageEnd()
4196
    oprot.trans.flush()
4197
 
4198
  def process_getProductNotifications(self, seqid, iprot, oprot):
4199
    args = getProductNotifications_args()
4200
    args.read(iprot)
4201
    iprot.readMessageEnd()
4202
    result = getProductNotifications_result()
4203
    result.success = self._handler.getProductNotifications(args.startDateTime)
4204
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
4205
    result.write(oprot)
4206
    oprot.writeMessageEnd()
4207
    oprot.trans.flush()
4208
 
4209
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
4210
    args = getProductNotificationRequestCount_args()
4211
    args.read(iprot)
4212
    iprot.readMessageEnd()
4213
    result = getProductNotificationRequestCount_result()
4214
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
4215
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
4216
    result.write(oprot)
4217
    oprot.writeMessageEnd()
4218
    oprot.trans.flush()
4219
 
4220
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
4221
    args = addAuthorizationLog_args()
4222
    args.read(iprot)
4223
    iprot.readMessageEnd()
4224
    result = addAuthorizationLog_result()
4225
    try:
4226
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
4227
    except CatalogServiceException, cex:
4228
      result.cex = cex
4229
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
4230
    result.write(oprot)
4231
    oprot.writeMessageEnd()
4232
    oprot.trans.flush()
4233
 
4234
  def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):
4235
    args = getClearanceSaleCatalogIds_args()
4236
    args.read(iprot)
4237
    iprot.readMessageEnd()
4238
    result = getClearanceSaleCatalogIds_result()
4239
    try:
4240
      result.success = self._handler.getClearanceSaleCatalogIds()
4241
    except CatalogServiceException, cex:
4242
      result.cex = cex
4243
    oprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)
4244
    result.write(oprot)
4245
    oprot.writeMessageEnd()
4246
    oprot.trans.flush()
4247
 
4248
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
4249
    args = addupdateVoucherForItem_args()
4250
    args.read(iprot)
4251
    iprot.readMessageEnd()
4252
    result = addupdateVoucherForItem_result()
4253
    try:
4254
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
4255
    except CatalogServiceException, cex:
4256
      result.cex = cex
4257
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
4258
    result.write(oprot)
4259
    oprot.writeMessageEnd()
4260
    oprot.trans.flush()
4261
 
4262
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
4263
    args = deleteVoucherForItem_args()
4264
    args.read(iprot)
4265
    iprot.readMessageEnd()
4266
    result = deleteVoucherForItem_result()
4267
    try:
4268
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
4269
    except CatalogServiceException, cex:
4270
      result.cex = cex
4271
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
4272
    result.write(oprot)
4273
    oprot.writeMessageEnd()
4274
    oprot.trans.flush()
4275
 
4276
  def process_getVoucherAmount(self, seqid, iprot, oprot):
4277
    args = getVoucherAmount_args()
4278
    args.read(iprot)
4279
    iprot.readMessageEnd()
4280
    result = getVoucherAmount_result()
4281
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
4282
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
4283
    result.write(oprot)
4284
    oprot.writeMessageEnd()
4285
    oprot.trans.flush()
4286
 
4287
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
4288
    args = getAllItemVouchers_args()
4289
    args.read(iprot)
4290
    iprot.readMessageEnd()
4291
    result = getAllItemVouchers_result()
4292
    result.success = self._handler.getAllItemVouchers(args.itemId)
4293
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
4294
    result.write(oprot)
4295
    oprot.writeMessageEnd()
4296
    oprot.trans.flush()
4297
 
4298
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
4299
    args = isValidCatalogItemId_args()
4300
    args.read(iprot)
4301
    iprot.readMessageEnd()
4302
    result = isValidCatalogItemId_result()
4303
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
4304
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
4305
    result.write(oprot)
4306
    oprot.writeMessageEnd()
4307
    oprot.trans.flush()
4308
 
6039 amit.gupta 4309
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
4310
    args = getVatPercentageForItem_args()
4311
    args.read(iprot)
4312
    iprot.readMessageEnd()
4313
    result = getVatPercentageForItem_result()
4314
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
4315
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
4316
    result.write(oprot)
4317
    oprot.writeMessageEnd()
4318
    oprot.trans.flush()
5944 mandeep.dh 4319
 
6039 amit.gupta 4320
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
4321
    args = getVatAmountForItem_args()
4322
    args.read(iprot)
4323
    iprot.readMessageEnd()
4324
    result = getVatAmountForItem_result()
4325
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
4326
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
4327
    result.write(oprot)
4328
    oprot.writeMessageEnd()
4329
    oprot.trans.flush()
4330
 
6531 vikram.rag 4331
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
4332
    args = getAllIgnoredInventoryUpdateItemsList_args()
4333
    args.read(iprot)
4334
    iprot.readMessageEnd()
4335
    result = getAllIgnoredInventoryUpdateItemsList_result()
4336
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
4337
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
4338
    result.write(oprot)
4339
    oprot.writeMessageEnd()
4340
    oprot.trans.flush()
6039 amit.gupta 4341
 
6821 amar.kumar 4342
  def process_getAllAliveItems(self, seqid, iprot, oprot):
4343
    args = getAllAliveItems_args()
4344
    args.read(iprot)
4345
    iprot.readMessageEnd()
4346
    result = getAllAliveItems_result()
4347
    result.success = self._handler.getAllAliveItems()
4348
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
4349
    result.write(oprot)
4350
    oprot.writeMessageEnd()
4351
    oprot.trans.flush()
4352
 
6805 anupam.sin 4353
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
4354
    args = getInsuranceAmount_args()
4355
    args.read(iprot)
4356
    iprot.readMessageEnd()
4357
    result = getInsuranceAmount_result()
6921 anupam.sin 4358
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 4359
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
4360
    result.write(oprot)
4361
    oprot.writeMessageEnd()
4362
    oprot.trans.flush()
6531 vikram.rag 4363
 
6805 anupam.sin 4364
  def process_getInsurer(self, seqid, iprot, oprot):
4365
    args = getInsurer_args()
4366
    args.read(iprot)
4367
    iprot.readMessageEnd()
4368
    result = getInsurer_result()
4369
    result.success = self._handler.getInsurer(args.insurerId)
4370
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
4371
    result.write(oprot)
4372
    oprot.writeMessageEnd()
4373
    oprot.trans.flush()
4374
 
6838 vikram.rag 4375
  def process_getAllInsurers(self, seqid, iprot, oprot):
4376
    args = getAllInsurers_args()
4377
    args.read(iprot)
4378
    iprot.readMessageEnd()
4379
    result = getAllInsurers_result()
4380
    result.success = self._handler.getAllInsurers()
4381
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
4382
    result.write(oprot)
4383
    oprot.writeMessageEnd()
4384
    oprot.trans.flush()
6805 anupam.sin 4385
 
6838 vikram.rag 4386
 
5944 mandeep.dh 4387
# HELPER FUNCTIONS AND STRUCTURES
4388
 
4389
class addItem_args:
4390
  """
4391
  Attributes:
4392
   - item
4393
  """
4394
 
4395
  thrift_spec = (
4396
    None, # 0
4397
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4398
  )
4399
 
4400
  def __init__(self, item=None,):
4401
    self.item = item
4402
 
4403
  def read(self, iprot):
4404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4406
      return
4407
    iprot.readStructBegin()
4408
    while True:
4409
      (fname, ftype, fid) = iprot.readFieldBegin()
4410
      if ftype == TType.STOP:
4411
        break
4412
      if fid == 1:
4413
        if ftype == TType.STRUCT:
4414
          self.item = Item()
4415
          self.item.read(iprot)
4416
        else:
4417
          iprot.skip(ftype)
4418
      else:
4419
        iprot.skip(ftype)
4420
      iprot.readFieldEnd()
4421
    iprot.readStructEnd()
4422
 
4423
  def write(self, oprot):
4424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4426
      return
4427
    oprot.writeStructBegin('addItem_args')
4428
    if self.item is not None:
4429
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4430
      self.item.write(oprot)
4431
      oprot.writeFieldEnd()
4432
    oprot.writeFieldStop()
4433
    oprot.writeStructEnd()
4434
 
4435
  def validate(self):
4436
    return
4437
 
4438
 
4439
  def __repr__(self):
4440
    L = ['%s=%r' % (key, value)
4441
      for key, value in self.__dict__.iteritems()]
4442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4443
 
4444
  def __eq__(self, other):
4445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4446
 
4447
  def __ne__(self, other):
4448
    return not (self == other)
4449
 
4450
class addItem_result:
4451
  """
4452
  Attributes:
4453
   - success
4454
   - cex
4455
  """
4456
 
4457
  thrift_spec = (
4458
    (0, TType.I64, 'success', None, None, ), # 0
4459
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4460
  )
4461
 
4462
  def __init__(self, success=None, cex=None,):
4463
    self.success = success
4464
    self.cex = cex
4465
 
4466
  def read(self, iprot):
4467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4469
      return
4470
    iprot.readStructBegin()
4471
    while True:
4472
      (fname, ftype, fid) = iprot.readFieldBegin()
4473
      if ftype == TType.STOP:
4474
        break
4475
      if fid == 0:
4476
        if ftype == TType.I64:
4477
          self.success = iprot.readI64();
4478
        else:
4479
          iprot.skip(ftype)
4480
      elif fid == 1:
4481
        if ftype == TType.STRUCT:
4482
          self.cex = CatalogServiceException()
4483
          self.cex.read(iprot)
4484
        else:
4485
          iprot.skip(ftype)
4486
      else:
4487
        iprot.skip(ftype)
4488
      iprot.readFieldEnd()
4489
    iprot.readStructEnd()
4490
 
4491
  def write(self, oprot):
4492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4494
      return
4495
    oprot.writeStructBegin('addItem_result')
4496
    if self.success is not None:
4497
      oprot.writeFieldBegin('success', TType.I64, 0)
4498
      oprot.writeI64(self.success)
4499
      oprot.writeFieldEnd()
4500
    if self.cex is not None:
4501
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4502
      self.cex.write(oprot)
4503
      oprot.writeFieldEnd()
4504
    oprot.writeFieldStop()
4505
    oprot.writeStructEnd()
4506
 
4507
  def validate(self):
4508
    return
4509
 
4510
 
4511
  def __repr__(self):
4512
    L = ['%s=%r' % (key, value)
4513
      for key, value in self.__dict__.iteritems()]
4514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4515
 
4516
  def __eq__(self, other):
4517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4518
 
4519
  def __ne__(self, other):
4520
    return not (self == other)
4521
 
4522
class updateItem_args:
4523
  """
4524
  Attributes:
4525
   - item
4526
  """
4527
 
4528
  thrift_spec = (
4529
    None, # 0
4530
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4531
  )
4532
 
4533
  def __init__(self, item=None,):
4534
    self.item = item
4535
 
4536
  def read(self, iprot):
4537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4539
      return
4540
    iprot.readStructBegin()
4541
    while True:
4542
      (fname, ftype, fid) = iprot.readFieldBegin()
4543
      if ftype == TType.STOP:
4544
        break
4545
      if fid == 1:
4546
        if ftype == TType.STRUCT:
4547
          self.item = Item()
4548
          self.item.read(iprot)
4549
        else:
4550
          iprot.skip(ftype)
4551
      else:
4552
        iprot.skip(ftype)
4553
      iprot.readFieldEnd()
4554
    iprot.readStructEnd()
4555
 
4556
  def write(self, oprot):
4557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4559
      return
4560
    oprot.writeStructBegin('updateItem_args')
4561
    if self.item is not None:
4562
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4563
      self.item.write(oprot)
4564
      oprot.writeFieldEnd()
4565
    oprot.writeFieldStop()
4566
    oprot.writeStructEnd()
4567
 
4568
  def validate(self):
4569
    return
4570
 
4571
 
4572
  def __repr__(self):
4573
    L = ['%s=%r' % (key, value)
4574
      for key, value in self.__dict__.iteritems()]
4575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4576
 
4577
  def __eq__(self, other):
4578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4579
 
4580
  def __ne__(self, other):
4581
    return not (self == other)
4582
 
4583
class updateItem_result:
4584
  """
4585
  Attributes:
4586
   - success
4587
   - cex
4588
  """
4589
 
4590
  thrift_spec = (
4591
    (0, TType.I64, 'success', None, None, ), # 0
4592
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4593
  )
4594
 
4595
  def __init__(self, success=None, cex=None,):
4596
    self.success = success
4597
    self.cex = cex
4598
 
4599
  def read(self, iprot):
4600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4602
      return
4603
    iprot.readStructBegin()
4604
    while True:
4605
      (fname, ftype, fid) = iprot.readFieldBegin()
4606
      if ftype == TType.STOP:
4607
        break
4608
      if fid == 0:
4609
        if ftype == TType.I64:
4610
          self.success = iprot.readI64();
4611
        else:
4612
          iprot.skip(ftype)
4613
      elif fid == 1:
4614
        if ftype == TType.STRUCT:
4615
          self.cex = CatalogServiceException()
4616
          self.cex.read(iprot)
4617
        else:
4618
          iprot.skip(ftype)
4619
      else:
4620
        iprot.skip(ftype)
4621
      iprot.readFieldEnd()
4622
    iprot.readStructEnd()
4623
 
4624
  def write(self, oprot):
4625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4627
      return
4628
    oprot.writeStructBegin('updateItem_result')
4629
    if self.success is not None:
4630
      oprot.writeFieldBegin('success', TType.I64, 0)
4631
      oprot.writeI64(self.success)
4632
      oprot.writeFieldEnd()
4633
    if self.cex is not None:
4634
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4635
      self.cex.write(oprot)
4636
      oprot.writeFieldEnd()
4637
    oprot.writeFieldStop()
4638
    oprot.writeStructEnd()
4639
 
4640
  def validate(self):
4641
    return
4642
 
4643
 
4644
  def __repr__(self):
4645
    L = ['%s=%r' % (key, value)
4646
      for key, value in self.__dict__.iteritems()]
4647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4648
 
4649
  def __eq__(self, other):
4650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4651
 
4652
  def __ne__(self, other):
4653
    return not (self == other)
4654
 
4655
class isActive_args:
4656
  """
4657
  Attributes:
4658
   - itemId
4659
  """
4660
 
4661
  thrift_spec = (
4662
    None, # 0
4663
    (1, TType.I64, 'itemId', None, None, ), # 1
4664
  )
4665
 
4666
  def __init__(self, itemId=None,):
4667
    self.itemId = itemId
4668
 
4669
  def read(self, iprot):
4670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4672
      return
4673
    iprot.readStructBegin()
4674
    while True:
4675
      (fname, ftype, fid) = iprot.readFieldBegin()
4676
      if ftype == TType.STOP:
4677
        break
4678
      if fid == 1:
4679
        if ftype == TType.I64:
4680
          self.itemId = iprot.readI64();
4681
        else:
4682
          iprot.skip(ftype)
4683
      else:
4684
        iprot.skip(ftype)
4685
      iprot.readFieldEnd()
4686
    iprot.readStructEnd()
4687
 
4688
  def write(self, oprot):
4689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4691
      return
4692
    oprot.writeStructBegin('isActive_args')
4693
    if self.itemId is not None:
4694
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4695
      oprot.writeI64(self.itemId)
4696
      oprot.writeFieldEnd()
4697
    oprot.writeFieldStop()
4698
    oprot.writeStructEnd()
4699
 
4700
  def validate(self):
4701
    return
4702
 
4703
 
4704
  def __repr__(self):
4705
    L = ['%s=%r' % (key, value)
4706
      for key, value in self.__dict__.iteritems()]
4707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4708
 
4709
  def __eq__(self, other):
4710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4711
 
4712
  def __ne__(self, other):
4713
    return not (self == other)
4714
 
4715
class isActive_result:
4716
  """
4717
  Attributes:
4718
   - success
4719
   - isex
4720
  """
4721
 
4722
  thrift_spec = (
4723
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4724
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4725
  )
4726
 
4727
  def __init__(self, success=None, isex=None,):
4728
    self.success = success
4729
    self.isex = isex
4730
 
4731
  def read(self, iprot):
4732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4734
      return
4735
    iprot.readStructBegin()
4736
    while True:
4737
      (fname, ftype, fid) = iprot.readFieldBegin()
4738
      if ftype == TType.STOP:
4739
        break
4740
      if fid == 0:
4741
        if ftype == TType.STRUCT:
4742
          self.success = ItemShippingInfo()
4743
          self.success.read(iprot)
4744
        else:
4745
          iprot.skip(ftype)
4746
      elif fid == 1:
4747
        if ftype == TType.STRUCT:
4748
          self.isex = CatalogServiceException()
4749
          self.isex.read(iprot)
4750
        else:
4751
          iprot.skip(ftype)
4752
      else:
4753
        iprot.skip(ftype)
4754
      iprot.readFieldEnd()
4755
    iprot.readStructEnd()
4756
 
4757
  def write(self, oprot):
4758
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4759
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4760
      return
4761
    oprot.writeStructBegin('isActive_result')
4762
    if self.success is not None:
4763
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4764
      self.success.write(oprot)
4765
      oprot.writeFieldEnd()
4766
    if self.isex is not None:
4767
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4768
      self.isex.write(oprot)
4769
      oprot.writeFieldEnd()
4770
    oprot.writeFieldStop()
4771
    oprot.writeStructEnd()
4772
 
4773
  def validate(self):
4774
    return
4775
 
4776
 
4777
  def __repr__(self):
4778
    L = ['%s=%r' % (key, value)
4779
      for key, value in self.__dict__.iteritems()]
4780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4781
 
4782
  def __eq__(self, other):
4783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4784
 
4785
  def __ne__(self, other):
4786
    return not (self == other)
4787
 
4788
class getItemStatusDescription_args:
4789
  """
4790
  Attributes:
4791
   - itemId
4792
  """
4793
 
4794
  thrift_spec = (
4795
    None, # 0
4796
    (1, TType.I64, 'itemId', None, None, ), # 1
4797
  )
4798
 
4799
  def __init__(self, itemId=None,):
4800
    self.itemId = itemId
4801
 
4802
  def read(self, iprot):
4803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4805
      return
4806
    iprot.readStructBegin()
4807
    while True:
4808
      (fname, ftype, fid) = iprot.readFieldBegin()
4809
      if ftype == TType.STOP:
4810
        break
4811
      if fid == 1:
4812
        if ftype == TType.I64:
4813
          self.itemId = iprot.readI64();
4814
        else:
4815
          iprot.skip(ftype)
4816
      else:
4817
        iprot.skip(ftype)
4818
      iprot.readFieldEnd()
4819
    iprot.readStructEnd()
4820
 
4821
  def write(self, oprot):
4822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4824
      return
4825
    oprot.writeStructBegin('getItemStatusDescription_args')
4826
    if self.itemId is not None:
4827
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4828
      oprot.writeI64(self.itemId)
4829
      oprot.writeFieldEnd()
4830
    oprot.writeFieldStop()
4831
    oprot.writeStructEnd()
4832
 
4833
  def validate(self):
4834
    return
4835
 
4836
 
4837
  def __repr__(self):
4838
    L = ['%s=%r' % (key, value)
4839
      for key, value in self.__dict__.iteritems()]
4840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4841
 
4842
  def __eq__(self, other):
4843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4844
 
4845
  def __ne__(self, other):
4846
    return not (self == other)
4847
 
4848
class getItemStatusDescription_result:
4849
  """
4850
  Attributes:
4851
   - success
4852
   - isex
4853
  """
4854
 
4855
  thrift_spec = (
4856
    (0, TType.STRING, 'success', None, None, ), # 0
4857
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4858
  )
4859
 
4860
  def __init__(self, success=None, isex=None,):
4861
    self.success = success
4862
    self.isex = isex
4863
 
4864
  def read(self, iprot):
4865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4867
      return
4868
    iprot.readStructBegin()
4869
    while True:
4870
      (fname, ftype, fid) = iprot.readFieldBegin()
4871
      if ftype == TType.STOP:
4872
        break
4873
      if fid == 0:
4874
        if ftype == TType.STRING:
4875
          self.success = iprot.readString();
4876
        else:
4877
          iprot.skip(ftype)
4878
      elif fid == 1:
4879
        if ftype == TType.STRUCT:
4880
          self.isex = CatalogServiceException()
4881
          self.isex.read(iprot)
4882
        else:
4883
          iprot.skip(ftype)
4884
      else:
4885
        iprot.skip(ftype)
4886
      iprot.readFieldEnd()
4887
    iprot.readStructEnd()
4888
 
4889
  def write(self, oprot):
4890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4891
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4892
      return
4893
    oprot.writeStructBegin('getItemStatusDescription_result')
4894
    if self.success is not None:
4895
      oprot.writeFieldBegin('success', TType.STRING, 0)
4896
      oprot.writeString(self.success)
4897
      oprot.writeFieldEnd()
4898
    if self.isex is not None:
4899
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4900
      self.isex.write(oprot)
4901
      oprot.writeFieldEnd()
4902
    oprot.writeFieldStop()
4903
    oprot.writeStructEnd()
4904
 
4905
  def validate(self):
4906
    return
4907
 
4908
 
4909
  def __repr__(self):
4910
    L = ['%s=%r' % (key, value)
4911
      for key, value in self.__dict__.iteritems()]
4912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4913
 
4914
  def __eq__(self, other):
4915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4916
 
4917
  def __ne__(self, other):
4918
    return not (self == other)
4919
 
4920
class startItemOn_args:
4921
  """
4922
  Attributes:
4923
   - item_id
4924
   - timestamp
4925
  """
4926
 
4927
  thrift_spec = (
4928
    None, # 0
4929
    (1, TType.I64, 'item_id', None, None, ), # 1
4930
    (2, TType.I64, 'timestamp', None, None, ), # 2
4931
  )
4932
 
4933
  def __init__(self, item_id=None, timestamp=None,):
4934
    self.item_id = item_id
4935
    self.timestamp = timestamp
4936
 
4937
  def read(self, iprot):
4938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4940
      return
4941
    iprot.readStructBegin()
4942
    while True:
4943
      (fname, ftype, fid) = iprot.readFieldBegin()
4944
      if ftype == TType.STOP:
4945
        break
4946
      if fid == 1:
4947
        if ftype == TType.I64:
4948
          self.item_id = iprot.readI64();
4949
        else:
4950
          iprot.skip(ftype)
4951
      elif fid == 2:
4952
        if ftype == TType.I64:
4953
          self.timestamp = iprot.readI64();
4954
        else:
4955
          iprot.skip(ftype)
4956
      else:
4957
        iprot.skip(ftype)
4958
      iprot.readFieldEnd()
4959
    iprot.readStructEnd()
4960
 
4961
  def write(self, oprot):
4962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4964
      return
4965
    oprot.writeStructBegin('startItemOn_args')
4966
    if self.item_id is not None:
4967
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4968
      oprot.writeI64(self.item_id)
4969
      oprot.writeFieldEnd()
4970
    if self.timestamp is not None:
4971
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4972
      oprot.writeI64(self.timestamp)
4973
      oprot.writeFieldEnd()
4974
    oprot.writeFieldStop()
4975
    oprot.writeStructEnd()
4976
 
4977
  def validate(self):
4978
    return
4979
 
4980
 
4981
  def __repr__(self):
4982
    L = ['%s=%r' % (key, value)
4983
      for key, value in self.__dict__.iteritems()]
4984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4985
 
4986
  def __eq__(self, other):
4987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4988
 
4989
  def __ne__(self, other):
4990
    return not (self == other)
4991
 
4992
class startItemOn_result:
4993
  """
4994
  Attributes:
4995
   - cex
4996
  """
4997
 
4998
  thrift_spec = (
4999
    None, # 0
5000
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5001
  )
5002
 
5003
  def __init__(self, cex=None,):
5004
    self.cex = cex
5005
 
5006
  def read(self, iprot):
5007
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5008
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5009
      return
5010
    iprot.readStructBegin()
5011
    while True:
5012
      (fname, ftype, fid) = iprot.readFieldBegin()
5013
      if ftype == TType.STOP:
5014
        break
5015
      if fid == 1:
5016
        if ftype == TType.STRUCT:
5017
          self.cex = CatalogServiceException()
5018
          self.cex.read(iprot)
5019
        else:
5020
          iprot.skip(ftype)
5021
      else:
5022
        iprot.skip(ftype)
5023
      iprot.readFieldEnd()
5024
    iprot.readStructEnd()
5025
 
5026
  def write(self, oprot):
5027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5029
      return
5030
    oprot.writeStructBegin('startItemOn_result')
5031
    if self.cex is not None:
5032
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5033
      self.cex.write(oprot)
5034
      oprot.writeFieldEnd()
5035
    oprot.writeFieldStop()
5036
    oprot.writeStructEnd()
5037
 
5038
  def validate(self):
5039
    return
5040
 
5041
 
5042
  def __repr__(self):
5043
    L = ['%s=%r' % (key, value)
5044
      for key, value in self.__dict__.iteritems()]
5045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5046
 
5047
  def __eq__(self, other):
5048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5049
 
5050
  def __ne__(self, other):
5051
    return not (self == other)
5052
 
5053
class retireItemOn_args:
5054
  """
5055
  Attributes:
5056
   - item_id
5057
   - timestamp
5058
  """
5059
 
5060
  thrift_spec = (
5061
    None, # 0
5062
    (1, TType.I64, 'item_id', None, None, ), # 1
5063
    (2, TType.I64, 'timestamp', None, None, ), # 2
5064
  )
5065
 
5066
  def __init__(self, item_id=None, timestamp=None,):
5067
    self.item_id = item_id
5068
    self.timestamp = timestamp
5069
 
5070
  def read(self, iprot):
5071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5073
      return
5074
    iprot.readStructBegin()
5075
    while True:
5076
      (fname, ftype, fid) = iprot.readFieldBegin()
5077
      if ftype == TType.STOP:
5078
        break
5079
      if fid == 1:
5080
        if ftype == TType.I64:
5081
          self.item_id = iprot.readI64();
5082
        else:
5083
          iprot.skip(ftype)
5084
      elif fid == 2:
5085
        if ftype == TType.I64:
5086
          self.timestamp = iprot.readI64();
5087
        else:
5088
          iprot.skip(ftype)
5089
      else:
5090
        iprot.skip(ftype)
5091
      iprot.readFieldEnd()
5092
    iprot.readStructEnd()
5093
 
5094
  def write(self, oprot):
5095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5097
      return
5098
    oprot.writeStructBegin('retireItemOn_args')
5099
    if self.item_id is not None:
5100
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5101
      oprot.writeI64(self.item_id)
5102
      oprot.writeFieldEnd()
5103
    if self.timestamp is not None:
5104
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5105
      oprot.writeI64(self.timestamp)
5106
      oprot.writeFieldEnd()
5107
    oprot.writeFieldStop()
5108
    oprot.writeStructEnd()
5109
 
5110
  def validate(self):
5111
    return
5112
 
5113
 
5114
  def __repr__(self):
5115
    L = ['%s=%r' % (key, value)
5116
      for key, value in self.__dict__.iteritems()]
5117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5118
 
5119
  def __eq__(self, other):
5120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5121
 
5122
  def __ne__(self, other):
5123
    return not (self == other)
5124
 
5125
class retireItemOn_result:
5126
  """
5127
  Attributes:
5128
   - cex
5129
  """
5130
 
5131
  thrift_spec = (
5132
    None, # 0
5133
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5134
  )
5135
 
5136
  def __init__(self, cex=None,):
5137
    self.cex = cex
5138
 
5139
  def read(self, iprot):
5140
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5141
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5142
      return
5143
    iprot.readStructBegin()
5144
    while True:
5145
      (fname, ftype, fid) = iprot.readFieldBegin()
5146
      if ftype == TType.STOP:
5147
        break
5148
      if fid == 1:
5149
        if ftype == TType.STRUCT:
5150
          self.cex = CatalogServiceException()
5151
          self.cex.read(iprot)
5152
        else:
5153
          iprot.skip(ftype)
5154
      else:
5155
        iprot.skip(ftype)
5156
      iprot.readFieldEnd()
5157
    iprot.readStructEnd()
5158
 
5159
  def write(self, oprot):
5160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5162
      return
5163
    oprot.writeStructBegin('retireItemOn_result')
5164
    if self.cex is not None:
5165
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5166
      self.cex.write(oprot)
5167
      oprot.writeFieldEnd()
5168
    oprot.writeFieldStop()
5169
    oprot.writeStructEnd()
5170
 
5171
  def validate(self):
5172
    return
5173
 
5174
 
5175
  def __repr__(self):
5176
    L = ['%s=%r' % (key, value)
5177
      for key, value in self.__dict__.iteritems()]
5178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5179
 
5180
  def __eq__(self, other):
5181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5182
 
5183
  def __ne__(self, other):
5184
    return not (self == other)
5185
 
5186
class changeItemStatus_args:
5187
  """
5188
  Attributes:
5189
   - item_id
5190
   - timestamp
5191
   - newstatus
5192
  """
5193
 
5194
  thrift_spec = (
5195
    None, # 0
5196
    (1, TType.I64, 'item_id', None, None, ), # 1
5197
    (2, TType.I64, 'timestamp', None, None, ), # 2
5198
    (3, TType.I32, 'newstatus', None, None, ), # 3
5199
  )
5200
 
5201
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
5202
    self.item_id = item_id
5203
    self.timestamp = timestamp
5204
    self.newstatus = newstatus
5205
 
5206
  def read(self, iprot):
5207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5209
      return
5210
    iprot.readStructBegin()
5211
    while True:
5212
      (fname, ftype, fid) = iprot.readFieldBegin()
5213
      if ftype == TType.STOP:
5214
        break
5215
      if fid == 1:
5216
        if ftype == TType.I64:
5217
          self.item_id = iprot.readI64();
5218
        else:
5219
          iprot.skip(ftype)
5220
      elif fid == 2:
5221
        if ftype == TType.I64:
5222
          self.timestamp = iprot.readI64();
5223
        else:
5224
          iprot.skip(ftype)
5225
      elif fid == 3:
5226
        if ftype == TType.I32:
5227
          self.newstatus = iprot.readI32();
5228
        else:
5229
          iprot.skip(ftype)
5230
      else:
5231
        iprot.skip(ftype)
5232
      iprot.readFieldEnd()
5233
    iprot.readStructEnd()
5234
 
5235
  def write(self, oprot):
5236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5238
      return
5239
    oprot.writeStructBegin('changeItemStatus_args')
5240
    if self.item_id is not None:
5241
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5242
      oprot.writeI64(self.item_id)
5243
      oprot.writeFieldEnd()
5244
    if self.timestamp is not None:
5245
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5246
      oprot.writeI64(self.timestamp)
5247
      oprot.writeFieldEnd()
5248
    if self.newstatus is not None:
5249
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
5250
      oprot.writeI32(self.newstatus)
5251
      oprot.writeFieldEnd()
5252
    oprot.writeFieldStop()
5253
    oprot.writeStructEnd()
5254
 
5255
  def validate(self):
5256
    return
5257
 
5258
 
5259
  def __repr__(self):
5260
    L = ['%s=%r' % (key, value)
5261
      for key, value in self.__dict__.iteritems()]
5262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5263
 
5264
  def __eq__(self, other):
5265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5266
 
5267
  def __ne__(self, other):
5268
    return not (self == other)
5269
 
5270
class changeItemStatus_result:
5271
  """
5272
  Attributes:
5273
   - cex
5274
  """
5275
 
5276
  thrift_spec = (
5277
    None, # 0
5278
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5279
  )
5280
 
5281
  def __init__(self, cex=None,):
5282
    self.cex = cex
5283
 
5284
  def read(self, iprot):
5285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5287
      return
5288
    iprot.readStructBegin()
5289
    while True:
5290
      (fname, ftype, fid) = iprot.readFieldBegin()
5291
      if ftype == TType.STOP:
5292
        break
5293
      if fid == 1:
5294
        if ftype == TType.STRUCT:
5295
          self.cex = CatalogServiceException()
5296
          self.cex.read(iprot)
5297
        else:
5298
          iprot.skip(ftype)
5299
      else:
5300
        iprot.skip(ftype)
5301
      iprot.readFieldEnd()
5302
    iprot.readStructEnd()
5303
 
5304
  def write(self, oprot):
5305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5307
      return
5308
    oprot.writeStructBegin('changeItemStatus_result')
5309
    if self.cex is not None:
5310
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5311
      self.cex.write(oprot)
5312
      oprot.writeFieldEnd()
5313
    oprot.writeFieldStop()
5314
    oprot.writeStructEnd()
5315
 
5316
  def validate(self):
5317
    return
5318
 
5319
 
5320
  def __repr__(self):
5321
    L = ['%s=%r' % (key, value)
5322
      for key, value in self.__dict__.iteritems()]
5323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5324
 
5325
  def __eq__(self, other):
5326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5327
 
5328
  def __ne__(self, other):
5329
    return not (self == other)
5330
 
5331
class getItem_args:
5332
  """
5333
  Attributes:
5334
   - item_id
5335
  """
5336
 
5337
  thrift_spec = (
5338
    None, # 0
5339
    (1, TType.I64, 'item_id', None, None, ), # 1
5340
  )
5341
 
5342
  def __init__(self, item_id=None,):
5343
    self.item_id = item_id
5344
 
5345
  def read(self, iprot):
5346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5348
      return
5349
    iprot.readStructBegin()
5350
    while True:
5351
      (fname, ftype, fid) = iprot.readFieldBegin()
5352
      if ftype == TType.STOP:
5353
        break
5354
      if fid == 1:
5355
        if ftype == TType.I64:
5356
          self.item_id = iprot.readI64();
5357
        else:
5358
          iprot.skip(ftype)
5359
      else:
5360
        iprot.skip(ftype)
5361
      iprot.readFieldEnd()
5362
    iprot.readStructEnd()
5363
 
5364
  def write(self, oprot):
5365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5367
      return
5368
    oprot.writeStructBegin('getItem_args')
5369
    if self.item_id is not None:
5370
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5371
      oprot.writeI64(self.item_id)
5372
      oprot.writeFieldEnd()
5373
    oprot.writeFieldStop()
5374
    oprot.writeStructEnd()
5375
 
5376
  def validate(self):
5377
    return
5378
 
5379
 
5380
  def __repr__(self):
5381
    L = ['%s=%r' % (key, value)
5382
      for key, value in self.__dict__.iteritems()]
5383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5384
 
5385
  def __eq__(self, other):
5386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5387
 
5388
  def __ne__(self, other):
5389
    return not (self == other)
5390
 
5391
class getItem_result:
5392
  """
5393
  Attributes:
5394
   - success
5395
   - cex
5396
  """
5397
 
5398
  thrift_spec = (
5399
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
5400
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5401
  )
5402
 
5403
  def __init__(self, success=None, cex=None,):
5404
    self.success = success
5405
    self.cex = cex
5406
 
5407
  def read(self, iprot):
5408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5410
      return
5411
    iprot.readStructBegin()
5412
    while True:
5413
      (fname, ftype, fid) = iprot.readFieldBegin()
5414
      if ftype == TType.STOP:
5415
        break
5416
      if fid == 0:
5417
        if ftype == TType.STRUCT:
5418
          self.success = Item()
5419
          self.success.read(iprot)
5420
        else:
5421
          iprot.skip(ftype)
5422
      elif fid == 1:
5423
        if ftype == TType.STRUCT:
5424
          self.cex = CatalogServiceException()
5425
          self.cex.read(iprot)
5426
        else:
5427
          iprot.skip(ftype)
5428
      else:
5429
        iprot.skip(ftype)
5430
      iprot.readFieldEnd()
5431
    iprot.readStructEnd()
5432
 
5433
  def write(self, oprot):
5434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5436
      return
5437
    oprot.writeStructBegin('getItem_result')
5438
    if self.success is not None:
5439
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5440
      self.success.write(oprot)
5441
      oprot.writeFieldEnd()
5442
    if self.cex is not None:
5443
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5444
      self.cex.write(oprot)
5445
      oprot.writeFieldEnd()
5446
    oprot.writeFieldStop()
5447
    oprot.writeStructEnd()
5448
 
5449
  def validate(self):
5450
    return
5451
 
5452
 
5453
  def __repr__(self):
5454
    L = ['%s=%r' % (key, value)
5455
      for key, value in self.__dict__.iteritems()]
5456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5457
 
5458
  def __eq__(self, other):
5459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5460
 
5461
  def __ne__(self, other):
5462
    return not (self == other)
5463
 
5464
class getItemsByCatalogId_args:
5465
  """
5466
  Attributes:
5467
   - catalog_item_id
5468
  """
5469
 
5470
  thrift_spec = (
5471
    None, # 0
5472
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5473
  )
5474
 
5475
  def __init__(self, catalog_item_id=None,):
5476
    self.catalog_item_id = catalog_item_id
5477
 
5478
  def read(self, iprot):
5479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5481
      return
5482
    iprot.readStructBegin()
5483
    while True:
5484
      (fname, ftype, fid) = iprot.readFieldBegin()
5485
      if ftype == TType.STOP:
5486
        break
5487
      if fid == 1:
5488
        if ftype == TType.I64:
5489
          self.catalog_item_id = iprot.readI64();
5490
        else:
5491
          iprot.skip(ftype)
5492
      else:
5493
        iprot.skip(ftype)
5494
      iprot.readFieldEnd()
5495
    iprot.readStructEnd()
5496
 
5497
  def write(self, oprot):
5498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5500
      return
5501
    oprot.writeStructBegin('getItemsByCatalogId_args')
5502
    if self.catalog_item_id is not None:
5503
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5504
      oprot.writeI64(self.catalog_item_id)
5505
      oprot.writeFieldEnd()
5506
    oprot.writeFieldStop()
5507
    oprot.writeStructEnd()
5508
 
5509
  def validate(self):
5510
    return
5511
 
5512
 
5513
  def __repr__(self):
5514
    L = ['%s=%r' % (key, value)
5515
      for key, value in self.__dict__.iteritems()]
5516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5517
 
5518
  def __eq__(self, other):
5519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5520
 
5521
  def __ne__(self, other):
5522
    return not (self == other)
5523
 
5524
class getItemsByCatalogId_result:
5525
  """
5526
  Attributes:
5527
   - success
5528
   - cex
5529
  """
5530
 
5531
  thrift_spec = (
5532
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5533
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5534
  )
5535
 
5536
  def __init__(self, success=None, cex=None,):
5537
    self.success = success
5538
    self.cex = cex
5539
 
5540
  def read(self, iprot):
5541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5543
      return
5544
    iprot.readStructBegin()
5545
    while True:
5546
      (fname, ftype, fid) = iprot.readFieldBegin()
5547
      if ftype == TType.STOP:
5548
        break
5549
      if fid == 0:
5550
        if ftype == TType.LIST:
5551
          self.success = []
5552
          (_etype19, _size16) = iprot.readListBegin()
5553
          for _i20 in xrange(_size16):
5554
            _elem21 = Item()
5555
            _elem21.read(iprot)
5556
            self.success.append(_elem21)
5557
          iprot.readListEnd()
5558
        else:
5559
          iprot.skip(ftype)
5560
      elif fid == 1:
5561
        if ftype == TType.STRUCT:
5562
          self.cex = CatalogServiceException()
5563
          self.cex.read(iprot)
5564
        else:
5565
          iprot.skip(ftype)
5566
      else:
5567
        iprot.skip(ftype)
5568
      iprot.readFieldEnd()
5569
    iprot.readStructEnd()
5570
 
5571
  def write(self, oprot):
5572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5574
      return
5575
    oprot.writeStructBegin('getItemsByCatalogId_result')
5576
    if self.success is not None:
5577
      oprot.writeFieldBegin('success', TType.LIST, 0)
5578
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5579
      for iter22 in self.success:
5580
        iter22.write(oprot)
5581
      oprot.writeListEnd()
5582
      oprot.writeFieldEnd()
5583
    if self.cex is not None:
5584
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5585
      self.cex.write(oprot)
5586
      oprot.writeFieldEnd()
5587
    oprot.writeFieldStop()
5588
    oprot.writeStructEnd()
5589
 
5590
  def validate(self):
5591
    return
5592
 
5593
 
5594
  def __repr__(self):
5595
    L = ['%s=%r' % (key, value)
5596
      for key, value in self.__dict__.iteritems()]
5597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5598
 
5599
  def __eq__(self, other):
5600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5601
 
5602
  def __ne__(self, other):
5603
    return not (self == other)
5604
 
5605
class getValidItemsByCatalogId_args:
5606
  """
5607
  Attributes:
5608
   - catalog_item_id
5609
  """
5610
 
5611
  thrift_spec = (
5612
    None, # 0
5613
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5614
  )
5615
 
5616
  def __init__(self, catalog_item_id=None,):
5617
    self.catalog_item_id = catalog_item_id
5618
 
5619
  def read(self, iprot):
5620
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5621
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5622
      return
5623
    iprot.readStructBegin()
5624
    while True:
5625
      (fname, ftype, fid) = iprot.readFieldBegin()
5626
      if ftype == TType.STOP:
5627
        break
5628
      if fid == 1:
5629
        if ftype == TType.I64:
5630
          self.catalog_item_id = iprot.readI64();
5631
        else:
5632
          iprot.skip(ftype)
5633
      else:
5634
        iprot.skip(ftype)
5635
      iprot.readFieldEnd()
5636
    iprot.readStructEnd()
5637
 
5638
  def write(self, oprot):
5639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5641
      return
5642
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5643
    if self.catalog_item_id is not None:
5644
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5645
      oprot.writeI64(self.catalog_item_id)
5646
      oprot.writeFieldEnd()
5647
    oprot.writeFieldStop()
5648
    oprot.writeStructEnd()
5649
 
5650
  def validate(self):
5651
    return
5652
 
5653
 
5654
  def __repr__(self):
5655
    L = ['%s=%r' % (key, value)
5656
      for key, value in self.__dict__.iteritems()]
5657
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5658
 
5659
  def __eq__(self, other):
5660
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5661
 
5662
  def __ne__(self, other):
5663
    return not (self == other)
5664
 
5665
class getValidItemsByCatalogId_result:
5666
  """
5667
  Attributes:
5668
   - success
5669
   - cex
5670
  """
5671
 
5672
  thrift_spec = (
5673
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5674
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5675
  )
5676
 
5677
  def __init__(self, success=None, cex=None,):
5678
    self.success = success
5679
    self.cex = cex
5680
 
5681
  def read(self, iprot):
5682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5684
      return
5685
    iprot.readStructBegin()
5686
    while True:
5687
      (fname, ftype, fid) = iprot.readFieldBegin()
5688
      if ftype == TType.STOP:
5689
        break
5690
      if fid == 0:
5691
        if ftype == TType.LIST:
5692
          self.success = []
5693
          (_etype26, _size23) = iprot.readListBegin()
5694
          for _i27 in xrange(_size23):
5695
            _elem28 = Item()
5696
            _elem28.read(iprot)
5697
            self.success.append(_elem28)
5698
          iprot.readListEnd()
5699
        else:
5700
          iprot.skip(ftype)
5701
      elif fid == 1:
5702
        if ftype == TType.STRUCT:
5703
          self.cex = CatalogServiceException()
5704
          self.cex.read(iprot)
5705
        else:
5706
          iprot.skip(ftype)
5707
      else:
5708
        iprot.skip(ftype)
5709
      iprot.readFieldEnd()
5710
    iprot.readStructEnd()
5711
 
5712
  def write(self, oprot):
5713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5715
      return
5716
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5717
    if self.success is not None:
5718
      oprot.writeFieldBegin('success', TType.LIST, 0)
5719
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5720
      for iter29 in self.success:
5721
        iter29.write(oprot)
5722
      oprot.writeListEnd()
5723
      oprot.writeFieldEnd()
5724
    if self.cex is not None:
5725
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5726
      self.cex.write(oprot)
5727
      oprot.writeFieldEnd()
5728
    oprot.writeFieldStop()
5729
    oprot.writeStructEnd()
5730
 
5731
  def validate(self):
5732
    return
5733
 
5734
 
5735
  def __repr__(self):
5736
    L = ['%s=%r' % (key, value)
5737
      for key, value in self.__dict__.iteritems()]
5738
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5739
 
5740
  def __eq__(self, other):
5741
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5742
 
5743
  def __ne__(self, other):
5744
    return not (self == other)
5745
 
5746
class getAllItems_args:
5747
  """
5748
  Attributes:
5749
   - isActive
5750
  """
5751
 
5752
  thrift_spec = (
5753
    None, # 0
5754
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5755
  )
5756
 
5757
  def __init__(self, isActive=None,):
5758
    self.isActive = isActive
5759
 
5760
  def read(self, iprot):
5761
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5762
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5763
      return
5764
    iprot.readStructBegin()
5765
    while True:
5766
      (fname, ftype, fid) = iprot.readFieldBegin()
5767
      if ftype == TType.STOP:
5768
        break
5769
      if fid == 1:
5770
        if ftype == TType.BOOL:
5771
          self.isActive = iprot.readBool();
5772
        else:
5773
          iprot.skip(ftype)
5774
      else:
5775
        iprot.skip(ftype)
5776
      iprot.readFieldEnd()
5777
    iprot.readStructEnd()
5778
 
5779
  def write(self, oprot):
5780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5782
      return
5783
    oprot.writeStructBegin('getAllItems_args')
5784
    if self.isActive is not None:
5785
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5786
      oprot.writeBool(self.isActive)
5787
      oprot.writeFieldEnd()
5788
    oprot.writeFieldStop()
5789
    oprot.writeStructEnd()
5790
 
5791
  def validate(self):
5792
    return
5793
 
5794
 
5795
  def __repr__(self):
5796
    L = ['%s=%r' % (key, value)
5797
      for key, value in self.__dict__.iteritems()]
5798
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5799
 
5800
  def __eq__(self, other):
5801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5802
 
5803
  def __ne__(self, other):
5804
    return not (self == other)
5805
 
5806
class getAllItems_result:
5807
  """
5808
  Attributes:
5809
   - success
5810
   - cex
5811
  """
5812
 
5813
  thrift_spec = (
5814
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5815
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5816
  )
5817
 
5818
  def __init__(self, success=None, cex=None,):
5819
    self.success = success
5820
    self.cex = cex
5821
 
5822
  def read(self, iprot):
5823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5825
      return
5826
    iprot.readStructBegin()
5827
    while True:
5828
      (fname, ftype, fid) = iprot.readFieldBegin()
5829
      if ftype == TType.STOP:
5830
        break
5831
      if fid == 0:
5832
        if ftype == TType.LIST:
5833
          self.success = []
5834
          (_etype33, _size30) = iprot.readListBegin()
5835
          for _i34 in xrange(_size30):
5836
            _elem35 = Item()
5837
            _elem35.read(iprot)
5838
            self.success.append(_elem35)
5839
          iprot.readListEnd()
5840
        else:
5841
          iprot.skip(ftype)
5842
      elif fid == 1:
5843
        if ftype == TType.STRUCT:
5844
          self.cex = CatalogServiceException()
5845
          self.cex.read(iprot)
5846
        else:
5847
          iprot.skip(ftype)
5848
      else:
5849
        iprot.skip(ftype)
5850
      iprot.readFieldEnd()
5851
    iprot.readStructEnd()
5852
 
5853
  def write(self, oprot):
5854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5856
      return
5857
    oprot.writeStructBegin('getAllItems_result')
5858
    if self.success is not None:
5859
      oprot.writeFieldBegin('success', TType.LIST, 0)
5860
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5861
      for iter36 in self.success:
5862
        iter36.write(oprot)
5863
      oprot.writeListEnd()
5864
      oprot.writeFieldEnd()
5865
    if self.cex is not None:
5866
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5867
      self.cex.write(oprot)
5868
      oprot.writeFieldEnd()
5869
    oprot.writeFieldStop()
5870
    oprot.writeStructEnd()
5871
 
5872
  def validate(self):
5873
    return
5874
 
5875
 
5876
  def __repr__(self):
5877
    L = ['%s=%r' % (key, value)
5878
      for key, value in self.__dict__.iteritems()]
5879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5880
 
5881
  def __eq__(self, other):
5882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5883
 
5884
  def __ne__(self, other):
5885
    return not (self == other)
5886
 
5887
class getAllItemsByStatus_args:
5888
  """
5889
  Attributes:
5890
   - itemStatus
5891
  """
5892
 
5893
  thrift_spec = (
5894
    None, # 0
5895
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5896
  )
5897
 
5898
  def __init__(self, itemStatus=None,):
5899
    self.itemStatus = itemStatus
5900
 
5901
  def read(self, iprot):
5902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5904
      return
5905
    iprot.readStructBegin()
5906
    while True:
5907
      (fname, ftype, fid) = iprot.readFieldBegin()
5908
      if ftype == TType.STOP:
5909
        break
5910
      if fid == 1:
5911
        if ftype == TType.I32:
5912
          self.itemStatus = iprot.readI32();
5913
        else:
5914
          iprot.skip(ftype)
5915
      else:
5916
        iprot.skip(ftype)
5917
      iprot.readFieldEnd()
5918
    iprot.readStructEnd()
5919
 
5920
  def write(self, oprot):
5921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5923
      return
5924
    oprot.writeStructBegin('getAllItemsByStatus_args')
5925
    if self.itemStatus is not None:
5926
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5927
      oprot.writeI32(self.itemStatus)
5928
      oprot.writeFieldEnd()
5929
    oprot.writeFieldStop()
5930
    oprot.writeStructEnd()
5931
 
5932
  def validate(self):
5933
    return
5934
 
5935
 
5936
  def __repr__(self):
5937
    L = ['%s=%r' % (key, value)
5938
      for key, value in self.__dict__.iteritems()]
5939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5940
 
5941
  def __eq__(self, other):
5942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5943
 
5944
  def __ne__(self, other):
5945
    return not (self == other)
5946
 
5947
class getAllItemsByStatus_result:
5948
  """
5949
  Attributes:
5950
   - success
5951
   - cex
5952
  """
5953
 
5954
  thrift_spec = (
5955
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5956
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5957
  )
5958
 
5959
  def __init__(self, success=None, cex=None,):
5960
    self.success = success
5961
    self.cex = cex
5962
 
5963
  def read(self, iprot):
5964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5966
      return
5967
    iprot.readStructBegin()
5968
    while True:
5969
      (fname, ftype, fid) = iprot.readFieldBegin()
5970
      if ftype == TType.STOP:
5971
        break
5972
      if fid == 0:
5973
        if ftype == TType.LIST:
5974
          self.success = []
5975
          (_etype40, _size37) = iprot.readListBegin()
5976
          for _i41 in xrange(_size37):
5977
            _elem42 = Item()
5978
            _elem42.read(iprot)
5979
            self.success.append(_elem42)
5980
          iprot.readListEnd()
5981
        else:
5982
          iprot.skip(ftype)
5983
      elif fid == 1:
5984
        if ftype == TType.STRUCT:
5985
          self.cex = CatalogServiceException()
5986
          self.cex.read(iprot)
5987
        else:
5988
          iprot.skip(ftype)
5989
      else:
5990
        iprot.skip(ftype)
5991
      iprot.readFieldEnd()
5992
    iprot.readStructEnd()
5993
 
5994
  def write(self, oprot):
5995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5997
      return
5998
    oprot.writeStructBegin('getAllItemsByStatus_result')
5999
    if self.success is not None:
6000
      oprot.writeFieldBegin('success', TType.LIST, 0)
6001
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6002
      for iter43 in self.success:
6003
        iter43.write(oprot)
6004
      oprot.writeListEnd()
6005
      oprot.writeFieldEnd()
6006
    if self.cex is not None:
6007
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6008
      self.cex.write(oprot)
6009
      oprot.writeFieldEnd()
6010
    oprot.writeFieldStop()
6011
    oprot.writeStructEnd()
6012
 
6013
  def validate(self):
6014
    return
6015
 
6016
 
6017
  def __repr__(self):
6018
    L = ['%s=%r' % (key, value)
6019
      for key, value in self.__dict__.iteritems()]
6020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6021
 
6022
  def __eq__(self, other):
6023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6024
 
6025
  def __ne__(self, other):
6026
    return not (self == other)
6027
 
6028
class markItemAsContentComplete_args:
6029
  """
6030
  Attributes:
6031
   - entityId
6032
   - category
6033
   - brand
6034
   - modelName
6035
   - modelNumber
6036
  """
6037
 
6038
  thrift_spec = (
6039
    None, # 0
6040
    (1, TType.I64, 'entityId', None, None, ), # 1
6041
    (2, TType.I64, 'category', None, None, ), # 2
6042
    (3, TType.STRING, 'brand', None, None, ), # 3
6043
    (4, TType.STRING, 'modelName', None, None, ), # 4
6044
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
6045
  )
6046
 
6047
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
6048
    self.entityId = entityId
6049
    self.category = category
6050
    self.brand = brand
6051
    self.modelName = modelName
6052
    self.modelNumber = modelNumber
6053
 
6054
  def read(self, iprot):
6055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6057
      return
6058
    iprot.readStructBegin()
6059
    while True:
6060
      (fname, ftype, fid) = iprot.readFieldBegin()
6061
      if ftype == TType.STOP:
6062
        break
6063
      if fid == 1:
6064
        if ftype == TType.I64:
6065
          self.entityId = iprot.readI64();
6066
        else:
6067
          iprot.skip(ftype)
6068
      elif fid == 2:
6069
        if ftype == TType.I64:
6070
          self.category = iprot.readI64();
6071
        else:
6072
          iprot.skip(ftype)
6073
      elif fid == 3:
6074
        if ftype == TType.STRING:
6075
          self.brand = iprot.readString();
6076
        else:
6077
          iprot.skip(ftype)
6078
      elif fid == 4:
6079
        if ftype == TType.STRING:
6080
          self.modelName = iprot.readString();
6081
        else:
6082
          iprot.skip(ftype)
6083
      elif fid == 5:
6084
        if ftype == TType.STRING:
6085
          self.modelNumber = iprot.readString();
6086
        else:
6087
          iprot.skip(ftype)
6088
      else:
6089
        iprot.skip(ftype)
6090
      iprot.readFieldEnd()
6091
    iprot.readStructEnd()
6092
 
6093
  def write(self, oprot):
6094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6096
      return
6097
    oprot.writeStructBegin('markItemAsContentComplete_args')
6098
    if self.entityId is not None:
6099
      oprot.writeFieldBegin('entityId', TType.I64, 1)
6100
      oprot.writeI64(self.entityId)
6101
      oprot.writeFieldEnd()
6102
    if self.category is not None:
6103
      oprot.writeFieldBegin('category', TType.I64, 2)
6104
      oprot.writeI64(self.category)
6105
      oprot.writeFieldEnd()
6106
    if self.brand is not None:
6107
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6108
      oprot.writeString(self.brand)
6109
      oprot.writeFieldEnd()
6110
    if self.modelName is not None:
6111
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
6112
      oprot.writeString(self.modelName)
6113
      oprot.writeFieldEnd()
6114
    if self.modelNumber is not None:
6115
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
6116
      oprot.writeString(self.modelNumber)
6117
      oprot.writeFieldEnd()
6118
    oprot.writeFieldStop()
6119
    oprot.writeStructEnd()
6120
 
6121
  def validate(self):
6122
    return
6123
 
6124
 
6125
  def __repr__(self):
6126
    L = ['%s=%r' % (key, value)
6127
      for key, value in self.__dict__.iteritems()]
6128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6129
 
6130
  def __eq__(self, other):
6131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6132
 
6133
  def __ne__(self, other):
6134
    return not (self == other)
6135
 
6136
class markItemAsContentComplete_result:
6137
  """
6138
  Attributes:
6139
   - success
6140
   - cex
6141
  """
6142
 
6143
  thrift_spec = (
6144
    (0, TType.BOOL, 'success', None, None, ), # 0
6145
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6146
  )
6147
 
6148
  def __init__(self, success=None, cex=None,):
6149
    self.success = success
6150
    self.cex = cex
6151
 
6152
  def read(self, iprot):
6153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6155
      return
6156
    iprot.readStructBegin()
6157
    while True:
6158
      (fname, ftype, fid) = iprot.readFieldBegin()
6159
      if ftype == TType.STOP:
6160
        break
6161
      if fid == 0:
6162
        if ftype == TType.BOOL:
6163
          self.success = iprot.readBool();
6164
        else:
6165
          iprot.skip(ftype)
6166
      elif fid == 1:
6167
        if ftype == TType.STRUCT:
6168
          self.cex = CatalogServiceException()
6169
          self.cex.read(iprot)
6170
        else:
6171
          iprot.skip(ftype)
6172
      else:
6173
        iprot.skip(ftype)
6174
      iprot.readFieldEnd()
6175
    iprot.readStructEnd()
6176
 
6177
  def write(self, oprot):
6178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6180
      return
6181
    oprot.writeStructBegin('markItemAsContentComplete_result')
6182
    if self.success is not None:
6183
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6184
      oprot.writeBool(self.success)
6185
      oprot.writeFieldEnd()
6186
    if self.cex is not None:
6187
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6188
      self.cex.write(oprot)
6189
      oprot.writeFieldEnd()
6190
    oprot.writeFieldStop()
6191
    oprot.writeStructEnd()
6192
 
6193
  def validate(self):
6194
    return
6195
 
6196
 
6197
  def __repr__(self):
6198
    L = ['%s=%r' % (key, value)
6199
      for key, value in self.__dict__.iteritems()]
6200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6201
 
6202
  def __eq__(self, other):
6203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6204
 
6205
  def __ne__(self, other):
6206
    return not (self == other)
6207
 
6208
class getAllItemsInRange_args:
6209
  """
6210
  Attributes:
6211
   - offset
6212
   - limit
6213
  """
6214
 
6215
  thrift_spec = (
6216
    None, # 0
6217
    (1, TType.I64, 'offset', None, None, ), # 1
6218
    (2, TType.I64, 'limit', None, None, ), # 2
6219
  )
6220
 
6221
  def __init__(self, offset=None, limit=None,):
6222
    self.offset = offset
6223
    self.limit = limit
6224
 
6225
  def read(self, iprot):
6226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6228
      return
6229
    iprot.readStructBegin()
6230
    while True:
6231
      (fname, ftype, fid) = iprot.readFieldBegin()
6232
      if ftype == TType.STOP:
6233
        break
6234
      if fid == 1:
6235
        if ftype == TType.I64:
6236
          self.offset = iprot.readI64();
6237
        else:
6238
          iprot.skip(ftype)
6239
      elif fid == 2:
6240
        if ftype == TType.I64:
6241
          self.limit = iprot.readI64();
6242
        else:
6243
          iprot.skip(ftype)
6244
      else:
6245
        iprot.skip(ftype)
6246
      iprot.readFieldEnd()
6247
    iprot.readStructEnd()
6248
 
6249
  def write(self, oprot):
6250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6252
      return
6253
    oprot.writeStructBegin('getAllItemsInRange_args')
6254
    if self.offset is not None:
6255
      oprot.writeFieldBegin('offset', TType.I64, 1)
6256
      oprot.writeI64(self.offset)
6257
      oprot.writeFieldEnd()
6258
    if self.limit is not None:
6259
      oprot.writeFieldBegin('limit', TType.I64, 2)
6260
      oprot.writeI64(self.limit)
6261
      oprot.writeFieldEnd()
6262
    oprot.writeFieldStop()
6263
    oprot.writeStructEnd()
6264
 
6265
  def validate(self):
6266
    return
6267
 
6268
 
6269
  def __repr__(self):
6270
    L = ['%s=%r' % (key, value)
6271
      for key, value in self.__dict__.iteritems()]
6272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6273
 
6274
  def __eq__(self, other):
6275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6276
 
6277
  def __ne__(self, other):
6278
    return not (self == other)
6279
 
6280
class getAllItemsInRange_result:
6281
  """
6282
  Attributes:
6283
   - success
6284
   - cex
6285
  """
6286
 
6287
  thrift_spec = (
6288
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6289
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6290
  )
6291
 
6292
  def __init__(self, success=None, cex=None,):
6293
    self.success = success
6294
    self.cex = cex
6295
 
6296
  def read(self, iprot):
6297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6299
      return
6300
    iprot.readStructBegin()
6301
    while True:
6302
      (fname, ftype, fid) = iprot.readFieldBegin()
6303
      if ftype == TType.STOP:
6304
        break
6305
      if fid == 0:
6306
        if ftype == TType.LIST:
6307
          self.success = []
6308
          (_etype47, _size44) = iprot.readListBegin()
6309
          for _i48 in xrange(_size44):
6310
            _elem49 = Item()
6311
            _elem49.read(iprot)
6312
            self.success.append(_elem49)
6313
          iprot.readListEnd()
6314
        else:
6315
          iprot.skip(ftype)
6316
      elif fid == 1:
6317
        if ftype == TType.STRUCT:
6318
          self.cex = CatalogServiceException()
6319
          self.cex.read(iprot)
6320
        else:
6321
          iprot.skip(ftype)
6322
      else:
6323
        iprot.skip(ftype)
6324
      iprot.readFieldEnd()
6325
    iprot.readStructEnd()
6326
 
6327
  def write(self, oprot):
6328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6330
      return
6331
    oprot.writeStructBegin('getAllItemsInRange_result')
6332
    if self.success is not None:
6333
      oprot.writeFieldBegin('success', TType.LIST, 0)
6334
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6335
      for iter50 in self.success:
6336
        iter50.write(oprot)
6337
      oprot.writeListEnd()
6338
      oprot.writeFieldEnd()
6339
    if self.cex is not None:
6340
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6341
      self.cex.write(oprot)
6342
      oprot.writeFieldEnd()
6343
    oprot.writeFieldStop()
6344
    oprot.writeStructEnd()
6345
 
6346
  def validate(self):
6347
    return
6348
 
6349
 
6350
  def __repr__(self):
6351
    L = ['%s=%r' % (key, value)
6352
      for key, value in self.__dict__.iteritems()]
6353
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6354
 
6355
  def __eq__(self, other):
6356
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6357
 
6358
  def __ne__(self, other):
6359
    return not (self == other)
6360
 
6361
class getAllItemsByStatusInRange_args:
6362
  """
6363
  Attributes:
6364
   - itemStatus
6365
   - offset
6366
   - limit
6367
  """
6368
 
6369
  thrift_spec = (
6370
    None, # 0
6371
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6372
    (2, TType.I64, 'offset', None, None, ), # 2
6373
    (3, TType.I64, 'limit', None, None, ), # 3
6374
  )
6375
 
6376
  def __init__(self, itemStatus=None, offset=None, limit=None,):
6377
    self.itemStatus = itemStatus
6378
    self.offset = offset
6379
    self.limit = limit
6380
 
6381
  def read(self, iprot):
6382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6384
      return
6385
    iprot.readStructBegin()
6386
    while True:
6387
      (fname, ftype, fid) = iprot.readFieldBegin()
6388
      if ftype == TType.STOP:
6389
        break
6390
      if fid == 1:
6391
        if ftype == TType.I32:
6392
          self.itemStatus = iprot.readI32();
6393
        else:
6394
          iprot.skip(ftype)
6395
      elif fid == 2:
6396
        if ftype == TType.I64:
6397
          self.offset = iprot.readI64();
6398
        else:
6399
          iprot.skip(ftype)
6400
      elif fid == 3:
6401
        if ftype == TType.I64:
6402
          self.limit = iprot.readI64();
6403
        else:
6404
          iprot.skip(ftype)
6405
      else:
6406
        iprot.skip(ftype)
6407
      iprot.readFieldEnd()
6408
    iprot.readStructEnd()
6409
 
6410
  def write(self, oprot):
6411
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6412
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6413
      return
6414
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
6415
    if self.itemStatus is not None:
6416
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6417
      oprot.writeI32(self.itemStatus)
6418
      oprot.writeFieldEnd()
6419
    if self.offset is not None:
6420
      oprot.writeFieldBegin('offset', TType.I64, 2)
6421
      oprot.writeI64(self.offset)
6422
      oprot.writeFieldEnd()
6423
    if self.limit is not None:
6424
      oprot.writeFieldBegin('limit', TType.I64, 3)
6425
      oprot.writeI64(self.limit)
6426
      oprot.writeFieldEnd()
6427
    oprot.writeFieldStop()
6428
    oprot.writeStructEnd()
6429
 
6430
  def validate(self):
6431
    return
6432
 
6433
 
6434
  def __repr__(self):
6435
    L = ['%s=%r' % (key, value)
6436
      for key, value in self.__dict__.iteritems()]
6437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6438
 
6439
  def __eq__(self, other):
6440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6441
 
6442
  def __ne__(self, other):
6443
    return not (self == other)
6444
 
6445
class getAllItemsByStatusInRange_result:
6446
  """
6447
  Attributes:
6448
   - success
6449
   - cex
6450
  """
6451
 
6452
  thrift_spec = (
6453
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6454
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6455
  )
6456
 
6457
  def __init__(self, success=None, cex=None,):
6458
    self.success = success
6459
    self.cex = cex
6460
 
6461
  def read(self, iprot):
6462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6464
      return
6465
    iprot.readStructBegin()
6466
    while True:
6467
      (fname, ftype, fid) = iprot.readFieldBegin()
6468
      if ftype == TType.STOP:
6469
        break
6470
      if fid == 0:
6471
        if ftype == TType.LIST:
6472
          self.success = []
6473
          (_etype54, _size51) = iprot.readListBegin()
6474
          for _i55 in xrange(_size51):
6475
            _elem56 = Item()
6476
            _elem56.read(iprot)
6477
            self.success.append(_elem56)
6478
          iprot.readListEnd()
6479
        else:
6480
          iprot.skip(ftype)
6481
      elif fid == 1:
6482
        if ftype == TType.STRUCT:
6483
          self.cex = CatalogServiceException()
6484
          self.cex.read(iprot)
6485
        else:
6486
          iprot.skip(ftype)
6487
      else:
6488
        iprot.skip(ftype)
6489
      iprot.readFieldEnd()
6490
    iprot.readStructEnd()
6491
 
6492
  def write(self, oprot):
6493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6495
      return
6496
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
6497
    if self.success is not None:
6498
      oprot.writeFieldBegin('success', TType.LIST, 0)
6499
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6500
      for iter57 in self.success:
6501
        iter57.write(oprot)
6502
      oprot.writeListEnd()
6503
      oprot.writeFieldEnd()
6504
    if self.cex is not None:
6505
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6506
      self.cex.write(oprot)
6507
      oprot.writeFieldEnd()
6508
    oprot.writeFieldStop()
6509
    oprot.writeStructEnd()
6510
 
6511
  def validate(self):
6512
    return
6513
 
6514
 
6515
  def __repr__(self):
6516
    L = ['%s=%r' % (key, value)
6517
      for key, value in self.__dict__.iteritems()]
6518
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6519
 
6520
  def __eq__(self, other):
6521
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6522
 
6523
  def __ne__(self, other):
6524
    return not (self == other)
6525
 
6526
class getItemCountByStatus_args:
6527
  """
6528
  Attributes:
6529
   - useStatus
6530
   - itemStatus
6531
  """
6532
 
6533
  thrift_spec = (
6534
    None, # 0
6535
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6536
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6537
  )
6538
 
6539
  def __init__(self, useStatus=None, itemStatus=None,):
6540
    self.useStatus = useStatus
6541
    self.itemStatus = itemStatus
6542
 
6543
  def read(self, iprot):
6544
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6545
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6546
      return
6547
    iprot.readStructBegin()
6548
    while True:
6549
      (fname, ftype, fid) = iprot.readFieldBegin()
6550
      if ftype == TType.STOP:
6551
        break
6552
      if fid == 1:
6553
        if ftype == TType.BOOL:
6554
          self.useStatus = iprot.readBool();
6555
        else:
6556
          iprot.skip(ftype)
6557
      elif fid == 2:
6558
        if ftype == TType.I32:
6559
          self.itemStatus = iprot.readI32();
6560
        else:
6561
          iprot.skip(ftype)
6562
      else:
6563
        iprot.skip(ftype)
6564
      iprot.readFieldEnd()
6565
    iprot.readStructEnd()
6566
 
6567
  def write(self, oprot):
6568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6570
      return
6571
    oprot.writeStructBegin('getItemCountByStatus_args')
6572
    if self.useStatus is not None:
6573
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6574
      oprot.writeBool(self.useStatus)
6575
      oprot.writeFieldEnd()
6576
    if self.itemStatus is not None:
6577
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6578
      oprot.writeI32(self.itemStatus)
6579
      oprot.writeFieldEnd()
6580
    oprot.writeFieldStop()
6581
    oprot.writeStructEnd()
6582
 
6583
  def validate(self):
6584
    return
6585
 
6586
 
6587
  def __repr__(self):
6588
    L = ['%s=%r' % (key, value)
6589
      for key, value in self.__dict__.iteritems()]
6590
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6591
 
6592
  def __eq__(self, other):
6593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6594
 
6595
  def __ne__(self, other):
6596
    return not (self == other)
6597
 
6598
class getItemCountByStatus_result:
6599
  """
6600
  Attributes:
6601
   - success
6602
  """
6603
 
6604
  thrift_spec = (
6605
    (0, TType.I32, 'success', None, None, ), # 0
6606
  )
6607
 
6608
  def __init__(self, success=None,):
6609
    self.success = success
6610
 
6611
  def read(self, iprot):
6612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6614
      return
6615
    iprot.readStructBegin()
6616
    while True:
6617
      (fname, ftype, fid) = iprot.readFieldBegin()
6618
      if ftype == TType.STOP:
6619
        break
6620
      if fid == 0:
6621
        if ftype == TType.I32:
6622
          self.success = iprot.readI32();
6623
        else:
6624
          iprot.skip(ftype)
6625
      else:
6626
        iprot.skip(ftype)
6627
      iprot.readFieldEnd()
6628
    iprot.readStructEnd()
6629
 
6630
  def write(self, oprot):
6631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6633
      return
6634
    oprot.writeStructBegin('getItemCountByStatus_result')
6635
    if self.success is not None:
6636
      oprot.writeFieldBegin('success', TType.I32, 0)
6637
      oprot.writeI32(self.success)
6638
      oprot.writeFieldEnd()
6639
    oprot.writeFieldStop()
6640
    oprot.writeStructEnd()
6641
 
6642
  def validate(self):
6643
    return
6644
 
6645
 
6646
  def __repr__(self):
6647
    L = ['%s=%r' % (key, value)
6648
      for key, value in self.__dict__.iteritems()]
6649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6650
 
6651
  def __eq__(self, other):
6652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6653
 
6654
  def __ne__(self, other):
6655
    return not (self == other)
6656
 
6657
class getBestSellers_args:
6658
 
6659
  thrift_spec = (
6660
  )
6661
 
6662
  def read(self, iprot):
6663
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6664
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6665
      return
6666
    iprot.readStructBegin()
6667
    while True:
6668
      (fname, ftype, fid) = iprot.readFieldBegin()
6669
      if ftype == TType.STOP:
6670
        break
6671
      else:
6672
        iprot.skip(ftype)
6673
      iprot.readFieldEnd()
6674
    iprot.readStructEnd()
6675
 
6676
  def write(self, oprot):
6677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6679
      return
6680
    oprot.writeStructBegin('getBestSellers_args')
6681
    oprot.writeFieldStop()
6682
    oprot.writeStructEnd()
6683
 
6684
  def validate(self):
6685
    return
6686
 
6687
 
6688
  def __repr__(self):
6689
    L = ['%s=%r' % (key, value)
6690
      for key, value in self.__dict__.iteritems()]
6691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6692
 
6693
  def __eq__(self, other):
6694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6695
 
6696
  def __ne__(self, other):
6697
    return not (self == other)
6698
 
6699
class getBestSellers_result:
6700
  """
6701
  Attributes:
6702
   - success
6703
   - isex
6704
  """
6705
 
6706
  thrift_spec = (
6707
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6708
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6709
  )
6710
 
6711
  def __init__(self, success=None, isex=None,):
6712
    self.success = success
6713
    self.isex = isex
6714
 
6715
  def read(self, iprot):
6716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6718
      return
6719
    iprot.readStructBegin()
6720
    while True:
6721
      (fname, ftype, fid) = iprot.readFieldBegin()
6722
      if ftype == TType.STOP:
6723
        break
6724
      if fid == 0:
6725
        if ftype == TType.LIST:
6726
          self.success = []
6727
          (_etype61, _size58) = iprot.readListBegin()
6728
          for _i62 in xrange(_size58):
6729
            _elem63 = Item()
6730
            _elem63.read(iprot)
6731
            self.success.append(_elem63)
6732
          iprot.readListEnd()
6733
        else:
6734
          iprot.skip(ftype)
6735
      elif fid == 1:
6736
        if ftype == TType.STRUCT:
6737
          self.isex = CatalogServiceException()
6738
          self.isex.read(iprot)
6739
        else:
6740
          iprot.skip(ftype)
6741
      else:
6742
        iprot.skip(ftype)
6743
      iprot.readFieldEnd()
6744
    iprot.readStructEnd()
6745
 
6746
  def write(self, oprot):
6747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6749
      return
6750
    oprot.writeStructBegin('getBestSellers_result')
6751
    if self.success is not None:
6752
      oprot.writeFieldBegin('success', TType.LIST, 0)
6753
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6754
      for iter64 in self.success:
6755
        iter64.write(oprot)
6756
      oprot.writeListEnd()
6757
      oprot.writeFieldEnd()
6758
    if self.isex is not None:
6759
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6760
      self.isex.write(oprot)
6761
      oprot.writeFieldEnd()
6762
    oprot.writeFieldStop()
6763
    oprot.writeStructEnd()
6764
 
6765
  def validate(self):
6766
    return
6767
 
6768
 
6769
  def __repr__(self):
6770
    L = ['%s=%r' % (key, value)
6771
      for key, value in self.__dict__.iteritems()]
6772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6773
 
6774
  def __eq__(self, other):
6775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6776
 
6777
  def __ne__(self, other):
6778
    return not (self == other)
6779
 
6780
class getBestSellersCatalogIds_args:
6781
  """
6782
  Attributes:
6783
   - beginIndex
6784
   - totalItems
6785
   - brand
6786
   - category
6787
  """
6788
 
6789
  thrift_spec = (
6790
    None, # 0
6791
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6792
    (2, TType.I64, 'totalItems', None, None, ), # 2
6793
    (3, TType.STRING, 'brand', None, None, ), # 3
6794
    (4, TType.I64, 'category', None, None, ), # 4
6795
  )
6796
 
6797
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6798
    self.beginIndex = beginIndex
6799
    self.totalItems = totalItems
6800
    self.brand = brand
6801
    self.category = category
6802
 
6803
  def read(self, iprot):
6804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6806
      return
6807
    iprot.readStructBegin()
6808
    while True:
6809
      (fname, ftype, fid) = iprot.readFieldBegin()
6810
      if ftype == TType.STOP:
6811
        break
6812
      if fid == 1:
6813
        if ftype == TType.I64:
6814
          self.beginIndex = iprot.readI64();
6815
        else:
6816
          iprot.skip(ftype)
6817
      elif fid == 2:
6818
        if ftype == TType.I64:
6819
          self.totalItems = iprot.readI64();
6820
        else:
6821
          iprot.skip(ftype)
6822
      elif fid == 3:
6823
        if ftype == TType.STRING:
6824
          self.brand = iprot.readString();
6825
        else:
6826
          iprot.skip(ftype)
6827
      elif fid == 4:
6828
        if ftype == TType.I64:
6829
          self.category = iprot.readI64();
6830
        else:
6831
          iprot.skip(ftype)
6832
      else:
6833
        iprot.skip(ftype)
6834
      iprot.readFieldEnd()
6835
    iprot.readStructEnd()
6836
 
6837
  def write(self, oprot):
6838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6840
      return
6841
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6842
    if self.beginIndex is not None:
6843
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6844
      oprot.writeI64(self.beginIndex)
6845
      oprot.writeFieldEnd()
6846
    if self.totalItems is not None:
6847
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6848
      oprot.writeI64(self.totalItems)
6849
      oprot.writeFieldEnd()
6850
    if self.brand is not None:
6851
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6852
      oprot.writeString(self.brand)
6853
      oprot.writeFieldEnd()
6854
    if self.category is not None:
6855
      oprot.writeFieldBegin('category', TType.I64, 4)
6856
      oprot.writeI64(self.category)
6857
      oprot.writeFieldEnd()
6858
    oprot.writeFieldStop()
6859
    oprot.writeStructEnd()
6860
 
6861
  def validate(self):
6862
    return
6863
 
6864
 
6865
  def __repr__(self):
6866
    L = ['%s=%r' % (key, value)
6867
      for key, value in self.__dict__.iteritems()]
6868
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6869
 
6870
  def __eq__(self, other):
6871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6872
 
6873
  def __ne__(self, other):
6874
    return not (self == other)
6875
 
6876
class getBestSellersCatalogIds_result:
6877
  """
6878
  Attributes:
6879
   - success
6880
   - cex
6881
  """
6882
 
6883
  thrift_spec = (
6884
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6885
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6886
  )
6887
 
6888
  def __init__(self, success=None, cex=None,):
6889
    self.success = success
6890
    self.cex = cex
6891
 
6892
  def read(self, iprot):
6893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6895
      return
6896
    iprot.readStructBegin()
6897
    while True:
6898
      (fname, ftype, fid) = iprot.readFieldBegin()
6899
      if ftype == TType.STOP:
6900
        break
6901
      if fid == 0:
6902
        if ftype == TType.LIST:
6903
          self.success = []
6904
          (_etype68, _size65) = iprot.readListBegin()
6905
          for _i69 in xrange(_size65):
6906
            _elem70 = iprot.readI64();
6907
            self.success.append(_elem70)
6908
          iprot.readListEnd()
6909
        else:
6910
          iprot.skip(ftype)
6911
      elif fid == 1:
6912
        if ftype == TType.STRUCT:
6913
          self.cex = CatalogServiceException()
6914
          self.cex.read(iprot)
6915
        else:
6916
          iprot.skip(ftype)
6917
      else:
6918
        iprot.skip(ftype)
6919
      iprot.readFieldEnd()
6920
    iprot.readStructEnd()
6921
 
6922
  def write(self, oprot):
6923
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6924
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6925
      return
6926
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
6927
    if self.success is not None:
6928
      oprot.writeFieldBegin('success', TType.LIST, 0)
6929
      oprot.writeListBegin(TType.I64, len(self.success))
6930
      for iter71 in self.success:
6931
        oprot.writeI64(iter71)
6932
      oprot.writeListEnd()
6933
      oprot.writeFieldEnd()
6934
    if self.cex is not None:
6935
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6936
      self.cex.write(oprot)
6937
      oprot.writeFieldEnd()
6938
    oprot.writeFieldStop()
6939
    oprot.writeStructEnd()
6940
 
6941
  def validate(self):
6942
    return
6943
 
6944
 
6945
  def __repr__(self):
6946
    L = ['%s=%r' % (key, value)
6947
      for key, value in self.__dict__.iteritems()]
6948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6949
 
6950
  def __eq__(self, other):
6951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6952
 
6953
  def __ne__(self, other):
6954
    return not (self == other)
6955
 
6956
class getBestSellersCount_args:
6957
 
6958
  thrift_spec = (
6959
  )
6960
 
6961
  def read(self, iprot):
6962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6964
      return
6965
    iprot.readStructBegin()
6966
    while True:
6967
      (fname, ftype, fid) = iprot.readFieldBegin()
6968
      if ftype == TType.STOP:
6969
        break
6970
      else:
6971
        iprot.skip(ftype)
6972
      iprot.readFieldEnd()
6973
    iprot.readStructEnd()
6974
 
6975
  def write(self, oprot):
6976
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6977
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6978
      return
6979
    oprot.writeStructBegin('getBestSellersCount_args')
6980
    oprot.writeFieldStop()
6981
    oprot.writeStructEnd()
6982
 
6983
  def validate(self):
6984
    return
6985
 
6986
 
6987
  def __repr__(self):
6988
    L = ['%s=%r' % (key, value)
6989
      for key, value in self.__dict__.iteritems()]
6990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6991
 
6992
  def __eq__(self, other):
6993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6994
 
6995
  def __ne__(self, other):
6996
    return not (self == other)
6997
 
6998
class getBestSellersCount_result:
6999
  """
7000
  Attributes:
7001
   - success
7002
   - cex
7003
  """
7004
 
7005
  thrift_spec = (
7006
    (0, TType.I64, 'success', None, None, ), # 0
7007
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7008
  )
7009
 
7010
  def __init__(self, success=None, cex=None,):
7011
    self.success = success
7012
    self.cex = cex
7013
 
7014
  def read(self, iprot):
7015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7017
      return
7018
    iprot.readStructBegin()
7019
    while True:
7020
      (fname, ftype, fid) = iprot.readFieldBegin()
7021
      if ftype == TType.STOP:
7022
        break
7023
      if fid == 0:
7024
        if ftype == TType.I64:
7025
          self.success = iprot.readI64();
7026
        else:
7027
          iprot.skip(ftype)
7028
      elif fid == 1:
7029
        if ftype == TType.STRUCT:
7030
          self.cex = CatalogServiceException()
7031
          self.cex.read(iprot)
7032
        else:
7033
          iprot.skip(ftype)
7034
      else:
7035
        iprot.skip(ftype)
7036
      iprot.readFieldEnd()
7037
    iprot.readStructEnd()
7038
 
7039
  def write(self, oprot):
7040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7042
      return
7043
    oprot.writeStructBegin('getBestSellersCount_result')
7044
    if self.success is not None:
7045
      oprot.writeFieldBegin('success', TType.I64, 0)
7046
      oprot.writeI64(self.success)
7047
      oprot.writeFieldEnd()
7048
    if self.cex is not None:
7049
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7050
      self.cex.write(oprot)
7051
      oprot.writeFieldEnd()
7052
    oprot.writeFieldStop()
7053
    oprot.writeStructEnd()
7054
 
7055
  def validate(self):
7056
    return
7057
 
7058
 
7059
  def __repr__(self):
7060
    L = ['%s=%r' % (key, value)
7061
      for key, value in self.__dict__.iteritems()]
7062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7063
 
7064
  def __eq__(self, other):
7065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7066
 
7067
  def __ne__(self, other):
7068
    return not (self == other)
7069
 
7070
class getBestDeals_args:
7071
 
7072
  thrift_spec = (
7073
  )
7074
 
7075
  def read(self, iprot):
7076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7078
      return
7079
    iprot.readStructBegin()
7080
    while True:
7081
      (fname, ftype, fid) = iprot.readFieldBegin()
7082
      if ftype == TType.STOP:
7083
        break
7084
      else:
7085
        iprot.skip(ftype)
7086
      iprot.readFieldEnd()
7087
    iprot.readStructEnd()
7088
 
7089
  def write(self, oprot):
7090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7092
      return
7093
    oprot.writeStructBegin('getBestDeals_args')
7094
    oprot.writeFieldStop()
7095
    oprot.writeStructEnd()
7096
 
7097
  def validate(self):
7098
    return
7099
 
7100
 
7101
  def __repr__(self):
7102
    L = ['%s=%r' % (key, value)
7103
      for key, value in self.__dict__.iteritems()]
7104
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7105
 
7106
  def __eq__(self, other):
7107
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7108
 
7109
  def __ne__(self, other):
7110
    return not (self == other)
7111
 
7112
class getBestDeals_result:
7113
  """
7114
  Attributes:
7115
   - success
7116
   - isex
7117
  """
7118
 
7119
  thrift_spec = (
7120
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7121
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7122
  )
7123
 
7124
  def __init__(self, success=None, isex=None,):
7125
    self.success = success
7126
    self.isex = isex
7127
 
7128
  def read(self, iprot):
7129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7131
      return
7132
    iprot.readStructBegin()
7133
    while True:
7134
      (fname, ftype, fid) = iprot.readFieldBegin()
7135
      if ftype == TType.STOP:
7136
        break
7137
      if fid == 0:
7138
        if ftype == TType.LIST:
7139
          self.success = []
7140
          (_etype75, _size72) = iprot.readListBegin()
7141
          for _i76 in xrange(_size72):
7142
            _elem77 = Item()
7143
            _elem77.read(iprot)
7144
            self.success.append(_elem77)
7145
          iprot.readListEnd()
7146
        else:
7147
          iprot.skip(ftype)
7148
      elif fid == 1:
7149
        if ftype == TType.STRUCT:
7150
          self.isex = CatalogServiceException()
7151
          self.isex.read(iprot)
7152
        else:
7153
          iprot.skip(ftype)
7154
      else:
7155
        iprot.skip(ftype)
7156
      iprot.readFieldEnd()
7157
    iprot.readStructEnd()
7158
 
7159
  def write(self, oprot):
7160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7162
      return
7163
    oprot.writeStructBegin('getBestDeals_result')
7164
    if self.success is not None:
7165
      oprot.writeFieldBegin('success', TType.LIST, 0)
7166
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7167
      for iter78 in self.success:
7168
        iter78.write(oprot)
7169
      oprot.writeListEnd()
7170
      oprot.writeFieldEnd()
7171
    if self.isex is not None:
7172
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7173
      self.isex.write(oprot)
7174
      oprot.writeFieldEnd()
7175
    oprot.writeFieldStop()
7176
    oprot.writeStructEnd()
7177
 
7178
  def validate(self):
7179
    return
7180
 
7181
 
7182
  def __repr__(self):
7183
    L = ['%s=%r' % (key, value)
7184
      for key, value in self.__dict__.iteritems()]
7185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7186
 
7187
  def __eq__(self, other):
7188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7189
 
7190
  def __ne__(self, other):
7191
    return not (self == other)
7192
 
7193
class getBestDealsCatalogIds_args:
7194
  """
7195
  Attributes:
7196
   - beginIndex
7197
   - totalItems
7198
   - brand
7199
   - category
7200
  """
7201
 
7202
  thrift_spec = (
7203
    None, # 0
7204
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7205
    (2, TType.I64, 'totalItems', None, None, ), # 2
7206
    (3, TType.STRING, 'brand', None, None, ), # 3
7207
    (4, TType.I64, 'category', None, None, ), # 4
7208
  )
7209
 
7210
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7211
    self.beginIndex = beginIndex
7212
    self.totalItems = totalItems
7213
    self.brand = brand
7214
    self.category = category
7215
 
7216
  def read(self, iprot):
7217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7219
      return
7220
    iprot.readStructBegin()
7221
    while True:
7222
      (fname, ftype, fid) = iprot.readFieldBegin()
7223
      if ftype == TType.STOP:
7224
        break
7225
      if fid == 1:
7226
        if ftype == TType.I64:
7227
          self.beginIndex = iprot.readI64();
7228
        else:
7229
          iprot.skip(ftype)
7230
      elif fid == 2:
7231
        if ftype == TType.I64:
7232
          self.totalItems = iprot.readI64();
7233
        else:
7234
          iprot.skip(ftype)
7235
      elif fid == 3:
7236
        if ftype == TType.STRING:
7237
          self.brand = iprot.readString();
7238
        else:
7239
          iprot.skip(ftype)
7240
      elif fid == 4:
7241
        if ftype == TType.I64:
7242
          self.category = iprot.readI64();
7243
        else:
7244
          iprot.skip(ftype)
7245
      else:
7246
        iprot.skip(ftype)
7247
      iprot.readFieldEnd()
7248
    iprot.readStructEnd()
7249
 
7250
  def write(self, oprot):
7251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7253
      return
7254
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
7255
    if self.beginIndex is not None:
7256
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7257
      oprot.writeI64(self.beginIndex)
7258
      oprot.writeFieldEnd()
7259
    if self.totalItems is not None:
7260
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7261
      oprot.writeI64(self.totalItems)
7262
      oprot.writeFieldEnd()
7263
    if self.brand is not None:
7264
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7265
      oprot.writeString(self.brand)
7266
      oprot.writeFieldEnd()
7267
    if self.category is not None:
7268
      oprot.writeFieldBegin('category', TType.I64, 4)
7269
      oprot.writeI64(self.category)
7270
      oprot.writeFieldEnd()
7271
    oprot.writeFieldStop()
7272
    oprot.writeStructEnd()
7273
 
7274
  def validate(self):
7275
    return
7276
 
7277
 
7278
  def __repr__(self):
7279
    L = ['%s=%r' % (key, value)
7280
      for key, value in self.__dict__.iteritems()]
7281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7282
 
7283
  def __eq__(self, other):
7284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7285
 
7286
  def __ne__(self, other):
7287
    return not (self == other)
7288
 
7289
class getBestDealsCatalogIds_result:
7290
  """
7291
  Attributes:
7292
   - success
7293
   - cex
7294
  """
7295
 
7296
  thrift_spec = (
7297
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7298
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7299
  )
7300
 
7301
  def __init__(self, success=None, cex=None,):
7302
    self.success = success
7303
    self.cex = cex
7304
 
7305
  def read(self, iprot):
7306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7308
      return
7309
    iprot.readStructBegin()
7310
    while True:
7311
      (fname, ftype, fid) = iprot.readFieldBegin()
7312
      if ftype == TType.STOP:
7313
        break
7314
      if fid == 0:
7315
        if ftype == TType.LIST:
7316
          self.success = []
7317
          (_etype82, _size79) = iprot.readListBegin()
7318
          for _i83 in xrange(_size79):
7319
            _elem84 = iprot.readI64();
7320
            self.success.append(_elem84)
7321
          iprot.readListEnd()
7322
        else:
7323
          iprot.skip(ftype)
7324
      elif fid == 1:
7325
        if ftype == TType.STRUCT:
7326
          self.cex = CatalogServiceException()
7327
          self.cex.read(iprot)
7328
        else:
7329
          iprot.skip(ftype)
7330
      else:
7331
        iprot.skip(ftype)
7332
      iprot.readFieldEnd()
7333
    iprot.readStructEnd()
7334
 
7335
  def write(self, oprot):
7336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7338
      return
7339
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
7340
    if self.success is not None:
7341
      oprot.writeFieldBegin('success', TType.LIST, 0)
7342
      oprot.writeListBegin(TType.I64, len(self.success))
7343
      for iter85 in self.success:
7344
        oprot.writeI64(iter85)
7345
      oprot.writeListEnd()
7346
      oprot.writeFieldEnd()
7347
    if self.cex is not None:
7348
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7349
      self.cex.write(oprot)
7350
      oprot.writeFieldEnd()
7351
    oprot.writeFieldStop()
7352
    oprot.writeStructEnd()
7353
 
7354
  def validate(self):
7355
    return
7356
 
7357
 
7358
  def __repr__(self):
7359
    L = ['%s=%r' % (key, value)
7360
      for key, value in self.__dict__.iteritems()]
7361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7362
 
7363
  def __eq__(self, other):
7364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7365
 
7366
  def __ne__(self, other):
7367
    return not (self == other)
7368
 
7369
class getBestDealsCount_args:
7370
 
7371
  thrift_spec = (
7372
  )
7373
 
7374
  def read(self, iprot):
7375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7377
      return
7378
    iprot.readStructBegin()
7379
    while True:
7380
      (fname, ftype, fid) = iprot.readFieldBegin()
7381
      if ftype == TType.STOP:
7382
        break
7383
      else:
7384
        iprot.skip(ftype)
7385
      iprot.readFieldEnd()
7386
    iprot.readStructEnd()
7387
 
7388
  def write(self, oprot):
7389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7391
      return
7392
    oprot.writeStructBegin('getBestDealsCount_args')
7393
    oprot.writeFieldStop()
7394
    oprot.writeStructEnd()
7395
 
7396
  def validate(self):
7397
    return
7398
 
7399
 
7400
  def __repr__(self):
7401
    L = ['%s=%r' % (key, value)
7402
      for key, value in self.__dict__.iteritems()]
7403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7404
 
7405
  def __eq__(self, other):
7406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7407
 
7408
  def __ne__(self, other):
7409
    return not (self == other)
7410
 
7411
class getBestDealsCount_result:
7412
  """
7413
  Attributes:
7414
   - success
7415
   - cex
7416
  """
7417
 
7418
  thrift_spec = (
7419
    (0, TType.I64, 'success', None, None, ), # 0
7420
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7421
  )
7422
 
7423
  def __init__(self, success=None, cex=None,):
7424
    self.success = success
7425
    self.cex = cex
7426
 
7427
  def read(self, iprot):
7428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7430
      return
7431
    iprot.readStructBegin()
7432
    while True:
7433
      (fname, ftype, fid) = iprot.readFieldBegin()
7434
      if ftype == TType.STOP:
7435
        break
7436
      if fid == 0:
7437
        if ftype == TType.I64:
7438
          self.success = iprot.readI64();
7439
        else:
7440
          iprot.skip(ftype)
7441
      elif fid == 1:
7442
        if ftype == TType.STRUCT:
7443
          self.cex = CatalogServiceException()
7444
          self.cex.read(iprot)
7445
        else:
7446
          iprot.skip(ftype)
7447
      else:
7448
        iprot.skip(ftype)
7449
      iprot.readFieldEnd()
7450
    iprot.readStructEnd()
7451
 
7452
  def write(self, oprot):
7453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7455
      return
7456
    oprot.writeStructBegin('getBestDealsCount_result')
7457
    if self.success is not None:
7458
      oprot.writeFieldBegin('success', TType.I64, 0)
7459
      oprot.writeI64(self.success)
7460
      oprot.writeFieldEnd()
7461
    if self.cex is not None:
7462
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7463
      self.cex.write(oprot)
7464
      oprot.writeFieldEnd()
7465
    oprot.writeFieldStop()
7466
    oprot.writeStructEnd()
7467
 
7468
  def validate(self):
7469
    return
7470
 
7471
 
7472
  def __repr__(self):
7473
    L = ['%s=%r' % (key, value)
7474
      for key, value in self.__dict__.iteritems()]
7475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7476
 
7477
  def __eq__(self, other):
7478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7479
 
7480
  def __ne__(self, other):
7481
    return not (self == other)
7482
 
7483
class getComingSoon_args:
7484
 
7485
  thrift_spec = (
7486
  )
7487
 
7488
  def read(self, iprot):
7489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7491
      return
7492
    iprot.readStructBegin()
7493
    while True:
7494
      (fname, ftype, fid) = iprot.readFieldBegin()
7495
      if ftype == TType.STOP:
7496
        break
7497
      else:
7498
        iprot.skip(ftype)
7499
      iprot.readFieldEnd()
7500
    iprot.readStructEnd()
7501
 
7502
  def write(self, oprot):
7503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7505
      return
7506
    oprot.writeStructBegin('getComingSoon_args')
7507
    oprot.writeFieldStop()
7508
    oprot.writeStructEnd()
7509
 
7510
  def validate(self):
7511
    return
7512
 
7513
 
7514
  def __repr__(self):
7515
    L = ['%s=%r' % (key, value)
7516
      for key, value in self.__dict__.iteritems()]
7517
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7518
 
7519
  def __eq__(self, other):
7520
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7521
 
7522
  def __ne__(self, other):
7523
    return not (self == other)
7524
 
7525
class getComingSoon_result:
7526
  """
7527
  Attributes:
7528
   - success
7529
   - isex
7530
  """
7531
 
7532
  thrift_spec = (
7533
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7534
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7535
  )
7536
 
7537
  def __init__(self, success=None, isex=None,):
7538
    self.success = success
7539
    self.isex = isex
7540
 
7541
  def read(self, iprot):
7542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7544
      return
7545
    iprot.readStructBegin()
7546
    while True:
7547
      (fname, ftype, fid) = iprot.readFieldBegin()
7548
      if ftype == TType.STOP:
7549
        break
7550
      if fid == 0:
7551
        if ftype == TType.LIST:
7552
          self.success = []
7553
          (_etype89, _size86) = iprot.readListBegin()
7554
          for _i90 in xrange(_size86):
7555
            _elem91 = Item()
7556
            _elem91.read(iprot)
7557
            self.success.append(_elem91)
7558
          iprot.readListEnd()
7559
        else:
7560
          iprot.skip(ftype)
7561
      elif fid == 1:
7562
        if ftype == TType.STRUCT:
7563
          self.isex = CatalogServiceException()
7564
          self.isex.read(iprot)
7565
        else:
7566
          iprot.skip(ftype)
7567
      else:
7568
        iprot.skip(ftype)
7569
      iprot.readFieldEnd()
7570
    iprot.readStructEnd()
7571
 
7572
  def write(self, oprot):
7573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7575
      return
7576
    oprot.writeStructBegin('getComingSoon_result')
7577
    if self.success is not None:
7578
      oprot.writeFieldBegin('success', TType.LIST, 0)
7579
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7580
      for iter92 in self.success:
7581
        iter92.write(oprot)
7582
      oprot.writeListEnd()
7583
      oprot.writeFieldEnd()
7584
    if self.isex is not None:
7585
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7586
      self.isex.write(oprot)
7587
      oprot.writeFieldEnd()
7588
    oprot.writeFieldStop()
7589
    oprot.writeStructEnd()
7590
 
7591
  def validate(self):
7592
    return
7593
 
7594
 
7595
  def __repr__(self):
7596
    L = ['%s=%r' % (key, value)
7597
      for key, value in self.__dict__.iteritems()]
7598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7599
 
7600
  def __eq__(self, other):
7601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7602
 
7603
  def __ne__(self, other):
7604
    return not (self == other)
7605
 
7606
class getComingSoonCatalogIds_args:
7607
  """
7608
  Attributes:
7609
   - beginIndex
7610
   - totalItems
7611
   - brand
7612
   - category
7613
  """
7614
 
7615
  thrift_spec = (
7616
    None, # 0
7617
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7618
    (2, TType.I64, 'totalItems', None, None, ), # 2
7619
    (3, TType.STRING, 'brand', None, None, ), # 3
7620
    (4, TType.I64, 'category', None, None, ), # 4
7621
  )
7622
 
7623
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7624
    self.beginIndex = beginIndex
7625
    self.totalItems = totalItems
7626
    self.brand = brand
7627
    self.category = category
7628
 
7629
  def read(self, iprot):
7630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7632
      return
7633
    iprot.readStructBegin()
7634
    while True:
7635
      (fname, ftype, fid) = iprot.readFieldBegin()
7636
      if ftype == TType.STOP:
7637
        break
7638
      if fid == 1:
7639
        if ftype == TType.I64:
7640
          self.beginIndex = iprot.readI64();
7641
        else:
7642
          iprot.skip(ftype)
7643
      elif fid == 2:
7644
        if ftype == TType.I64:
7645
          self.totalItems = iprot.readI64();
7646
        else:
7647
          iprot.skip(ftype)
7648
      elif fid == 3:
7649
        if ftype == TType.STRING:
7650
          self.brand = iprot.readString();
7651
        else:
7652
          iprot.skip(ftype)
7653
      elif fid == 4:
7654
        if ftype == TType.I64:
7655
          self.category = iprot.readI64();
7656
        else:
7657
          iprot.skip(ftype)
7658
      else:
7659
        iprot.skip(ftype)
7660
      iprot.readFieldEnd()
7661
    iprot.readStructEnd()
7662
 
7663
  def write(self, oprot):
7664
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7665
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7666
      return
7667
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7668
    if self.beginIndex is not None:
7669
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7670
      oprot.writeI64(self.beginIndex)
7671
      oprot.writeFieldEnd()
7672
    if self.totalItems is not None:
7673
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7674
      oprot.writeI64(self.totalItems)
7675
      oprot.writeFieldEnd()
7676
    if self.brand is not None:
7677
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7678
      oprot.writeString(self.brand)
7679
      oprot.writeFieldEnd()
7680
    if self.category is not None:
7681
      oprot.writeFieldBegin('category', TType.I64, 4)
7682
      oprot.writeI64(self.category)
7683
      oprot.writeFieldEnd()
7684
    oprot.writeFieldStop()
7685
    oprot.writeStructEnd()
7686
 
7687
  def validate(self):
7688
    return
7689
 
7690
 
7691
  def __repr__(self):
7692
    L = ['%s=%r' % (key, value)
7693
      for key, value in self.__dict__.iteritems()]
7694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7695
 
7696
  def __eq__(self, other):
7697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7698
 
7699
  def __ne__(self, other):
7700
    return not (self == other)
7701
 
7702
class getComingSoonCatalogIds_result:
7703
  """
7704
  Attributes:
7705
   - success
7706
   - cex
7707
  """
7708
 
7709
  thrift_spec = (
7710
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7711
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7712
  )
7713
 
7714
  def __init__(self, success=None, cex=None,):
7715
    self.success = success
7716
    self.cex = cex
7717
 
7718
  def read(self, iprot):
7719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7721
      return
7722
    iprot.readStructBegin()
7723
    while True:
7724
      (fname, ftype, fid) = iprot.readFieldBegin()
7725
      if ftype == TType.STOP:
7726
        break
7727
      if fid == 0:
7728
        if ftype == TType.LIST:
7729
          self.success = []
7730
          (_etype96, _size93) = iprot.readListBegin()
7731
          for _i97 in xrange(_size93):
7732
            _elem98 = iprot.readI64();
7733
            self.success.append(_elem98)
7734
          iprot.readListEnd()
7735
        else:
7736
          iprot.skip(ftype)
7737
      elif fid == 1:
7738
        if ftype == TType.STRUCT:
7739
          self.cex = CatalogServiceException()
7740
          self.cex.read(iprot)
7741
        else:
7742
          iprot.skip(ftype)
7743
      else:
7744
        iprot.skip(ftype)
7745
      iprot.readFieldEnd()
7746
    iprot.readStructEnd()
7747
 
7748
  def write(self, oprot):
7749
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7750
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7751
      return
7752
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7753
    if self.success is not None:
7754
      oprot.writeFieldBegin('success', TType.LIST, 0)
7755
      oprot.writeListBegin(TType.I64, len(self.success))
7756
      for iter99 in self.success:
7757
        oprot.writeI64(iter99)
7758
      oprot.writeListEnd()
7759
      oprot.writeFieldEnd()
7760
    if self.cex is not None:
7761
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7762
      self.cex.write(oprot)
7763
      oprot.writeFieldEnd()
7764
    oprot.writeFieldStop()
7765
    oprot.writeStructEnd()
7766
 
7767
  def validate(self):
7768
    return
7769
 
7770
 
7771
  def __repr__(self):
7772
    L = ['%s=%r' % (key, value)
7773
      for key, value in self.__dict__.iteritems()]
7774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7775
 
7776
  def __eq__(self, other):
7777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7778
 
7779
  def __ne__(self, other):
7780
    return not (self == other)
7781
 
7782
class getComingSoonCount_args:
7783
 
7784
  thrift_spec = (
7785
  )
7786
 
7787
  def read(self, iprot):
7788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7790
      return
7791
    iprot.readStructBegin()
7792
    while True:
7793
      (fname, ftype, fid) = iprot.readFieldBegin()
7794
      if ftype == TType.STOP:
7795
        break
7796
      else:
7797
        iprot.skip(ftype)
7798
      iprot.readFieldEnd()
7799
    iprot.readStructEnd()
7800
 
7801
  def write(self, oprot):
7802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7804
      return
7805
    oprot.writeStructBegin('getComingSoonCount_args')
7806
    oprot.writeFieldStop()
7807
    oprot.writeStructEnd()
7808
 
7809
  def validate(self):
7810
    return
7811
 
7812
 
7813
  def __repr__(self):
7814
    L = ['%s=%r' % (key, value)
7815
      for key, value in self.__dict__.iteritems()]
7816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7817
 
7818
  def __eq__(self, other):
7819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7820
 
7821
  def __ne__(self, other):
7822
    return not (self == other)
7823
 
7824
class getComingSoonCount_result:
7825
  """
7826
  Attributes:
7827
   - success
7828
   - cex
7829
  """
7830
 
7831
  thrift_spec = (
7832
    (0, TType.I64, 'success', None, None, ), # 0
7833
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7834
  )
7835
 
7836
  def __init__(self, success=None, cex=None,):
7837
    self.success = success
7838
    self.cex = cex
7839
 
7840
  def read(self, iprot):
7841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7843
      return
7844
    iprot.readStructBegin()
7845
    while True:
7846
      (fname, ftype, fid) = iprot.readFieldBegin()
7847
      if ftype == TType.STOP:
7848
        break
7849
      if fid == 0:
7850
        if ftype == TType.I64:
7851
          self.success = iprot.readI64();
7852
        else:
7853
          iprot.skip(ftype)
7854
      elif fid == 1:
7855
        if ftype == TType.STRUCT:
7856
          self.cex = CatalogServiceException()
7857
          self.cex.read(iprot)
7858
        else:
7859
          iprot.skip(ftype)
7860
      else:
7861
        iprot.skip(ftype)
7862
      iprot.readFieldEnd()
7863
    iprot.readStructEnd()
7864
 
7865
  def write(self, oprot):
7866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7868
      return
7869
    oprot.writeStructBegin('getComingSoonCount_result')
7870
    if self.success is not None:
7871
      oprot.writeFieldBegin('success', TType.I64, 0)
7872
      oprot.writeI64(self.success)
7873
      oprot.writeFieldEnd()
7874
    if self.cex is not None:
7875
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7876
      self.cex.write(oprot)
7877
      oprot.writeFieldEnd()
7878
    oprot.writeFieldStop()
7879
    oprot.writeStructEnd()
7880
 
7881
  def validate(self):
7882
    return
7883
 
7884
 
7885
  def __repr__(self):
7886
    L = ['%s=%r' % (key, value)
7887
      for key, value in self.__dict__.iteritems()]
7888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7889
 
7890
  def __eq__(self, other):
7891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7892
 
7893
  def __ne__(self, other):
7894
    return not (self == other)
7895
 
7896
class getLatestArrivals_args:
7897
 
7898
  thrift_spec = (
7899
  )
7900
 
7901
  def read(self, iprot):
7902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7904
      return
7905
    iprot.readStructBegin()
7906
    while True:
7907
      (fname, ftype, fid) = iprot.readFieldBegin()
7908
      if ftype == TType.STOP:
7909
        break
7910
      else:
7911
        iprot.skip(ftype)
7912
      iprot.readFieldEnd()
7913
    iprot.readStructEnd()
7914
 
7915
  def write(self, oprot):
7916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7918
      return
7919
    oprot.writeStructBegin('getLatestArrivals_args')
7920
    oprot.writeFieldStop()
7921
    oprot.writeStructEnd()
7922
 
7923
  def validate(self):
7924
    return
7925
 
7926
 
7927
  def __repr__(self):
7928
    L = ['%s=%r' % (key, value)
7929
      for key, value in self.__dict__.iteritems()]
7930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7931
 
7932
  def __eq__(self, other):
7933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7934
 
7935
  def __ne__(self, other):
7936
    return not (self == other)
7937
 
7938
class getLatestArrivals_result:
7939
  """
7940
  Attributes:
7941
   - success
7942
   - isex
7943
  """
7944
 
7945
  thrift_spec = (
7946
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7947
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7948
  )
7949
 
7950
  def __init__(self, success=None, isex=None,):
7951
    self.success = success
7952
    self.isex = isex
7953
 
7954
  def read(self, iprot):
7955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7957
      return
7958
    iprot.readStructBegin()
7959
    while True:
7960
      (fname, ftype, fid) = iprot.readFieldBegin()
7961
      if ftype == TType.STOP:
7962
        break
7963
      if fid == 0:
7964
        if ftype == TType.LIST:
7965
          self.success = []
7966
          (_etype103, _size100) = iprot.readListBegin()
7967
          for _i104 in xrange(_size100):
7968
            _elem105 = Item()
7969
            _elem105.read(iprot)
7970
            self.success.append(_elem105)
7971
          iprot.readListEnd()
7972
        else:
7973
          iprot.skip(ftype)
7974
      elif fid == 1:
7975
        if ftype == TType.STRUCT:
7976
          self.isex = CatalogServiceException()
7977
          self.isex.read(iprot)
7978
        else:
7979
          iprot.skip(ftype)
7980
      else:
7981
        iprot.skip(ftype)
7982
      iprot.readFieldEnd()
7983
    iprot.readStructEnd()
7984
 
7985
  def write(self, oprot):
7986
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7987
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7988
      return
7989
    oprot.writeStructBegin('getLatestArrivals_result')
7990
    if self.success is not None:
7991
      oprot.writeFieldBegin('success', TType.LIST, 0)
7992
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7993
      for iter106 in self.success:
7994
        iter106.write(oprot)
7995
      oprot.writeListEnd()
7996
      oprot.writeFieldEnd()
7997
    if self.isex is not None:
7998
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7999
      self.isex.write(oprot)
8000
      oprot.writeFieldEnd()
8001
    oprot.writeFieldStop()
8002
    oprot.writeStructEnd()
8003
 
8004
  def validate(self):
8005
    return
8006
 
8007
 
8008
  def __repr__(self):
8009
    L = ['%s=%r' % (key, value)
8010
      for key, value in self.__dict__.iteritems()]
8011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8012
 
8013
  def __eq__(self, other):
8014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8015
 
8016
  def __ne__(self, other):
8017
    return not (self == other)
8018
 
8019
class getLatestArrivalsCatalogIds_args:
8020
  """
8021
  Attributes:
8022
   - beginIndex
8023
   - totalItems
8024
   - brand
8025
   - categories
8026
  """
8027
 
8028
  thrift_spec = (
8029
    None, # 0
8030
    (1, TType.I64, 'beginIndex', None, None, ), # 1
8031
    (2, TType.I64, 'totalItems', None, None, ), # 2
8032
    (3, TType.STRING, 'brand', None, None, ), # 3
8033
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
8034
  )
8035
 
8036
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
8037
    self.beginIndex = beginIndex
8038
    self.totalItems = totalItems
8039
    self.brand = brand
8040
    self.categories = categories
8041
 
8042
  def read(self, iprot):
8043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8045
      return
8046
    iprot.readStructBegin()
8047
    while True:
8048
      (fname, ftype, fid) = iprot.readFieldBegin()
8049
      if ftype == TType.STOP:
8050
        break
8051
      if fid == 1:
8052
        if ftype == TType.I64:
8053
          self.beginIndex = iprot.readI64();
8054
        else:
8055
          iprot.skip(ftype)
8056
      elif fid == 2:
8057
        if ftype == TType.I64:
8058
          self.totalItems = iprot.readI64();
8059
        else:
8060
          iprot.skip(ftype)
8061
      elif fid == 3:
8062
        if ftype == TType.STRING:
8063
          self.brand = iprot.readString();
8064
        else:
8065
          iprot.skip(ftype)
8066
      elif fid == 4:
8067
        if ftype == TType.LIST:
8068
          self.categories = []
8069
          (_etype110, _size107) = iprot.readListBegin()
8070
          for _i111 in xrange(_size107):
8071
            _elem112 = iprot.readI64();
8072
            self.categories.append(_elem112)
8073
          iprot.readListEnd()
8074
        else:
8075
          iprot.skip(ftype)
8076
      else:
8077
        iprot.skip(ftype)
8078
      iprot.readFieldEnd()
8079
    iprot.readStructEnd()
8080
 
8081
  def write(self, oprot):
8082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8084
      return
8085
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
8086
    if self.beginIndex is not None:
8087
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
8088
      oprot.writeI64(self.beginIndex)
8089
      oprot.writeFieldEnd()
8090
    if self.totalItems is not None:
8091
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
8092
      oprot.writeI64(self.totalItems)
8093
      oprot.writeFieldEnd()
8094
    if self.brand is not None:
8095
      oprot.writeFieldBegin('brand', TType.STRING, 3)
8096
      oprot.writeString(self.brand)
8097
      oprot.writeFieldEnd()
8098
    if self.categories is not None:
8099
      oprot.writeFieldBegin('categories', TType.LIST, 4)
8100
      oprot.writeListBegin(TType.I64, len(self.categories))
8101
      for iter113 in self.categories:
8102
        oprot.writeI64(iter113)
8103
      oprot.writeListEnd()
8104
      oprot.writeFieldEnd()
8105
    oprot.writeFieldStop()
8106
    oprot.writeStructEnd()
8107
 
8108
  def validate(self):
8109
    return
8110
 
8111
 
8112
  def __repr__(self):
8113
    L = ['%s=%r' % (key, value)
8114
      for key, value in self.__dict__.iteritems()]
8115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8116
 
8117
  def __eq__(self, other):
8118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8119
 
8120
  def __ne__(self, other):
8121
    return not (self == other)
8122
 
8123
class getLatestArrivalsCatalogIds_result:
8124
  """
8125
  Attributes:
8126
   - success
8127
   - cex
8128
  """
8129
 
8130
  thrift_spec = (
8131
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8132
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8133
  )
8134
 
8135
  def __init__(self, success=None, cex=None,):
8136
    self.success = success
8137
    self.cex = cex
8138
 
8139
  def read(self, iprot):
8140
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8141
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8142
      return
8143
    iprot.readStructBegin()
8144
    while True:
8145
      (fname, ftype, fid) = iprot.readFieldBegin()
8146
      if ftype == TType.STOP:
8147
        break
8148
      if fid == 0:
8149
        if ftype == TType.LIST:
8150
          self.success = []
8151
          (_etype117, _size114) = iprot.readListBegin()
8152
          for _i118 in xrange(_size114):
8153
            _elem119 = iprot.readI64();
8154
            self.success.append(_elem119)
8155
          iprot.readListEnd()
8156
        else:
8157
          iprot.skip(ftype)
8158
      elif fid == 1:
8159
        if ftype == TType.STRUCT:
8160
          self.cex = CatalogServiceException()
8161
          self.cex.read(iprot)
8162
        else:
8163
          iprot.skip(ftype)
8164
      else:
8165
        iprot.skip(ftype)
8166
      iprot.readFieldEnd()
8167
    iprot.readStructEnd()
8168
 
8169
  def write(self, oprot):
8170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8172
      return
8173
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
8174
    if self.success is not None:
8175
      oprot.writeFieldBegin('success', TType.LIST, 0)
8176
      oprot.writeListBegin(TType.I64, len(self.success))
8177
      for iter120 in self.success:
8178
        oprot.writeI64(iter120)
8179
      oprot.writeListEnd()
8180
      oprot.writeFieldEnd()
8181
    if self.cex is not None:
8182
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8183
      self.cex.write(oprot)
8184
      oprot.writeFieldEnd()
8185
    oprot.writeFieldStop()
8186
    oprot.writeStructEnd()
8187
 
8188
  def validate(self):
8189
    return
8190
 
8191
 
8192
  def __repr__(self):
8193
    L = ['%s=%r' % (key, value)
8194
      for key, value in self.__dict__.iteritems()]
8195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8196
 
8197
  def __eq__(self, other):
8198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8199
 
8200
  def __ne__(self, other):
8201
    return not (self == other)
8202
 
8203
class getLatestArrivalsCount_args:
8204
 
8205
  thrift_spec = (
8206
  )
8207
 
8208
  def read(self, iprot):
8209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8211
      return
8212
    iprot.readStructBegin()
8213
    while True:
8214
      (fname, ftype, fid) = iprot.readFieldBegin()
8215
      if ftype == TType.STOP:
8216
        break
8217
      else:
8218
        iprot.skip(ftype)
8219
      iprot.readFieldEnd()
8220
    iprot.readStructEnd()
8221
 
8222
  def write(self, oprot):
8223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8225
      return
8226
    oprot.writeStructBegin('getLatestArrivalsCount_args')
8227
    oprot.writeFieldStop()
8228
    oprot.writeStructEnd()
8229
 
8230
  def validate(self):
8231
    return
8232
 
8233
 
8234
  def __repr__(self):
8235
    L = ['%s=%r' % (key, value)
8236
      for key, value in self.__dict__.iteritems()]
8237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8238
 
8239
  def __eq__(self, other):
8240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8241
 
8242
  def __ne__(self, other):
8243
    return not (self == other)
8244
 
8245
class getLatestArrivalsCount_result:
8246
  """
8247
  Attributes:
8248
   - success
8249
   - cex
8250
  """
8251
 
8252
  thrift_spec = (
8253
    (0, TType.I64, 'success', None, None, ), # 0
8254
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8255
  )
8256
 
8257
  def __init__(self, success=None, cex=None,):
8258
    self.success = success
8259
    self.cex = cex
8260
 
8261
  def read(self, iprot):
8262
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8263
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8264
      return
8265
    iprot.readStructBegin()
8266
    while True:
8267
      (fname, ftype, fid) = iprot.readFieldBegin()
8268
      if ftype == TType.STOP:
8269
        break
8270
      if fid == 0:
8271
        if ftype == TType.I64:
8272
          self.success = iprot.readI64();
8273
        else:
8274
          iprot.skip(ftype)
8275
      elif fid == 1:
8276
        if ftype == TType.STRUCT:
8277
          self.cex = CatalogServiceException()
8278
          self.cex.read(iprot)
8279
        else:
8280
          iprot.skip(ftype)
8281
      else:
8282
        iprot.skip(ftype)
8283
      iprot.readFieldEnd()
8284
    iprot.readStructEnd()
8285
 
8286
  def write(self, oprot):
8287
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8288
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8289
      return
8290
    oprot.writeStructBegin('getLatestArrivalsCount_result')
8291
    if self.success is not None:
8292
      oprot.writeFieldBegin('success', TType.I64, 0)
8293
      oprot.writeI64(self.success)
8294
      oprot.writeFieldEnd()
8295
    if self.cex is not None:
8296
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8297
      self.cex.write(oprot)
8298
      oprot.writeFieldEnd()
8299
    oprot.writeFieldStop()
8300
    oprot.writeStructEnd()
8301
 
8302
  def validate(self):
8303
    return
8304
 
8305
 
8306
  def __repr__(self):
8307
    L = ['%s=%r' % (key, value)
8308
      for key, value in self.__dict__.iteritems()]
8309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8310
 
8311
  def __eq__(self, other):
8312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8313
 
8314
  def __ne__(self, other):
8315
    return not (self == other)
8316
 
8317
class generateNewEntityID_args:
8318
 
8319
  thrift_spec = (
8320
  )
8321
 
8322
  def read(self, iprot):
8323
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8324
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8325
      return
8326
    iprot.readStructBegin()
8327
    while True:
8328
      (fname, ftype, fid) = iprot.readFieldBegin()
8329
      if ftype == TType.STOP:
8330
        break
8331
      else:
8332
        iprot.skip(ftype)
8333
      iprot.readFieldEnd()
8334
    iprot.readStructEnd()
8335
 
8336
  def write(self, oprot):
8337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8339
      return
8340
    oprot.writeStructBegin('generateNewEntityID_args')
8341
    oprot.writeFieldStop()
8342
    oprot.writeStructEnd()
8343
 
8344
  def validate(self):
8345
    return
8346
 
8347
 
8348
  def __repr__(self):
8349
    L = ['%s=%r' % (key, value)
8350
      for key, value in self.__dict__.iteritems()]
8351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8352
 
8353
  def __eq__(self, other):
8354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8355
 
8356
  def __ne__(self, other):
8357
    return not (self == other)
8358
 
8359
class generateNewEntityID_result:
8360
  """
8361
  Attributes:
8362
   - success
8363
  """
8364
 
8365
  thrift_spec = (
8366
    (0, TType.I64, 'success', None, None, ), # 0
8367
  )
8368
 
8369
  def __init__(self, success=None,):
8370
    self.success = success
8371
 
8372
  def read(self, iprot):
8373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8375
      return
8376
    iprot.readStructBegin()
8377
    while True:
8378
      (fname, ftype, fid) = iprot.readFieldBegin()
8379
      if ftype == TType.STOP:
8380
        break
8381
      if fid == 0:
8382
        if ftype == TType.I64:
8383
          self.success = iprot.readI64();
8384
        else:
8385
          iprot.skip(ftype)
8386
      else:
8387
        iprot.skip(ftype)
8388
      iprot.readFieldEnd()
8389
    iprot.readStructEnd()
8390
 
8391
  def write(self, oprot):
8392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8394
      return
8395
    oprot.writeStructBegin('generateNewEntityID_result')
8396
    if self.success is not None:
8397
      oprot.writeFieldBegin('success', TType.I64, 0)
8398
      oprot.writeI64(self.success)
8399
      oprot.writeFieldEnd()
8400
    oprot.writeFieldStop()
8401
    oprot.writeStructEnd()
8402
 
8403
  def validate(self):
8404
    return
8405
 
8406
 
8407
  def __repr__(self):
8408
    L = ['%s=%r' % (key, value)
8409
      for key, value in self.__dict__.iteritems()]
8410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8411
 
8412
  def __eq__(self, other):
8413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8414
 
8415
  def __ne__(self, other):
8416
    return not (self == other)
8417
 
8418
class addCategory_args:
8419
  """
8420
  Attributes:
8421
   - category
8422
  """
8423
 
8424
  thrift_spec = (
8425
    None, # 0
8426
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
8427
  )
8428
 
8429
  def __init__(self, category=None,):
8430
    self.category = category
8431
 
8432
  def read(self, iprot):
8433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8435
      return
8436
    iprot.readStructBegin()
8437
    while True:
8438
      (fname, ftype, fid) = iprot.readFieldBegin()
8439
      if ftype == TType.STOP:
8440
        break
8441
      if fid == 1:
8442
        if ftype == TType.STRUCT:
8443
          self.category = Category()
8444
          self.category.read(iprot)
8445
        else:
8446
          iprot.skip(ftype)
8447
      else:
8448
        iprot.skip(ftype)
8449
      iprot.readFieldEnd()
8450
    iprot.readStructEnd()
8451
 
8452
  def write(self, oprot):
8453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8455
      return
8456
    oprot.writeStructBegin('addCategory_args')
8457
    if self.category is not None:
8458
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
8459
      self.category.write(oprot)
8460
      oprot.writeFieldEnd()
8461
    oprot.writeFieldStop()
8462
    oprot.writeStructEnd()
8463
 
8464
  def validate(self):
8465
    return
8466
 
8467
 
8468
  def __repr__(self):
8469
    L = ['%s=%r' % (key, value)
8470
      for key, value in self.__dict__.iteritems()]
8471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8472
 
8473
  def __eq__(self, other):
8474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8475
 
8476
  def __ne__(self, other):
8477
    return not (self == other)
8478
 
8479
class addCategory_result:
8480
  """
8481
  Attributes:
8482
   - success
8483
  """
8484
 
8485
  thrift_spec = (
8486
    (0, TType.BOOL, 'success', None, None, ), # 0
8487
  )
8488
 
8489
  def __init__(self, success=None,):
8490
    self.success = success
8491
 
8492
  def read(self, iprot):
8493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8495
      return
8496
    iprot.readStructBegin()
8497
    while True:
8498
      (fname, ftype, fid) = iprot.readFieldBegin()
8499
      if ftype == TType.STOP:
8500
        break
8501
      if fid == 0:
8502
        if ftype == TType.BOOL:
8503
          self.success = iprot.readBool();
8504
        else:
8505
          iprot.skip(ftype)
8506
      else:
8507
        iprot.skip(ftype)
8508
      iprot.readFieldEnd()
8509
    iprot.readStructEnd()
8510
 
8511
  def write(self, oprot):
8512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8514
      return
8515
    oprot.writeStructBegin('addCategory_result')
8516
    if self.success is not None:
8517
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8518
      oprot.writeBool(self.success)
8519
      oprot.writeFieldEnd()
8520
    oprot.writeFieldStop()
8521
    oprot.writeStructEnd()
8522
 
8523
  def validate(self):
8524
    return
8525
 
8526
 
8527
  def __repr__(self):
8528
    L = ['%s=%r' % (key, value)
8529
      for key, value in self.__dict__.iteritems()]
8530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8531
 
8532
  def __eq__(self, other):
8533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8534
 
8535
  def __ne__(self, other):
8536
    return not (self == other)
8537
 
8538
class getCategory_args:
8539
  """
8540
  Attributes:
8541
   - id
8542
  """
8543
 
8544
  thrift_spec = (
8545
    None, # 0
8546
    (1, TType.I64, 'id', None, None, ), # 1
8547
  )
8548
 
8549
  def __init__(self, id=None,):
8550
    self.id = id
8551
 
8552
  def read(self, iprot):
8553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8555
      return
8556
    iprot.readStructBegin()
8557
    while True:
8558
      (fname, ftype, fid) = iprot.readFieldBegin()
8559
      if ftype == TType.STOP:
8560
        break
8561
      if fid == 1:
8562
        if ftype == TType.I64:
8563
          self.id = iprot.readI64();
8564
        else:
8565
          iprot.skip(ftype)
8566
      else:
8567
        iprot.skip(ftype)
8568
      iprot.readFieldEnd()
8569
    iprot.readStructEnd()
8570
 
8571
  def write(self, oprot):
8572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8574
      return
8575
    oprot.writeStructBegin('getCategory_args')
8576
    if self.id is not None:
8577
      oprot.writeFieldBegin('id', TType.I64, 1)
8578
      oprot.writeI64(self.id)
8579
      oprot.writeFieldEnd()
8580
    oprot.writeFieldStop()
8581
    oprot.writeStructEnd()
8582
 
8583
  def validate(self):
8584
    return
8585
 
8586
 
8587
  def __repr__(self):
8588
    L = ['%s=%r' % (key, value)
8589
      for key, value in self.__dict__.iteritems()]
8590
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8591
 
8592
  def __eq__(self, other):
8593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8594
 
8595
  def __ne__(self, other):
8596
    return not (self == other)
8597
 
8598
class getCategory_result:
8599
  """
8600
  Attributes:
8601
   - success
8602
  """
8603
 
8604
  thrift_spec = (
8605
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8606
  )
8607
 
8608
  def __init__(self, success=None,):
8609
    self.success = success
8610
 
8611
  def read(self, iprot):
8612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8614
      return
8615
    iprot.readStructBegin()
8616
    while True:
8617
      (fname, ftype, fid) = iprot.readFieldBegin()
8618
      if ftype == TType.STOP:
8619
        break
8620
      if fid == 0:
8621
        if ftype == TType.STRUCT:
8622
          self.success = Category()
8623
          self.success.read(iprot)
8624
        else:
8625
          iprot.skip(ftype)
8626
      else:
8627
        iprot.skip(ftype)
8628
      iprot.readFieldEnd()
8629
    iprot.readStructEnd()
8630
 
8631
  def write(self, oprot):
8632
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8633
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8634
      return
8635
    oprot.writeStructBegin('getCategory_result')
8636
    if self.success is not None:
8637
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8638
      self.success.write(oprot)
8639
      oprot.writeFieldEnd()
8640
    oprot.writeFieldStop()
8641
    oprot.writeStructEnd()
8642
 
8643
  def validate(self):
8644
    return
8645
 
8646
 
8647
  def __repr__(self):
8648
    L = ['%s=%r' % (key, value)
8649
      for key, value in self.__dict__.iteritems()]
8650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8651
 
8652
  def __eq__(self, other):
8653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8654
 
8655
  def __ne__(self, other):
8656
    return not (self == other)
8657
 
8658
class getAllCategories_args:
8659
 
8660
  thrift_spec = (
8661
  )
8662
 
8663
  def read(self, iprot):
8664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8666
      return
8667
    iprot.readStructBegin()
8668
    while True:
8669
      (fname, ftype, fid) = iprot.readFieldBegin()
8670
      if ftype == TType.STOP:
8671
        break
8672
      else:
8673
        iprot.skip(ftype)
8674
      iprot.readFieldEnd()
8675
    iprot.readStructEnd()
8676
 
8677
  def write(self, oprot):
8678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8680
      return
8681
    oprot.writeStructBegin('getAllCategories_args')
8682
    oprot.writeFieldStop()
8683
    oprot.writeStructEnd()
8684
 
8685
  def validate(self):
8686
    return
8687
 
8688
 
8689
  def __repr__(self):
8690
    L = ['%s=%r' % (key, value)
8691
      for key, value in self.__dict__.iteritems()]
8692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8693
 
8694
  def __eq__(self, other):
8695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8696
 
8697
  def __ne__(self, other):
8698
    return not (self == other)
8699
 
8700
class getAllCategories_result:
8701
  """
8702
  Attributes:
8703
   - success
8704
  """
8705
 
8706
  thrift_spec = (
8707
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8708
  )
8709
 
8710
  def __init__(self, success=None,):
8711
    self.success = success
8712
 
8713
  def read(self, iprot):
8714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8716
      return
8717
    iprot.readStructBegin()
8718
    while True:
8719
      (fname, ftype, fid) = iprot.readFieldBegin()
8720
      if ftype == TType.STOP:
8721
        break
8722
      if fid == 0:
8723
        if ftype == TType.LIST:
8724
          self.success = []
8725
          (_etype124, _size121) = iprot.readListBegin()
8726
          for _i125 in xrange(_size121):
8727
            _elem126 = Category()
8728
            _elem126.read(iprot)
8729
            self.success.append(_elem126)
8730
          iprot.readListEnd()
8731
        else:
8732
          iprot.skip(ftype)
8733
      else:
8734
        iprot.skip(ftype)
8735
      iprot.readFieldEnd()
8736
    iprot.readStructEnd()
8737
 
8738
  def write(self, oprot):
8739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8741
      return
8742
    oprot.writeStructBegin('getAllCategories_result')
8743
    if self.success is not None:
8744
      oprot.writeFieldBegin('success', TType.LIST, 0)
8745
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8746
      for iter127 in self.success:
8747
        iter127.write(oprot)
8748
      oprot.writeListEnd()
8749
      oprot.writeFieldEnd()
8750
    oprot.writeFieldStop()
8751
    oprot.writeStructEnd()
8752
 
8753
  def validate(self):
8754
    return
8755
 
8756
 
8757
  def __repr__(self):
8758
    L = ['%s=%r' % (key, value)
8759
      for key, value in self.__dict__.iteritems()]
8760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8761
 
8762
  def __eq__(self, other):
8763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8764
 
8765
  def __ne__(self, other):
8766
    return not (self == other)
8767
 
8768
class getAllSimilarItems_args:
8769
  """
8770
  Attributes:
8771
   - itemId
8772
  """
8773
 
8774
  thrift_spec = (
8775
    None, # 0
8776
    (1, TType.I64, 'itemId', None, None, ), # 1
8777
  )
8778
 
8779
  def __init__(self, itemId=None,):
8780
    self.itemId = itemId
8781
 
8782
  def read(self, iprot):
8783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8785
      return
8786
    iprot.readStructBegin()
8787
    while True:
8788
      (fname, ftype, fid) = iprot.readFieldBegin()
8789
      if ftype == TType.STOP:
8790
        break
8791
      if fid == 1:
8792
        if ftype == TType.I64:
8793
          self.itemId = iprot.readI64();
8794
        else:
8795
          iprot.skip(ftype)
8796
      else:
8797
        iprot.skip(ftype)
8798
      iprot.readFieldEnd()
8799
    iprot.readStructEnd()
8800
 
8801
  def write(self, oprot):
8802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8804
      return
8805
    oprot.writeStructBegin('getAllSimilarItems_args')
8806
    if self.itemId is not None:
8807
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8808
      oprot.writeI64(self.itemId)
8809
      oprot.writeFieldEnd()
8810
    oprot.writeFieldStop()
8811
    oprot.writeStructEnd()
8812
 
8813
  def validate(self):
8814
    return
8815
 
8816
 
8817
  def __repr__(self):
8818
    L = ['%s=%r' % (key, value)
8819
      for key, value in self.__dict__.iteritems()]
8820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8821
 
8822
  def __eq__(self, other):
8823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8824
 
8825
  def __ne__(self, other):
8826
    return not (self == other)
8827
 
8828
class getAllSimilarItems_result:
8829
  """
8830
  Attributes:
8831
   - success
8832
  """
8833
 
8834
  thrift_spec = (
8835
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8836
  )
8837
 
8838
  def __init__(self, success=None,):
8839
    self.success = success
8840
 
8841
  def read(self, iprot):
8842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8844
      return
8845
    iprot.readStructBegin()
8846
    while True:
8847
      (fname, ftype, fid) = iprot.readFieldBegin()
8848
      if ftype == TType.STOP:
8849
        break
8850
      if fid == 0:
8851
        if ftype == TType.LIST:
8852
          self.success = []
8853
          (_etype131, _size128) = iprot.readListBegin()
8854
          for _i132 in xrange(_size128):
8855
            _elem133 = Item()
8856
            _elem133.read(iprot)
8857
            self.success.append(_elem133)
8858
          iprot.readListEnd()
8859
        else:
8860
          iprot.skip(ftype)
8861
      else:
8862
        iprot.skip(ftype)
8863
      iprot.readFieldEnd()
8864
    iprot.readStructEnd()
8865
 
8866
  def write(self, oprot):
8867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8869
      return
8870
    oprot.writeStructBegin('getAllSimilarItems_result')
8871
    if self.success is not None:
8872
      oprot.writeFieldBegin('success', TType.LIST, 0)
8873
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8874
      for iter134 in self.success:
8875
        iter134.write(oprot)
8876
      oprot.writeListEnd()
8877
      oprot.writeFieldEnd()
8878
    oprot.writeFieldStop()
8879
    oprot.writeStructEnd()
8880
 
8881
  def validate(self):
8882
    return
8883
 
8884
 
8885
  def __repr__(self):
8886
    L = ['%s=%r' % (key, value)
8887
      for key, value in self.__dict__.iteritems()]
8888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8889
 
8890
  def __eq__(self, other):
8891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8892
 
8893
  def __ne__(self, other):
8894
    return not (self == other)
8895
 
8896
class addSimilarItem_args:
8897
  """
8898
  Attributes:
8899
   - itemId
8900
   - catalogItemId
8901
  """
8902
 
8903
  thrift_spec = (
8904
    None, # 0
8905
    (1, TType.I64, 'itemId', None, None, ), # 1
8906
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
8907
  )
8908
 
8909
  def __init__(self, itemId=None, catalogItemId=None,):
8910
    self.itemId = itemId
8911
    self.catalogItemId = catalogItemId
8912
 
8913
  def read(self, iprot):
8914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8916
      return
8917
    iprot.readStructBegin()
8918
    while True:
8919
      (fname, ftype, fid) = iprot.readFieldBegin()
8920
      if ftype == TType.STOP:
8921
        break
8922
      if fid == 1:
8923
        if ftype == TType.I64:
8924
          self.itemId = iprot.readI64();
8925
        else:
8926
          iprot.skip(ftype)
8927
      elif fid == 2:
8928
        if ftype == TType.I64:
8929
          self.catalogItemId = iprot.readI64();
8930
        else:
8931
          iprot.skip(ftype)
8932
      else:
8933
        iprot.skip(ftype)
8934
      iprot.readFieldEnd()
8935
    iprot.readStructEnd()
8936
 
8937
  def write(self, oprot):
8938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8940
      return
8941
    oprot.writeStructBegin('addSimilarItem_args')
8942
    if self.itemId is not None:
8943
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8944
      oprot.writeI64(self.itemId)
8945
      oprot.writeFieldEnd()
8946
    if self.catalogItemId is not None:
8947
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
8948
      oprot.writeI64(self.catalogItemId)
8949
      oprot.writeFieldEnd()
8950
    oprot.writeFieldStop()
8951
    oprot.writeStructEnd()
8952
 
8953
  def validate(self):
8954
    return
8955
 
8956
 
8957
  def __repr__(self):
8958
    L = ['%s=%r' % (key, value)
8959
      for key, value in self.__dict__.iteritems()]
8960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8961
 
8962
  def __eq__(self, other):
8963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8964
 
8965
  def __ne__(self, other):
8966
    return not (self == other)
8967
 
8968
class addSimilarItem_result:
8969
  """
8970
  Attributes:
8971
   - success
8972
   - cex
8973
  """
8974
 
8975
  thrift_spec = (
8976
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8977
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8978
  )
8979
 
8980
  def __init__(self, success=None, cex=None,):
8981
    self.success = success
8982
    self.cex = cex
8983
 
8984
  def read(self, iprot):
8985
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8986
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8987
      return
8988
    iprot.readStructBegin()
8989
    while True:
8990
      (fname, ftype, fid) = iprot.readFieldBegin()
8991
      if ftype == TType.STOP:
8992
        break
8993
      if fid == 0:
8994
        if ftype == TType.STRUCT:
8995
          self.success = Item()
8996
          self.success.read(iprot)
8997
        else:
8998
          iprot.skip(ftype)
8999
      elif fid == 1:
9000
        if ftype == TType.STRUCT:
9001
          self.cex = CatalogServiceException()
9002
          self.cex.read(iprot)
9003
        else:
9004
          iprot.skip(ftype)
9005
      else:
9006
        iprot.skip(ftype)
9007
      iprot.readFieldEnd()
9008
    iprot.readStructEnd()
9009
 
9010
  def write(self, oprot):
9011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9013
      return
9014
    oprot.writeStructBegin('addSimilarItem_result')
9015
    if self.success is not None:
9016
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9017
      self.success.write(oprot)
9018
      oprot.writeFieldEnd()
9019
    if self.cex is not None:
9020
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9021
      self.cex.write(oprot)
9022
      oprot.writeFieldEnd()
9023
    oprot.writeFieldStop()
9024
    oprot.writeStructEnd()
9025
 
9026
  def validate(self):
9027
    return
9028
 
9029
 
9030
  def __repr__(self):
9031
    L = ['%s=%r' % (key, value)
9032
      for key, value in self.__dict__.iteritems()]
9033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9034
 
9035
  def __eq__(self, other):
9036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9037
 
9038
  def __ne__(self, other):
9039
    return not (self == other)
9040
 
6512 kshitij.so 9041
class addTag_args:
9042
  """
9043
  Attributes:
9044
   - displayName
9045
   - itemId
9046
  """
9047
 
9048
  thrift_spec = (
9049
    None, # 0
9050
    (1, TType.STRING, 'displayName', None, None, ), # 1
9051
    (2, TType.I64, 'itemId', None, None, ), # 2
9052
  )
9053
 
9054
  def __init__(self, displayName=None, itemId=None,):
9055
    self.displayName = displayName
9056
    self.itemId = itemId
9057
 
9058
  def read(self, iprot):
9059
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9060
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9061
      return
9062
    iprot.readStructBegin()
9063
    while True:
9064
      (fname, ftype, fid) = iprot.readFieldBegin()
9065
      if ftype == TType.STOP:
9066
        break
9067
      if fid == 1:
9068
        if ftype == TType.STRING:
9069
          self.displayName = iprot.readString();
9070
        else:
9071
          iprot.skip(ftype)
9072
      elif fid == 2:
9073
        if ftype == TType.I64:
9074
          self.itemId = iprot.readI64();
9075
        else:
9076
          iprot.skip(ftype)
9077
      else:
9078
        iprot.skip(ftype)
9079
      iprot.readFieldEnd()
9080
    iprot.readStructEnd()
9081
 
9082
  def write(self, oprot):
9083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9085
      return
9086
    oprot.writeStructBegin('addTag_args')
9087
    if self.displayName is not None:
9088
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9089
      oprot.writeString(self.displayName)
9090
      oprot.writeFieldEnd()
9091
    if self.itemId is not None:
9092
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9093
      oprot.writeI64(self.itemId)
9094
      oprot.writeFieldEnd()
9095
    oprot.writeFieldStop()
9096
    oprot.writeStructEnd()
9097
 
9098
  def validate(self):
9099
    return
9100
 
9101
 
9102
  def __repr__(self):
9103
    L = ['%s=%r' % (key, value)
9104
      for key, value in self.__dict__.iteritems()]
9105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9106
 
9107
  def __eq__(self, other):
9108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9109
 
9110
  def __ne__(self, other):
9111
    return not (self == other)
9112
 
9113
class addTag_result:
9114
  """
9115
  Attributes:
9116
   - success
9117
  """
9118
 
9119
  thrift_spec = (
9120
    (0, TType.BOOL, 'success', None, None, ), # 0
9121
  )
9122
 
9123
  def __init__(self, success=None,):
9124
    self.success = success
9125
 
9126
  def read(self, iprot):
9127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9129
      return
9130
    iprot.readStructBegin()
9131
    while True:
9132
      (fname, ftype, fid) = iprot.readFieldBegin()
9133
      if ftype == TType.STOP:
9134
        break
9135
      if fid == 0:
9136
        if ftype == TType.BOOL:
9137
          self.success = iprot.readBool();
9138
        else:
9139
          iprot.skip(ftype)
9140
      else:
9141
        iprot.skip(ftype)
9142
      iprot.readFieldEnd()
9143
    iprot.readStructEnd()
9144
 
9145
  def write(self, oprot):
9146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9148
      return
9149
    oprot.writeStructBegin('addTag_result')
9150
    if self.success is not None:
9151
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9152
      oprot.writeBool(self.success)
9153
      oprot.writeFieldEnd()
9154
    oprot.writeFieldStop()
9155
    oprot.writeStructEnd()
9156
 
9157
  def validate(self):
9158
    return
9159
 
9160
 
9161
  def __repr__(self):
9162
    L = ['%s=%r' % (key, value)
9163
      for key, value in self.__dict__.iteritems()]
9164
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9165
 
9166
  def __eq__(self, other):
9167
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9168
 
9169
  def __ne__(self, other):
9170
    return not (self == other)
9171
 
9172
class deleteEntityTag_args:
9173
  """
9174
  Attributes:
9175
   - displayName
9176
   - itemId
9177
  """
9178
 
9179
  thrift_spec = (
9180
    None, # 0
9181
    (1, TType.STRING, 'displayName', None, None, ), # 1
9182
    (2, TType.I64, 'itemId', None, None, ), # 2
9183
  )
9184
 
9185
  def __init__(self, displayName=None, itemId=None,):
9186
    self.displayName = displayName
9187
    self.itemId = itemId
9188
 
9189
  def read(self, iprot):
9190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9192
      return
9193
    iprot.readStructBegin()
9194
    while True:
9195
      (fname, ftype, fid) = iprot.readFieldBegin()
9196
      if ftype == TType.STOP:
9197
        break
9198
      if fid == 1:
9199
        if ftype == TType.STRING:
9200
          self.displayName = iprot.readString();
9201
        else:
9202
          iprot.skip(ftype)
9203
      elif fid == 2:
9204
        if ftype == TType.I64:
9205
          self.itemId = iprot.readI64();
9206
        else:
9207
          iprot.skip(ftype)
9208
      else:
9209
        iprot.skip(ftype)
9210
      iprot.readFieldEnd()
9211
    iprot.readStructEnd()
9212
 
9213
  def write(self, oprot):
9214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9216
      return
9217
    oprot.writeStructBegin('deleteEntityTag_args')
9218
    if self.displayName is not None:
9219
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9220
      oprot.writeString(self.displayName)
9221
      oprot.writeFieldEnd()
9222
    if self.itemId is not None:
9223
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9224
      oprot.writeI64(self.itemId)
9225
      oprot.writeFieldEnd()
9226
    oprot.writeFieldStop()
9227
    oprot.writeStructEnd()
9228
 
9229
  def validate(self):
9230
    return
9231
 
9232
 
9233
  def __repr__(self):
9234
    L = ['%s=%r' % (key, value)
9235
      for key, value in self.__dict__.iteritems()]
9236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9237
 
9238
  def __eq__(self, other):
9239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9240
 
9241
  def __ne__(self, other):
9242
    return not (self == other)
9243
 
9244
class deleteEntityTag_result:
9245
  """
9246
  Attributes:
9247
   - success
9248
  """
9249
 
9250
  thrift_spec = (
9251
    (0, TType.BOOL, 'success', None, None, ), # 0
9252
  )
9253
 
9254
  def __init__(self, success=None,):
9255
    self.success = success
9256
 
9257
  def read(self, iprot):
9258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9260
      return
9261
    iprot.readStructBegin()
9262
    while True:
9263
      (fname, ftype, fid) = iprot.readFieldBegin()
9264
      if ftype == TType.STOP:
9265
        break
9266
      if fid == 0:
9267
        if ftype == TType.BOOL:
9268
          self.success = iprot.readBool();
9269
        else:
9270
          iprot.skip(ftype)
9271
      else:
9272
        iprot.skip(ftype)
9273
      iprot.readFieldEnd()
9274
    iprot.readStructEnd()
9275
 
9276
  def write(self, oprot):
9277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9279
      return
9280
    oprot.writeStructBegin('deleteEntityTag_result')
9281
    if self.success is not None:
9282
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9283
      oprot.writeBool(self.success)
9284
      oprot.writeFieldEnd()
9285
    oprot.writeFieldStop()
9286
    oprot.writeStructEnd()
9287
 
9288
  def validate(self):
9289
    return
9290
 
9291
 
9292
  def __repr__(self):
9293
    L = ['%s=%r' % (key, value)
9294
      for key, value in self.__dict__.iteritems()]
9295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9296
 
9297
  def __eq__(self, other):
9298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9299
 
9300
  def __ne__(self, other):
9301
    return not (self == other)
9302
 
9303
class deleteTag_args:
9304
  """
9305
  Attributes:
9306
   - displayName
9307
  """
9308
 
9309
  thrift_spec = (
9310
    None, # 0
9311
    (1, TType.STRING, 'displayName', None, None, ), # 1
9312
  )
9313
 
9314
  def __init__(self, displayName=None,):
9315
    self.displayName = displayName
9316
 
9317
  def read(self, iprot):
9318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9320
      return
9321
    iprot.readStructBegin()
9322
    while True:
9323
      (fname, ftype, fid) = iprot.readFieldBegin()
9324
      if ftype == TType.STOP:
9325
        break
9326
      if fid == 1:
9327
        if ftype == TType.STRING:
9328
          self.displayName = iprot.readString();
9329
        else:
9330
          iprot.skip(ftype)
9331
      else:
9332
        iprot.skip(ftype)
9333
      iprot.readFieldEnd()
9334
    iprot.readStructEnd()
9335
 
9336
  def write(self, oprot):
9337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9339
      return
9340
    oprot.writeStructBegin('deleteTag_args')
9341
    if self.displayName is not None:
9342
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9343
      oprot.writeString(self.displayName)
9344
      oprot.writeFieldEnd()
9345
    oprot.writeFieldStop()
9346
    oprot.writeStructEnd()
9347
 
9348
  def validate(self):
9349
    return
9350
 
9351
 
9352
  def __repr__(self):
9353
    L = ['%s=%r' % (key, value)
9354
      for key, value in self.__dict__.iteritems()]
9355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9356
 
9357
  def __eq__(self, other):
9358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9359
 
9360
  def __ne__(self, other):
9361
    return not (self == other)
9362
 
9363
class deleteTag_result:
9364
  """
9365
  Attributes:
9366
   - success
9367
  """
9368
 
9369
  thrift_spec = (
9370
    (0, TType.BOOL, 'success', None, None, ), # 0
9371
  )
9372
 
9373
  def __init__(self, success=None,):
9374
    self.success = success
9375
 
9376
  def read(self, iprot):
9377
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9378
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9379
      return
9380
    iprot.readStructBegin()
9381
    while True:
9382
      (fname, ftype, fid) = iprot.readFieldBegin()
9383
      if ftype == TType.STOP:
9384
        break
9385
      if fid == 0:
9386
        if ftype == TType.BOOL:
9387
          self.success = iprot.readBool();
9388
        else:
9389
          iprot.skip(ftype)
9390
      else:
9391
        iprot.skip(ftype)
9392
      iprot.readFieldEnd()
9393
    iprot.readStructEnd()
9394
 
9395
  def write(self, oprot):
9396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9398
      return
9399
    oprot.writeStructBegin('deleteTag_result')
9400
    if self.success is not None:
9401
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9402
      oprot.writeBool(self.success)
9403
      oprot.writeFieldEnd()
9404
    oprot.writeFieldStop()
9405
    oprot.writeStructEnd()
9406
 
9407
  def validate(self):
9408
    return
9409
 
9410
 
9411
  def __repr__(self):
9412
    L = ['%s=%r' % (key, value)
9413
      for key, value in self.__dict__.iteritems()]
9414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9415
 
9416
  def __eq__(self, other):
9417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9418
 
9419
  def __ne__(self, other):
9420
    return not (self == other)
9421
 
9422
class getAllTags_args:
9423
 
9424
  thrift_spec = (
9425
  )
9426
 
9427
  def read(self, iprot):
9428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9430
      return
9431
    iprot.readStructBegin()
9432
    while True:
9433
      (fname, ftype, fid) = iprot.readFieldBegin()
9434
      if ftype == TType.STOP:
9435
        break
9436
      else:
9437
        iprot.skip(ftype)
9438
      iprot.readFieldEnd()
9439
    iprot.readStructEnd()
9440
 
9441
  def write(self, oprot):
9442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9444
      return
9445
    oprot.writeStructBegin('getAllTags_args')
9446
    oprot.writeFieldStop()
9447
    oprot.writeStructEnd()
9448
 
9449
  def validate(self):
9450
    return
9451
 
9452
 
9453
  def __repr__(self):
9454
    L = ['%s=%r' % (key, value)
9455
      for key, value in self.__dict__.iteritems()]
9456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9457
 
9458
  def __eq__(self, other):
9459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9460
 
9461
  def __ne__(self, other):
9462
    return not (self == other)
9463
 
9464
class getAllTags_result:
9465
  """
9466
  Attributes:
9467
   - success
9468
  """
9469
 
9470
  thrift_spec = (
9471
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
9472
  )
9473
 
9474
  def __init__(self, success=None,):
9475
    self.success = success
9476
 
9477
  def read(self, iprot):
9478
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9479
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9480
      return
9481
    iprot.readStructBegin()
9482
    while True:
9483
      (fname, ftype, fid) = iprot.readFieldBegin()
9484
      if ftype == TType.STOP:
9485
        break
9486
      if fid == 0:
9487
        if ftype == TType.LIST:
9488
          self.success = []
9489
          (_etype138, _size135) = iprot.readListBegin()
9490
          for _i139 in xrange(_size135):
9491
            _elem140 = iprot.readString();
9492
            self.success.append(_elem140)
9493
          iprot.readListEnd()
9494
        else:
9495
          iprot.skip(ftype)
9496
      else:
9497
        iprot.skip(ftype)
9498
      iprot.readFieldEnd()
9499
    iprot.readStructEnd()
9500
 
9501
  def write(self, oprot):
9502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9503
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9504
      return
9505
    oprot.writeStructBegin('getAllTags_result')
9506
    if self.success is not None:
9507
      oprot.writeFieldBegin('success', TType.LIST, 0)
9508
      oprot.writeListBegin(TType.STRING, len(self.success))
9509
      for iter141 in self.success:
9510
        oprot.writeString(iter141)
9511
      oprot.writeListEnd()
9512
      oprot.writeFieldEnd()
9513
    oprot.writeFieldStop()
9514
    oprot.writeStructEnd()
9515
 
9516
  def validate(self):
9517
    return
9518
 
9519
 
9520
  def __repr__(self):
9521
    L = ['%s=%r' % (key, value)
9522
      for key, value in self.__dict__.iteritems()]
9523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9524
 
9525
  def __eq__(self, other):
9526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9527
 
9528
  def __ne__(self, other):
9529
    return not (self == other)
9530
 
9531
class getAllEntitiesByTagName_args:
9532
  """
9533
  Attributes:
9534
   - displayName
9535
  """
9536
 
9537
  thrift_spec = (
9538
    None, # 0
9539
    (1, TType.STRING, 'displayName', None, None, ), # 1
9540
  )
9541
 
9542
  def __init__(self, displayName=None,):
9543
    self.displayName = displayName
9544
 
9545
  def read(self, iprot):
9546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9548
      return
9549
    iprot.readStructBegin()
9550
    while True:
9551
      (fname, ftype, fid) = iprot.readFieldBegin()
9552
      if ftype == TType.STOP:
9553
        break
9554
      if fid == 1:
9555
        if ftype == TType.STRING:
9556
          self.displayName = iprot.readString();
9557
        else:
9558
          iprot.skip(ftype)
9559
      else:
9560
        iprot.skip(ftype)
9561
      iprot.readFieldEnd()
9562
    iprot.readStructEnd()
9563
 
9564
  def write(self, oprot):
9565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9567
      return
9568
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9569
    if self.displayName is not None:
9570
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9571
      oprot.writeString(self.displayName)
9572
      oprot.writeFieldEnd()
9573
    oprot.writeFieldStop()
9574
    oprot.writeStructEnd()
9575
 
9576
  def validate(self):
9577
    return
9578
 
9579
 
9580
  def __repr__(self):
9581
    L = ['%s=%r' % (key, value)
9582
      for key, value in self.__dict__.iteritems()]
9583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9584
 
9585
  def __eq__(self, other):
9586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9587
 
9588
  def __ne__(self, other):
9589
    return not (self == other)
9590
 
9591
class getAllEntitiesByTagName_result:
9592
  """
9593
  Attributes:
9594
   - success
9595
  """
9596
 
9597
  thrift_spec = (
9598
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9599
  )
9600
 
9601
  def __init__(self, success=None,):
9602
    self.success = success
9603
 
9604
  def read(self, iprot):
9605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9607
      return
9608
    iprot.readStructBegin()
9609
    while True:
9610
      (fname, ftype, fid) = iprot.readFieldBegin()
9611
      if ftype == TType.STOP:
9612
        break
9613
      if fid == 0:
9614
        if ftype == TType.LIST:
9615
          self.success = []
9616
          (_etype145, _size142) = iprot.readListBegin()
9617
          for _i146 in xrange(_size142):
9618
            _elem147 = iprot.readI64();
9619
            self.success.append(_elem147)
9620
          iprot.readListEnd()
9621
        else:
9622
          iprot.skip(ftype)
9623
      else:
9624
        iprot.skip(ftype)
9625
      iprot.readFieldEnd()
9626
    iprot.readStructEnd()
9627
 
9628
  def write(self, oprot):
9629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9631
      return
9632
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9633
    if self.success is not None:
9634
      oprot.writeFieldBegin('success', TType.LIST, 0)
9635
      oprot.writeListBegin(TType.I64, len(self.success))
9636
      for iter148 in self.success:
9637
        oprot.writeI64(iter148)
9638
      oprot.writeListEnd()
9639
      oprot.writeFieldEnd()
9640
    oprot.writeFieldStop()
9641
    oprot.writeStructEnd()
9642
 
9643
  def validate(self):
9644
    return
9645
 
9646
 
9647
  def __repr__(self):
9648
    L = ['%s=%r' % (key, value)
9649
      for key, value in self.__dict__.iteritems()]
9650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9651
 
9652
  def __eq__(self, other):
9653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9654
 
9655
  def __ne__(self, other):
9656
    return not (self == other)
9657
 
6845 amit.gupta 9658
class getAllEntityTags_args:
9659
 
9660
  thrift_spec = (
9661
  )
9662
 
9663
  def read(self, iprot):
9664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9666
      return
9667
    iprot.readStructBegin()
9668
    while True:
9669
      (fname, ftype, fid) = iprot.readFieldBegin()
9670
      if ftype == TType.STOP:
9671
        break
9672
      else:
9673
        iprot.skip(ftype)
9674
      iprot.readFieldEnd()
9675
    iprot.readStructEnd()
9676
 
9677
  def write(self, oprot):
9678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9680
      return
9681
    oprot.writeStructBegin('getAllEntityTags_args')
9682
    oprot.writeFieldStop()
9683
    oprot.writeStructEnd()
9684
 
9685
  def validate(self):
9686
    return
9687
 
9688
 
9689
  def __repr__(self):
9690
    L = ['%s=%r' % (key, value)
9691
      for key, value in self.__dict__.iteritems()]
9692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9693
 
9694
  def __eq__(self, other):
9695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9696
 
9697
  def __ne__(self, other):
9698
    return not (self == other)
9699
 
9700
class getAllEntityTags_result:
9701
  """
9702
  Attributes:
9703
   - success
9704
  """
9705
 
9706
  thrift_spec = (
9707
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
9708
  )
9709
 
9710
  def __init__(self, success=None,):
9711
    self.success = success
9712
 
9713
  def read(self, iprot):
9714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9716
      return
9717
    iprot.readStructBegin()
9718
    while True:
9719
      (fname, ftype, fid) = iprot.readFieldBegin()
9720
      if ftype == TType.STOP:
9721
        break
9722
      if fid == 0:
9723
        if ftype == TType.MAP:
9724
          self.success = {}
9725
          (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() 
9726
          for _i153 in xrange(_size149):
9727
            _key154 = iprot.readI64();
9728
            _val155 = []
9729
            (_etype159, _size156) = iprot.readListBegin()
9730
            for _i160 in xrange(_size156):
9731
              _elem161 = iprot.readString();
9732
              _val155.append(_elem161)
9733
            iprot.readListEnd()
9734
            self.success[_key154] = _val155
9735
          iprot.readMapEnd()
9736
        else:
9737
          iprot.skip(ftype)
9738
      else:
9739
        iprot.skip(ftype)
9740
      iprot.readFieldEnd()
9741
    iprot.readStructEnd()
9742
 
9743
  def write(self, oprot):
9744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9746
      return
9747
    oprot.writeStructBegin('getAllEntityTags_result')
9748
    if self.success is not None:
9749
      oprot.writeFieldBegin('success', TType.MAP, 0)
9750
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
9751
      for kiter162,viter163 in self.success.items():
9752
        oprot.writeI64(kiter162)
9753
        oprot.writeListBegin(TType.STRING, len(viter163))
9754
        for iter164 in viter163:
9755
          oprot.writeString(iter164)
9756
        oprot.writeListEnd()
9757
      oprot.writeMapEnd()
9758
      oprot.writeFieldEnd()
9759
    oprot.writeFieldStop()
9760
    oprot.writeStructEnd()
9761
 
9762
  def validate(self):
9763
    return
9764
 
9765
 
9766
  def __repr__(self):
9767
    L = ['%s=%r' % (key, value)
9768
      for key, value in self.__dict__.iteritems()]
9769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9770
 
9771
  def __eq__(self, other):
9772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9773
 
9774
  def __ne__(self, other):
9775
    return not (self == other)
9776
 
6850 kshitij.so 9777
class addBanner_args:
9778
  """
9779
  Attributes:
9780
   - bannerName
9781
   - imageName
9782
   - link
9783
   - priority
9784
   - isActive
9785
   - hasMap
9786
  """
9787
 
9788
  thrift_spec = (
9789
    None, # 0
9790
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9791
    (2, TType.STRING, 'imageName', None, None, ), # 2
9792
    (3, TType.STRING, 'link', None, None, ), # 3
9793
    (4, TType.I64, 'priority', None, None, ), # 4
9794
    (5, TType.BOOL, 'isActive', None, None, ), # 5
9795
    (6, TType.BOOL, 'hasMap', None, None, ), # 6
9796
  )
9797
 
9798
  def __init__(self, bannerName=None, imageName=None, link=None, priority=None, isActive=None, hasMap=None,):
9799
    self.bannerName = bannerName
9800
    self.imageName = imageName
9801
    self.link = link
9802
    self.priority = priority
9803
    self.isActive = isActive
9804
    self.hasMap = hasMap
9805
 
9806
  def read(self, iprot):
9807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9809
      return
9810
    iprot.readStructBegin()
9811
    while True:
9812
      (fname, ftype, fid) = iprot.readFieldBegin()
9813
      if ftype == TType.STOP:
9814
        break
9815
      if fid == 1:
9816
        if ftype == TType.STRING:
9817
          self.bannerName = iprot.readString();
9818
        else:
9819
          iprot.skip(ftype)
9820
      elif fid == 2:
9821
        if ftype == TType.STRING:
9822
          self.imageName = iprot.readString();
9823
        else:
9824
          iprot.skip(ftype)
9825
      elif fid == 3:
9826
        if ftype == TType.STRING:
9827
          self.link = iprot.readString();
9828
        else:
9829
          iprot.skip(ftype)
9830
      elif fid == 4:
9831
        if ftype == TType.I64:
9832
          self.priority = iprot.readI64();
9833
        else:
9834
          iprot.skip(ftype)
9835
      elif fid == 5:
9836
        if ftype == TType.BOOL:
9837
          self.isActive = iprot.readBool();
9838
        else:
9839
          iprot.skip(ftype)
9840
      elif fid == 6:
9841
        if ftype == TType.BOOL:
9842
          self.hasMap = iprot.readBool();
9843
        else:
9844
          iprot.skip(ftype)
9845
      else:
9846
        iprot.skip(ftype)
9847
      iprot.readFieldEnd()
9848
    iprot.readStructEnd()
9849
 
9850
  def write(self, oprot):
9851
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9852
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9853
      return
9854
    oprot.writeStructBegin('addBanner_args')
9855
    if self.bannerName is not None:
9856
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
9857
      oprot.writeString(self.bannerName)
9858
      oprot.writeFieldEnd()
9859
    if self.imageName is not None:
9860
      oprot.writeFieldBegin('imageName', TType.STRING, 2)
9861
      oprot.writeString(self.imageName)
9862
      oprot.writeFieldEnd()
9863
    if self.link is not None:
9864
      oprot.writeFieldBegin('link', TType.STRING, 3)
9865
      oprot.writeString(self.link)
9866
      oprot.writeFieldEnd()
9867
    if self.priority is not None:
9868
      oprot.writeFieldBegin('priority', TType.I64, 4)
9869
      oprot.writeI64(self.priority)
9870
      oprot.writeFieldEnd()
9871
    if self.isActive is not None:
9872
      oprot.writeFieldBegin('isActive', TType.BOOL, 5)
9873
      oprot.writeBool(self.isActive)
9874
      oprot.writeFieldEnd()
9875
    if self.hasMap is not None:
9876
      oprot.writeFieldBegin('hasMap', TType.BOOL, 6)
9877
      oprot.writeBool(self.hasMap)
9878
      oprot.writeFieldEnd()
9879
    oprot.writeFieldStop()
9880
    oprot.writeStructEnd()
9881
 
9882
  def validate(self):
9883
    return
9884
 
9885
 
9886
  def __repr__(self):
9887
    L = ['%s=%r' % (key, value)
9888
      for key, value in self.__dict__.iteritems()]
9889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9890
 
9891
  def __eq__(self, other):
9892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9893
 
9894
  def __ne__(self, other):
9895
    return not (self == other)
9896
 
9897
class addBanner_result:
9898
  """
9899
  Attributes:
9900
   - success
9901
  """
9902
 
9903
  thrift_spec = (
9904
    (0, TType.BOOL, 'success', None, None, ), # 0
9905
  )
9906
 
9907
  def __init__(self, success=None,):
9908
    self.success = success
9909
 
9910
  def read(self, iprot):
9911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9913
      return
9914
    iprot.readStructBegin()
9915
    while True:
9916
      (fname, ftype, fid) = iprot.readFieldBegin()
9917
      if ftype == TType.STOP:
9918
        break
9919
      if fid == 0:
9920
        if ftype == TType.BOOL:
9921
          self.success = iprot.readBool();
9922
        else:
9923
          iprot.skip(ftype)
9924
      else:
9925
        iprot.skip(ftype)
9926
      iprot.readFieldEnd()
9927
    iprot.readStructEnd()
9928
 
9929
  def write(self, oprot):
9930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9932
      return
9933
    oprot.writeStructBegin('addBanner_result')
9934
    if self.success is not None:
9935
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9936
      oprot.writeBool(self.success)
9937
      oprot.writeFieldEnd()
9938
    oprot.writeFieldStop()
9939
    oprot.writeStructEnd()
9940
 
9941
  def validate(self):
9942
    return
9943
 
9944
 
9945
  def __repr__(self):
9946
    L = ['%s=%r' % (key, value)
9947
      for key, value in self.__dict__.iteritems()]
9948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9949
 
9950
  def __eq__(self, other):
9951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9952
 
9953
  def __ne__(self, other):
9954
    return not (self == other)
9955
 
9956
class getAllBanners_args:
9957
 
9958
  thrift_spec = (
9959
  )
9960
 
9961
  def read(self, iprot):
9962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9964
      return
9965
    iprot.readStructBegin()
9966
    while True:
9967
      (fname, ftype, fid) = iprot.readFieldBegin()
9968
      if ftype == TType.STOP:
9969
        break
9970
      else:
9971
        iprot.skip(ftype)
9972
      iprot.readFieldEnd()
9973
    iprot.readStructEnd()
9974
 
9975
  def write(self, oprot):
9976
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9977
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9978
      return
9979
    oprot.writeStructBegin('getAllBanners_args')
9980
    oprot.writeFieldStop()
9981
    oprot.writeStructEnd()
9982
 
9983
  def validate(self):
9984
    return
9985
 
9986
 
9987
  def __repr__(self):
9988
    L = ['%s=%r' % (key, value)
9989
      for key, value in self.__dict__.iteritems()]
9990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9991
 
9992
  def __eq__(self, other):
9993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9994
 
9995
  def __ne__(self, other):
9996
    return not (self == other)
9997
 
9998
class getAllBanners_result:
9999
  """
10000
  Attributes:
10001
   - success
10002
  """
10003
 
10004
  thrift_spec = (
10005
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10006
  )
10007
 
10008
  def __init__(self, success=None,):
10009
    self.success = success
10010
 
10011
  def read(self, iprot):
10012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10014
      return
10015
    iprot.readStructBegin()
10016
    while True:
10017
      (fname, ftype, fid) = iprot.readFieldBegin()
10018
      if ftype == TType.STOP:
10019
        break
10020
      if fid == 0:
10021
        if ftype == TType.LIST:
10022
          self.success = []
10023
          (_etype168, _size165) = iprot.readListBegin()
10024
          for _i169 in xrange(_size165):
10025
            _elem170 = iprot.readString();
10026
            self.success.append(_elem170)
10027
          iprot.readListEnd()
10028
        else:
10029
          iprot.skip(ftype)
10030
      else:
10031
        iprot.skip(ftype)
10032
      iprot.readFieldEnd()
10033
    iprot.readStructEnd()
10034
 
10035
  def write(self, oprot):
10036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10038
      return
10039
    oprot.writeStructBegin('getAllBanners_result')
10040
    if self.success is not None:
10041
      oprot.writeFieldBegin('success', TType.LIST, 0)
10042
      oprot.writeListBegin(TType.STRING, len(self.success))
10043
      for iter171 in self.success:
10044
        oprot.writeString(iter171)
10045
      oprot.writeListEnd()
10046
      oprot.writeFieldEnd()
10047
    oprot.writeFieldStop()
10048
    oprot.writeStructEnd()
10049
 
10050
  def validate(self):
10051
    return
10052
 
10053
 
10054
  def __repr__(self):
10055
    L = ['%s=%r' % (key, value)
10056
      for key, value in self.__dict__.iteritems()]
10057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10058
 
10059
  def __eq__(self, other):
10060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10061
 
10062
  def __ne__(self, other):
10063
    return not (self == other)
10064
 
10065
class deleteBanner_args:
10066
  """
10067
  Attributes:
10068
   - bannerName
10069
  """
10070
 
10071
  thrift_spec = (
10072
    None, # 0
10073
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10074
  )
10075
 
10076
  def __init__(self, bannerName=None,):
10077
    self.bannerName = bannerName
10078
 
10079
  def read(self, iprot):
10080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10082
      return
10083
    iprot.readStructBegin()
10084
    while True:
10085
      (fname, ftype, fid) = iprot.readFieldBegin()
10086
      if ftype == TType.STOP:
10087
        break
10088
      if fid == 1:
10089
        if ftype == TType.STRING:
10090
          self.bannerName = iprot.readString();
10091
        else:
10092
          iprot.skip(ftype)
10093
      else:
10094
        iprot.skip(ftype)
10095
      iprot.readFieldEnd()
10096
    iprot.readStructEnd()
10097
 
10098
  def write(self, oprot):
10099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10101
      return
10102
    oprot.writeStructBegin('deleteBanner_args')
10103
    if self.bannerName is not None:
10104
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10105
      oprot.writeString(self.bannerName)
10106
      oprot.writeFieldEnd()
10107
    oprot.writeFieldStop()
10108
    oprot.writeStructEnd()
10109
 
10110
  def validate(self):
10111
    return
10112
 
10113
 
10114
  def __repr__(self):
10115
    L = ['%s=%r' % (key, value)
10116
      for key, value in self.__dict__.iteritems()]
10117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10118
 
10119
  def __eq__(self, other):
10120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10121
 
10122
  def __ne__(self, other):
10123
    return not (self == other)
10124
 
10125
class deleteBanner_result:
10126
  """
10127
  Attributes:
10128
   - success
10129
  """
10130
 
10131
  thrift_spec = (
10132
    (0, TType.BOOL, 'success', None, None, ), # 0
10133
  )
10134
 
10135
  def __init__(self, success=None,):
10136
    self.success = success
10137
 
10138
  def read(self, iprot):
10139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10141
      return
10142
    iprot.readStructBegin()
10143
    while True:
10144
      (fname, ftype, fid) = iprot.readFieldBegin()
10145
      if ftype == TType.STOP:
10146
        break
10147
      if fid == 0:
10148
        if ftype == TType.BOOL:
10149
          self.success = iprot.readBool();
10150
        else:
10151
          iprot.skip(ftype)
10152
      else:
10153
        iprot.skip(ftype)
10154
      iprot.readFieldEnd()
10155
    iprot.readStructEnd()
10156
 
10157
  def write(self, oprot):
10158
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10159
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10160
      return
10161
    oprot.writeStructBegin('deleteBanner_result')
10162
    if self.success is not None:
10163
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10164
      oprot.writeBool(self.success)
10165
      oprot.writeFieldEnd()
10166
    oprot.writeFieldStop()
10167
    oprot.writeStructEnd()
10168
 
10169
  def validate(self):
10170
    return
10171
 
10172
 
10173
  def __repr__(self):
10174
    L = ['%s=%r' % (key, value)
10175
      for key, value in self.__dict__.iteritems()]
10176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10177
 
10178
  def __eq__(self, other):
10179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10180
 
10181
  def __ne__(self, other):
10182
    return not (self == other)
10183
 
10184
class getBannerDetails_args:
10185
  """
10186
  Attributes:
10187
   - bannerName
10188
  """
10189
 
10190
  thrift_spec = (
10191
    None, # 0
10192
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10193
  )
10194
 
10195
  def __init__(self, bannerName=None,):
10196
    self.bannerName = bannerName
10197
 
10198
  def read(self, iprot):
10199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10201
      return
10202
    iprot.readStructBegin()
10203
    while True:
10204
      (fname, ftype, fid) = iprot.readFieldBegin()
10205
      if ftype == TType.STOP:
10206
        break
10207
      if fid == 1:
10208
        if ftype == TType.STRING:
10209
          self.bannerName = iprot.readString();
10210
        else:
10211
          iprot.skip(ftype)
10212
      else:
10213
        iprot.skip(ftype)
10214
      iprot.readFieldEnd()
10215
    iprot.readStructEnd()
10216
 
10217
  def write(self, oprot):
10218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10220
      return
10221
    oprot.writeStructBegin('getBannerDetails_args')
10222
    if self.bannerName is not None:
10223
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10224
      oprot.writeString(self.bannerName)
10225
      oprot.writeFieldEnd()
10226
    oprot.writeFieldStop()
10227
    oprot.writeStructEnd()
10228
 
10229
  def validate(self):
10230
    return
10231
 
10232
 
10233
  def __repr__(self):
10234
    L = ['%s=%r' % (key, value)
10235
      for key, value in self.__dict__.iteritems()]
10236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10237
 
10238
  def __eq__(self, other):
10239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10240
 
10241
  def __ne__(self, other):
10242
    return not (self == other)
10243
 
10244
class getBannerDetails_result:
10245
  """
10246
  Attributes:
10247
   - success
10248
  """
10249
 
10250
  thrift_spec = (
10251
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
10252
  )
10253
 
10254
  def __init__(self, success=None,):
10255
    self.success = success
10256
 
10257
  def read(self, iprot):
10258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10260
      return
10261
    iprot.readStructBegin()
10262
    while True:
10263
      (fname, ftype, fid) = iprot.readFieldBegin()
10264
      if ftype == TType.STOP:
10265
        break
10266
      if fid == 0:
10267
        if ftype == TType.STRUCT:
10268
          self.success = Banner()
10269
          self.success.read(iprot)
10270
        else:
10271
          iprot.skip(ftype)
10272
      else:
10273
        iprot.skip(ftype)
10274
      iprot.readFieldEnd()
10275
    iprot.readStructEnd()
10276
 
10277
  def write(self, oprot):
10278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10280
      return
10281
    oprot.writeStructBegin('getBannerDetails_result')
10282
    if self.success is not None:
10283
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10284
      self.success.write(oprot)
10285
      oprot.writeFieldEnd()
10286
    oprot.writeFieldStop()
10287
    oprot.writeStructEnd()
10288
 
10289
  def validate(self):
10290
    return
10291
 
10292
 
10293
  def __repr__(self):
10294
    L = ['%s=%r' % (key, value)
10295
      for key, value in self.__dict__.iteritems()]
10296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10297
 
10298
  def __eq__(self, other):
10299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10300
 
10301
  def __ne__(self, other):
10302
    return not (self == other)
10303
 
10304
class getActiveBanners_args:
10305
 
10306
  thrift_spec = (
10307
  )
10308
 
10309
  def read(self, iprot):
10310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10312
      return
10313
    iprot.readStructBegin()
10314
    while True:
10315
      (fname, ftype, fid) = iprot.readFieldBegin()
10316
      if ftype == TType.STOP:
10317
        break
10318
      else:
10319
        iprot.skip(ftype)
10320
      iprot.readFieldEnd()
10321
    iprot.readStructEnd()
10322
 
10323
  def write(self, oprot):
10324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10326
      return
10327
    oprot.writeStructBegin('getActiveBanners_args')
10328
    oprot.writeFieldStop()
10329
    oprot.writeStructEnd()
10330
 
10331
  def validate(self):
10332
    return
10333
 
10334
 
10335
  def __repr__(self):
10336
    L = ['%s=%r' % (key, value)
10337
      for key, value in self.__dict__.iteritems()]
10338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10339
 
10340
  def __eq__(self, other):
10341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10342
 
10343
  def __ne__(self, other):
10344
    return not (self == other)
10345
 
10346
class getActiveBanners_result:
10347
  """
10348
  Attributes:
10349
   - success
10350
  """
10351
 
10352
  thrift_spec = (
10353
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
10354
  )
10355
 
10356
  def __init__(self, success=None,):
10357
    self.success = success
10358
 
10359
  def read(self, iprot):
10360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10362
      return
10363
    iprot.readStructBegin()
10364
    while True:
10365
      (fname, ftype, fid) = iprot.readFieldBegin()
10366
      if ftype == TType.STOP:
10367
        break
10368
      if fid == 0:
10369
        if ftype == TType.LIST:
10370
          self.success = []
10371
          (_etype175, _size172) = iprot.readListBegin()
10372
          for _i176 in xrange(_size172):
10373
            _elem177 = Banner()
10374
            _elem177.read(iprot)
10375
            self.success.append(_elem177)
10376
          iprot.readListEnd()
10377
        else:
10378
          iprot.skip(ftype)
10379
      else:
10380
        iprot.skip(ftype)
10381
      iprot.readFieldEnd()
10382
    iprot.readStructEnd()
10383
 
10384
  def write(self, oprot):
10385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10387
      return
10388
    oprot.writeStructBegin('getActiveBanners_result')
10389
    if self.success is not None:
10390
      oprot.writeFieldBegin('success', TType.LIST, 0)
10391
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10392
      for iter178 in self.success:
10393
        iter178.write(oprot)
10394
      oprot.writeListEnd()
10395
      oprot.writeFieldEnd()
10396
    oprot.writeFieldStop()
10397
    oprot.writeStructEnd()
10398
 
10399
  def validate(self):
10400
    return
10401
 
10402
 
10403
  def __repr__(self):
10404
    L = ['%s=%r' % (key, value)
10405
      for key, value in self.__dict__.iteritems()]
10406
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10407
 
10408
  def __eq__(self, other):
10409
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10410
 
10411
  def __ne__(self, other):
10412
    return not (self == other)
10413
 
6849 kshitij.so 10414
class addBannerMap_args:
10415
  """
10416
  Attributes:
10417
   - bannerName
10418
   - mapLink
10419
   - coordinates
10420
  """
10421
 
10422
  thrift_spec = (
10423
    None, # 0
10424
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10425
    (2, TType.STRING, 'mapLink', None, None, ), # 2
10426
    (3, TType.STRING, 'coordinates', None, None, ), # 3
10427
  )
10428
 
10429
  def __init__(self, bannerName=None, mapLink=None, coordinates=None,):
10430
    self.bannerName = bannerName
10431
    self.mapLink = mapLink
10432
    self.coordinates = coordinates
10433
 
10434
  def read(self, iprot):
10435
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10436
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10437
      return
10438
    iprot.readStructBegin()
10439
    while True:
10440
      (fname, ftype, fid) = iprot.readFieldBegin()
10441
      if ftype == TType.STOP:
10442
        break
10443
      if fid == 1:
10444
        if ftype == TType.STRING:
10445
          self.bannerName = iprot.readString();
10446
        else:
10447
          iprot.skip(ftype)
10448
      elif fid == 2:
10449
        if ftype == TType.STRING:
10450
          self.mapLink = iprot.readString();
10451
        else:
10452
          iprot.skip(ftype)
10453
      elif fid == 3:
10454
        if ftype == TType.STRING:
10455
          self.coordinates = iprot.readString();
10456
        else:
10457
          iprot.skip(ftype)
10458
      else:
10459
        iprot.skip(ftype)
10460
      iprot.readFieldEnd()
10461
    iprot.readStructEnd()
10462
 
10463
  def write(self, oprot):
10464
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10465
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10466
      return
10467
    oprot.writeStructBegin('addBannerMap_args')
10468
    if self.bannerName is not None:
10469
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10470
      oprot.writeString(self.bannerName)
10471
      oprot.writeFieldEnd()
10472
    if self.mapLink is not None:
10473
      oprot.writeFieldBegin('mapLink', TType.STRING, 2)
10474
      oprot.writeString(self.mapLink)
10475
      oprot.writeFieldEnd()
10476
    if self.coordinates is not None:
10477
      oprot.writeFieldBegin('coordinates', TType.STRING, 3)
10478
      oprot.writeString(self.coordinates)
10479
      oprot.writeFieldEnd()
10480
    oprot.writeFieldStop()
10481
    oprot.writeStructEnd()
10482
 
10483
  def validate(self):
10484
    return
10485
 
10486
 
10487
  def __repr__(self):
10488
    L = ['%s=%r' % (key, value)
10489
      for key, value in self.__dict__.iteritems()]
10490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10491
 
10492
  def __eq__(self, other):
10493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10494
 
10495
  def __ne__(self, other):
10496
    return not (self == other)
10497
 
10498
class addBannerMap_result:
10499
  """
10500
  Attributes:
10501
   - success
10502
  """
10503
 
10504
  thrift_spec = (
10505
    (0, TType.BOOL, 'success', None, None, ), # 0
10506
  )
10507
 
10508
  def __init__(self, success=None,):
10509
    self.success = success
10510
 
10511
  def read(self, iprot):
10512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10514
      return
10515
    iprot.readStructBegin()
10516
    while True:
10517
      (fname, ftype, fid) = iprot.readFieldBegin()
10518
      if ftype == TType.STOP:
10519
        break
10520
      if fid == 0:
10521
        if ftype == TType.BOOL:
10522
          self.success = iprot.readBool();
10523
        else:
10524
          iprot.skip(ftype)
10525
      else:
10526
        iprot.skip(ftype)
10527
      iprot.readFieldEnd()
10528
    iprot.readStructEnd()
10529
 
10530
  def write(self, oprot):
10531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10533
      return
10534
    oprot.writeStructBegin('addBannerMap_result')
10535
    if self.success is not None:
10536
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10537
      oprot.writeBool(self.success)
10538
      oprot.writeFieldEnd()
10539
    oprot.writeFieldStop()
10540
    oprot.writeStructEnd()
10541
 
10542
  def validate(self):
10543
    return
10544
 
10545
 
10546
  def __repr__(self):
10547
    L = ['%s=%r' % (key, value)
10548
      for key, value in self.__dict__.iteritems()]
10549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10550
 
10551
  def __eq__(self, other):
10552
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10553
 
10554
  def __ne__(self, other):
10555
    return not (self == other)
10556
 
10557
class deleteBannerMap_args:
10558
  """
10559
  Attributes:
10560
   - bannerName
10561
  """
10562
 
10563
  thrift_spec = (
10564
    None, # 0
10565
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10566
  )
10567
 
10568
  def __init__(self, bannerName=None,):
10569
    self.bannerName = bannerName
10570
 
10571
  def read(self, iprot):
10572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10574
      return
10575
    iprot.readStructBegin()
10576
    while True:
10577
      (fname, ftype, fid) = iprot.readFieldBegin()
10578
      if ftype == TType.STOP:
10579
        break
10580
      if fid == 1:
10581
        if ftype == TType.STRING:
10582
          self.bannerName = iprot.readString();
10583
        else:
10584
          iprot.skip(ftype)
10585
      else:
10586
        iprot.skip(ftype)
10587
      iprot.readFieldEnd()
10588
    iprot.readStructEnd()
10589
 
10590
  def write(self, oprot):
10591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10593
      return
10594
    oprot.writeStructBegin('deleteBannerMap_args')
10595
    if self.bannerName is not None:
10596
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10597
      oprot.writeString(self.bannerName)
10598
      oprot.writeFieldEnd()
10599
    oprot.writeFieldStop()
10600
    oprot.writeStructEnd()
10601
 
10602
  def validate(self):
10603
    return
10604
 
10605
 
10606
  def __repr__(self):
10607
    L = ['%s=%r' % (key, value)
10608
      for key, value in self.__dict__.iteritems()]
10609
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10610
 
10611
  def __eq__(self, other):
10612
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10613
 
10614
  def __ne__(self, other):
10615
    return not (self == other)
10616
 
10617
class deleteBannerMap_result:
10618
  """
10619
  Attributes:
10620
   - success
10621
  """
10622
 
10623
  thrift_spec = (
10624
    (0, TType.BOOL, 'success', None, None, ), # 0
10625
  )
10626
 
10627
  def __init__(self, success=None,):
10628
    self.success = success
10629
 
10630
  def read(self, iprot):
10631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10633
      return
10634
    iprot.readStructBegin()
10635
    while True:
10636
      (fname, ftype, fid) = iprot.readFieldBegin()
10637
      if ftype == TType.STOP:
10638
        break
10639
      if fid == 0:
10640
        if ftype == TType.BOOL:
10641
          self.success = iprot.readBool();
10642
        else:
10643
          iprot.skip(ftype)
10644
      else:
10645
        iprot.skip(ftype)
10646
      iprot.readFieldEnd()
10647
    iprot.readStructEnd()
10648
 
10649
  def write(self, oprot):
10650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10652
      return
10653
    oprot.writeStructBegin('deleteBannerMap_result')
10654
    if self.success is not None:
10655
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10656
      oprot.writeBool(self.success)
10657
      oprot.writeFieldEnd()
10658
    oprot.writeFieldStop()
10659
    oprot.writeStructEnd()
10660
 
10661
  def validate(self):
10662
    return
10663
 
10664
 
10665
  def __repr__(self):
10666
    L = ['%s=%r' % (key, value)
10667
      for key, value in self.__dict__.iteritems()]
10668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10669
 
10670
  def __eq__(self, other):
10671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10672
 
10673
  def __ne__(self, other):
10674
    return not (self == other)
10675
 
10676
class getBannerMapDetails_args:
10677
  """
10678
  Attributes:
10679
   - bannerName
10680
  """
10681
 
10682
  thrift_spec = (
10683
    None, # 0
10684
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10685
  )
10686
 
10687
  def __init__(self, bannerName=None,):
10688
    self.bannerName = bannerName
10689
 
10690
  def read(self, iprot):
10691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10693
      return
10694
    iprot.readStructBegin()
10695
    while True:
10696
      (fname, ftype, fid) = iprot.readFieldBegin()
10697
      if ftype == TType.STOP:
10698
        break
10699
      if fid == 1:
10700
        if ftype == TType.STRING:
10701
          self.bannerName = iprot.readString();
10702
        else:
10703
          iprot.skip(ftype)
10704
      else:
10705
        iprot.skip(ftype)
10706
      iprot.readFieldEnd()
10707
    iprot.readStructEnd()
10708
 
10709
  def write(self, oprot):
10710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10712
      return
10713
    oprot.writeStructBegin('getBannerMapDetails_args')
10714
    if self.bannerName is not None:
10715
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10716
      oprot.writeString(self.bannerName)
10717
      oprot.writeFieldEnd()
10718
    oprot.writeFieldStop()
10719
    oprot.writeStructEnd()
10720
 
10721
  def validate(self):
10722
    return
10723
 
10724
 
10725
  def __repr__(self):
10726
    L = ['%s=%r' % (key, value)
10727
      for key, value in self.__dict__.iteritems()]
10728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10729
 
10730
  def __eq__(self, other):
10731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10732
 
10733
  def __ne__(self, other):
10734
    return not (self == other)
10735
 
10736
class getBannerMapDetails_result:
10737
  """
10738
  Attributes:
10739
   - success
10740
  """
10741
 
10742
  thrift_spec = (
10743
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
10744
  )
10745
 
10746
  def __init__(self, success=None,):
10747
    self.success = success
10748
 
10749
  def read(self, iprot):
10750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10752
      return
10753
    iprot.readStructBegin()
10754
    while True:
10755
      (fname, ftype, fid) = iprot.readFieldBegin()
10756
      if ftype == TType.STOP:
10757
        break
10758
      if fid == 0:
10759
        if ftype == TType.LIST:
10760
          self.success = []
6850 kshitij.so 10761
          (_etype182, _size179) = iprot.readListBegin()
10762
          for _i183 in xrange(_size179):
10763
            _elem184 = BannerMap()
10764
            _elem184.read(iprot)
10765
            self.success.append(_elem184)
6849 kshitij.so 10766
          iprot.readListEnd()
10767
        else:
10768
          iprot.skip(ftype)
10769
      else:
10770
        iprot.skip(ftype)
10771
      iprot.readFieldEnd()
10772
    iprot.readStructEnd()
10773
 
10774
  def write(self, oprot):
10775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10777
      return
10778
    oprot.writeStructBegin('getBannerMapDetails_result')
10779
    if self.success is not None:
10780
      oprot.writeFieldBegin('success', TType.LIST, 0)
10781
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 10782
      for iter185 in self.success:
10783
        iter185.write(oprot)
6849 kshitij.so 10784
      oprot.writeListEnd()
10785
      oprot.writeFieldEnd()
10786
    oprot.writeFieldStop()
10787
    oprot.writeStructEnd()
10788
 
10789
  def validate(self):
10790
    return
10791
 
10792
 
10793
  def __repr__(self):
10794
    L = ['%s=%r' % (key, value)
10795
      for key, value in self.__dict__.iteritems()]
10796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10797
 
10798
  def __eq__(self, other):
10799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10800
 
10801
  def __ne__(self, other):
10802
    return not (self == other)
10803
 
5944 mandeep.dh 10804
class deleteSimilarItem_args:
10805
  """
10806
  Attributes:
10807
   - itemId
10808
   - catalogItemId
10809
  """
10810
 
10811
  thrift_spec = (
10812
    None, # 0
10813
    (1, TType.I64, 'itemId', None, None, ), # 1
10814
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
10815
  )
10816
 
10817
  def __init__(self, itemId=None, catalogItemId=None,):
10818
    self.itemId = itemId
10819
    self.catalogItemId = catalogItemId
10820
 
10821
  def read(self, iprot):
10822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10824
      return
10825
    iprot.readStructBegin()
10826
    while True:
10827
      (fname, ftype, fid) = iprot.readFieldBegin()
10828
      if ftype == TType.STOP:
10829
        break
10830
      if fid == 1:
10831
        if ftype == TType.I64:
10832
          self.itemId = iprot.readI64();
10833
        else:
10834
          iprot.skip(ftype)
10835
      elif fid == 2:
10836
        if ftype == TType.I64:
10837
          self.catalogItemId = iprot.readI64();
10838
        else:
10839
          iprot.skip(ftype)
10840
      else:
10841
        iprot.skip(ftype)
10842
      iprot.readFieldEnd()
10843
    iprot.readStructEnd()
10844
 
10845
  def write(self, oprot):
10846
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10847
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10848
      return
10849
    oprot.writeStructBegin('deleteSimilarItem_args')
10850
    if self.itemId is not None:
10851
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10852
      oprot.writeI64(self.itemId)
10853
      oprot.writeFieldEnd()
10854
    if self.catalogItemId is not None:
10855
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
10856
      oprot.writeI64(self.catalogItemId)
10857
      oprot.writeFieldEnd()
10858
    oprot.writeFieldStop()
10859
    oprot.writeStructEnd()
10860
 
10861
  def validate(self):
10862
    return
10863
 
10864
 
10865
  def __repr__(self):
10866
    L = ['%s=%r' % (key, value)
10867
      for key, value in self.__dict__.iteritems()]
10868
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10869
 
10870
  def __eq__(self, other):
10871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10872
 
10873
  def __ne__(self, other):
10874
    return not (self == other)
10875
 
10876
class deleteSimilarItem_result:
10877
  """
10878
  Attributes:
10879
   - success
10880
   - cex
10881
  """
10882
 
10883
  thrift_spec = (
10884
    (0, TType.BOOL, 'success', None, None, ), # 0
10885
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10886
  )
10887
 
10888
  def __init__(self, success=None, cex=None,):
10889
    self.success = success
10890
    self.cex = cex
10891
 
10892
  def read(self, iprot):
10893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10895
      return
10896
    iprot.readStructBegin()
10897
    while True:
10898
      (fname, ftype, fid) = iprot.readFieldBegin()
10899
      if ftype == TType.STOP:
10900
        break
10901
      if fid == 0:
10902
        if ftype == TType.BOOL:
10903
          self.success = iprot.readBool();
10904
        else:
10905
          iprot.skip(ftype)
10906
      elif fid == 1:
10907
        if ftype == TType.STRUCT:
10908
          self.cex = CatalogServiceException()
10909
          self.cex.read(iprot)
10910
        else:
10911
          iprot.skip(ftype)
10912
      else:
10913
        iprot.skip(ftype)
10914
      iprot.readFieldEnd()
10915
    iprot.readStructEnd()
10916
 
10917
  def write(self, oprot):
10918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10920
      return
10921
    oprot.writeStructBegin('deleteSimilarItem_result')
10922
    if self.success is not None:
10923
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10924
      oprot.writeBool(self.success)
10925
      oprot.writeFieldEnd()
10926
    if self.cex is not None:
10927
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10928
      self.cex.write(oprot)
10929
      oprot.writeFieldEnd()
10930
    oprot.writeFieldStop()
10931
    oprot.writeStructEnd()
10932
 
10933
  def validate(self):
10934
    return
10935
 
10936
 
10937
  def __repr__(self):
10938
    L = ['%s=%r' % (key, value)
10939
      for key, value in self.__dict__.iteritems()]
10940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10941
 
10942
  def __eq__(self, other):
10943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10944
 
10945
  def __ne__(self, other):
10946
    return not (self == other)
10947
 
10948
class checkSimilarItem_args:
10949
  """
10950
  Attributes:
10951
   - brand
10952
   - modelNumber
10953
   - modelName
10954
   - color
10955
  """
10956
 
10957
  thrift_spec = (
10958
    None, # 0
10959
    (1, TType.STRING, 'brand', None, None, ), # 1
10960
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
10961
    (3, TType.STRING, 'modelName', None, None, ), # 3
10962
    (4, TType.STRING, 'color', None, None, ), # 4
10963
  )
10964
 
10965
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
10966
    self.brand = brand
10967
    self.modelNumber = modelNumber
10968
    self.modelName = modelName
10969
    self.color = color
10970
 
10971
  def read(self, iprot):
10972
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10973
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10974
      return
10975
    iprot.readStructBegin()
10976
    while True:
10977
      (fname, ftype, fid) = iprot.readFieldBegin()
10978
      if ftype == TType.STOP:
10979
        break
10980
      if fid == 1:
10981
        if ftype == TType.STRING:
10982
          self.brand = iprot.readString();
10983
        else:
10984
          iprot.skip(ftype)
10985
      elif fid == 2:
10986
        if ftype == TType.STRING:
10987
          self.modelNumber = iprot.readString();
10988
        else:
10989
          iprot.skip(ftype)
10990
      elif fid == 3:
10991
        if ftype == TType.STRING:
10992
          self.modelName = iprot.readString();
10993
        else:
10994
          iprot.skip(ftype)
10995
      elif fid == 4:
10996
        if ftype == TType.STRING:
10997
          self.color = iprot.readString();
10998
        else:
10999
          iprot.skip(ftype)
11000
      else:
11001
        iprot.skip(ftype)
11002
      iprot.readFieldEnd()
11003
    iprot.readStructEnd()
11004
 
11005
  def write(self, oprot):
11006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11008
      return
11009
    oprot.writeStructBegin('checkSimilarItem_args')
11010
    if self.brand is not None:
11011
      oprot.writeFieldBegin('brand', TType.STRING, 1)
11012
      oprot.writeString(self.brand)
11013
      oprot.writeFieldEnd()
11014
    if self.modelNumber is not None:
11015
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
11016
      oprot.writeString(self.modelNumber)
11017
      oprot.writeFieldEnd()
11018
    if self.modelName is not None:
11019
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
11020
      oprot.writeString(self.modelName)
11021
      oprot.writeFieldEnd()
11022
    if self.color is not None:
11023
      oprot.writeFieldBegin('color', TType.STRING, 4)
11024
      oprot.writeString(self.color)
11025
      oprot.writeFieldEnd()
11026
    oprot.writeFieldStop()
11027
    oprot.writeStructEnd()
11028
 
11029
  def validate(self):
11030
    return
11031
 
11032
 
11033
  def __repr__(self):
11034
    L = ['%s=%r' % (key, value)
11035
      for key, value in self.__dict__.iteritems()]
11036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11037
 
11038
  def __eq__(self, other):
11039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11040
 
11041
  def __ne__(self, other):
11042
    return not (self == other)
11043
 
11044
class checkSimilarItem_result:
11045
  """
11046
  Attributes:
11047
   - success
11048
  """
11049
 
11050
  thrift_spec = (
11051
    (0, TType.I64, 'success', None, None, ), # 0
11052
  )
11053
 
11054
  def __init__(self, success=None,):
11055
    self.success = success
11056
 
11057
  def read(self, iprot):
11058
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11059
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11060
      return
11061
    iprot.readStructBegin()
11062
    while True:
11063
      (fname, ftype, fid) = iprot.readFieldBegin()
11064
      if ftype == TType.STOP:
11065
        break
11066
      if fid == 0:
11067
        if ftype == TType.I64:
11068
          self.success = iprot.readI64();
11069
        else:
11070
          iprot.skip(ftype)
11071
      else:
11072
        iprot.skip(ftype)
11073
      iprot.readFieldEnd()
11074
    iprot.readStructEnd()
11075
 
11076
  def write(self, oprot):
11077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11079
      return
11080
    oprot.writeStructBegin('checkSimilarItem_result')
11081
    if self.success is not None:
11082
      oprot.writeFieldBegin('success', TType.I64, 0)
11083
      oprot.writeI64(self.success)
11084
      oprot.writeFieldEnd()
11085
    oprot.writeFieldStop()
11086
    oprot.writeStructEnd()
11087
 
11088
  def validate(self):
11089
    return
11090
 
11091
 
11092
  def __repr__(self):
11093
    L = ['%s=%r' % (key, value)
11094
      for key, value in self.__dict__.iteritems()]
11095
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11096
 
11097
  def __eq__(self, other):
11098
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11099
 
11100
  def __ne__(self, other):
11101
    return not (self == other)
11102
 
11103
class validateRiskyStatus_args:
11104
  """
11105
  Attributes:
11106
   - itemId
11107
  """
11108
 
11109
  thrift_spec = (
11110
    None, # 0
11111
    (1, TType.I64, 'itemId', None, None, ), # 1
11112
  )
11113
 
11114
  def __init__(self, itemId=None,):
11115
    self.itemId = itemId
11116
 
11117
  def read(self, iprot):
11118
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11119
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11120
      return
11121
    iprot.readStructBegin()
11122
    while True:
11123
      (fname, ftype, fid) = iprot.readFieldBegin()
11124
      if ftype == TType.STOP:
11125
        break
11126
      if fid == 1:
11127
        if ftype == TType.I64:
11128
          self.itemId = iprot.readI64();
11129
        else:
11130
          iprot.skip(ftype)
11131
      else:
11132
        iprot.skip(ftype)
11133
      iprot.readFieldEnd()
11134
    iprot.readStructEnd()
11135
 
11136
  def write(self, oprot):
11137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11139
      return
11140
    oprot.writeStructBegin('validateRiskyStatus_args')
11141
    if self.itemId is not None:
11142
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11143
      oprot.writeI64(self.itemId)
11144
      oprot.writeFieldEnd()
11145
    oprot.writeFieldStop()
11146
    oprot.writeStructEnd()
11147
 
11148
  def validate(self):
11149
    return
11150
 
11151
 
11152
  def __repr__(self):
11153
    L = ['%s=%r' % (key, value)
11154
      for key, value in self.__dict__.iteritems()]
11155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11156
 
11157
  def __eq__(self, other):
11158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11159
 
11160
  def __ne__(self, other):
11161
    return not (self == other)
11162
 
11163
class validateRiskyStatus_result:
11164
 
11165
  thrift_spec = (
11166
  )
11167
 
11168
  def read(self, iprot):
11169
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11170
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11171
      return
11172
    iprot.readStructBegin()
11173
    while True:
11174
      (fname, ftype, fid) = iprot.readFieldBegin()
11175
      if ftype == TType.STOP:
11176
        break
11177
      else:
11178
        iprot.skip(ftype)
11179
      iprot.readFieldEnd()
11180
    iprot.readStructEnd()
11181
 
11182
  def write(self, oprot):
11183
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11184
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11185
      return
11186
    oprot.writeStructBegin('validateRiskyStatus_result')
11187
    oprot.writeFieldStop()
11188
    oprot.writeStructEnd()
11189
 
11190
  def validate(self):
11191
    return
11192
 
11193
 
11194
  def __repr__(self):
11195
    L = ['%s=%r' % (key, value)
11196
      for key, value in self.__dict__.iteritems()]
11197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11198
 
11199
  def __eq__(self, other):
11200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11201
 
11202
  def __ne__(self, other):
11203
    return not (self == other)
11204
 
11205
class changeItemRiskyFlag_args:
11206
  """
11207
  Attributes:
11208
   - itemId
11209
   - risky
11210
  """
11211
 
11212
  thrift_spec = (
11213
    None, # 0
11214
    (1, TType.I64, 'itemId', None, None, ), # 1
11215
    (2, TType.BOOL, 'risky', None, None, ), # 2
11216
  )
11217
 
11218
  def __init__(self, itemId=None, risky=None,):
11219
    self.itemId = itemId
11220
    self.risky = risky
11221
 
11222
  def read(self, iprot):
11223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11225
      return
11226
    iprot.readStructBegin()
11227
    while True:
11228
      (fname, ftype, fid) = iprot.readFieldBegin()
11229
      if ftype == TType.STOP:
11230
        break
11231
      if fid == 1:
11232
        if ftype == TType.I64:
11233
          self.itemId = iprot.readI64();
11234
        else:
11235
          iprot.skip(ftype)
11236
      elif fid == 2:
11237
        if ftype == TType.BOOL:
11238
          self.risky = iprot.readBool();
11239
        else:
11240
          iprot.skip(ftype)
11241
      else:
11242
        iprot.skip(ftype)
11243
      iprot.readFieldEnd()
11244
    iprot.readStructEnd()
11245
 
11246
  def write(self, oprot):
11247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11249
      return
11250
    oprot.writeStructBegin('changeItemRiskyFlag_args')
11251
    if self.itemId is not None:
11252
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11253
      oprot.writeI64(self.itemId)
11254
      oprot.writeFieldEnd()
11255
    if self.risky is not None:
11256
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
11257
      oprot.writeBool(self.risky)
11258
      oprot.writeFieldEnd()
11259
    oprot.writeFieldStop()
11260
    oprot.writeStructEnd()
11261
 
11262
  def validate(self):
11263
    return
11264
 
11265
 
11266
  def __repr__(self):
11267
    L = ['%s=%r' % (key, value)
11268
      for key, value in self.__dict__.iteritems()]
11269
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11270
 
11271
  def __eq__(self, other):
11272
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11273
 
11274
  def __ne__(self, other):
11275
    return not (self == other)
11276
 
11277
class changeItemRiskyFlag_result:
11278
 
11279
  thrift_spec = (
11280
  )
11281
 
11282
  def read(self, iprot):
11283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11285
      return
11286
    iprot.readStructBegin()
11287
    while True:
11288
      (fname, ftype, fid) = iprot.readFieldBegin()
11289
      if ftype == TType.STOP:
11290
        break
11291
      else:
11292
        iprot.skip(ftype)
11293
      iprot.readFieldEnd()
11294
    iprot.readStructEnd()
11295
 
11296
  def write(self, oprot):
11297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11299
      return
11300
    oprot.writeStructBegin('changeItemRiskyFlag_result')
11301
    oprot.writeFieldStop()
11302
    oprot.writeStructEnd()
11303
 
11304
  def validate(self):
11305
    return
11306
 
11307
 
11308
  def __repr__(self):
11309
    L = ['%s=%r' % (key, value)
11310
      for key, value in self.__dict__.iteritems()]
11311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11312
 
11313
  def __eq__(self, other):
11314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11315
 
11316
  def __ne__(self, other):
11317
    return not (self == other)
11318
 
11319
class getItemsByRiskyFlag_args:
11320
 
11321
  thrift_spec = (
11322
  )
11323
 
11324
  def read(self, iprot):
11325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11327
      return
11328
    iprot.readStructBegin()
11329
    while True:
11330
      (fname, ftype, fid) = iprot.readFieldBegin()
11331
      if ftype == TType.STOP:
11332
        break
11333
      else:
11334
        iprot.skip(ftype)
11335
      iprot.readFieldEnd()
11336
    iprot.readStructEnd()
11337
 
11338
  def write(self, oprot):
11339
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11340
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11341
      return
11342
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
11343
    oprot.writeFieldStop()
11344
    oprot.writeStructEnd()
11345
 
11346
  def validate(self):
11347
    return
11348
 
11349
 
11350
  def __repr__(self):
11351
    L = ['%s=%r' % (key, value)
11352
      for key, value in self.__dict__.iteritems()]
11353
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11354
 
11355
  def __eq__(self, other):
11356
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11357
 
11358
  def __ne__(self, other):
11359
    return not (self == other)
11360
 
11361
class getItemsByRiskyFlag_result:
11362
  """
11363
  Attributes:
11364
   - success
11365
  """
11366
 
11367
  thrift_spec = (
11368
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11369
  )
11370
 
11371
  def __init__(self, success=None,):
11372
    self.success = success
11373
 
11374
  def read(self, iprot):
11375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11377
      return
11378
    iprot.readStructBegin()
11379
    while True:
11380
      (fname, ftype, fid) = iprot.readFieldBegin()
11381
      if ftype == TType.STOP:
11382
        break
11383
      if fid == 0:
11384
        if ftype == TType.LIST:
11385
          self.success = []
6850 kshitij.so 11386
          (_etype189, _size186) = iprot.readListBegin()
11387
          for _i190 in xrange(_size186):
11388
            _elem191 = Item()
11389
            _elem191.read(iprot)
11390
            self.success.append(_elem191)
5944 mandeep.dh 11391
          iprot.readListEnd()
11392
        else:
11393
          iprot.skip(ftype)
11394
      else:
11395
        iprot.skip(ftype)
11396
      iprot.readFieldEnd()
11397
    iprot.readStructEnd()
11398
 
11399
  def write(self, oprot):
11400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11402
      return
11403
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
11404
    if self.success is not None:
11405
      oprot.writeFieldBegin('success', TType.LIST, 0)
11406
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11407
      for iter192 in self.success:
11408
        iter192.write(oprot)
5944 mandeep.dh 11409
      oprot.writeListEnd()
11410
      oprot.writeFieldEnd()
11411
    oprot.writeFieldStop()
11412
    oprot.writeStructEnd()
11413
 
11414
  def validate(self):
11415
    return
11416
 
11417
 
11418
  def __repr__(self):
11419
    L = ['%s=%r' % (key, value)
11420
      for key, value in self.__dict__.iteritems()]
11421
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11422
 
11423
  def __eq__(self, other):
11424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11425
 
11426
  def __ne__(self, other):
11427
    return not (self == other)
11428
 
11429
class getItemsForMasterSheet_args:
11430
  """
11431
  Attributes:
11432
   - category
11433
   - brand
11434
  """
11435
 
11436
  thrift_spec = (
11437
    None, # 0
11438
    (1, TType.STRING, 'category', None, None, ), # 1
11439
    (2, TType.STRING, 'brand', None, None, ), # 2
11440
  )
11441
 
11442
  def __init__(self, category=None, brand=None,):
11443
    self.category = category
11444
    self.brand = brand
11445
 
11446
  def read(self, iprot):
11447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11449
      return
11450
    iprot.readStructBegin()
11451
    while True:
11452
      (fname, ftype, fid) = iprot.readFieldBegin()
11453
      if ftype == TType.STOP:
11454
        break
11455
      if fid == 1:
11456
        if ftype == TType.STRING:
11457
          self.category = iprot.readString();
11458
        else:
11459
          iprot.skip(ftype)
11460
      elif fid == 2:
11461
        if ftype == TType.STRING:
11462
          self.brand = iprot.readString();
11463
        else:
11464
          iprot.skip(ftype)
11465
      else:
11466
        iprot.skip(ftype)
11467
      iprot.readFieldEnd()
11468
    iprot.readStructEnd()
11469
 
11470
  def write(self, oprot):
11471
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11472
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11473
      return
11474
    oprot.writeStructBegin('getItemsForMasterSheet_args')
11475
    if self.category is not None:
11476
      oprot.writeFieldBegin('category', TType.STRING, 1)
11477
      oprot.writeString(self.category)
11478
      oprot.writeFieldEnd()
11479
    if self.brand is not None:
11480
      oprot.writeFieldBegin('brand', TType.STRING, 2)
11481
      oprot.writeString(self.brand)
11482
      oprot.writeFieldEnd()
11483
    oprot.writeFieldStop()
11484
    oprot.writeStructEnd()
11485
 
11486
  def validate(self):
11487
    return
11488
 
11489
 
11490
  def __repr__(self):
11491
    L = ['%s=%r' % (key, value)
11492
      for key, value in self.__dict__.iteritems()]
11493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11494
 
11495
  def __eq__(self, other):
11496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11497
 
11498
  def __ne__(self, other):
11499
    return not (self == other)
11500
 
11501
class getItemsForMasterSheet_result:
11502
  """
11503
  Attributes:
11504
   - success
11505
  """
11506
 
11507
  thrift_spec = (
11508
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11509
  )
11510
 
11511
  def __init__(self, success=None,):
11512
    self.success = success
11513
 
11514
  def read(self, iprot):
11515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11517
      return
11518
    iprot.readStructBegin()
11519
    while True:
11520
      (fname, ftype, fid) = iprot.readFieldBegin()
11521
      if ftype == TType.STOP:
11522
        break
11523
      if fid == 0:
11524
        if ftype == TType.LIST:
11525
          self.success = []
6850 kshitij.so 11526
          (_etype196, _size193) = iprot.readListBegin()
11527
          for _i197 in xrange(_size193):
11528
            _elem198 = Item()
11529
            _elem198.read(iprot)
11530
            self.success.append(_elem198)
5944 mandeep.dh 11531
          iprot.readListEnd()
11532
        else:
11533
          iprot.skip(ftype)
11534
      else:
11535
        iprot.skip(ftype)
11536
      iprot.readFieldEnd()
11537
    iprot.readStructEnd()
11538
 
11539
  def write(self, oprot):
11540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11542
      return
11543
    oprot.writeStructBegin('getItemsForMasterSheet_result')
11544
    if self.success is not None:
11545
      oprot.writeFieldBegin('success', TType.LIST, 0)
11546
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11547
      for iter199 in self.success:
11548
        iter199.write(oprot)
5944 mandeep.dh 11549
      oprot.writeListEnd()
11550
      oprot.writeFieldEnd()
11551
    oprot.writeFieldStop()
11552
    oprot.writeStructEnd()
11553
 
11554
  def validate(self):
11555
    return
11556
 
11557
 
11558
  def __repr__(self):
11559
    L = ['%s=%r' % (key, value)
11560
      for key, value in self.__dict__.iteritems()]
11561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11562
 
11563
  def __eq__(self, other):
11564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11565
 
11566
  def __ne__(self, other):
11567
    return not (self == other)
11568
 
11569
class getSimilarItemsCatalogIds_args:
11570
  """
11571
  Attributes:
11572
   - beginIndex
11573
   - totalItems
11574
   - itemId
11575
  """
11576
 
11577
  thrift_spec = (
11578
    None, # 0
11579
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11580
    (2, TType.I64, 'totalItems', None, None, ), # 2
11581
    (3, TType.I64, 'itemId', None, None, ), # 3
11582
  )
11583
 
11584
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
11585
    self.beginIndex = beginIndex
11586
    self.totalItems = totalItems
11587
    self.itemId = itemId
11588
 
11589
  def read(self, iprot):
11590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11592
      return
11593
    iprot.readStructBegin()
11594
    while True:
11595
      (fname, ftype, fid) = iprot.readFieldBegin()
11596
      if ftype == TType.STOP:
11597
        break
11598
      if fid == 1:
11599
        if ftype == TType.I64:
11600
          self.beginIndex = iprot.readI64();
11601
        else:
11602
          iprot.skip(ftype)
11603
      elif fid == 2:
11604
        if ftype == TType.I64:
11605
          self.totalItems = iprot.readI64();
11606
        else:
11607
          iprot.skip(ftype)
11608
      elif fid == 3:
11609
        if ftype == TType.I64:
11610
          self.itemId = iprot.readI64();
11611
        else:
11612
          iprot.skip(ftype)
11613
      else:
11614
        iprot.skip(ftype)
11615
      iprot.readFieldEnd()
11616
    iprot.readStructEnd()
11617
 
11618
  def write(self, oprot):
11619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11621
      return
11622
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
11623
    if self.beginIndex is not None:
11624
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11625
      oprot.writeI64(self.beginIndex)
11626
      oprot.writeFieldEnd()
11627
    if self.totalItems is not None:
11628
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11629
      oprot.writeI64(self.totalItems)
11630
      oprot.writeFieldEnd()
11631
    if self.itemId is not None:
11632
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11633
      oprot.writeI64(self.itemId)
11634
      oprot.writeFieldEnd()
11635
    oprot.writeFieldStop()
11636
    oprot.writeStructEnd()
11637
 
11638
  def validate(self):
11639
    return
11640
 
11641
 
11642
  def __repr__(self):
11643
    L = ['%s=%r' % (key, value)
11644
      for key, value in self.__dict__.iteritems()]
11645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11646
 
11647
  def __eq__(self, other):
11648
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11649
 
11650
  def __ne__(self, other):
11651
    return not (self == other)
11652
 
11653
class getSimilarItemsCatalogIds_result:
11654
  """
11655
  Attributes:
11656
   - success
11657
  """
11658
 
11659
  thrift_spec = (
11660
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11661
  )
11662
 
11663
  def __init__(self, success=None,):
11664
    self.success = success
11665
 
11666
  def read(self, iprot):
11667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11669
      return
11670
    iprot.readStructBegin()
11671
    while True:
11672
      (fname, ftype, fid) = iprot.readFieldBegin()
11673
      if ftype == TType.STOP:
11674
        break
11675
      if fid == 0:
11676
        if ftype == TType.LIST:
11677
          self.success = []
6850 kshitij.so 11678
          (_etype203, _size200) = iprot.readListBegin()
11679
          for _i204 in xrange(_size200):
11680
            _elem205 = iprot.readI64();
11681
            self.success.append(_elem205)
5944 mandeep.dh 11682
          iprot.readListEnd()
11683
        else:
11684
          iprot.skip(ftype)
11685
      else:
11686
        iprot.skip(ftype)
11687
      iprot.readFieldEnd()
11688
    iprot.readStructEnd()
11689
 
11690
  def write(self, oprot):
11691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11693
      return
11694
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
11695
    if self.success is not None:
11696
      oprot.writeFieldBegin('success', TType.LIST, 0)
11697
      oprot.writeListBegin(TType.I64, len(self.success))
6850 kshitij.so 11698
      for iter206 in self.success:
11699
        oprot.writeI64(iter206)
5944 mandeep.dh 11700
      oprot.writeListEnd()
11701
      oprot.writeFieldEnd()
11702
    oprot.writeFieldStop()
11703
    oprot.writeStructEnd()
11704
 
11705
  def validate(self):
11706
    return
11707
 
11708
 
11709
  def __repr__(self):
11710
    L = ['%s=%r' % (key, value)
11711
      for key, value in self.__dict__.iteritems()]
11712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11713
 
11714
  def __eq__(self, other):
11715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11716
 
11717
  def __ne__(self, other):
11718
    return not (self == other)
11719
 
11720
class addProductNotification_args:
11721
  """
11722
  Attributes:
11723
   - itemId
11724
   - email
11725
  """
11726
 
11727
  thrift_spec = None
11728
  def __init__(self, itemId=None, email=None,):
11729
    self.itemId = itemId
11730
    self.email = email
11731
 
11732
  def read(self, iprot):
11733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11735
      return
11736
    iprot.readStructBegin()
11737
    while True:
11738
      (fname, ftype, fid) = iprot.readFieldBegin()
11739
      if ftype == TType.STOP:
11740
        break
11741
      if fid == -1:
11742
        if ftype == TType.I64:
11743
          self.itemId = iprot.readI64();
11744
        else:
11745
          iprot.skip(ftype)
11746
      elif fid == -2:
11747
        if ftype == TType.STRING:
11748
          self.email = iprot.readString();
11749
        else:
11750
          iprot.skip(ftype)
11751
      else:
11752
        iprot.skip(ftype)
11753
      iprot.readFieldEnd()
11754
    iprot.readStructEnd()
11755
 
11756
  def write(self, oprot):
11757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11759
      return
11760
    oprot.writeStructBegin('addProductNotification_args')
11761
    if self.email is not None:
11762
      oprot.writeFieldBegin('email', TType.STRING, -2)
11763
      oprot.writeString(self.email)
11764
      oprot.writeFieldEnd()
11765
    if self.itemId is not None:
11766
      oprot.writeFieldBegin('itemId', TType.I64, -1)
11767
      oprot.writeI64(self.itemId)
11768
      oprot.writeFieldEnd()
11769
    oprot.writeFieldStop()
11770
    oprot.writeStructEnd()
11771
 
11772
  def validate(self):
11773
    return
11774
 
11775
 
11776
  def __repr__(self):
11777
    L = ['%s=%r' % (key, value)
11778
      for key, value in self.__dict__.iteritems()]
11779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11780
 
11781
  def __eq__(self, other):
11782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11783
 
11784
  def __ne__(self, other):
11785
    return not (self == other)
11786
 
11787
class addProductNotification_result:
11788
  """
11789
  Attributes:
11790
   - success
11791
  """
11792
 
11793
  thrift_spec = (
11794
    (0, TType.BOOL, 'success', None, None, ), # 0
11795
  )
11796
 
11797
  def __init__(self, success=None,):
11798
    self.success = success
11799
 
11800
  def read(self, iprot):
11801
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11802
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11803
      return
11804
    iprot.readStructBegin()
11805
    while True:
11806
      (fname, ftype, fid) = iprot.readFieldBegin()
11807
      if ftype == TType.STOP:
11808
        break
11809
      if fid == 0:
11810
        if ftype == TType.BOOL:
11811
          self.success = iprot.readBool();
11812
        else:
11813
          iprot.skip(ftype)
11814
      else:
11815
        iprot.skip(ftype)
11816
      iprot.readFieldEnd()
11817
    iprot.readStructEnd()
11818
 
11819
  def write(self, oprot):
11820
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11821
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11822
      return
11823
    oprot.writeStructBegin('addProductNotification_result')
11824
    if self.success is not None:
11825
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11826
      oprot.writeBool(self.success)
11827
      oprot.writeFieldEnd()
11828
    oprot.writeFieldStop()
11829
    oprot.writeStructEnd()
11830
 
11831
  def validate(self):
11832
    return
11833
 
11834
 
11835
  def __repr__(self):
11836
    L = ['%s=%r' % (key, value)
11837
      for key, value in self.__dict__.iteritems()]
11838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11839
 
11840
  def __eq__(self, other):
11841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11842
 
11843
  def __ne__(self, other):
11844
    return not (self == other)
11845
 
11846
class sendProductNotifications_args:
11847
 
11848
  thrift_spec = (
11849
  )
11850
 
11851
  def read(self, iprot):
11852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11854
      return
11855
    iprot.readStructBegin()
11856
    while True:
11857
      (fname, ftype, fid) = iprot.readFieldBegin()
11858
      if ftype == TType.STOP:
11859
        break
11860
      else:
11861
        iprot.skip(ftype)
11862
      iprot.readFieldEnd()
11863
    iprot.readStructEnd()
11864
 
11865
  def write(self, oprot):
11866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11868
      return
11869
    oprot.writeStructBegin('sendProductNotifications_args')
11870
    oprot.writeFieldStop()
11871
    oprot.writeStructEnd()
11872
 
11873
  def validate(self):
11874
    return
11875
 
11876
 
11877
  def __repr__(self):
11878
    L = ['%s=%r' % (key, value)
11879
      for key, value in self.__dict__.iteritems()]
11880
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11881
 
11882
  def __eq__(self, other):
11883
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11884
 
11885
  def __ne__(self, other):
11886
    return not (self == other)
11887
 
11888
class sendProductNotifications_result:
11889
  """
11890
  Attributes:
11891
   - success
11892
  """
11893
 
11894
  thrift_spec = (
11895
    (0, TType.BOOL, 'success', None, None, ), # 0
11896
  )
11897
 
11898
  def __init__(self, success=None,):
11899
    self.success = success
11900
 
11901
  def read(self, iprot):
11902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11904
      return
11905
    iprot.readStructBegin()
11906
    while True:
11907
      (fname, ftype, fid) = iprot.readFieldBegin()
11908
      if ftype == TType.STOP:
11909
        break
11910
      if fid == 0:
11911
        if ftype == TType.BOOL:
11912
          self.success = iprot.readBool();
11913
        else:
11914
          iprot.skip(ftype)
11915
      else:
11916
        iprot.skip(ftype)
11917
      iprot.readFieldEnd()
11918
    iprot.readStructEnd()
11919
 
11920
  def write(self, oprot):
11921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11923
      return
11924
    oprot.writeStructBegin('sendProductNotifications_result')
11925
    if self.success is not None:
11926
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11927
      oprot.writeBool(self.success)
11928
      oprot.writeFieldEnd()
11929
    oprot.writeFieldStop()
11930
    oprot.writeStructEnd()
11931
 
11932
  def validate(self):
11933
    return
11934
 
11935
 
11936
  def __repr__(self):
11937
    L = ['%s=%r' % (key, value)
11938
      for key, value in self.__dict__.iteritems()]
11939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11940
 
11941
  def __eq__(self, other):
11942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11943
 
11944
  def __ne__(self, other):
11945
    return not (self == other)
11946
 
11947
class getAllBrandsByCategory_args:
11948
  """
11949
  Attributes:
11950
   - categoryId
11951
  """
11952
 
11953
  thrift_spec = (
11954
    None, # 0
11955
    (1, TType.I64, 'categoryId', None, None, ), # 1
11956
  )
11957
 
11958
  def __init__(self, categoryId=None,):
11959
    self.categoryId = categoryId
11960
 
11961
  def read(self, iprot):
11962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11964
      return
11965
    iprot.readStructBegin()
11966
    while True:
11967
      (fname, ftype, fid) = iprot.readFieldBegin()
11968
      if ftype == TType.STOP:
11969
        break
11970
      if fid == 1:
11971
        if ftype == TType.I64:
11972
          self.categoryId = iprot.readI64();
11973
        else:
11974
          iprot.skip(ftype)
11975
      else:
11976
        iprot.skip(ftype)
11977
      iprot.readFieldEnd()
11978
    iprot.readStructEnd()
11979
 
11980
  def write(self, oprot):
11981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11983
      return
11984
    oprot.writeStructBegin('getAllBrandsByCategory_args')
11985
    if self.categoryId is not None:
11986
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
11987
      oprot.writeI64(self.categoryId)
11988
      oprot.writeFieldEnd()
11989
    oprot.writeFieldStop()
11990
    oprot.writeStructEnd()
11991
 
11992
  def validate(self):
11993
    return
11994
 
11995
 
11996
  def __repr__(self):
11997
    L = ['%s=%r' % (key, value)
11998
      for key, value in self.__dict__.iteritems()]
11999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12000
 
12001
  def __eq__(self, other):
12002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12003
 
12004
  def __ne__(self, other):
12005
    return not (self == other)
12006
 
12007
class getAllBrandsByCategory_result:
12008
  """
12009
  Attributes:
12010
   - success
12011
  """
12012
 
12013
  thrift_spec = (
12014
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12015
  )
12016
 
12017
  def __init__(self, success=None,):
12018
    self.success = success
12019
 
12020
  def read(self, iprot):
12021
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12022
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12023
      return
12024
    iprot.readStructBegin()
12025
    while True:
12026
      (fname, ftype, fid) = iprot.readFieldBegin()
12027
      if ftype == TType.STOP:
12028
        break
12029
      if fid == 0:
12030
        if ftype == TType.LIST:
12031
          self.success = []
6850 kshitij.so 12032
          (_etype210, _size207) = iprot.readListBegin()
12033
          for _i211 in xrange(_size207):
12034
            _elem212 = iprot.readString();
12035
            self.success.append(_elem212)
5944 mandeep.dh 12036
          iprot.readListEnd()
12037
        else:
12038
          iprot.skip(ftype)
12039
      else:
12040
        iprot.skip(ftype)
12041
      iprot.readFieldEnd()
12042
    iprot.readStructEnd()
12043
 
12044
  def write(self, oprot):
12045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12047
      return
12048
    oprot.writeStructBegin('getAllBrandsByCategory_result')
12049
    if self.success is not None:
12050
      oprot.writeFieldBegin('success', TType.LIST, 0)
12051
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12052
      for iter213 in self.success:
12053
        oprot.writeString(iter213)
5944 mandeep.dh 12054
      oprot.writeListEnd()
12055
      oprot.writeFieldEnd()
12056
    oprot.writeFieldStop()
12057
    oprot.writeStructEnd()
12058
 
12059
  def validate(self):
12060
    return
12061
 
12062
 
12063
  def __repr__(self):
12064
    L = ['%s=%r' % (key, value)
12065
      for key, value in self.__dict__.iteritems()]
12066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12067
 
12068
  def __eq__(self, other):
12069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12070
 
12071
  def __ne__(self, other):
12072
    return not (self == other)
12073
 
12074
class getAllBrands_args:
12075
 
12076
  thrift_spec = (
12077
  )
12078
 
12079
  def read(self, iprot):
12080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12082
      return
12083
    iprot.readStructBegin()
12084
    while True:
12085
      (fname, ftype, fid) = iprot.readFieldBegin()
12086
      if ftype == TType.STOP:
12087
        break
12088
      else:
12089
        iprot.skip(ftype)
12090
      iprot.readFieldEnd()
12091
    iprot.readStructEnd()
12092
 
12093
  def write(self, oprot):
12094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12096
      return
12097
    oprot.writeStructBegin('getAllBrands_args')
12098
    oprot.writeFieldStop()
12099
    oprot.writeStructEnd()
12100
 
12101
  def validate(self):
12102
    return
12103
 
12104
 
12105
  def __repr__(self):
12106
    L = ['%s=%r' % (key, value)
12107
      for key, value in self.__dict__.iteritems()]
12108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12109
 
12110
  def __eq__(self, other):
12111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12112
 
12113
  def __ne__(self, other):
12114
    return not (self == other)
12115
 
12116
class getAllBrands_result:
12117
  """
12118
  Attributes:
12119
   - success
12120
  """
12121
 
12122
  thrift_spec = (
12123
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12124
  )
12125
 
12126
  def __init__(self, success=None,):
12127
    self.success = success
12128
 
12129
  def read(self, iprot):
12130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12132
      return
12133
    iprot.readStructBegin()
12134
    while True:
12135
      (fname, ftype, fid) = iprot.readFieldBegin()
12136
      if ftype == TType.STOP:
12137
        break
12138
      if fid == 0:
12139
        if ftype == TType.LIST:
12140
          self.success = []
6850 kshitij.so 12141
          (_etype217, _size214) = iprot.readListBegin()
12142
          for _i218 in xrange(_size214):
12143
            _elem219 = iprot.readString();
12144
            self.success.append(_elem219)
5944 mandeep.dh 12145
          iprot.readListEnd()
12146
        else:
12147
          iprot.skip(ftype)
12148
      else:
12149
        iprot.skip(ftype)
12150
      iprot.readFieldEnd()
12151
    iprot.readStructEnd()
12152
 
12153
  def write(self, oprot):
12154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12156
      return
12157
    oprot.writeStructBegin('getAllBrands_result')
12158
    if self.success is not None:
12159
      oprot.writeFieldBegin('success', TType.LIST, 0)
12160
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12161
      for iter220 in self.success:
12162
        oprot.writeString(iter220)
5944 mandeep.dh 12163
      oprot.writeListEnd()
12164
      oprot.writeFieldEnd()
12165
    oprot.writeFieldStop()
12166
    oprot.writeStructEnd()
12167
 
12168
  def validate(self):
12169
    return
12170
 
12171
 
12172
  def __repr__(self):
12173
    L = ['%s=%r' % (key, value)
12174
      for key, value in self.__dict__.iteritems()]
12175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12176
 
12177
  def __eq__(self, other):
12178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12179
 
12180
  def __ne__(self, other):
12181
    return not (self == other)
12182
 
12183
class getAllSources_args:
12184
 
12185
  thrift_spec = (
12186
  )
12187
 
12188
  def read(self, iprot):
12189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12191
      return
12192
    iprot.readStructBegin()
12193
    while True:
12194
      (fname, ftype, fid) = iprot.readFieldBegin()
12195
      if ftype == TType.STOP:
12196
        break
12197
      else:
12198
        iprot.skip(ftype)
12199
      iprot.readFieldEnd()
12200
    iprot.readStructEnd()
12201
 
12202
  def write(self, oprot):
12203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12205
      return
12206
    oprot.writeStructBegin('getAllSources_args')
12207
    oprot.writeFieldStop()
12208
    oprot.writeStructEnd()
12209
 
12210
  def validate(self):
12211
    return
12212
 
12213
 
12214
  def __repr__(self):
12215
    L = ['%s=%r' % (key, value)
12216
      for key, value in self.__dict__.iteritems()]
12217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12218
 
12219
  def __eq__(self, other):
12220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12221
 
12222
  def __ne__(self, other):
12223
    return not (self == other)
12224
 
12225
class getAllSources_result:
12226
  """
12227
  Attributes:
12228
   - success
12229
  """
12230
 
12231
  thrift_spec = (
12232
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
12233
  )
12234
 
12235
  def __init__(self, success=None,):
12236
    self.success = success
12237
 
12238
  def read(self, iprot):
12239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12241
      return
12242
    iprot.readStructBegin()
12243
    while True:
12244
      (fname, ftype, fid) = iprot.readFieldBegin()
12245
      if ftype == TType.STOP:
12246
        break
12247
      if fid == 0:
12248
        if ftype == TType.LIST:
12249
          self.success = []
6850 kshitij.so 12250
          (_etype224, _size221) = iprot.readListBegin()
12251
          for _i225 in xrange(_size221):
12252
            _elem226 = Source()
12253
            _elem226.read(iprot)
12254
            self.success.append(_elem226)
5944 mandeep.dh 12255
          iprot.readListEnd()
12256
        else:
12257
          iprot.skip(ftype)
12258
      else:
12259
        iprot.skip(ftype)
12260
      iprot.readFieldEnd()
12261
    iprot.readStructEnd()
12262
 
12263
  def write(self, oprot):
12264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12266
      return
12267
    oprot.writeStructBegin('getAllSources_result')
12268
    if self.success is not None:
12269
      oprot.writeFieldBegin('success', TType.LIST, 0)
12270
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12271
      for iter227 in self.success:
12272
        iter227.write(oprot)
5944 mandeep.dh 12273
      oprot.writeListEnd()
12274
      oprot.writeFieldEnd()
12275
    oprot.writeFieldStop()
12276
    oprot.writeStructEnd()
12277
 
12278
  def validate(self):
12279
    return
12280
 
12281
 
12282
  def __repr__(self):
12283
    L = ['%s=%r' % (key, value)
12284
      for key, value in self.__dict__.iteritems()]
12285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12286
 
12287
  def __eq__(self, other):
12288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12289
 
12290
  def __ne__(self, other):
12291
    return not (self == other)
12292
 
12293
class getItemPricingBySource_args:
12294
  """
12295
  Attributes:
12296
   - itemId
12297
   - sourceId
12298
  """
12299
 
12300
  thrift_spec = (
12301
    None, # 0
12302
    (1, TType.I64, 'itemId', None, None, ), # 1
12303
    (2, TType.I64, 'sourceId', None, None, ), # 2
12304
  )
12305
 
12306
  def __init__(self, itemId=None, sourceId=None,):
12307
    self.itemId = itemId
12308
    self.sourceId = sourceId
12309
 
12310
  def read(self, iprot):
12311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12313
      return
12314
    iprot.readStructBegin()
12315
    while True:
12316
      (fname, ftype, fid) = iprot.readFieldBegin()
12317
      if ftype == TType.STOP:
12318
        break
12319
      if fid == 1:
12320
        if ftype == TType.I64:
12321
          self.itemId = iprot.readI64();
12322
        else:
12323
          iprot.skip(ftype)
12324
      elif fid == 2:
12325
        if ftype == TType.I64:
12326
          self.sourceId = iprot.readI64();
12327
        else:
12328
          iprot.skip(ftype)
12329
      else:
12330
        iprot.skip(ftype)
12331
      iprot.readFieldEnd()
12332
    iprot.readStructEnd()
12333
 
12334
  def write(self, oprot):
12335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12337
      return
12338
    oprot.writeStructBegin('getItemPricingBySource_args')
12339
    if self.itemId is not None:
12340
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12341
      oprot.writeI64(self.itemId)
12342
      oprot.writeFieldEnd()
12343
    if self.sourceId is not None:
12344
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12345
      oprot.writeI64(self.sourceId)
12346
      oprot.writeFieldEnd()
12347
    oprot.writeFieldStop()
12348
    oprot.writeStructEnd()
12349
 
12350
  def validate(self):
12351
    return
12352
 
12353
 
12354
  def __repr__(self):
12355
    L = ['%s=%r' % (key, value)
12356
      for key, value in self.__dict__.iteritems()]
12357
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12358
 
12359
  def __eq__(self, other):
12360
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12361
 
12362
  def __ne__(self, other):
12363
    return not (self == other)
12364
 
12365
class getItemPricingBySource_result:
12366
  """
12367
  Attributes:
12368
   - success
12369
   - cex
12370
  """
12371
 
12372
  thrift_spec = (
12373
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
12374
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12375
  )
12376
 
12377
  def __init__(self, success=None, cex=None,):
12378
    self.success = success
12379
    self.cex = cex
12380
 
12381
  def read(self, iprot):
12382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12384
      return
12385
    iprot.readStructBegin()
12386
    while True:
12387
      (fname, ftype, fid) = iprot.readFieldBegin()
12388
      if ftype == TType.STOP:
12389
        break
12390
      if fid == 0:
12391
        if ftype == TType.STRUCT:
12392
          self.success = SourceItemPricing()
12393
          self.success.read(iprot)
12394
        else:
12395
          iprot.skip(ftype)
12396
      elif fid == 1:
12397
        if ftype == TType.STRUCT:
12398
          self.cex = CatalogServiceException()
12399
          self.cex.read(iprot)
12400
        else:
12401
          iprot.skip(ftype)
12402
      else:
12403
        iprot.skip(ftype)
12404
      iprot.readFieldEnd()
12405
    iprot.readStructEnd()
12406
 
12407
  def write(self, oprot):
12408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12410
      return
12411
    oprot.writeStructBegin('getItemPricingBySource_result')
12412
    if self.success is not None:
12413
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12414
      self.success.write(oprot)
12415
      oprot.writeFieldEnd()
12416
    if self.cex is not None:
12417
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12418
      self.cex.write(oprot)
12419
      oprot.writeFieldEnd()
12420
    oprot.writeFieldStop()
12421
    oprot.writeStructEnd()
12422
 
12423
  def validate(self):
12424
    return
12425
 
12426
 
12427
  def __repr__(self):
12428
    L = ['%s=%r' % (key, value)
12429
      for key, value in self.__dict__.iteritems()]
12430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12431
 
12432
  def __eq__(self, other):
12433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12434
 
12435
  def __ne__(self, other):
12436
    return not (self == other)
12437
 
12438
class addSourceItemPricing_args:
12439
  """
12440
  Attributes:
12441
   - sourceItemPricing
12442
  """
12443
 
12444
  thrift_spec = (
12445
    None, # 0
12446
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
12447
  )
12448
 
12449
  def __init__(self, sourceItemPricing=None,):
12450
    self.sourceItemPricing = sourceItemPricing
12451
 
12452
  def read(self, iprot):
12453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12455
      return
12456
    iprot.readStructBegin()
12457
    while True:
12458
      (fname, ftype, fid) = iprot.readFieldBegin()
12459
      if ftype == TType.STOP:
12460
        break
12461
      if fid == 1:
12462
        if ftype == TType.STRUCT:
12463
          self.sourceItemPricing = SourceItemPricing()
12464
          self.sourceItemPricing.read(iprot)
12465
        else:
12466
          iprot.skip(ftype)
12467
      else:
12468
        iprot.skip(ftype)
12469
      iprot.readFieldEnd()
12470
    iprot.readStructEnd()
12471
 
12472
  def write(self, oprot):
12473
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12474
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12475
      return
12476
    oprot.writeStructBegin('addSourceItemPricing_args')
12477
    if self.sourceItemPricing is not None:
12478
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
12479
      self.sourceItemPricing.write(oprot)
12480
      oprot.writeFieldEnd()
12481
    oprot.writeFieldStop()
12482
    oprot.writeStructEnd()
12483
 
12484
  def validate(self):
12485
    return
12486
 
12487
 
12488
  def __repr__(self):
12489
    L = ['%s=%r' % (key, value)
12490
      for key, value in self.__dict__.iteritems()]
12491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12492
 
12493
  def __eq__(self, other):
12494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12495
 
12496
  def __ne__(self, other):
12497
    return not (self == other)
12498
 
12499
class addSourceItemPricing_result:
12500
  """
12501
  Attributes:
12502
   - cex
12503
  """
12504
 
12505
  thrift_spec = (
12506
    None, # 0
12507
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12508
  )
12509
 
12510
  def __init__(self, cex=None,):
12511
    self.cex = cex
12512
 
12513
  def read(self, iprot):
12514
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12515
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12516
      return
12517
    iprot.readStructBegin()
12518
    while True:
12519
      (fname, ftype, fid) = iprot.readFieldBegin()
12520
      if ftype == TType.STOP:
12521
        break
12522
      if fid == 1:
12523
        if ftype == TType.STRUCT:
12524
          self.cex = CatalogServiceException()
12525
          self.cex.read(iprot)
12526
        else:
12527
          iprot.skip(ftype)
12528
      else:
12529
        iprot.skip(ftype)
12530
      iprot.readFieldEnd()
12531
    iprot.readStructEnd()
12532
 
12533
  def write(self, oprot):
12534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12536
      return
12537
    oprot.writeStructBegin('addSourceItemPricing_result')
12538
    if self.cex is not None:
12539
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12540
      self.cex.write(oprot)
12541
      oprot.writeFieldEnd()
12542
    oprot.writeFieldStop()
12543
    oprot.writeStructEnd()
12544
 
12545
  def validate(self):
12546
    return
12547
 
12548
 
12549
  def __repr__(self):
12550
    L = ['%s=%r' % (key, value)
12551
      for key, value in self.__dict__.iteritems()]
12552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12553
 
12554
  def __eq__(self, other):
12555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12556
 
12557
  def __ne__(self, other):
12558
    return not (self == other)
12559
 
12560
class getAllSourcePricing_args:
12561
  """
12562
  Attributes:
12563
   - itemId
12564
  """
12565
 
12566
  thrift_spec = (
12567
    None, # 0
12568
    (1, TType.I64, 'itemId', None, None, ), # 1
12569
  )
12570
 
12571
  def __init__(self, itemId=None,):
12572
    self.itemId = itemId
12573
 
12574
  def read(self, iprot):
12575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12577
      return
12578
    iprot.readStructBegin()
12579
    while True:
12580
      (fname, ftype, fid) = iprot.readFieldBegin()
12581
      if ftype == TType.STOP:
12582
        break
12583
      if fid == 1:
12584
        if ftype == TType.I64:
12585
          self.itemId = iprot.readI64();
12586
        else:
12587
          iprot.skip(ftype)
12588
      else:
12589
        iprot.skip(ftype)
12590
      iprot.readFieldEnd()
12591
    iprot.readStructEnd()
12592
 
12593
  def write(self, oprot):
12594
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12595
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12596
      return
12597
    oprot.writeStructBegin('getAllSourcePricing_args')
12598
    if self.itemId is not None:
12599
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12600
      oprot.writeI64(self.itemId)
12601
      oprot.writeFieldEnd()
12602
    oprot.writeFieldStop()
12603
    oprot.writeStructEnd()
12604
 
12605
  def validate(self):
12606
    return
12607
 
12608
 
12609
  def __repr__(self):
12610
    L = ['%s=%r' % (key, value)
12611
      for key, value in self.__dict__.iteritems()]
12612
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12613
 
12614
  def __eq__(self, other):
12615
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12616
 
12617
  def __ne__(self, other):
12618
    return not (self == other)
12619
 
12620
class getAllSourcePricing_result:
12621
  """
12622
  Attributes:
12623
   - success
12624
   - cex
12625
  """
12626
 
12627
  thrift_spec = (
12628
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
12629
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12630
  )
12631
 
12632
  def __init__(self, success=None, cex=None,):
12633
    self.success = success
12634
    self.cex = cex
12635
 
12636
  def read(self, iprot):
12637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12639
      return
12640
    iprot.readStructBegin()
12641
    while True:
12642
      (fname, ftype, fid) = iprot.readFieldBegin()
12643
      if ftype == TType.STOP:
12644
        break
12645
      if fid == 0:
12646
        if ftype == TType.LIST:
12647
          self.success = []
6850 kshitij.so 12648
          (_etype231, _size228) = iprot.readListBegin()
12649
          for _i232 in xrange(_size228):
12650
            _elem233 = SourceItemPricing()
12651
            _elem233.read(iprot)
12652
            self.success.append(_elem233)
5944 mandeep.dh 12653
          iprot.readListEnd()
12654
        else:
12655
          iprot.skip(ftype)
12656
      elif fid == 1:
12657
        if ftype == TType.STRUCT:
12658
          self.cex = CatalogServiceException()
12659
          self.cex.read(iprot)
12660
        else:
12661
          iprot.skip(ftype)
12662
      else:
12663
        iprot.skip(ftype)
12664
      iprot.readFieldEnd()
12665
    iprot.readStructEnd()
12666
 
12667
  def write(self, oprot):
12668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12670
      return
12671
    oprot.writeStructBegin('getAllSourcePricing_result')
12672
    if self.success is not None:
12673
      oprot.writeFieldBegin('success', TType.LIST, 0)
12674
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12675
      for iter234 in self.success:
12676
        iter234.write(oprot)
5944 mandeep.dh 12677
      oprot.writeListEnd()
12678
      oprot.writeFieldEnd()
12679
    if self.cex is not None:
12680
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12681
      self.cex.write(oprot)
12682
      oprot.writeFieldEnd()
12683
    oprot.writeFieldStop()
12684
    oprot.writeStructEnd()
12685
 
12686
  def validate(self):
12687
    return
12688
 
12689
 
12690
  def __repr__(self):
12691
    L = ['%s=%r' % (key, value)
12692
      for key, value in self.__dict__.iteritems()]
12693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12694
 
12695
  def __eq__(self, other):
12696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12697
 
12698
  def __ne__(self, other):
12699
    return not (self == other)
12700
 
12701
class getItemForSource_args:
12702
  """
12703
  Attributes:
12704
   - item_id
12705
   - sourceId
12706
  """
12707
 
12708
  thrift_spec = (
12709
    None, # 0
12710
    (1, TType.I64, 'item_id', None, None, ), # 1
12711
    (2, TType.I64, 'sourceId', None, None, ), # 2
12712
  )
12713
 
12714
  def __init__(self, item_id=None, sourceId=None,):
12715
    self.item_id = item_id
12716
    self.sourceId = sourceId
12717
 
12718
  def read(self, iprot):
12719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12721
      return
12722
    iprot.readStructBegin()
12723
    while True:
12724
      (fname, ftype, fid) = iprot.readFieldBegin()
12725
      if ftype == TType.STOP:
12726
        break
12727
      if fid == 1:
12728
        if ftype == TType.I64:
12729
          self.item_id = iprot.readI64();
12730
        else:
12731
          iprot.skip(ftype)
12732
      elif fid == 2:
12733
        if ftype == TType.I64:
12734
          self.sourceId = iprot.readI64();
12735
        else:
12736
          iprot.skip(ftype)
12737
      else:
12738
        iprot.skip(ftype)
12739
      iprot.readFieldEnd()
12740
    iprot.readStructEnd()
12741
 
12742
  def write(self, oprot):
12743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12745
      return
12746
    oprot.writeStructBegin('getItemForSource_args')
12747
    if self.item_id is not None:
12748
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12749
      oprot.writeI64(self.item_id)
12750
      oprot.writeFieldEnd()
12751
    if self.sourceId is not None:
12752
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12753
      oprot.writeI64(self.sourceId)
12754
      oprot.writeFieldEnd()
12755
    oprot.writeFieldStop()
12756
    oprot.writeStructEnd()
12757
 
12758
  def validate(self):
12759
    return
12760
 
12761
 
12762
  def __repr__(self):
12763
    L = ['%s=%r' % (key, value)
12764
      for key, value in self.__dict__.iteritems()]
12765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12766
 
12767
  def __eq__(self, other):
12768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12769
 
12770
  def __ne__(self, other):
12771
    return not (self == other)
12772
 
12773
class getItemForSource_result:
12774
  """
12775
  Attributes:
12776
   - success
12777
   - cex
12778
  """
12779
 
12780
  thrift_spec = (
12781
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
12782
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12783
  )
12784
 
12785
  def __init__(self, success=None, cex=None,):
12786
    self.success = success
12787
    self.cex = cex
12788
 
12789
  def read(self, iprot):
12790
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12791
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12792
      return
12793
    iprot.readStructBegin()
12794
    while True:
12795
      (fname, ftype, fid) = iprot.readFieldBegin()
12796
      if ftype == TType.STOP:
12797
        break
12798
      if fid == 0:
12799
        if ftype == TType.STRUCT:
12800
          self.success = Item()
12801
          self.success.read(iprot)
12802
        else:
12803
          iprot.skip(ftype)
12804
      elif fid == 1:
12805
        if ftype == TType.STRUCT:
12806
          self.cex = CatalogServiceException()
12807
          self.cex.read(iprot)
12808
        else:
12809
          iprot.skip(ftype)
12810
      else:
12811
        iprot.skip(ftype)
12812
      iprot.readFieldEnd()
12813
    iprot.readStructEnd()
12814
 
12815
  def write(self, oprot):
12816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12818
      return
12819
    oprot.writeStructBegin('getItemForSource_result')
12820
    if self.success is not None:
12821
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12822
      self.success.write(oprot)
12823
      oprot.writeFieldEnd()
12824
    if self.cex is not None:
12825
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12826
      self.cex.write(oprot)
12827
      oprot.writeFieldEnd()
12828
    oprot.writeFieldStop()
12829
    oprot.writeStructEnd()
12830
 
12831
  def validate(self):
12832
    return
12833
 
12834
 
12835
  def __repr__(self):
12836
    L = ['%s=%r' % (key, value)
12837
      for key, value in self.__dict__.iteritems()]
12838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12839
 
12840
  def __eq__(self, other):
12841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12842
 
12843
  def __ne__(self, other):
12844
    return not (self == other)
12845
 
12846
class searchItemsInRange_args:
12847
  """
12848
  Attributes:
12849
   - searchTerms
12850
   - offset
12851
   - limit
12852
  """
12853
 
12854
  thrift_spec = (
12855
    None, # 0
12856
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
12857
    (2, TType.I64, 'offset', None, None, ), # 2
12858
    (3, TType.I64, 'limit', None, None, ), # 3
12859
  )
12860
 
12861
  def __init__(self, searchTerms=None, offset=None, limit=None,):
12862
    self.searchTerms = searchTerms
12863
    self.offset = offset
12864
    self.limit = limit
12865
 
12866
  def read(self, iprot):
12867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12869
      return
12870
    iprot.readStructBegin()
12871
    while True:
12872
      (fname, ftype, fid) = iprot.readFieldBegin()
12873
      if ftype == TType.STOP:
12874
        break
12875
      if fid == 1:
12876
        if ftype == TType.LIST:
12877
          self.searchTerms = []
6850 kshitij.so 12878
          (_etype238, _size235) = iprot.readListBegin()
12879
          for _i239 in xrange(_size235):
12880
            _elem240 = iprot.readString();
12881
            self.searchTerms.append(_elem240)
5944 mandeep.dh 12882
          iprot.readListEnd()
12883
        else:
12884
          iprot.skip(ftype)
12885
      elif fid == 2:
12886
        if ftype == TType.I64:
12887
          self.offset = iprot.readI64();
12888
        else:
12889
          iprot.skip(ftype)
12890
      elif fid == 3:
12891
        if ftype == TType.I64:
12892
          self.limit = iprot.readI64();
12893
        else:
12894
          iprot.skip(ftype)
12895
      else:
12896
        iprot.skip(ftype)
12897
      iprot.readFieldEnd()
12898
    iprot.readStructEnd()
12899
 
12900
  def write(self, oprot):
12901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12903
      return
12904
    oprot.writeStructBegin('searchItemsInRange_args')
12905
    if self.searchTerms is not None:
12906
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
12907
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 12908
      for iter241 in self.searchTerms:
12909
        oprot.writeString(iter241)
5944 mandeep.dh 12910
      oprot.writeListEnd()
12911
      oprot.writeFieldEnd()
12912
    if self.offset is not None:
12913
      oprot.writeFieldBegin('offset', TType.I64, 2)
12914
      oprot.writeI64(self.offset)
12915
      oprot.writeFieldEnd()
12916
    if self.limit is not None:
12917
      oprot.writeFieldBegin('limit', TType.I64, 3)
12918
      oprot.writeI64(self.limit)
12919
      oprot.writeFieldEnd()
12920
    oprot.writeFieldStop()
12921
    oprot.writeStructEnd()
12922
 
12923
  def validate(self):
12924
    return
12925
 
12926
 
12927
  def __repr__(self):
12928
    L = ['%s=%r' % (key, value)
12929
      for key, value in self.__dict__.iteritems()]
12930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12931
 
12932
  def __eq__(self, other):
12933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12934
 
12935
  def __ne__(self, other):
12936
    return not (self == other)
12937
 
12938
class searchItemsInRange_result:
12939
  """
12940
  Attributes:
12941
   - success
12942
  """
12943
 
12944
  thrift_spec = (
12945
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12946
  )
12947
 
12948
  def __init__(self, success=None,):
12949
    self.success = success
12950
 
12951
  def read(self, iprot):
12952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12954
      return
12955
    iprot.readStructBegin()
12956
    while True:
12957
      (fname, ftype, fid) = iprot.readFieldBegin()
12958
      if ftype == TType.STOP:
12959
        break
12960
      if fid == 0:
12961
        if ftype == TType.LIST:
12962
          self.success = []
6850 kshitij.so 12963
          (_etype245, _size242) = iprot.readListBegin()
12964
          for _i246 in xrange(_size242):
12965
            _elem247 = Item()
12966
            _elem247.read(iprot)
12967
            self.success.append(_elem247)
5944 mandeep.dh 12968
          iprot.readListEnd()
12969
        else:
12970
          iprot.skip(ftype)
12971
      else:
12972
        iprot.skip(ftype)
12973
      iprot.readFieldEnd()
12974
    iprot.readStructEnd()
12975
 
12976
  def write(self, oprot):
12977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12979
      return
12980
    oprot.writeStructBegin('searchItemsInRange_result')
12981
    if self.success is not None:
12982
      oprot.writeFieldBegin('success', TType.LIST, 0)
12983
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12984
      for iter248 in self.success:
12985
        iter248.write(oprot)
5944 mandeep.dh 12986
      oprot.writeListEnd()
12987
      oprot.writeFieldEnd()
12988
    oprot.writeFieldStop()
12989
    oprot.writeStructEnd()
12990
 
12991
  def validate(self):
12992
    return
12993
 
12994
 
12995
  def __repr__(self):
12996
    L = ['%s=%r' % (key, value)
12997
      for key, value in self.__dict__.iteritems()]
12998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12999
 
13000
  def __eq__(self, other):
13001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13002
 
13003
  def __ne__(self, other):
13004
    return not (self == other)
13005
 
13006
class getSearchResultCount_args:
13007
  """
13008
  Attributes:
13009
   - searchTerms
13010
  """
13011
 
13012
  thrift_spec = (
13013
    None, # 0
13014
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
13015
  )
13016
 
13017
  def __init__(self, searchTerms=None,):
13018
    self.searchTerms = searchTerms
13019
 
13020
  def read(self, iprot):
13021
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13022
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13023
      return
13024
    iprot.readStructBegin()
13025
    while True:
13026
      (fname, ftype, fid) = iprot.readFieldBegin()
13027
      if ftype == TType.STOP:
13028
        break
13029
      if fid == 1:
13030
        if ftype == TType.LIST:
13031
          self.searchTerms = []
6850 kshitij.so 13032
          (_etype252, _size249) = iprot.readListBegin()
13033
          for _i253 in xrange(_size249):
13034
            _elem254 = iprot.readString();
13035
            self.searchTerms.append(_elem254)
5944 mandeep.dh 13036
          iprot.readListEnd()
13037
        else:
13038
          iprot.skip(ftype)
13039
      else:
13040
        iprot.skip(ftype)
13041
      iprot.readFieldEnd()
13042
    iprot.readStructEnd()
13043
 
13044
  def write(self, oprot):
13045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13047
      return
13048
    oprot.writeStructBegin('getSearchResultCount_args')
13049
    if self.searchTerms is not None:
13050
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
13051
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 13052
      for iter255 in self.searchTerms:
13053
        oprot.writeString(iter255)
5944 mandeep.dh 13054
      oprot.writeListEnd()
13055
      oprot.writeFieldEnd()
13056
    oprot.writeFieldStop()
13057
    oprot.writeStructEnd()
13058
 
13059
  def validate(self):
13060
    return
13061
 
13062
 
13063
  def __repr__(self):
13064
    L = ['%s=%r' % (key, value)
13065
      for key, value in self.__dict__.iteritems()]
13066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13067
 
13068
  def __eq__(self, other):
13069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13070
 
13071
  def __ne__(self, other):
13072
    return not (self == other)
13073
 
13074
class getSearchResultCount_result:
13075
  """
13076
  Attributes:
13077
   - success
13078
  """
13079
 
13080
  thrift_spec = (
13081
    (0, TType.I32, 'success', None, None, ), # 0
13082
  )
13083
 
13084
  def __init__(self, success=None,):
13085
    self.success = success
13086
 
13087
  def read(self, iprot):
13088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13090
      return
13091
    iprot.readStructBegin()
13092
    while True:
13093
      (fname, ftype, fid) = iprot.readFieldBegin()
13094
      if ftype == TType.STOP:
13095
        break
13096
      if fid == 0:
13097
        if ftype == TType.I32:
13098
          self.success = iprot.readI32();
13099
        else:
13100
          iprot.skip(ftype)
13101
      else:
13102
        iprot.skip(ftype)
13103
      iprot.readFieldEnd()
13104
    iprot.readStructEnd()
13105
 
13106
  def write(self, oprot):
13107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13109
      return
13110
    oprot.writeStructBegin('getSearchResultCount_result')
13111
    if self.success is not None:
13112
      oprot.writeFieldBegin('success', TType.I32, 0)
13113
      oprot.writeI32(self.success)
13114
      oprot.writeFieldEnd()
13115
    oprot.writeFieldStop()
13116
    oprot.writeStructEnd()
13117
 
13118
  def validate(self):
13119
    return
13120
 
13121
 
13122
  def __repr__(self):
13123
    L = ['%s=%r' % (key, value)
13124
      for key, value in self.__dict__.iteritems()]
13125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13126
 
13127
  def __eq__(self, other):
13128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13129
 
13130
  def __ne__(self, other):
13131
    return not (self == other)
13132
 
13133
class getProductNotifications_args:
13134
  """
13135
  Attributes:
13136
   - startDateTime
13137
  """
13138
 
13139
  thrift_spec = (
13140
    None, # 0
13141
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13142
  )
13143
 
13144
  def __init__(self, startDateTime=None,):
13145
    self.startDateTime = startDateTime
13146
 
13147
  def read(self, iprot):
13148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13150
      return
13151
    iprot.readStructBegin()
13152
    while True:
13153
      (fname, ftype, fid) = iprot.readFieldBegin()
13154
      if ftype == TType.STOP:
13155
        break
13156
      if fid == 1:
13157
        if ftype == TType.I64:
13158
          self.startDateTime = iprot.readI64();
13159
        else:
13160
          iprot.skip(ftype)
13161
      else:
13162
        iprot.skip(ftype)
13163
      iprot.readFieldEnd()
13164
    iprot.readStructEnd()
13165
 
13166
  def write(self, oprot):
13167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13169
      return
13170
    oprot.writeStructBegin('getProductNotifications_args')
13171
    if self.startDateTime is not None:
13172
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13173
      oprot.writeI64(self.startDateTime)
13174
      oprot.writeFieldEnd()
13175
    oprot.writeFieldStop()
13176
    oprot.writeStructEnd()
13177
 
13178
  def validate(self):
13179
    return
13180
 
13181
 
13182
  def __repr__(self):
13183
    L = ['%s=%r' % (key, value)
13184
      for key, value in self.__dict__.iteritems()]
13185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13186
 
13187
  def __eq__(self, other):
13188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13189
 
13190
  def __ne__(self, other):
13191
    return not (self == other)
13192
 
13193
class getProductNotifications_result:
13194
  """
13195
  Attributes:
13196
   - success
13197
  """
13198
 
13199
  thrift_spec = (
13200
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
13201
  )
13202
 
13203
  def __init__(self, success=None,):
13204
    self.success = success
13205
 
13206
  def read(self, iprot):
13207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13209
      return
13210
    iprot.readStructBegin()
13211
    while True:
13212
      (fname, ftype, fid) = iprot.readFieldBegin()
13213
      if ftype == TType.STOP:
13214
        break
13215
      if fid == 0:
13216
        if ftype == TType.LIST:
13217
          self.success = []
6850 kshitij.so 13218
          (_etype259, _size256) = iprot.readListBegin()
13219
          for _i260 in xrange(_size256):
13220
            _elem261 = ProductNotificationRequest()
13221
            _elem261.read(iprot)
13222
            self.success.append(_elem261)
5944 mandeep.dh 13223
          iprot.readListEnd()
13224
        else:
13225
          iprot.skip(ftype)
13226
      else:
13227
        iprot.skip(ftype)
13228
      iprot.readFieldEnd()
13229
    iprot.readStructEnd()
13230
 
13231
  def write(self, oprot):
13232
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13233
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13234
      return
13235
    oprot.writeStructBegin('getProductNotifications_result')
13236
    if self.success is not None:
13237
      oprot.writeFieldBegin('success', TType.LIST, 0)
13238
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13239
      for iter262 in self.success:
13240
        iter262.write(oprot)
5944 mandeep.dh 13241
      oprot.writeListEnd()
13242
      oprot.writeFieldEnd()
13243
    oprot.writeFieldStop()
13244
    oprot.writeStructEnd()
13245
 
13246
  def validate(self):
13247
    return
13248
 
13249
 
13250
  def __repr__(self):
13251
    L = ['%s=%r' % (key, value)
13252
      for key, value in self.__dict__.iteritems()]
13253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13254
 
13255
  def __eq__(self, other):
13256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13257
 
13258
  def __ne__(self, other):
13259
    return not (self == other)
13260
 
13261
class getProductNotificationRequestCount_args:
13262
  """
13263
  Attributes:
13264
   - startDateTime
13265
  """
13266
 
13267
  thrift_spec = (
13268
    None, # 0
13269
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13270
  )
13271
 
13272
  def __init__(self, startDateTime=None,):
13273
    self.startDateTime = startDateTime
13274
 
13275
  def read(self, iprot):
13276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13278
      return
13279
    iprot.readStructBegin()
13280
    while True:
13281
      (fname, ftype, fid) = iprot.readFieldBegin()
13282
      if ftype == TType.STOP:
13283
        break
13284
      if fid == 1:
13285
        if ftype == TType.I64:
13286
          self.startDateTime = iprot.readI64();
13287
        else:
13288
          iprot.skip(ftype)
13289
      else:
13290
        iprot.skip(ftype)
13291
      iprot.readFieldEnd()
13292
    iprot.readStructEnd()
13293
 
13294
  def write(self, oprot):
13295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13297
      return
13298
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
13299
    if self.startDateTime is not None:
13300
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13301
      oprot.writeI64(self.startDateTime)
13302
      oprot.writeFieldEnd()
13303
    oprot.writeFieldStop()
13304
    oprot.writeStructEnd()
13305
 
13306
  def validate(self):
13307
    return
13308
 
13309
 
13310
  def __repr__(self):
13311
    L = ['%s=%r' % (key, value)
13312
      for key, value in self.__dict__.iteritems()]
13313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13314
 
13315
  def __eq__(self, other):
13316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13317
 
13318
  def __ne__(self, other):
13319
    return not (self == other)
13320
 
13321
class getProductNotificationRequestCount_result:
13322
  """
13323
  Attributes:
13324
   - success
13325
  """
13326
 
13327
  thrift_spec = (
13328
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
13329
  )
13330
 
13331
  def __init__(self, success=None,):
13332
    self.success = success
13333
 
13334
  def read(self, iprot):
13335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13337
      return
13338
    iprot.readStructBegin()
13339
    while True:
13340
      (fname, ftype, fid) = iprot.readFieldBegin()
13341
      if ftype == TType.STOP:
13342
        break
13343
      if fid == 0:
13344
        if ftype == TType.LIST:
13345
          self.success = []
6850 kshitij.so 13346
          (_etype266, _size263) = iprot.readListBegin()
13347
          for _i267 in xrange(_size263):
13348
            _elem268 = ProductNotificationRequestCount()
13349
            _elem268.read(iprot)
13350
            self.success.append(_elem268)
5944 mandeep.dh 13351
          iprot.readListEnd()
13352
        else:
13353
          iprot.skip(ftype)
13354
      else:
13355
        iprot.skip(ftype)
13356
      iprot.readFieldEnd()
13357
    iprot.readStructEnd()
13358
 
13359
  def write(self, oprot):
13360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13362
      return
13363
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
13364
    if self.success is not None:
13365
      oprot.writeFieldBegin('success', TType.LIST, 0)
13366
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13367
      for iter269 in self.success:
13368
        iter269.write(oprot)
5944 mandeep.dh 13369
      oprot.writeListEnd()
13370
      oprot.writeFieldEnd()
13371
    oprot.writeFieldStop()
13372
    oprot.writeStructEnd()
13373
 
13374
  def validate(self):
13375
    return
13376
 
13377
 
13378
  def __repr__(self):
13379
    L = ['%s=%r' % (key, value)
13380
      for key, value in self.__dict__.iteritems()]
13381
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13382
 
13383
  def __eq__(self, other):
13384
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13385
 
13386
  def __ne__(self, other):
13387
    return not (self == other)
13388
 
13389
class addAuthorizationLog_args:
13390
  """
13391
  Attributes:
13392
   - itemId
13393
   - username
13394
   - reason
13395
  """
13396
 
13397
  thrift_spec = (
13398
    None, # 0
13399
    (1, TType.I64, 'itemId', None, None, ), # 1
13400
    (2, TType.STRING, 'username', None, None, ), # 2
13401
    (3, TType.STRING, 'reason', None, None, ), # 3
13402
  )
13403
 
13404
  def __init__(self, itemId=None, username=None, reason=None,):
13405
    self.itemId = itemId
13406
    self.username = username
13407
    self.reason = reason
13408
 
13409
  def read(self, iprot):
13410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13412
      return
13413
    iprot.readStructBegin()
13414
    while True:
13415
      (fname, ftype, fid) = iprot.readFieldBegin()
13416
      if ftype == TType.STOP:
13417
        break
13418
      if fid == 1:
13419
        if ftype == TType.I64:
13420
          self.itemId = iprot.readI64();
13421
        else:
13422
          iprot.skip(ftype)
13423
      elif fid == 2:
13424
        if ftype == TType.STRING:
13425
          self.username = iprot.readString();
13426
        else:
13427
          iprot.skip(ftype)
13428
      elif fid == 3:
13429
        if ftype == TType.STRING:
13430
          self.reason = iprot.readString();
13431
        else:
13432
          iprot.skip(ftype)
13433
      else:
13434
        iprot.skip(ftype)
13435
      iprot.readFieldEnd()
13436
    iprot.readStructEnd()
13437
 
13438
  def write(self, oprot):
13439
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13440
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13441
      return
13442
    oprot.writeStructBegin('addAuthorizationLog_args')
13443
    if self.itemId is not None:
13444
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13445
      oprot.writeI64(self.itemId)
13446
      oprot.writeFieldEnd()
13447
    if self.username is not None:
13448
      oprot.writeFieldBegin('username', TType.STRING, 2)
13449
      oprot.writeString(self.username)
13450
      oprot.writeFieldEnd()
13451
    if self.reason is not None:
13452
      oprot.writeFieldBegin('reason', TType.STRING, 3)
13453
      oprot.writeString(self.reason)
13454
      oprot.writeFieldEnd()
13455
    oprot.writeFieldStop()
13456
    oprot.writeStructEnd()
13457
 
13458
  def validate(self):
13459
    return
13460
 
13461
 
13462
  def __repr__(self):
13463
    L = ['%s=%r' % (key, value)
13464
      for key, value in self.__dict__.iteritems()]
13465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13466
 
13467
  def __eq__(self, other):
13468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13469
 
13470
  def __ne__(self, other):
13471
    return not (self == other)
13472
 
13473
class addAuthorizationLog_result:
13474
  """
13475
  Attributes:
13476
   - success
13477
   - cex
13478
  """
13479
 
13480
  thrift_spec = (
13481
    (0, TType.BOOL, 'success', None, None, ), # 0
13482
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13483
  )
13484
 
13485
  def __init__(self, success=None, cex=None,):
13486
    self.success = success
13487
    self.cex = cex
13488
 
13489
  def read(self, iprot):
13490
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13491
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13492
      return
13493
    iprot.readStructBegin()
13494
    while True:
13495
      (fname, ftype, fid) = iprot.readFieldBegin()
13496
      if ftype == TType.STOP:
13497
        break
13498
      if fid == 0:
13499
        if ftype == TType.BOOL:
13500
          self.success = iprot.readBool();
13501
        else:
13502
          iprot.skip(ftype)
13503
      elif fid == 1:
13504
        if ftype == TType.STRUCT:
13505
          self.cex = CatalogServiceException()
13506
          self.cex.read(iprot)
13507
        else:
13508
          iprot.skip(ftype)
13509
      else:
13510
        iprot.skip(ftype)
13511
      iprot.readFieldEnd()
13512
    iprot.readStructEnd()
13513
 
13514
  def write(self, oprot):
13515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13517
      return
13518
    oprot.writeStructBegin('addAuthorizationLog_result')
13519
    if self.success is not None:
13520
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13521
      oprot.writeBool(self.success)
13522
      oprot.writeFieldEnd()
13523
    if self.cex is not None:
13524
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13525
      self.cex.write(oprot)
13526
      oprot.writeFieldEnd()
13527
    oprot.writeFieldStop()
13528
    oprot.writeStructEnd()
13529
 
13530
  def validate(self):
13531
    return
13532
 
13533
 
13534
  def __repr__(self):
13535
    L = ['%s=%r' % (key, value)
13536
      for key, value in self.__dict__.iteritems()]
13537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13538
 
13539
  def __eq__(self, other):
13540
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13541
 
13542
  def __ne__(self, other):
13543
    return not (self == other)
13544
 
13545
class getClearanceSaleCatalogIds_args:
13546
 
13547
  thrift_spec = (
13548
  )
13549
 
13550
  def read(self, iprot):
13551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13553
      return
13554
    iprot.readStructBegin()
13555
    while True:
13556
      (fname, ftype, fid) = iprot.readFieldBegin()
13557
      if ftype == TType.STOP:
13558
        break
13559
      else:
13560
        iprot.skip(ftype)
13561
      iprot.readFieldEnd()
13562
    iprot.readStructEnd()
13563
 
13564
  def write(self, oprot):
13565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13567
      return
13568
    oprot.writeStructBegin('getClearanceSaleCatalogIds_args')
13569
    oprot.writeFieldStop()
13570
    oprot.writeStructEnd()
13571
 
13572
  def validate(self):
13573
    return
13574
 
13575
 
13576
  def __repr__(self):
13577
    L = ['%s=%r' % (key, value)
13578
      for key, value in self.__dict__.iteritems()]
13579
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13580
 
13581
  def __eq__(self, other):
13582
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13583
 
13584
  def __ne__(self, other):
13585
    return not (self == other)
13586
 
13587
class getClearanceSaleCatalogIds_result:
13588
  """
13589
  Attributes:
13590
   - success
13591
   - cex
13592
  """
13593
 
13594
  thrift_spec = (
13595
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13596
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13597
  )
13598
 
13599
  def __init__(self, success=None, cex=None,):
13600
    self.success = success
13601
    self.cex = cex
13602
 
13603
  def read(self, iprot):
13604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13606
      return
13607
    iprot.readStructBegin()
13608
    while True:
13609
      (fname, ftype, fid) = iprot.readFieldBegin()
13610
      if ftype == TType.STOP:
13611
        break
13612
      if fid == 0:
13613
        if ftype == TType.LIST:
13614
          self.success = []
6850 kshitij.so 13615
          (_etype273, _size270) = iprot.readListBegin()
13616
          for _i274 in xrange(_size270):
13617
            _elem275 = iprot.readI64();
13618
            self.success.append(_elem275)
5944 mandeep.dh 13619
          iprot.readListEnd()
13620
        else:
13621
          iprot.skip(ftype)
13622
      elif fid == 1:
13623
        if ftype == TType.STRUCT:
13624
          self.cex = CatalogServiceException()
13625
          self.cex.read(iprot)
13626
        else:
13627
          iprot.skip(ftype)
13628
      else:
13629
        iprot.skip(ftype)
13630
      iprot.readFieldEnd()
13631
    iprot.readStructEnd()
13632
 
13633
  def write(self, oprot):
13634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13636
      return
13637
    oprot.writeStructBegin('getClearanceSaleCatalogIds_result')
13638
    if self.success is not None:
13639
      oprot.writeFieldBegin('success', TType.LIST, 0)
13640
      oprot.writeListBegin(TType.I64, len(self.success))
6850 kshitij.so 13641
      for iter276 in self.success:
13642
        oprot.writeI64(iter276)
5944 mandeep.dh 13643
      oprot.writeListEnd()
13644
      oprot.writeFieldEnd()
13645
    if self.cex is not None:
13646
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13647
      self.cex.write(oprot)
13648
      oprot.writeFieldEnd()
13649
    oprot.writeFieldStop()
13650
    oprot.writeStructEnd()
13651
 
13652
  def validate(self):
13653
    return
13654
 
13655
 
13656
  def __repr__(self):
13657
    L = ['%s=%r' % (key, value)
13658
      for key, value in self.__dict__.iteritems()]
13659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13660
 
13661
  def __eq__(self, other):
13662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13663
 
13664
  def __ne__(self, other):
13665
    return not (self == other)
13666
 
13667
class addupdateVoucherForItem_args:
13668
  """
13669
  Attributes:
13670
   - catalog_item_id
13671
   - voucherType
13672
   - voucherAmount
13673
  """
13674
 
13675
  thrift_spec = (
13676
    None, # 0
13677
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13678
    (2, TType.I64, 'voucherType', None, None, ), # 2
13679
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
13680
  )
13681
 
13682
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
13683
    self.catalog_item_id = catalog_item_id
13684
    self.voucherType = voucherType
13685
    self.voucherAmount = voucherAmount
13686
 
13687
  def read(self, iprot):
13688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13690
      return
13691
    iprot.readStructBegin()
13692
    while True:
13693
      (fname, ftype, fid) = iprot.readFieldBegin()
13694
      if ftype == TType.STOP:
13695
        break
13696
      if fid == 1:
13697
        if ftype == TType.I64:
13698
          self.catalog_item_id = iprot.readI64();
13699
        else:
13700
          iprot.skip(ftype)
13701
      elif fid == 2:
13702
        if ftype == TType.I64:
13703
          self.voucherType = iprot.readI64();
13704
        else:
13705
          iprot.skip(ftype)
13706
      elif fid == 3:
13707
        if ftype == TType.I64:
13708
          self.voucherAmount = iprot.readI64();
13709
        else:
13710
          iprot.skip(ftype)
13711
      else:
13712
        iprot.skip(ftype)
13713
      iprot.readFieldEnd()
13714
    iprot.readStructEnd()
13715
 
13716
  def write(self, oprot):
13717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13719
      return
13720
    oprot.writeStructBegin('addupdateVoucherForItem_args')
13721
    if self.catalog_item_id is not None:
13722
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13723
      oprot.writeI64(self.catalog_item_id)
13724
      oprot.writeFieldEnd()
13725
    if self.voucherType is not None:
13726
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13727
      oprot.writeI64(self.voucherType)
13728
      oprot.writeFieldEnd()
13729
    if self.voucherAmount is not None:
13730
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
13731
      oprot.writeI64(self.voucherAmount)
13732
      oprot.writeFieldEnd()
13733
    oprot.writeFieldStop()
13734
    oprot.writeStructEnd()
13735
 
13736
  def validate(self):
13737
    return
13738
 
13739
 
13740
  def __repr__(self):
13741
    L = ['%s=%r' % (key, value)
13742
      for key, value in self.__dict__.iteritems()]
13743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13744
 
13745
  def __eq__(self, other):
13746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13747
 
13748
  def __ne__(self, other):
13749
    return not (self == other)
13750
 
13751
class addupdateVoucherForItem_result:
13752
  """
13753
  Attributes:
13754
   - success
13755
   - cex
13756
  """
13757
 
13758
  thrift_spec = (
13759
    (0, TType.BOOL, 'success', None, None, ), # 0
13760
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13761
  )
13762
 
13763
  def __init__(self, success=None, cex=None,):
13764
    self.success = success
13765
    self.cex = cex
13766
 
13767
  def read(self, iprot):
13768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13770
      return
13771
    iprot.readStructBegin()
13772
    while True:
13773
      (fname, ftype, fid) = iprot.readFieldBegin()
13774
      if ftype == TType.STOP:
13775
        break
13776
      if fid == 0:
13777
        if ftype == TType.BOOL:
13778
          self.success = iprot.readBool();
13779
        else:
13780
          iprot.skip(ftype)
13781
      elif fid == 1:
13782
        if ftype == TType.STRUCT:
13783
          self.cex = CatalogServiceException()
13784
          self.cex.read(iprot)
13785
        else:
13786
          iprot.skip(ftype)
13787
      else:
13788
        iprot.skip(ftype)
13789
      iprot.readFieldEnd()
13790
    iprot.readStructEnd()
13791
 
13792
  def write(self, oprot):
13793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13795
      return
13796
    oprot.writeStructBegin('addupdateVoucherForItem_result')
13797
    if self.success is not None:
13798
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13799
      oprot.writeBool(self.success)
13800
      oprot.writeFieldEnd()
13801
    if self.cex is not None:
13802
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13803
      self.cex.write(oprot)
13804
      oprot.writeFieldEnd()
13805
    oprot.writeFieldStop()
13806
    oprot.writeStructEnd()
13807
 
13808
  def validate(self):
13809
    return
13810
 
13811
 
13812
  def __repr__(self):
13813
    L = ['%s=%r' % (key, value)
13814
      for key, value in self.__dict__.iteritems()]
13815
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13816
 
13817
  def __eq__(self, other):
13818
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13819
 
13820
  def __ne__(self, other):
13821
    return not (self == other)
13822
 
13823
class deleteVoucherForItem_args:
13824
  """
13825
  Attributes:
13826
   - catalog_item_id
13827
   - voucherType
13828
  """
13829
 
13830
  thrift_spec = (
13831
    None, # 0
13832
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13833
    (2, TType.I64, 'voucherType', None, None, ), # 2
13834
  )
13835
 
13836
  def __init__(self, catalog_item_id=None, voucherType=None,):
13837
    self.catalog_item_id = catalog_item_id
13838
    self.voucherType = voucherType
13839
 
13840
  def read(self, iprot):
13841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13843
      return
13844
    iprot.readStructBegin()
13845
    while True:
13846
      (fname, ftype, fid) = iprot.readFieldBegin()
13847
      if ftype == TType.STOP:
13848
        break
13849
      if fid == 1:
13850
        if ftype == TType.I64:
13851
          self.catalog_item_id = iprot.readI64();
13852
        else:
13853
          iprot.skip(ftype)
13854
      elif fid == 2:
13855
        if ftype == TType.I64:
13856
          self.voucherType = iprot.readI64();
13857
        else:
13858
          iprot.skip(ftype)
13859
      else:
13860
        iprot.skip(ftype)
13861
      iprot.readFieldEnd()
13862
    iprot.readStructEnd()
13863
 
13864
  def write(self, oprot):
13865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13867
      return
13868
    oprot.writeStructBegin('deleteVoucherForItem_args')
13869
    if self.catalog_item_id is not None:
13870
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13871
      oprot.writeI64(self.catalog_item_id)
13872
      oprot.writeFieldEnd()
13873
    if self.voucherType is not None:
13874
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13875
      oprot.writeI64(self.voucherType)
13876
      oprot.writeFieldEnd()
13877
    oprot.writeFieldStop()
13878
    oprot.writeStructEnd()
13879
 
13880
  def validate(self):
13881
    return
13882
 
13883
 
13884
  def __repr__(self):
13885
    L = ['%s=%r' % (key, value)
13886
      for key, value in self.__dict__.iteritems()]
13887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13888
 
13889
  def __eq__(self, other):
13890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13891
 
13892
  def __ne__(self, other):
13893
    return not (self == other)
13894
 
13895
class deleteVoucherForItem_result:
13896
  """
13897
  Attributes:
13898
   - success
13899
   - cex
13900
  """
13901
 
13902
  thrift_spec = (
13903
    (0, TType.BOOL, 'success', None, None, ), # 0
13904
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13905
  )
13906
 
13907
  def __init__(self, success=None, cex=None,):
13908
    self.success = success
13909
    self.cex = cex
13910
 
13911
  def read(self, iprot):
13912
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13913
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13914
      return
13915
    iprot.readStructBegin()
13916
    while True:
13917
      (fname, ftype, fid) = iprot.readFieldBegin()
13918
      if ftype == TType.STOP:
13919
        break
13920
      if fid == 0:
13921
        if ftype == TType.BOOL:
13922
          self.success = iprot.readBool();
13923
        else:
13924
          iprot.skip(ftype)
13925
      elif fid == 1:
13926
        if ftype == TType.STRUCT:
13927
          self.cex = CatalogServiceException()
13928
          self.cex.read(iprot)
13929
        else:
13930
          iprot.skip(ftype)
13931
      else:
13932
        iprot.skip(ftype)
13933
      iprot.readFieldEnd()
13934
    iprot.readStructEnd()
13935
 
13936
  def write(self, oprot):
13937
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13938
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13939
      return
13940
    oprot.writeStructBegin('deleteVoucherForItem_result')
13941
    if self.success is not None:
13942
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13943
      oprot.writeBool(self.success)
13944
      oprot.writeFieldEnd()
13945
    if self.cex is not None:
13946
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13947
      self.cex.write(oprot)
13948
      oprot.writeFieldEnd()
13949
    oprot.writeFieldStop()
13950
    oprot.writeStructEnd()
13951
 
13952
  def validate(self):
13953
    return
13954
 
13955
 
13956
  def __repr__(self):
13957
    L = ['%s=%r' % (key, value)
13958
      for key, value in self.__dict__.iteritems()]
13959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13960
 
13961
  def __eq__(self, other):
13962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13963
 
13964
  def __ne__(self, other):
13965
    return not (self == other)
13966
 
13967
class getVoucherAmount_args:
13968
  """
13969
  Attributes:
13970
   - itemId
13971
   - voucherType
13972
  """
13973
 
13974
  thrift_spec = (
13975
    None, # 0
13976
    (1, TType.I64, 'itemId', None, None, ), # 1
13977
    (2, TType.I64, 'voucherType', None, None, ), # 2
13978
  )
13979
 
13980
  def __init__(self, itemId=None, voucherType=None,):
13981
    self.itemId = itemId
13982
    self.voucherType = voucherType
13983
 
13984
  def read(self, iprot):
13985
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13986
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13987
      return
13988
    iprot.readStructBegin()
13989
    while True:
13990
      (fname, ftype, fid) = iprot.readFieldBegin()
13991
      if ftype == TType.STOP:
13992
        break
13993
      if fid == 1:
13994
        if ftype == TType.I64:
13995
          self.itemId = iprot.readI64();
13996
        else:
13997
          iprot.skip(ftype)
13998
      elif fid == 2:
13999
        if ftype == TType.I64:
14000
          self.voucherType = iprot.readI64();
14001
        else:
14002
          iprot.skip(ftype)
14003
      else:
14004
        iprot.skip(ftype)
14005
      iprot.readFieldEnd()
14006
    iprot.readStructEnd()
14007
 
14008
  def write(self, oprot):
14009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14011
      return
14012
    oprot.writeStructBegin('getVoucherAmount_args')
14013
    if self.itemId is not None:
14014
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14015
      oprot.writeI64(self.itemId)
14016
      oprot.writeFieldEnd()
14017
    if self.voucherType is not None:
14018
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
14019
      oprot.writeI64(self.voucherType)
14020
      oprot.writeFieldEnd()
14021
    oprot.writeFieldStop()
14022
    oprot.writeStructEnd()
14023
 
14024
  def validate(self):
14025
    return
14026
 
14027
 
14028
  def __repr__(self):
14029
    L = ['%s=%r' % (key, value)
14030
      for key, value in self.__dict__.iteritems()]
14031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14032
 
14033
  def __eq__(self, other):
14034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14035
 
14036
  def __ne__(self, other):
14037
    return not (self == other)
14038
 
14039
class getVoucherAmount_result:
14040
  """
14041
  Attributes:
14042
   - success
14043
  """
14044
 
14045
  thrift_spec = (
14046
    (0, TType.I64, 'success', None, None, ), # 0
14047
  )
14048
 
14049
  def __init__(self, success=None,):
14050
    self.success = success
14051
 
14052
  def read(self, iprot):
14053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14055
      return
14056
    iprot.readStructBegin()
14057
    while True:
14058
      (fname, ftype, fid) = iprot.readFieldBegin()
14059
      if ftype == TType.STOP:
14060
        break
14061
      if fid == 0:
14062
        if ftype == TType.I64:
14063
          self.success = iprot.readI64();
14064
        else:
14065
          iprot.skip(ftype)
14066
      else:
14067
        iprot.skip(ftype)
14068
      iprot.readFieldEnd()
14069
    iprot.readStructEnd()
14070
 
14071
  def write(self, oprot):
14072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14074
      return
14075
    oprot.writeStructBegin('getVoucherAmount_result')
14076
    if self.success is not None:
14077
      oprot.writeFieldBegin('success', TType.I64, 0)
14078
      oprot.writeI64(self.success)
14079
      oprot.writeFieldEnd()
14080
    oprot.writeFieldStop()
14081
    oprot.writeStructEnd()
14082
 
14083
  def validate(self):
14084
    return
14085
 
14086
 
14087
  def __repr__(self):
14088
    L = ['%s=%r' % (key, value)
14089
      for key, value in self.__dict__.iteritems()]
14090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14091
 
14092
  def __eq__(self, other):
14093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14094
 
14095
  def __ne__(self, other):
14096
    return not (self == other)
14097
 
14098
class getAllItemVouchers_args:
14099
  """
14100
  Attributes:
14101
   - itemId
14102
  """
14103
 
14104
  thrift_spec = (
14105
    None, # 0
14106
    (1, TType.I64, 'itemId', None, None, ), # 1
14107
  )
14108
 
14109
  def __init__(self, itemId=None,):
14110
    self.itemId = itemId
14111
 
14112
  def read(self, iprot):
14113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14115
      return
14116
    iprot.readStructBegin()
14117
    while True:
14118
      (fname, ftype, fid) = iprot.readFieldBegin()
14119
      if ftype == TType.STOP:
14120
        break
14121
      if fid == 1:
14122
        if ftype == TType.I64:
14123
          self.itemId = iprot.readI64();
14124
        else:
14125
          iprot.skip(ftype)
14126
      else:
14127
        iprot.skip(ftype)
14128
      iprot.readFieldEnd()
14129
    iprot.readStructEnd()
14130
 
14131
  def write(self, oprot):
14132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14134
      return
14135
    oprot.writeStructBegin('getAllItemVouchers_args')
14136
    if self.itemId is not None:
14137
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14138
      oprot.writeI64(self.itemId)
14139
      oprot.writeFieldEnd()
14140
    oprot.writeFieldStop()
14141
    oprot.writeStructEnd()
14142
 
14143
  def validate(self):
14144
    return
14145
 
14146
 
14147
  def __repr__(self):
14148
    L = ['%s=%r' % (key, value)
14149
      for key, value in self.__dict__.iteritems()]
14150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14151
 
14152
  def __eq__(self, other):
14153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14154
 
14155
  def __ne__(self, other):
14156
    return not (self == other)
14157
 
14158
class getAllItemVouchers_result:
14159
  """
14160
  Attributes:
14161
   - success
14162
  """
14163
 
14164
  thrift_spec = (
14165
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
14166
  )
14167
 
14168
  def __init__(self, success=None,):
14169
    self.success = success
14170
 
14171
  def read(self, iprot):
14172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14174
      return
14175
    iprot.readStructBegin()
14176
    while True:
14177
      (fname, ftype, fid) = iprot.readFieldBegin()
14178
      if ftype == TType.STOP:
14179
        break
14180
      if fid == 0:
14181
        if ftype == TType.LIST:
14182
          self.success = []
6850 kshitij.so 14183
          (_etype280, _size277) = iprot.readListBegin()
14184
          for _i281 in xrange(_size277):
14185
            _elem282 = VoucherItemMapping()
14186
            _elem282.read(iprot)
14187
            self.success.append(_elem282)
5944 mandeep.dh 14188
          iprot.readListEnd()
14189
        else:
14190
          iprot.skip(ftype)
14191
      else:
14192
        iprot.skip(ftype)
14193
      iprot.readFieldEnd()
14194
    iprot.readStructEnd()
14195
 
14196
  def write(self, oprot):
14197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14199
      return
14200
    oprot.writeStructBegin('getAllItemVouchers_result')
14201
    if self.success is not None:
14202
      oprot.writeFieldBegin('success', TType.LIST, 0)
14203
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14204
      for iter283 in self.success:
14205
        iter283.write(oprot)
5944 mandeep.dh 14206
      oprot.writeListEnd()
14207
      oprot.writeFieldEnd()
14208
    oprot.writeFieldStop()
14209
    oprot.writeStructEnd()
14210
 
14211
  def validate(self):
14212
    return
14213
 
14214
 
14215
  def __repr__(self):
14216
    L = ['%s=%r' % (key, value)
14217
      for key, value in self.__dict__.iteritems()]
14218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14219
 
14220
  def __eq__(self, other):
14221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14222
 
14223
  def __ne__(self, other):
14224
    return not (self == other)
14225
 
14226
class isValidCatalogItemId_args:
14227
  """
14228
  Attributes:
14229
   - catalog_item_id
14230
  """
14231
 
14232
  thrift_spec = (
14233
    None, # 0
14234
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
14235
  )
14236
 
14237
  def __init__(self, catalog_item_id=None,):
14238
    self.catalog_item_id = catalog_item_id
14239
 
14240
  def read(self, iprot):
14241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14243
      return
14244
    iprot.readStructBegin()
14245
    while True:
14246
      (fname, ftype, fid) = iprot.readFieldBegin()
14247
      if ftype == TType.STOP:
14248
        break
14249
      if fid == 1:
14250
        if ftype == TType.I64:
14251
          self.catalog_item_id = iprot.readI64();
14252
        else:
14253
          iprot.skip(ftype)
14254
      else:
14255
        iprot.skip(ftype)
14256
      iprot.readFieldEnd()
14257
    iprot.readStructEnd()
14258
 
14259
  def write(self, oprot):
14260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14262
      return
14263
    oprot.writeStructBegin('isValidCatalogItemId_args')
14264
    if self.catalog_item_id is not None:
14265
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
14266
      oprot.writeI64(self.catalog_item_id)
14267
      oprot.writeFieldEnd()
14268
    oprot.writeFieldStop()
14269
    oprot.writeStructEnd()
14270
 
14271
  def validate(self):
14272
    return
14273
 
14274
 
14275
  def __repr__(self):
14276
    L = ['%s=%r' % (key, value)
14277
      for key, value in self.__dict__.iteritems()]
14278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14279
 
14280
  def __eq__(self, other):
14281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14282
 
14283
  def __ne__(self, other):
14284
    return not (self == other)
14285
 
14286
class isValidCatalogItemId_result:
14287
  """
14288
  Attributes:
14289
   - success
14290
  """
14291
 
14292
  thrift_spec = (
14293
    (0, TType.BOOL, 'success', None, None, ), # 0
14294
  )
14295
 
14296
  def __init__(self, success=None,):
14297
    self.success = success
14298
 
14299
  def read(self, iprot):
14300
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14301
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14302
      return
14303
    iprot.readStructBegin()
14304
    while True:
14305
      (fname, ftype, fid) = iprot.readFieldBegin()
14306
      if ftype == TType.STOP:
14307
        break
14308
      if fid == 0:
14309
        if ftype == TType.BOOL:
14310
          self.success = iprot.readBool();
14311
        else:
14312
          iprot.skip(ftype)
14313
      else:
14314
        iprot.skip(ftype)
14315
      iprot.readFieldEnd()
14316
    iprot.readStructEnd()
14317
 
14318
  def write(self, oprot):
14319
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14320
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14321
      return
14322
    oprot.writeStructBegin('isValidCatalogItemId_result')
14323
    if self.success is not None:
14324
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14325
      oprot.writeBool(self.success)
14326
      oprot.writeFieldEnd()
14327
    oprot.writeFieldStop()
14328
    oprot.writeStructEnd()
14329
 
14330
  def validate(self):
14331
    return
14332
 
14333
 
14334
  def __repr__(self):
14335
    L = ['%s=%r' % (key, value)
14336
      for key, value in self.__dict__.iteritems()]
14337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14338
 
14339
  def __eq__(self, other):
14340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14341
 
14342
  def __ne__(self, other):
14343
    return not (self == other)
6039 amit.gupta 14344
 
14345
class getVatPercentageForItem_args:
14346
  """
14347
  Attributes:
14348
   - itemId
14349
   - price
14350
  """
14351
 
14352
  thrift_spec = (
14353
    None, # 0
14354
    (1, TType.I64, 'itemId', None, None, ), # 1
14355
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14356
  )
14357
 
14358
  def __init__(self, itemId=None, price=None,):
14359
    self.itemId = itemId
14360
    self.price = price
14361
 
14362
  def read(self, iprot):
14363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14365
      return
14366
    iprot.readStructBegin()
14367
    while True:
14368
      (fname, ftype, fid) = iprot.readFieldBegin()
14369
      if ftype == TType.STOP:
14370
        break
14371
      if fid == 1:
14372
        if ftype == TType.I64:
14373
          self.itemId = iprot.readI64();
14374
        else:
14375
          iprot.skip(ftype)
14376
      elif fid == 2:
14377
        if ftype == TType.DOUBLE:
14378
          self.price = iprot.readDouble();
14379
        else:
14380
          iprot.skip(ftype)
14381
      else:
14382
        iprot.skip(ftype)
14383
      iprot.readFieldEnd()
14384
    iprot.readStructEnd()
14385
 
14386
  def write(self, oprot):
14387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14389
      return
14390
    oprot.writeStructBegin('getVatPercentageForItem_args')
14391
    if self.itemId is not None:
14392
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14393
      oprot.writeI64(self.itemId)
14394
      oprot.writeFieldEnd()
14395
    if self.price is not None:
14396
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14397
      oprot.writeDouble(self.price)
14398
      oprot.writeFieldEnd()
14399
    oprot.writeFieldStop()
14400
    oprot.writeStructEnd()
14401
 
14402
  def validate(self):
14403
    return
14404
 
14405
 
14406
  def __repr__(self):
14407
    L = ['%s=%r' % (key, value)
14408
      for key, value in self.__dict__.iteritems()]
14409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14410
 
14411
  def __eq__(self, other):
14412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14413
 
14414
  def __ne__(self, other):
14415
    return not (self == other)
14416
 
14417
class getVatPercentageForItem_result:
14418
  """
14419
  Attributes:
14420
   - success
14421
  """
14422
 
14423
  thrift_spec = (
14424
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14425
  )
14426
 
14427
  def __init__(self, success=None,):
14428
    self.success = success
14429
 
14430
  def read(self, iprot):
14431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14433
      return
14434
    iprot.readStructBegin()
14435
    while True:
14436
      (fname, ftype, fid) = iprot.readFieldBegin()
14437
      if ftype == TType.STOP:
14438
        break
14439
      if fid == 0:
14440
        if ftype == TType.DOUBLE:
14441
          self.success = iprot.readDouble();
14442
        else:
14443
          iprot.skip(ftype)
14444
      else:
14445
        iprot.skip(ftype)
14446
      iprot.readFieldEnd()
14447
    iprot.readStructEnd()
14448
 
14449
  def write(self, oprot):
14450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14452
      return
14453
    oprot.writeStructBegin('getVatPercentageForItem_result')
14454
    if self.success is not None:
14455
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14456
      oprot.writeDouble(self.success)
14457
      oprot.writeFieldEnd()
14458
    oprot.writeFieldStop()
14459
    oprot.writeStructEnd()
14460
 
14461
  def validate(self):
14462
    return
14463
 
14464
 
14465
  def __repr__(self):
14466
    L = ['%s=%r' % (key, value)
14467
      for key, value in self.__dict__.iteritems()]
14468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14469
 
14470
  def __eq__(self, other):
14471
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14472
 
14473
  def __ne__(self, other):
14474
    return not (self == other)
14475
 
14476
class getVatAmountForItem_args:
14477
  """
14478
  Attributes:
14479
   - itemId
14480
   - price
14481
  """
14482
 
14483
  thrift_spec = (
14484
    None, # 0
14485
    (1, TType.I64, 'itemId', None, None, ), # 1
14486
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14487
  )
14488
 
14489
  def __init__(self, itemId=None, price=None,):
14490
    self.itemId = itemId
14491
    self.price = price
14492
 
14493
  def read(self, iprot):
14494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14496
      return
14497
    iprot.readStructBegin()
14498
    while True:
14499
      (fname, ftype, fid) = iprot.readFieldBegin()
14500
      if ftype == TType.STOP:
14501
        break
14502
      if fid == 1:
14503
        if ftype == TType.I64:
14504
          self.itemId = iprot.readI64();
14505
        else:
14506
          iprot.skip(ftype)
14507
      elif fid == 2:
14508
        if ftype == TType.DOUBLE:
14509
          self.price = iprot.readDouble();
14510
        else:
14511
          iprot.skip(ftype)
14512
      else:
14513
        iprot.skip(ftype)
14514
      iprot.readFieldEnd()
14515
    iprot.readStructEnd()
14516
 
14517
  def write(self, oprot):
14518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14520
      return
14521
    oprot.writeStructBegin('getVatAmountForItem_args')
14522
    if self.itemId is not None:
14523
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14524
      oprot.writeI64(self.itemId)
14525
      oprot.writeFieldEnd()
14526
    if self.price is not None:
14527
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14528
      oprot.writeDouble(self.price)
14529
      oprot.writeFieldEnd()
14530
    oprot.writeFieldStop()
14531
    oprot.writeStructEnd()
14532
 
14533
  def validate(self):
14534
    return
14535
 
14536
 
14537
  def __repr__(self):
14538
    L = ['%s=%r' % (key, value)
14539
      for key, value in self.__dict__.iteritems()]
14540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14541
 
14542
  def __eq__(self, other):
14543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14544
 
14545
  def __ne__(self, other):
14546
    return not (self == other)
14547
 
14548
class getVatAmountForItem_result:
14549
  """
14550
  Attributes:
14551
   - success
14552
  """
14553
 
14554
  thrift_spec = (
14555
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14556
  )
14557
 
14558
  def __init__(self, success=None,):
14559
    self.success = success
14560
 
14561
  def read(self, iprot):
14562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14564
      return
14565
    iprot.readStructBegin()
14566
    while True:
14567
      (fname, ftype, fid) = iprot.readFieldBegin()
14568
      if ftype == TType.STOP:
14569
        break
14570
      if fid == 0:
14571
        if ftype == TType.DOUBLE:
14572
          self.success = iprot.readDouble();
14573
        else:
14574
          iprot.skip(ftype)
14575
      else:
14576
        iprot.skip(ftype)
14577
      iprot.readFieldEnd()
14578
    iprot.readStructEnd()
14579
 
14580
  def write(self, oprot):
14581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14583
      return
14584
    oprot.writeStructBegin('getVatAmountForItem_result')
14585
    if self.success is not None:
14586
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14587
      oprot.writeDouble(self.success)
14588
      oprot.writeFieldEnd()
14589
    oprot.writeFieldStop()
14590
    oprot.writeStructEnd()
14591
 
14592
  def validate(self):
14593
    return
14594
 
14595
 
14596
  def __repr__(self):
14597
    L = ['%s=%r' % (key, value)
14598
      for key, value in self.__dict__.iteritems()]
14599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14600
 
14601
  def __eq__(self, other):
14602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14603
 
14604
  def __ne__(self, other):
14605
    return not (self == other)
6531 vikram.rag 14606
 
14607
class getAllIgnoredInventoryUpdateItemsList_args:
14608
  """
14609
  Attributes:
14610
   - offset
14611
   - limit
14612
  """
14613
 
14614
  thrift_spec = (
14615
    None, # 0
14616
    (1, TType.I32, 'offset', None, None, ), # 1
14617
    (2, TType.I32, 'limit', None, None, ), # 2
14618
  )
14619
 
14620
  def __init__(self, offset=None, limit=None,):
14621
    self.offset = offset
14622
    self.limit = limit
14623
 
14624
  def read(self, iprot):
14625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14627
      return
14628
    iprot.readStructBegin()
14629
    while True:
14630
      (fname, ftype, fid) = iprot.readFieldBegin()
14631
      if ftype == TType.STOP:
14632
        break
14633
      if fid == 1:
14634
        if ftype == TType.I32:
14635
          self.offset = iprot.readI32();
14636
        else:
14637
          iprot.skip(ftype)
14638
      elif fid == 2:
14639
        if ftype == TType.I32:
14640
          self.limit = iprot.readI32();
14641
        else:
14642
          iprot.skip(ftype)
14643
      else:
14644
        iprot.skip(ftype)
14645
      iprot.readFieldEnd()
14646
    iprot.readStructEnd()
14647
 
14648
  def write(self, oprot):
14649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14651
      return
14652
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
14653
    if self.offset is not None:
14654
      oprot.writeFieldBegin('offset', TType.I32, 1)
14655
      oprot.writeI32(self.offset)
14656
      oprot.writeFieldEnd()
14657
    if self.limit is not None:
14658
      oprot.writeFieldBegin('limit', TType.I32, 2)
14659
      oprot.writeI32(self.limit)
14660
      oprot.writeFieldEnd()
14661
    oprot.writeFieldStop()
14662
    oprot.writeStructEnd()
14663
 
14664
  def validate(self):
14665
    return
14666
 
14667
 
14668
  def __repr__(self):
14669
    L = ['%s=%r' % (key, value)
14670
      for key, value in self.__dict__.iteritems()]
14671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14672
 
14673
  def __eq__(self, other):
14674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14675
 
14676
  def __ne__(self, other):
14677
    return not (self == other)
14678
 
14679
class getAllIgnoredInventoryUpdateItemsList_result:
14680
  """
14681
  Attributes:
14682
   - success
14683
  """
14684
 
14685
  thrift_spec = (
14686
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14687
  )
14688
 
14689
  def __init__(self, success=None,):
14690
    self.success = success
14691
 
14692
  def read(self, iprot):
14693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14695
      return
14696
    iprot.readStructBegin()
14697
    while True:
14698
      (fname, ftype, fid) = iprot.readFieldBegin()
14699
      if ftype == TType.STOP:
14700
        break
14701
      if fid == 0:
14702
        if ftype == TType.LIST:
14703
          self.success = []
6850 kshitij.so 14704
          (_etype287, _size284) = iprot.readListBegin()
14705
          for _i288 in xrange(_size284):
14706
            _elem289 = Item()
14707
            _elem289.read(iprot)
14708
            self.success.append(_elem289)
6531 vikram.rag 14709
          iprot.readListEnd()
14710
        else:
14711
          iprot.skip(ftype)
14712
      else:
14713
        iprot.skip(ftype)
14714
      iprot.readFieldEnd()
14715
    iprot.readStructEnd()
14716
 
14717
  def write(self, oprot):
14718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14720
      return
14721
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
14722
    if self.success is not None:
14723
      oprot.writeFieldBegin('success', TType.LIST, 0)
14724
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14725
      for iter290 in self.success:
14726
        iter290.write(oprot)
6531 vikram.rag 14727
      oprot.writeListEnd()
14728
      oprot.writeFieldEnd()
14729
    oprot.writeFieldStop()
14730
    oprot.writeStructEnd()
14731
 
14732
  def validate(self):
14733
    return
14734
 
14735
 
14736
  def __repr__(self):
14737
    L = ['%s=%r' % (key, value)
14738
      for key, value in self.__dict__.iteritems()]
14739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14740
 
14741
  def __eq__(self, other):
14742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14743
 
14744
  def __ne__(self, other):
14745
    return not (self == other)
6805 anupam.sin 14746
 
6821 amar.kumar 14747
class getAllAliveItems_args:
14748
 
14749
  thrift_spec = (
14750
  )
14751
 
14752
  def read(self, iprot):
14753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14755
      return
14756
    iprot.readStructBegin()
14757
    while True:
14758
      (fname, ftype, fid) = iprot.readFieldBegin()
14759
      if ftype == TType.STOP:
14760
        break
14761
      else:
14762
        iprot.skip(ftype)
14763
      iprot.readFieldEnd()
14764
    iprot.readStructEnd()
14765
 
14766
  def write(self, oprot):
14767
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14768
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14769
      return
14770
    oprot.writeStructBegin('getAllAliveItems_args')
14771
    oprot.writeFieldStop()
14772
    oprot.writeStructEnd()
14773
 
14774
  def validate(self):
14775
    return
14776
 
14777
 
14778
  def __repr__(self):
14779
    L = ['%s=%r' % (key, value)
14780
      for key, value in self.__dict__.iteritems()]
14781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14782
 
14783
  def __eq__(self, other):
14784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14785
 
14786
  def __ne__(self, other):
14787
    return not (self == other)
14788
 
14789
class getAllAliveItems_result:
14790
  """
14791
  Attributes:
14792
   - success
14793
  """
14794
 
14795
  thrift_spec = (
14796
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14797
  )
14798
 
14799
  def __init__(self, success=None,):
14800
    self.success = success
14801
 
14802
  def read(self, iprot):
14803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14805
      return
14806
    iprot.readStructBegin()
14807
    while True:
14808
      (fname, ftype, fid) = iprot.readFieldBegin()
14809
      if ftype == TType.STOP:
14810
        break
14811
      if fid == 0:
14812
        if ftype == TType.LIST:
14813
          self.success = []
6850 kshitij.so 14814
          (_etype294, _size291) = iprot.readListBegin()
14815
          for _i295 in xrange(_size291):
14816
            _elem296 = Item()
14817
            _elem296.read(iprot)
14818
            self.success.append(_elem296)
6821 amar.kumar 14819
          iprot.readListEnd()
14820
        else:
14821
          iprot.skip(ftype)
14822
      else:
14823
        iprot.skip(ftype)
14824
      iprot.readFieldEnd()
14825
    iprot.readStructEnd()
14826
 
14827
  def write(self, oprot):
14828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14830
      return
14831
    oprot.writeStructBegin('getAllAliveItems_result')
14832
    if self.success is not None:
14833
      oprot.writeFieldBegin('success', TType.LIST, 0)
14834
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14835
      for iter297 in self.success:
14836
        iter297.write(oprot)
6821 amar.kumar 14837
      oprot.writeListEnd()
14838
      oprot.writeFieldEnd()
14839
    oprot.writeFieldStop()
14840
    oprot.writeStructEnd()
14841
 
14842
  def validate(self):
14843
    return
14844
 
14845
 
14846
  def __repr__(self):
14847
    L = ['%s=%r' % (key, value)
14848
      for key, value in self.__dict__.iteritems()]
14849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14850
 
14851
  def __eq__(self, other):
14852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14853
 
14854
  def __ne__(self, other):
14855
    return not (self == other)
14856
 
6805 anupam.sin 14857
class getInsuranceAmount_args:
14858
  """
14859
  Attributes:
14860
   - itemId
6921 anupam.sin 14861
   - price
6805 anupam.sin 14862
   - insurerId
14863
   - quantity
14864
  """
14865
 
14866
  thrift_spec = (
14867
    None, # 0
14868
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 14869
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14870
    (3, TType.I64, 'insurerId', None, None, ), # 3
14871
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 14872
  )
14873
 
6921 anupam.sin 14874
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 14875
    self.itemId = itemId
6921 anupam.sin 14876
    self.price = price
6805 anupam.sin 14877
    self.insurerId = insurerId
14878
    self.quantity = quantity
14879
 
14880
  def read(self, iprot):
14881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14883
      return
14884
    iprot.readStructBegin()
14885
    while True:
14886
      (fname, ftype, fid) = iprot.readFieldBegin()
14887
      if ftype == TType.STOP:
14888
        break
14889
      if fid == 1:
14890
        if ftype == TType.I64:
14891
          self.itemId = iprot.readI64();
14892
        else:
14893
          iprot.skip(ftype)
14894
      elif fid == 2:
6921 anupam.sin 14895
        if ftype == TType.DOUBLE:
14896
          self.price = iprot.readDouble();
14897
        else:
14898
          iprot.skip(ftype)
14899
      elif fid == 3:
6805 anupam.sin 14900
        if ftype == TType.I64:
14901
          self.insurerId = iprot.readI64();
14902
        else:
14903
          iprot.skip(ftype)
6921 anupam.sin 14904
      elif fid == 4:
6805 anupam.sin 14905
        if ftype == TType.I64:
14906
          self.quantity = iprot.readI64();
14907
        else:
14908
          iprot.skip(ftype)
14909
      else:
14910
        iprot.skip(ftype)
14911
      iprot.readFieldEnd()
14912
    iprot.readStructEnd()
14913
 
14914
  def write(self, oprot):
14915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14917
      return
14918
    oprot.writeStructBegin('getInsuranceAmount_args')
14919
    if self.itemId is not None:
14920
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14921
      oprot.writeI64(self.itemId)
14922
      oprot.writeFieldEnd()
6921 anupam.sin 14923
    if self.price is not None:
14924
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14925
      oprot.writeDouble(self.price)
14926
      oprot.writeFieldEnd()
6805 anupam.sin 14927
    if self.insurerId is not None:
6921 anupam.sin 14928
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 14929
      oprot.writeI64(self.insurerId)
14930
      oprot.writeFieldEnd()
14931
    if self.quantity is not None:
6921 anupam.sin 14932
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 14933
      oprot.writeI64(self.quantity)
14934
      oprot.writeFieldEnd()
14935
    oprot.writeFieldStop()
14936
    oprot.writeStructEnd()
14937
 
14938
  def validate(self):
14939
    return
14940
 
14941
 
14942
  def __repr__(self):
14943
    L = ['%s=%r' % (key, value)
14944
      for key, value in self.__dict__.iteritems()]
14945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14946
 
14947
  def __eq__(self, other):
14948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14949
 
14950
  def __ne__(self, other):
14951
    return not (self == other)
14952
 
14953
class getInsuranceAmount_result:
14954
  """
14955
  Attributes:
14956
   - success
14957
  """
14958
 
14959
  thrift_spec = (
14960
    (0, TType.I64, 'success', None, None, ), # 0
14961
  )
14962
 
14963
  def __init__(self, success=None,):
14964
    self.success = success
14965
 
14966
  def read(self, iprot):
14967
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14968
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14969
      return
14970
    iprot.readStructBegin()
14971
    while True:
14972
      (fname, ftype, fid) = iprot.readFieldBegin()
14973
      if ftype == TType.STOP:
14974
        break
14975
      if fid == 0:
14976
        if ftype == TType.I64:
14977
          self.success = iprot.readI64();
14978
        else:
14979
          iprot.skip(ftype)
14980
      else:
14981
        iprot.skip(ftype)
14982
      iprot.readFieldEnd()
14983
    iprot.readStructEnd()
14984
 
14985
  def write(self, oprot):
14986
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14987
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14988
      return
14989
    oprot.writeStructBegin('getInsuranceAmount_result')
14990
    if self.success is not None:
14991
      oprot.writeFieldBegin('success', TType.I64, 0)
14992
      oprot.writeI64(self.success)
14993
      oprot.writeFieldEnd()
14994
    oprot.writeFieldStop()
14995
    oprot.writeStructEnd()
14996
 
14997
  def validate(self):
14998
    return
14999
 
15000
 
15001
  def __repr__(self):
15002
    L = ['%s=%r' % (key, value)
15003
      for key, value in self.__dict__.iteritems()]
15004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15005
 
15006
  def __eq__(self, other):
15007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15008
 
15009
  def __ne__(self, other):
15010
    return not (self == other)
15011
 
15012
class getInsurer_args:
15013
  """
15014
  Attributes:
15015
   - insurerId
15016
  """
15017
 
15018
  thrift_spec = (
15019
    None, # 0
15020
    (1, TType.I64, 'insurerId', None, None, ), # 1
15021
  )
15022
 
15023
  def __init__(self, insurerId=None,):
15024
    self.insurerId = insurerId
15025
 
15026
  def read(self, iprot):
15027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15029
      return
15030
    iprot.readStructBegin()
15031
    while True:
15032
      (fname, ftype, fid) = iprot.readFieldBegin()
15033
      if ftype == TType.STOP:
15034
        break
15035
      if fid == 1:
15036
        if ftype == TType.I64:
15037
          self.insurerId = iprot.readI64();
15038
        else:
15039
          iprot.skip(ftype)
15040
      else:
15041
        iprot.skip(ftype)
15042
      iprot.readFieldEnd()
15043
    iprot.readStructEnd()
15044
 
15045
  def write(self, oprot):
15046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15048
      return
15049
    oprot.writeStructBegin('getInsurer_args')
15050
    if self.insurerId is not None:
15051
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15052
      oprot.writeI64(self.insurerId)
15053
      oprot.writeFieldEnd()
15054
    oprot.writeFieldStop()
15055
    oprot.writeStructEnd()
15056
 
15057
  def validate(self):
15058
    return
15059
 
15060
 
15061
  def __repr__(self):
15062
    L = ['%s=%r' % (key, value)
15063
      for key, value in self.__dict__.iteritems()]
15064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15065
 
15066
  def __eq__(self, other):
15067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15068
 
15069
  def __ne__(self, other):
15070
    return not (self == other)
15071
 
15072
class getInsurer_result:
15073
  """
15074
  Attributes:
15075
   - success
15076
  """
15077
 
15078
  thrift_spec = (
15079
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
15080
  )
15081
 
15082
  def __init__(self, success=None,):
15083
    self.success = success
15084
 
15085
  def read(self, iprot):
15086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15088
      return
15089
    iprot.readStructBegin()
15090
    while True:
15091
      (fname, ftype, fid) = iprot.readFieldBegin()
15092
      if ftype == TType.STOP:
15093
        break
15094
      if fid == 0:
15095
        if ftype == TType.STRUCT:
15096
          self.success = Insurer()
15097
          self.success.read(iprot)
15098
        else:
15099
          iprot.skip(ftype)
15100
      else:
15101
        iprot.skip(ftype)
15102
      iprot.readFieldEnd()
15103
    iprot.readStructEnd()
15104
 
15105
  def write(self, oprot):
15106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15108
      return
15109
    oprot.writeStructBegin('getInsurer_result')
15110
    if self.success is not None:
15111
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15112
      self.success.write(oprot)
15113
      oprot.writeFieldEnd()
15114
    oprot.writeFieldStop()
15115
    oprot.writeStructEnd()
15116
 
15117
  def validate(self):
15118
    return
15119
 
15120
 
15121
  def __repr__(self):
15122
    L = ['%s=%r' % (key, value)
15123
      for key, value in self.__dict__.iteritems()]
15124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15125
 
15126
  def __eq__(self, other):
15127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15128
 
15129
  def __ne__(self, other):
15130
    return not (self == other)
6838 vikram.rag 15131
 
15132
class getAllInsurers_args:
15133
 
15134
  thrift_spec = (
15135
  )
15136
 
15137
  def read(self, iprot):
15138
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15139
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15140
      return
15141
    iprot.readStructBegin()
15142
    while True:
15143
      (fname, ftype, fid) = iprot.readFieldBegin()
15144
      if ftype == TType.STOP:
15145
        break
15146
      else:
15147
        iprot.skip(ftype)
15148
      iprot.readFieldEnd()
15149
    iprot.readStructEnd()
15150
 
15151
  def write(self, oprot):
15152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15154
      return
15155
    oprot.writeStructBegin('getAllInsurers_args')
15156
    oprot.writeFieldStop()
15157
    oprot.writeStructEnd()
15158
 
15159
  def validate(self):
15160
    return
15161
 
15162
 
15163
  def __repr__(self):
15164
    L = ['%s=%r' % (key, value)
15165
      for key, value in self.__dict__.iteritems()]
15166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15167
 
15168
  def __eq__(self, other):
15169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15170
 
15171
  def __ne__(self, other):
15172
    return not (self == other)
15173
 
15174
class getAllInsurers_result:
15175
  """
15176
  Attributes:
15177
   - success
15178
  """
15179
 
15180
  thrift_spec = (
15181
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
15182
  )
15183
 
15184
  def __init__(self, success=None,):
15185
    self.success = success
15186
 
15187
  def read(self, iprot):
15188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15190
      return
15191
    iprot.readStructBegin()
15192
    while True:
15193
      (fname, ftype, fid) = iprot.readFieldBegin()
15194
      if ftype == TType.STOP:
15195
        break
15196
      if fid == 0:
15197
        if ftype == TType.LIST:
15198
          self.success = []
6850 kshitij.so 15199
          (_etype301, _size298) = iprot.readListBegin()
15200
          for _i302 in xrange(_size298):
15201
            _elem303 = Insurer()
15202
            _elem303.read(iprot)
15203
            self.success.append(_elem303)
6838 vikram.rag 15204
          iprot.readListEnd()
15205
        else:
15206
          iprot.skip(ftype)
15207
      else:
15208
        iprot.skip(ftype)
15209
      iprot.readFieldEnd()
15210
    iprot.readStructEnd()
15211
 
15212
  def write(self, oprot):
15213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15215
      return
15216
    oprot.writeStructBegin('getAllInsurers_result')
15217
    if self.success is not None:
15218
      oprot.writeFieldBegin('success', TType.LIST, 0)
15219
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 15220
      for iter304 in self.success:
15221
        iter304.write(oprot)
6838 vikram.rag 15222
      oprot.writeListEnd()
15223
      oprot.writeFieldEnd()
15224
    oprot.writeFieldStop()
15225
    oprot.writeStructEnd()
15226
 
15227
  def validate(self):
15228
    return
15229
 
15230
 
15231
  def __repr__(self):
15232
    L = ['%s=%r' % (key, value)
15233
      for key, value in self.__dict__.iteritems()]
15234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15235
 
15236
  def __eq__(self, other):
15237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15238
 
15239
  def __ne__(self, other):
15240
    return not (self == other)