Subversion Repositories SmartDukaan

Rev

Rev 6845 | Rev 6850 | 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
 
6849 kshitij.so 309
  def addBannerMap(self, bannerName, mapLink, coordinates):
310
    """
311
    Parameters:
312
     - bannerName
313
     - mapLink
314
     - coordinates
315
    """
316
    pass
317
 
318
  def deleteBannerMap(self, bannerName):
319
    """
320
    Parameters:
321
     - bannerName
322
    """
323
    pass
324
 
325
  def getBannerMapDetails(self, bannerName):
326
    """
327
    Parameters:
328
     - bannerName
329
    """
330
    pass
331
 
5944 mandeep.dh 332
  def deleteSimilarItem(self, itemId, catalogItemId):
333
    """
334
    Delete similar item.
335
 
336
    Parameters:
337
     - itemId
338
     - catalogItemId
339
    """
340
    pass
341
 
342
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
343
    """
344
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
345
    If yes, returns the itemId else returns 0
346
 
347
    Parameters:
348
     - brand
349
     - modelNumber
350
     - modelName
351
     - color
352
    """
353
    pass
354
 
355
  def validateRiskyStatus(self, itemId):
356
    """
357
    Check wether item is risky and change status if inventory is not available for risky items
358
 
359
    Parameters:
360
     - itemId
361
    """
362
    pass
363
 
364
  def changeItemRiskyFlag(self, itemId, risky):
365
    """
366
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
367
 
368
    Parameters:
369
     - itemId
370
     - risky
371
    """
372
    pass
373
 
374
  def getItemsByRiskyFlag(self, ):
375
    """
376
    Returns list of items marked as risky.
377
    """
378
    pass
379
 
380
  def getItemsForMasterSheet(self, category, brand):
381
    """
382
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
383
 
384
    Parameters:
385
     - category
386
     - brand
387
    """
388
    pass
389
 
390
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
391
    """
392
    Returns list of catalog ids of items with same similarity index as of the given itemId
393
 
394
    Parameters:
395
     - beginIndex
396
     - totalItems
397
     - itemId
398
    """
399
    pass
400
 
401
  def addProductNotification(self, itemId, email):
402
    """
403
    Add user requests for out of stock items. Once user will ask for notify me an entry will
404
 
405
    Parameters:
406
     - itemId
407
     - email
408
    """
409
    pass
410
 
411
  def sendProductNotifications(self, ):
412
    """
413
    Send the product notifications to the users for items which has stock.
414
    """
415
    pass
416
 
417
  def getAllBrandsByCategory(self, categoryId):
418
    """
419
    Returns list of brand names for a given category Id
420
 
421
    Parameters:
422
     - categoryId
423
    """
424
    pass
425
 
426
  def getAllBrands(self, ):
427
    """
428
    Returns list of brand names
429
    """
430
    pass
431
 
432
  def getAllSources(self, ):
433
    """
434
    Return list of all sources
435
    """
436
    pass
437
 
438
  def getItemPricingBySource(self, itemId, sourceId):
439
    """
440
    Returns the pricing information of an item. If no information is found, exception will be thrown.
441
 
442
    Parameters:
443
     - itemId
444
     - sourceId
445
    """
446
    pass
447
 
448
  def addSourceItemPricing(self, sourceItemPricing):
449
    """
450
    Adds prices to be displayed corresponding to the item if user comes from a source.
451
    If item is not found or source is not found, it will throw exception.
452
 
453
    Parameters:
454
     - sourceItemPricing
455
    """
456
    pass
457
 
458
  def getAllSourcePricing(self, itemId):
459
    """
460
    Returns the list of source pricing information of an item.
461
    Raises an exception if item not found corresponding to itemId
462
 
463
    Parameters:
464
     - itemId
465
    """
466
    pass
467
 
468
  def getItemForSource(self, item_id, sourceId):
469
    """
470
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
471
 
472
    Parameters:
473
     - item_id
474
     - sourceId
475
    """
476
    pass
477
 
478
  def searchItemsInRange(self, searchTerms, offset, limit):
479
    """
480
    Searches items matching the the given terms in the catalog and returns results within the specified range.
481
 
482
    Parameters:
483
     - searchTerms
484
     - offset
485
     - limit
486
    """
487
    pass
488
 
489
  def getSearchResultCount(self, searchTerms):
490
    """
491
    Gets the count of search results for the given search terms so that the user can go through all the pages.
492
 
493
    Parameters:
494
     - searchTerms
495
    """
496
    pass
497
 
498
  def getProductNotifications(self, startDateTime):
499
    """
500
    Returns a list of product notifications added after a supplied datetime
501
 
502
    Parameters:
503
     - startDateTime
504
    """
505
    pass
506
 
507
  def getProductNotificationRequestCount(self, startDateTime):
508
    """
509
    Returns a list of count of requests for product notification against each item
510
 
511
    Parameters:
512
     - startDateTime
513
    """
514
    pass
515
 
516
  def addAuthorizationLog(self, itemId, username, reason):
517
    """
518
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
519
 
520
    Parameters:
521
     - itemId
522
     - username
523
     - reason
524
    """
525
    pass
526
 
527
  def getClearanceSaleCatalogIds(self, ):
528
    pass
529
 
530
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
531
    """
532
    Parameters:
533
     - catalog_item_id
534
     - voucherType
535
     - voucherAmount
536
    """
537
    pass
538
 
539
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
540
    """
541
    Parameters:
542
     - catalog_item_id
543
     - voucherType
544
    """
545
    pass
546
 
547
  def getVoucherAmount(self, itemId, voucherType):
548
    """
549
    Parameters:
550
     - itemId
551
     - voucherType
552
    """
553
    pass
554
 
555
  def getAllItemVouchers(self, itemId):
556
    """
557
    Parameters:
558
     - itemId
559
    """
560
    pass
561
 
562
  def isValidCatalogItemId(self, catalog_item_id):
563
    """
564
    Parameters:
565
     - catalog_item_id
566
    """
567
    pass
568
 
6039 amit.gupta 569
  def getVatPercentageForItem(self, itemId, price):
570
    """
571
    Parameters:
572
     - itemId
573
     - price
574
    """
575
    pass
5944 mandeep.dh 576
 
6039 amit.gupta 577
  def getVatAmountForItem(self, itemId, price):
578
    """
579
    Parameters:
580
     - itemId
581
     - price
582
    """
583
    pass
584
 
6531 vikram.rag 585
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
586
    """
587
    Parameters:
588
     - offset
589
     - limit
590
    """
591
    pass
6039 amit.gupta 592
 
6821 amar.kumar 593
  def getAllAliveItems(self, ):
594
    pass
595
 
6805 anupam.sin 596
  def getInsuranceAmount(self, itemId, insurerId, quantity):
597
    """
598
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 599
 
6805 anupam.sin 600
    Parameters:
601
     - itemId
602
     - insurerId
603
     - quantity
604
    """
605
    pass
606
 
607
  def getInsurer(self, insurerId):
608
    """
609
    Parameters:
610
     - insurerId
611
    """
612
    pass
613
 
6838 vikram.rag 614
  def getAllInsurers(self, ):
615
    pass
6805 anupam.sin 616
 
6838 vikram.rag 617
 
5944 mandeep.dh 618
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
619
  def __init__(self, iprot, oprot=None):
620
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
621
 
622
  def addItem(self, item):
623
    """
624
    Availability and inventory attributes
625
 
626
    Parameters:
627
     - item
628
    """
629
    self.send_addItem(item)
630
    return self.recv_addItem()
631
 
632
  def send_addItem(self, item):
633
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
634
    args = addItem_args()
635
    args.item = item
636
    args.write(self._oprot)
637
    self._oprot.writeMessageEnd()
638
    self._oprot.trans.flush()
639
 
640
  def recv_addItem(self, ):
641
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
642
    if mtype == TMessageType.EXCEPTION:
643
      x = TApplicationException()
644
      x.read(self._iprot)
645
      self._iprot.readMessageEnd()
646
      raise x
647
    result = addItem_result()
648
    result.read(self._iprot)
649
    self._iprot.readMessageEnd()
650
    if result.success is not None:
651
      return result.success
652
    if result.cex is not None:
653
      raise result.cex
654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
655
 
656
  def updateItem(self, item):
657
    """
658
    Parameters:
659
     - item
660
    """
661
    self.send_updateItem(item)
662
    return self.recv_updateItem()
663
 
664
  def send_updateItem(self, item):
665
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
666
    args = updateItem_args()
667
    args.item = item
668
    args.write(self._oprot)
669
    self._oprot.writeMessageEnd()
670
    self._oprot.trans.flush()
671
 
672
  def recv_updateItem(self, ):
673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
674
    if mtype == TMessageType.EXCEPTION:
675
      x = TApplicationException()
676
      x.read(self._iprot)
677
      self._iprot.readMessageEnd()
678
      raise x
679
    result = updateItem_result()
680
    result.read(self._iprot)
681
    self._iprot.readMessageEnd()
682
    if result.success is not None:
683
      return result.success
684
    if result.cex is not None:
685
      raise result.cex
686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
687
 
688
  def isActive(self, itemId):
689
    """
690
    Checks if the item given to the corresponding itemId is active. If it's active,
691
    whether it's risky and if it's risky, its inventory position.
692
 
693
    Parameters:
694
     - itemId
695
    """
696
    self.send_isActive(itemId)
697
    return self.recv_isActive()
698
 
699
  def send_isActive(self, itemId):
700
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
701
    args = isActive_args()
702
    args.itemId = itemId
703
    args.write(self._oprot)
704
    self._oprot.writeMessageEnd()
705
    self._oprot.trans.flush()
706
 
707
  def recv_isActive(self, ):
708
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
709
    if mtype == TMessageType.EXCEPTION:
710
      x = TApplicationException()
711
      x.read(self._iprot)
712
      self._iprot.readMessageEnd()
713
      raise x
714
    result = isActive_result()
715
    result.read(self._iprot)
716
    self._iprot.readMessageEnd()
717
    if result.success is not None:
718
      return result.success
719
    if result.isex is not None:
720
      raise result.isex
721
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
722
 
723
  def getItemStatusDescription(self, itemId):
724
    """
725
    Parameters:
726
     - itemId
727
    """
728
    self.send_getItemStatusDescription(itemId)
729
    return self.recv_getItemStatusDescription()
730
 
731
  def send_getItemStatusDescription(self, itemId):
732
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
733
    args = getItemStatusDescription_args()
734
    args.itemId = itemId
735
    args.write(self._oprot)
736
    self._oprot.writeMessageEnd()
737
    self._oprot.trans.flush()
738
 
739
  def recv_getItemStatusDescription(self, ):
740
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
741
    if mtype == TMessageType.EXCEPTION:
742
      x = TApplicationException()
743
      x.read(self._iprot)
744
      self._iprot.readMessageEnd()
745
      raise x
746
    result = getItemStatusDescription_result()
747
    result.read(self._iprot)
748
    self._iprot.readMessageEnd()
749
    if result.success is not None:
750
      return result.success
751
    if result.isex is not None:
752
      raise result.isex
753
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
754
 
755
  def startItemOn(self, item_id, timestamp):
756
    """
757
    Parameters:
758
     - item_id
759
     - timestamp
760
    """
761
    self.send_startItemOn(item_id, timestamp)
762
    self.recv_startItemOn()
763
 
764
  def send_startItemOn(self, item_id, timestamp):
765
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
766
    args = startItemOn_args()
767
    args.item_id = item_id
768
    args.timestamp = timestamp
769
    args.write(self._oprot)
770
    self._oprot.writeMessageEnd()
771
    self._oprot.trans.flush()
772
 
773
  def recv_startItemOn(self, ):
774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
775
    if mtype == TMessageType.EXCEPTION:
776
      x = TApplicationException()
777
      x.read(self._iprot)
778
      self._iprot.readMessageEnd()
779
      raise x
780
    result = startItemOn_result()
781
    result.read(self._iprot)
782
    self._iprot.readMessageEnd()
783
    if result.cex is not None:
784
      raise result.cex
785
    return
786
 
787
  def retireItemOn(self, item_id, timestamp):
788
    """
789
    Parameters:
790
     - item_id
791
     - timestamp
792
    """
793
    self.send_retireItemOn(item_id, timestamp)
794
    self.recv_retireItemOn()
795
 
796
  def send_retireItemOn(self, item_id, timestamp):
797
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
798
    args = retireItemOn_args()
799
    args.item_id = item_id
800
    args.timestamp = timestamp
801
    args.write(self._oprot)
802
    self._oprot.writeMessageEnd()
803
    self._oprot.trans.flush()
804
 
805
  def recv_retireItemOn(self, ):
806
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
807
    if mtype == TMessageType.EXCEPTION:
808
      x = TApplicationException()
809
      x.read(self._iprot)
810
      self._iprot.readMessageEnd()
811
      raise x
812
    result = retireItemOn_result()
813
    result.read(self._iprot)
814
    self._iprot.readMessageEnd()
815
    if result.cex is not None:
816
      raise result.cex
817
    return
818
 
819
  def changeItemStatus(self, item_id, timestamp, newstatus):
820
    """
821
    Parameters:
822
     - item_id
823
     - timestamp
824
     - newstatus
825
    """
826
    self.send_changeItemStatus(item_id, timestamp, newstatus)
827
    self.recv_changeItemStatus()
828
 
829
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
830
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
831
    args = changeItemStatus_args()
832
    args.item_id = item_id
833
    args.timestamp = timestamp
834
    args.newstatus = newstatus
835
    args.write(self._oprot)
836
    self._oprot.writeMessageEnd()
837
    self._oprot.trans.flush()
838
 
839
  def recv_changeItemStatus(self, ):
840
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
841
    if mtype == TMessageType.EXCEPTION:
842
      x = TApplicationException()
843
      x.read(self._iprot)
844
      self._iprot.readMessageEnd()
845
      raise x
846
    result = changeItemStatus_result()
847
    result.read(self._iprot)
848
    self._iprot.readMessageEnd()
849
    if result.cex is not None:
850
      raise result.cex
851
    return
852
 
853
  def getItem(self, item_id):
854
    """
855
    Parameters:
856
     - item_id
857
    """
858
    self.send_getItem(item_id)
859
    return self.recv_getItem()
860
 
861
  def send_getItem(self, item_id):
862
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
863
    args = getItem_args()
864
    args.item_id = item_id
865
    args.write(self._oprot)
866
    self._oprot.writeMessageEnd()
867
    self._oprot.trans.flush()
868
 
869
  def recv_getItem(self, ):
870
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
871
    if mtype == TMessageType.EXCEPTION:
872
      x = TApplicationException()
873
      x.read(self._iprot)
874
      self._iprot.readMessageEnd()
875
      raise x
876
    result = getItem_result()
877
    result.read(self._iprot)
878
    self._iprot.readMessageEnd()
879
    if result.success is not None:
880
      return result.success
881
    if result.cex is not None:
882
      raise result.cex
883
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
884
 
885
  def getItemsByCatalogId(self, catalog_item_id):
886
    """
887
    Parameters:
888
     - catalog_item_id
889
    """
890
    self.send_getItemsByCatalogId(catalog_item_id)
891
    return self.recv_getItemsByCatalogId()
892
 
893
  def send_getItemsByCatalogId(self, catalog_item_id):
894
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
895
    args = getItemsByCatalogId_args()
896
    args.catalog_item_id = catalog_item_id
897
    args.write(self._oprot)
898
    self._oprot.writeMessageEnd()
899
    self._oprot.trans.flush()
900
 
901
  def recv_getItemsByCatalogId(self, ):
902
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
903
    if mtype == TMessageType.EXCEPTION:
904
      x = TApplicationException()
905
      x.read(self._iprot)
906
      self._iprot.readMessageEnd()
907
      raise x
908
    result = getItemsByCatalogId_result()
909
    result.read(self._iprot)
910
    self._iprot.readMessageEnd()
911
    if result.success is not None:
912
      return result.success
913
    if result.cex is not None:
914
      raise result.cex
915
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
916
 
917
  def getValidItemsByCatalogId(self, catalog_item_id):
918
    """
919
    Parameters:
920
     - catalog_item_id
921
    """
922
    self.send_getValidItemsByCatalogId(catalog_item_id)
923
    return self.recv_getValidItemsByCatalogId()
924
 
925
  def send_getValidItemsByCatalogId(self, catalog_item_id):
926
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
927
    args = getValidItemsByCatalogId_args()
928
    args.catalog_item_id = catalog_item_id
929
    args.write(self._oprot)
930
    self._oprot.writeMessageEnd()
931
    self._oprot.trans.flush()
932
 
933
  def recv_getValidItemsByCatalogId(self, ):
934
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
935
    if mtype == TMessageType.EXCEPTION:
936
      x = TApplicationException()
937
      x.read(self._iprot)
938
      self._iprot.readMessageEnd()
939
      raise x
940
    result = getValidItemsByCatalogId_result()
941
    result.read(self._iprot)
942
    self._iprot.readMessageEnd()
943
    if result.success is not None:
944
      return result.success
945
    if result.cex is not None:
946
      raise result.cex
947
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
948
 
949
  def getAllItems(self, isActive):
950
    """
951
    Parameters:
952
     - isActive
953
    """
954
    self.send_getAllItems(isActive)
955
    return self.recv_getAllItems()
956
 
957
  def send_getAllItems(self, isActive):
958
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
959
    args = getAllItems_args()
960
    args.isActive = isActive
961
    args.write(self._oprot)
962
    self._oprot.writeMessageEnd()
963
    self._oprot.trans.flush()
964
 
965
  def recv_getAllItems(self, ):
966
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
967
    if mtype == TMessageType.EXCEPTION:
968
      x = TApplicationException()
969
      x.read(self._iprot)
970
      self._iprot.readMessageEnd()
971
      raise x
972
    result = getAllItems_result()
973
    result.read(self._iprot)
974
    self._iprot.readMessageEnd()
975
    if result.success is not None:
976
      return result.success
977
    if result.cex is not None:
978
      raise result.cex
979
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
980
 
981
  def getAllItemsByStatus(self, itemStatus):
982
    """
983
    Parameters:
984
     - itemStatus
985
    """
986
    self.send_getAllItemsByStatus(itemStatus)
987
    return self.recv_getAllItemsByStatus()
988
 
989
  def send_getAllItemsByStatus(self, itemStatus):
990
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
991
    args = getAllItemsByStatus_args()
992
    args.itemStatus = itemStatus
993
    args.write(self._oprot)
994
    self._oprot.writeMessageEnd()
995
    self._oprot.trans.flush()
996
 
997
  def recv_getAllItemsByStatus(self, ):
998
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
999
    if mtype == TMessageType.EXCEPTION:
1000
      x = TApplicationException()
1001
      x.read(self._iprot)
1002
      self._iprot.readMessageEnd()
1003
      raise x
1004
    result = getAllItemsByStatus_result()
1005
    result.read(self._iprot)
1006
    self._iprot.readMessageEnd()
1007
    if result.success is not None:
1008
      return result.success
1009
    if result.cex is not None:
1010
      raise result.cex
1011
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1012
 
1013
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1014
    """
1015
    Parameters:
1016
     - entityId
1017
     - category
1018
     - brand
1019
     - modelName
1020
     - modelNumber
1021
    """
1022
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
1023
    return self.recv_markItemAsContentComplete()
1024
 
1025
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1026
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1027
    args = markItemAsContentComplete_args()
1028
    args.entityId = entityId
1029
    args.category = category
1030
    args.brand = brand
1031
    args.modelName = modelName
1032
    args.modelNumber = modelNumber
1033
    args.write(self._oprot)
1034
    self._oprot.writeMessageEnd()
1035
    self._oprot.trans.flush()
1036
 
1037
  def recv_markItemAsContentComplete(self, ):
1038
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1039
    if mtype == TMessageType.EXCEPTION:
1040
      x = TApplicationException()
1041
      x.read(self._iprot)
1042
      self._iprot.readMessageEnd()
1043
      raise x
1044
    result = markItemAsContentComplete_result()
1045
    result.read(self._iprot)
1046
    self._iprot.readMessageEnd()
1047
    if result.success is not None:
1048
      return result.success
1049
    if result.cex is not None:
1050
      raise result.cex
1051
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1052
 
1053
  def getAllItemsInRange(self, offset, limit):
1054
    """
1055
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1056
 
1057
    Parameters:
1058
     - offset
1059
     - limit
1060
    """
1061
    self.send_getAllItemsInRange(offset, limit)
1062
    return self.recv_getAllItemsInRange()
1063
 
1064
  def send_getAllItemsInRange(self, offset, limit):
1065
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1066
    args = getAllItemsInRange_args()
1067
    args.offset = offset
1068
    args.limit = limit
1069
    args.write(self._oprot)
1070
    self._oprot.writeMessageEnd()
1071
    self._oprot.trans.flush()
1072
 
1073
  def recv_getAllItemsInRange(self, ):
1074
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1075
    if mtype == TMessageType.EXCEPTION:
1076
      x = TApplicationException()
1077
      x.read(self._iprot)
1078
      self._iprot.readMessageEnd()
1079
      raise x
1080
    result = getAllItemsInRange_result()
1081
    result.read(self._iprot)
1082
    self._iprot.readMessageEnd()
1083
    if result.success is not None:
1084
      return result.success
1085
    if result.cex is not None:
1086
      raise result.cex
1087
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1088
 
1089
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1090
    """
1091
    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.
1092
 
1093
    Parameters:
1094
     - itemStatus
1095
     - offset
1096
     - limit
1097
    """
1098
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1099
    return self.recv_getAllItemsByStatusInRange()
1100
 
1101
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1102
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1103
    args = getAllItemsByStatusInRange_args()
1104
    args.itemStatus = itemStatus
1105
    args.offset = offset
1106
    args.limit = limit
1107
    args.write(self._oprot)
1108
    self._oprot.writeMessageEnd()
1109
    self._oprot.trans.flush()
1110
 
1111
  def recv_getAllItemsByStatusInRange(self, ):
1112
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1113
    if mtype == TMessageType.EXCEPTION:
1114
      x = TApplicationException()
1115
      x.read(self._iprot)
1116
      self._iprot.readMessageEnd()
1117
      raise x
1118
    result = getAllItemsByStatusInRange_result()
1119
    result.read(self._iprot)
1120
    self._iprot.readMessageEnd()
1121
    if result.success is not None:
1122
      return result.success
1123
    if result.cex is not None:
1124
      raise result.cex
1125
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1126
 
1127
  def getItemCountByStatus(self, useStatus, itemStatus):
1128
    """
1129
    Gets a count of all items by status
1130
 
1131
    Parameters:
1132
     - useStatus
1133
     - itemStatus
1134
    """
1135
    self.send_getItemCountByStatus(useStatus, itemStatus)
1136
    return self.recv_getItemCountByStatus()
1137
 
1138
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1139
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1140
    args = getItemCountByStatus_args()
1141
    args.useStatus = useStatus
1142
    args.itemStatus = itemStatus
1143
    args.write(self._oprot)
1144
    self._oprot.writeMessageEnd()
1145
    self._oprot.trans.flush()
1146
 
1147
  def recv_getItemCountByStatus(self, ):
1148
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1149
    if mtype == TMessageType.EXCEPTION:
1150
      x = TApplicationException()
1151
      x.read(self._iprot)
1152
      self._iprot.readMessageEnd()
1153
      raise x
1154
    result = getItemCountByStatus_result()
1155
    result.read(self._iprot)
1156
    self._iprot.readMessageEnd()
1157
    if result.success is not None:
1158
      return result.success
1159
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1160
 
1161
  def getBestSellers(self, ):
1162
    self.send_getBestSellers()
1163
    return self.recv_getBestSellers()
1164
 
1165
  def send_getBestSellers(self, ):
1166
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1167
    args = getBestSellers_args()
1168
    args.write(self._oprot)
1169
    self._oprot.writeMessageEnd()
1170
    self._oprot.trans.flush()
1171
 
1172
  def recv_getBestSellers(self, ):
1173
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1174
    if mtype == TMessageType.EXCEPTION:
1175
      x = TApplicationException()
1176
      x.read(self._iprot)
1177
      self._iprot.readMessageEnd()
1178
      raise x
1179
    result = getBestSellers_result()
1180
    result.read(self._iprot)
1181
    self._iprot.readMessageEnd()
1182
    if result.success is not None:
1183
      return result.success
1184
    if result.isex is not None:
1185
      raise result.isex
1186
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1187
 
1188
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1189
    """
1190
    Parameters:
1191
     - beginIndex
1192
     - totalItems
1193
     - brand
1194
     - category
1195
    """
1196
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1197
    return self.recv_getBestSellersCatalogIds()
1198
 
1199
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1200
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1201
    args = getBestSellersCatalogIds_args()
1202
    args.beginIndex = beginIndex
1203
    args.totalItems = totalItems
1204
    args.brand = brand
1205
    args.category = category
1206
    args.write(self._oprot)
1207
    self._oprot.writeMessageEnd()
1208
    self._oprot.trans.flush()
1209
 
1210
  def recv_getBestSellersCatalogIds(self, ):
1211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1212
    if mtype == TMessageType.EXCEPTION:
1213
      x = TApplicationException()
1214
      x.read(self._iprot)
1215
      self._iprot.readMessageEnd()
1216
      raise x
1217
    result = getBestSellersCatalogIds_result()
1218
    result.read(self._iprot)
1219
    self._iprot.readMessageEnd()
1220
    if result.success is not None:
1221
      return result.success
1222
    if result.cex is not None:
1223
      raise result.cex
1224
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1225
 
1226
  def getBestSellersCount(self, ):
1227
    self.send_getBestSellersCount()
1228
    return self.recv_getBestSellersCount()
1229
 
1230
  def send_getBestSellersCount(self, ):
1231
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1232
    args = getBestSellersCount_args()
1233
    args.write(self._oprot)
1234
    self._oprot.writeMessageEnd()
1235
    self._oprot.trans.flush()
1236
 
1237
  def recv_getBestSellersCount(self, ):
1238
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1239
    if mtype == TMessageType.EXCEPTION:
1240
      x = TApplicationException()
1241
      x.read(self._iprot)
1242
      self._iprot.readMessageEnd()
1243
      raise x
1244
    result = getBestSellersCount_result()
1245
    result.read(self._iprot)
1246
    self._iprot.readMessageEnd()
1247
    if result.success is not None:
1248
      return result.success
1249
    if result.cex is not None:
1250
      raise result.cex
1251
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1252
 
1253
  def getBestDeals(self, ):
1254
    self.send_getBestDeals()
1255
    return self.recv_getBestDeals()
1256
 
1257
  def send_getBestDeals(self, ):
1258
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1259
    args = getBestDeals_args()
1260
    args.write(self._oprot)
1261
    self._oprot.writeMessageEnd()
1262
    self._oprot.trans.flush()
1263
 
1264
  def recv_getBestDeals(self, ):
1265
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1266
    if mtype == TMessageType.EXCEPTION:
1267
      x = TApplicationException()
1268
      x.read(self._iprot)
1269
      self._iprot.readMessageEnd()
1270
      raise x
1271
    result = getBestDeals_result()
1272
    result.read(self._iprot)
1273
    self._iprot.readMessageEnd()
1274
    if result.success is not None:
1275
      return result.success
1276
    if result.isex is not None:
1277
      raise result.isex
1278
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1279
 
1280
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1281
    """
1282
    Parameters:
1283
     - beginIndex
1284
     - totalItems
1285
     - brand
1286
     - category
1287
    """
1288
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1289
    return self.recv_getBestDealsCatalogIds()
1290
 
1291
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1292
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1293
    args = getBestDealsCatalogIds_args()
1294
    args.beginIndex = beginIndex
1295
    args.totalItems = totalItems
1296
    args.brand = brand
1297
    args.category = category
1298
    args.write(self._oprot)
1299
    self._oprot.writeMessageEnd()
1300
    self._oprot.trans.flush()
1301
 
1302
  def recv_getBestDealsCatalogIds(self, ):
1303
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1304
    if mtype == TMessageType.EXCEPTION:
1305
      x = TApplicationException()
1306
      x.read(self._iprot)
1307
      self._iprot.readMessageEnd()
1308
      raise x
1309
    result = getBestDealsCatalogIds_result()
1310
    result.read(self._iprot)
1311
    self._iprot.readMessageEnd()
1312
    if result.success is not None:
1313
      return result.success
1314
    if result.cex is not None:
1315
      raise result.cex
1316
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1317
 
1318
  def getBestDealsCount(self, ):
1319
    self.send_getBestDealsCount()
1320
    return self.recv_getBestDealsCount()
1321
 
1322
  def send_getBestDealsCount(self, ):
1323
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1324
    args = getBestDealsCount_args()
1325
    args.write(self._oprot)
1326
    self._oprot.writeMessageEnd()
1327
    self._oprot.trans.flush()
1328
 
1329
  def recv_getBestDealsCount(self, ):
1330
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1331
    if mtype == TMessageType.EXCEPTION:
1332
      x = TApplicationException()
1333
      x.read(self._iprot)
1334
      self._iprot.readMessageEnd()
1335
      raise x
1336
    result = getBestDealsCount_result()
1337
    result.read(self._iprot)
1338
    self._iprot.readMessageEnd()
1339
    if result.success is not None:
1340
      return result.success
1341
    if result.cex is not None:
1342
      raise result.cex
1343
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1344
 
1345
  def getComingSoon(self, ):
1346
    self.send_getComingSoon()
1347
    return self.recv_getComingSoon()
1348
 
1349
  def send_getComingSoon(self, ):
1350
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1351
    args = getComingSoon_args()
1352
    args.write(self._oprot)
1353
    self._oprot.writeMessageEnd()
1354
    self._oprot.trans.flush()
1355
 
1356
  def recv_getComingSoon(self, ):
1357
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1358
    if mtype == TMessageType.EXCEPTION:
1359
      x = TApplicationException()
1360
      x.read(self._iprot)
1361
      self._iprot.readMessageEnd()
1362
      raise x
1363
    result = getComingSoon_result()
1364
    result.read(self._iprot)
1365
    self._iprot.readMessageEnd()
1366
    if result.success is not None:
1367
      return result.success
1368
    if result.isex is not None:
1369
      raise result.isex
1370
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1371
 
1372
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1373
    """
1374
    Parameters:
1375
     - beginIndex
1376
     - totalItems
1377
     - brand
1378
     - category
1379
    """
1380
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1381
    return self.recv_getComingSoonCatalogIds()
1382
 
1383
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1384
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1385
    args = getComingSoonCatalogIds_args()
1386
    args.beginIndex = beginIndex
1387
    args.totalItems = totalItems
1388
    args.brand = brand
1389
    args.category = category
1390
    args.write(self._oprot)
1391
    self._oprot.writeMessageEnd()
1392
    self._oprot.trans.flush()
1393
 
1394
  def recv_getComingSoonCatalogIds(self, ):
1395
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1396
    if mtype == TMessageType.EXCEPTION:
1397
      x = TApplicationException()
1398
      x.read(self._iprot)
1399
      self._iprot.readMessageEnd()
1400
      raise x
1401
    result = getComingSoonCatalogIds_result()
1402
    result.read(self._iprot)
1403
    self._iprot.readMessageEnd()
1404
    if result.success is not None:
1405
      return result.success
1406
    if result.cex is not None:
1407
      raise result.cex
1408
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1409
 
1410
  def getComingSoonCount(self, ):
1411
    self.send_getComingSoonCount()
1412
    return self.recv_getComingSoonCount()
1413
 
1414
  def send_getComingSoonCount(self, ):
1415
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1416
    args = getComingSoonCount_args()
1417
    args.write(self._oprot)
1418
    self._oprot.writeMessageEnd()
1419
    self._oprot.trans.flush()
1420
 
1421
  def recv_getComingSoonCount(self, ):
1422
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1423
    if mtype == TMessageType.EXCEPTION:
1424
      x = TApplicationException()
1425
      x.read(self._iprot)
1426
      self._iprot.readMessageEnd()
1427
      raise x
1428
    result = getComingSoonCount_result()
1429
    result.read(self._iprot)
1430
    self._iprot.readMessageEnd()
1431
    if result.success is not None:
1432
      return result.success
1433
    if result.cex is not None:
1434
      raise result.cex
1435
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1436
 
1437
  def getLatestArrivals(self, ):
1438
    """
1439
    Returns a list of items sorted in the descending order by start date.
1440
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1441
    """
1442
    self.send_getLatestArrivals()
1443
    return self.recv_getLatestArrivals()
1444
 
1445
  def send_getLatestArrivals(self, ):
1446
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1447
    args = getLatestArrivals_args()
1448
    args.write(self._oprot)
1449
    self._oprot.writeMessageEnd()
1450
    self._oprot.trans.flush()
1451
 
1452
  def recv_getLatestArrivals(self, ):
1453
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1454
    if mtype == TMessageType.EXCEPTION:
1455
      x = TApplicationException()
1456
      x.read(self._iprot)
1457
      self._iprot.readMessageEnd()
1458
      raise x
1459
    result = getLatestArrivals_result()
1460
    result.read(self._iprot)
1461
    self._iprot.readMessageEnd()
1462
    if result.success is not None:
1463
      return result.success
1464
    if result.isex is not None:
1465
      raise result.isex
1466
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1467
 
1468
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1469
    """
1470
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1471
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1472
 
1473
    Parameters:
1474
     - beginIndex
1475
     - totalItems
1476
     - brand
1477
     - categories
1478
    """
1479
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1480
    return self.recv_getLatestArrivalsCatalogIds()
1481
 
1482
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1483
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1484
    args = getLatestArrivalsCatalogIds_args()
1485
    args.beginIndex = beginIndex
1486
    args.totalItems = totalItems
1487
    args.brand = brand
1488
    args.categories = categories
1489
    args.write(self._oprot)
1490
    self._oprot.writeMessageEnd()
1491
    self._oprot.trans.flush()
1492
 
1493
  def recv_getLatestArrivalsCatalogIds(self, ):
1494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1495
    if mtype == TMessageType.EXCEPTION:
1496
      x = TApplicationException()
1497
      x.read(self._iprot)
1498
      self._iprot.readMessageEnd()
1499
      raise x
1500
    result = getLatestArrivalsCatalogIds_result()
1501
    result.read(self._iprot)
1502
    self._iprot.readMessageEnd()
1503
    if result.success is not None:
1504
      return result.success
1505
    if result.cex is not None:
1506
      raise result.cex
1507
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1508
 
1509
  def getLatestArrivalsCount(self, ):
1510
    """
1511
    Get the total number of latest arrivals we are willing to show.
1512
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1513
    """
1514
    self.send_getLatestArrivalsCount()
1515
    return self.recv_getLatestArrivalsCount()
1516
 
1517
  def send_getLatestArrivalsCount(self, ):
1518
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1519
    args = getLatestArrivalsCount_args()
1520
    args.write(self._oprot)
1521
    self._oprot.writeMessageEnd()
1522
    self._oprot.trans.flush()
1523
 
1524
  def recv_getLatestArrivalsCount(self, ):
1525
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1526
    if mtype == TMessageType.EXCEPTION:
1527
      x = TApplicationException()
1528
      x.read(self._iprot)
1529
      self._iprot.readMessageEnd()
1530
      raise x
1531
    result = getLatestArrivalsCount_result()
1532
    result.read(self._iprot)
1533
    self._iprot.readMessageEnd()
1534
    if result.success is not None:
1535
      return result.success
1536
    if result.cex is not None:
1537
      raise result.cex
1538
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1539
 
1540
  def generateNewEntityID(self, ):
1541
    self.send_generateNewEntityID()
1542
    return self.recv_generateNewEntityID()
1543
 
1544
  def send_generateNewEntityID(self, ):
1545
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1546
    args = generateNewEntityID_args()
1547
    args.write(self._oprot)
1548
    self._oprot.writeMessageEnd()
1549
    self._oprot.trans.flush()
1550
 
1551
  def recv_generateNewEntityID(self, ):
1552
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1553
    if mtype == TMessageType.EXCEPTION:
1554
      x = TApplicationException()
1555
      x.read(self._iprot)
1556
      self._iprot.readMessageEnd()
1557
      raise x
1558
    result = generateNewEntityID_result()
1559
    result.read(self._iprot)
1560
    self._iprot.readMessageEnd()
1561
    if result.success is not None:
1562
      return result.success
1563
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1564
 
1565
  def addCategory(self, category):
1566
    """
1567
    All category related functions
1568
 
1569
    Parameters:
1570
     - category
1571
    """
1572
    self.send_addCategory(category)
1573
    return self.recv_addCategory()
1574
 
1575
  def send_addCategory(self, category):
1576
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1577
    args = addCategory_args()
1578
    args.category = category
1579
    args.write(self._oprot)
1580
    self._oprot.writeMessageEnd()
1581
    self._oprot.trans.flush()
1582
 
1583
  def recv_addCategory(self, ):
1584
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1585
    if mtype == TMessageType.EXCEPTION:
1586
      x = TApplicationException()
1587
      x.read(self._iprot)
1588
      self._iprot.readMessageEnd()
1589
      raise x
1590
    result = addCategory_result()
1591
    result.read(self._iprot)
1592
    self._iprot.readMessageEnd()
1593
    if result.success is not None:
1594
      return result.success
1595
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1596
 
1597
  def getCategory(self, id):
1598
    """
1599
    Parameters:
1600
     - id
1601
    """
1602
    self.send_getCategory(id)
1603
    return self.recv_getCategory()
1604
 
1605
  def send_getCategory(self, id):
1606
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1607
    args = getCategory_args()
1608
    args.id = id
1609
    args.write(self._oprot)
1610
    self._oprot.writeMessageEnd()
1611
    self._oprot.trans.flush()
1612
 
1613
  def recv_getCategory(self, ):
1614
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1615
    if mtype == TMessageType.EXCEPTION:
1616
      x = TApplicationException()
1617
      x.read(self._iprot)
1618
      self._iprot.readMessageEnd()
1619
      raise x
1620
    result = getCategory_result()
1621
    result.read(self._iprot)
1622
    self._iprot.readMessageEnd()
1623
    if result.success is not None:
1624
      return result.success
1625
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1626
 
1627
  def getAllCategories(self, ):
1628
    self.send_getAllCategories()
1629
    return self.recv_getAllCategories()
1630
 
1631
  def send_getAllCategories(self, ):
1632
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1633
    args = getAllCategories_args()
1634
    args.write(self._oprot)
1635
    self._oprot.writeMessageEnd()
1636
    self._oprot.trans.flush()
1637
 
1638
  def recv_getAllCategories(self, ):
1639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1640
    if mtype == TMessageType.EXCEPTION:
1641
      x = TApplicationException()
1642
      x.read(self._iprot)
1643
      self._iprot.readMessageEnd()
1644
      raise x
1645
    result = getAllCategories_result()
1646
    result.read(self._iprot)
1647
    self._iprot.readMessageEnd()
1648
    if result.success is not None:
1649
      return result.success
1650
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1651
 
1652
  def getAllSimilarItems(self, itemId):
1653
    """
1654
    Returns the list of similar items.
1655
 
1656
    Parameters:
1657
     - itemId
1658
    """
1659
    self.send_getAllSimilarItems(itemId)
1660
    return self.recv_getAllSimilarItems()
1661
 
1662
  def send_getAllSimilarItems(self, itemId):
1663
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1664
    args = getAllSimilarItems_args()
1665
    args.itemId = itemId
1666
    args.write(self._oprot)
1667
    self._oprot.writeMessageEnd()
1668
    self._oprot.trans.flush()
1669
 
1670
  def recv_getAllSimilarItems(self, ):
1671
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1672
    if mtype == TMessageType.EXCEPTION:
1673
      x = TApplicationException()
1674
      x.read(self._iprot)
1675
      self._iprot.readMessageEnd()
1676
      raise x
1677
    result = getAllSimilarItems_result()
1678
    result.read(self._iprot)
1679
    self._iprot.readMessageEnd()
1680
    if result.success is not None:
1681
      return result.success
1682
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1683
 
1684
  def addSimilarItem(self, itemId, catalogItemId):
1685
    """
1686
    Adds similar item.
1687
 
1688
    Parameters:
1689
     - itemId
1690
     - catalogItemId
1691
    """
1692
    self.send_addSimilarItem(itemId, catalogItemId)
1693
    return self.recv_addSimilarItem()
1694
 
1695
  def send_addSimilarItem(self, itemId, catalogItemId):
1696
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1697
    args = addSimilarItem_args()
1698
    args.itemId = itemId
1699
    args.catalogItemId = catalogItemId
1700
    args.write(self._oprot)
1701
    self._oprot.writeMessageEnd()
1702
    self._oprot.trans.flush()
1703
 
1704
  def recv_addSimilarItem(self, ):
1705
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1706
    if mtype == TMessageType.EXCEPTION:
1707
      x = TApplicationException()
1708
      x.read(self._iprot)
1709
      self._iprot.readMessageEnd()
1710
      raise x
1711
    result = addSimilarItem_result()
1712
    result.read(self._iprot)
1713
    self._iprot.readMessageEnd()
1714
    if result.success is not None:
1715
      return result.success
1716
    if result.cex is not None:
1717
      raise result.cex
1718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1719
 
6512 kshitij.so 1720
  def addTag(self, displayName, itemId):
1721
    """
1722
    Tag Related
1723
 
1724
    Parameters:
1725
     - displayName
1726
     - itemId
1727
    """
1728
    self.send_addTag(displayName, itemId)
1729
    return self.recv_addTag()
1730
 
1731
  def send_addTag(self, displayName, itemId):
1732
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1733
    args = addTag_args()
1734
    args.displayName = displayName
1735
    args.itemId = itemId
1736
    args.write(self._oprot)
1737
    self._oprot.writeMessageEnd()
1738
    self._oprot.trans.flush()
1739
 
1740
  def recv_addTag(self, ):
1741
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1742
    if mtype == TMessageType.EXCEPTION:
1743
      x = TApplicationException()
1744
      x.read(self._iprot)
1745
      self._iprot.readMessageEnd()
1746
      raise x
1747
    result = addTag_result()
1748
    result.read(self._iprot)
1749
    self._iprot.readMessageEnd()
1750
    if result.success is not None:
1751
      return result.success
1752
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1753
 
1754
  def deleteEntityTag(self, displayName, itemId):
1755
    """
1756
    Parameters:
1757
     - displayName
1758
     - itemId
1759
    """
1760
    self.send_deleteEntityTag(displayName, itemId)
1761
    return self.recv_deleteEntityTag()
1762
 
1763
  def send_deleteEntityTag(self, displayName, itemId):
1764
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1765
    args = deleteEntityTag_args()
1766
    args.displayName = displayName
1767
    args.itemId = itemId
1768
    args.write(self._oprot)
1769
    self._oprot.writeMessageEnd()
1770
    self._oprot.trans.flush()
1771
 
1772
  def recv_deleteEntityTag(self, ):
1773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1774
    if mtype == TMessageType.EXCEPTION:
1775
      x = TApplicationException()
1776
      x.read(self._iprot)
1777
      self._iprot.readMessageEnd()
1778
      raise x
1779
    result = deleteEntityTag_result()
1780
    result.read(self._iprot)
1781
    self._iprot.readMessageEnd()
1782
    if result.success is not None:
1783
      return result.success
1784
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1785
 
1786
  def deleteTag(self, displayName):
1787
    """
1788
    Parameters:
1789
     - displayName
1790
    """
1791
    self.send_deleteTag(displayName)
1792
    return self.recv_deleteTag()
1793
 
1794
  def send_deleteTag(self, displayName):
1795
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1796
    args = deleteTag_args()
1797
    args.displayName = displayName
1798
    args.write(self._oprot)
1799
    self._oprot.writeMessageEnd()
1800
    self._oprot.trans.flush()
1801
 
1802
  def recv_deleteTag(self, ):
1803
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1804
    if mtype == TMessageType.EXCEPTION:
1805
      x = TApplicationException()
1806
      x.read(self._iprot)
1807
      self._iprot.readMessageEnd()
1808
      raise x
1809
    result = deleteTag_result()
1810
    result.read(self._iprot)
1811
    self._iprot.readMessageEnd()
1812
    if result.success is not None:
1813
      return result.success
1814
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1815
 
1816
  def getAllTags(self, ):
1817
    self.send_getAllTags()
1818
    return self.recv_getAllTags()
1819
 
1820
  def send_getAllTags(self, ):
1821
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1822
    args = getAllTags_args()
1823
    args.write(self._oprot)
1824
    self._oprot.writeMessageEnd()
1825
    self._oprot.trans.flush()
1826
 
1827
  def recv_getAllTags(self, ):
1828
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1829
    if mtype == TMessageType.EXCEPTION:
1830
      x = TApplicationException()
1831
      x.read(self._iprot)
1832
      self._iprot.readMessageEnd()
1833
      raise x
1834
    result = getAllTags_result()
1835
    result.read(self._iprot)
1836
    self._iprot.readMessageEnd()
1837
    if result.success is not None:
1838
      return result.success
1839
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1840
 
1841
  def getAllEntitiesByTagName(self, displayName):
1842
    """
1843
    Parameters:
1844
     - displayName
1845
    """
1846
    self.send_getAllEntitiesByTagName(displayName)
1847
    return self.recv_getAllEntitiesByTagName()
1848
 
1849
  def send_getAllEntitiesByTagName(self, displayName):
1850
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1851
    args = getAllEntitiesByTagName_args()
1852
    args.displayName = displayName
1853
    args.write(self._oprot)
1854
    self._oprot.writeMessageEnd()
1855
    self._oprot.trans.flush()
1856
 
1857
  def recv_getAllEntitiesByTagName(self, ):
1858
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1859
    if mtype == TMessageType.EXCEPTION:
1860
      x = TApplicationException()
1861
      x.read(self._iprot)
1862
      self._iprot.readMessageEnd()
1863
      raise x
1864
    result = getAllEntitiesByTagName_result()
1865
    result.read(self._iprot)
1866
    self._iprot.readMessageEnd()
1867
    if result.success is not None:
1868
      return result.success
1869
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1870
 
6845 amit.gupta 1871
  def getAllEntityTags(self, ):
1872
    self.send_getAllEntityTags()
1873
    return self.recv_getAllEntityTags()
1874
 
1875
  def send_getAllEntityTags(self, ):
1876
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
1877
    args = getAllEntityTags_args()
1878
    args.write(self._oprot)
1879
    self._oprot.writeMessageEnd()
1880
    self._oprot.trans.flush()
1881
 
1882
  def recv_getAllEntityTags(self, ):
1883
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1884
    if mtype == TMessageType.EXCEPTION:
1885
      x = TApplicationException()
1886
      x.read(self._iprot)
1887
      self._iprot.readMessageEnd()
1888
      raise x
1889
    result = getAllEntityTags_result()
1890
    result.read(self._iprot)
1891
    self._iprot.readMessageEnd()
1892
    if result.success is not None:
1893
      return result.success
1894
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1895
 
6849 kshitij.so 1896
  def addBannerMap(self, bannerName, mapLink, coordinates):
1897
    """
1898
    Parameters:
1899
     - bannerName
1900
     - mapLink
1901
     - coordinates
1902
    """
1903
    self.send_addBannerMap(bannerName, mapLink, coordinates)
1904
    return self.recv_addBannerMap()
1905
 
1906
  def send_addBannerMap(self, bannerName, mapLink, coordinates):
1907
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
1908
    args = addBannerMap_args()
1909
    args.bannerName = bannerName
1910
    args.mapLink = mapLink
1911
    args.coordinates = coordinates
1912
    args.write(self._oprot)
1913
    self._oprot.writeMessageEnd()
1914
    self._oprot.trans.flush()
1915
 
1916
  def recv_addBannerMap(self, ):
1917
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1918
    if mtype == TMessageType.EXCEPTION:
1919
      x = TApplicationException()
1920
      x.read(self._iprot)
1921
      self._iprot.readMessageEnd()
1922
      raise x
1923
    result = addBannerMap_result()
1924
    result.read(self._iprot)
1925
    self._iprot.readMessageEnd()
1926
    if result.success is not None:
1927
      return result.success
1928
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
1929
 
1930
  def deleteBannerMap(self, bannerName):
1931
    """
1932
    Parameters:
1933
     - bannerName
1934
    """
1935
    self.send_deleteBannerMap(bannerName)
1936
    return self.recv_deleteBannerMap()
1937
 
1938
  def send_deleteBannerMap(self, bannerName):
1939
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
1940
    args = deleteBannerMap_args()
1941
    args.bannerName = bannerName
1942
    args.write(self._oprot)
1943
    self._oprot.writeMessageEnd()
1944
    self._oprot.trans.flush()
1945
 
1946
  def recv_deleteBannerMap(self, ):
1947
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1948
    if mtype == TMessageType.EXCEPTION:
1949
      x = TApplicationException()
1950
      x.read(self._iprot)
1951
      self._iprot.readMessageEnd()
1952
      raise x
1953
    result = deleteBannerMap_result()
1954
    result.read(self._iprot)
1955
    self._iprot.readMessageEnd()
1956
    if result.success is not None:
1957
      return result.success
1958
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
1959
 
1960
  def getBannerMapDetails(self, bannerName):
1961
    """
1962
    Parameters:
1963
     - bannerName
1964
    """
1965
    self.send_getBannerMapDetails(bannerName)
1966
    return self.recv_getBannerMapDetails()
1967
 
1968
  def send_getBannerMapDetails(self, bannerName):
1969
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
1970
    args = getBannerMapDetails_args()
1971
    args.bannerName = bannerName
1972
    args.write(self._oprot)
1973
    self._oprot.writeMessageEnd()
1974
    self._oprot.trans.flush()
1975
 
1976
  def recv_getBannerMapDetails(self, ):
1977
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1978
    if mtype == TMessageType.EXCEPTION:
1979
      x = TApplicationException()
1980
      x.read(self._iprot)
1981
      self._iprot.readMessageEnd()
1982
      raise x
1983
    result = getBannerMapDetails_result()
1984
    result.read(self._iprot)
1985
    self._iprot.readMessageEnd()
1986
    if result.success is not None:
1987
      return result.success
1988
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
1989
 
5944 mandeep.dh 1990
  def deleteSimilarItem(self, itemId, catalogItemId):
1991
    """
1992
    Delete similar item.
1993
 
1994
    Parameters:
1995
     - itemId
1996
     - catalogItemId
1997
    """
1998
    self.send_deleteSimilarItem(itemId, catalogItemId)
1999
    return self.recv_deleteSimilarItem()
2000
 
2001
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2002
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2003
    args = deleteSimilarItem_args()
2004
    args.itemId = itemId
2005
    args.catalogItemId = catalogItemId
2006
    args.write(self._oprot)
2007
    self._oprot.writeMessageEnd()
2008
    self._oprot.trans.flush()
2009
 
2010
  def recv_deleteSimilarItem(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 = deleteSimilarItem_result()
2018
    result.read(self._iprot)
2019
    self._iprot.readMessageEnd()
2020
    if result.success is not None:
2021
      return result.success
2022
    if result.cex is not None:
2023
      raise result.cex
2024
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2025
 
2026
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2027
    """
2028
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2029
    If yes, returns the itemId else returns 0
2030
 
2031
    Parameters:
2032
     - brand
2033
     - modelNumber
2034
     - modelName
2035
     - color
2036
    """
2037
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2038
    return self.recv_checkSimilarItem()
2039
 
2040
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2041
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2042
    args = checkSimilarItem_args()
2043
    args.brand = brand
2044
    args.modelNumber = modelNumber
2045
    args.modelName = modelName
2046
    args.color = color
2047
    args.write(self._oprot)
2048
    self._oprot.writeMessageEnd()
2049
    self._oprot.trans.flush()
2050
 
2051
  def recv_checkSimilarItem(self, ):
2052
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2053
    if mtype == TMessageType.EXCEPTION:
2054
      x = TApplicationException()
2055
      x.read(self._iprot)
2056
      self._iprot.readMessageEnd()
2057
      raise x
2058
    result = checkSimilarItem_result()
2059
    result.read(self._iprot)
2060
    self._iprot.readMessageEnd()
2061
    if result.success is not None:
2062
      return result.success
2063
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2064
 
2065
  def validateRiskyStatus(self, itemId):
2066
    """
2067
    Check wether item is risky and change status if inventory is not available for risky items
2068
 
2069
    Parameters:
2070
     - itemId
2071
    """
2072
    self.send_validateRiskyStatus(itemId)
2073
    self.recv_validateRiskyStatus()
2074
 
2075
  def send_validateRiskyStatus(self, itemId):
2076
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
2077
    args = validateRiskyStatus_args()
2078
    args.itemId = itemId
2079
    args.write(self._oprot)
2080
    self._oprot.writeMessageEnd()
2081
    self._oprot.trans.flush()
2082
 
2083
  def recv_validateRiskyStatus(self, ):
2084
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2085
    if mtype == TMessageType.EXCEPTION:
2086
      x = TApplicationException()
2087
      x.read(self._iprot)
2088
      self._iprot.readMessageEnd()
2089
      raise x
2090
    result = validateRiskyStatus_result()
2091
    result.read(self._iprot)
2092
    self._iprot.readMessageEnd()
2093
    return
2094
 
2095
  def changeItemRiskyFlag(self, itemId, risky):
2096
    """
2097
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
2098
 
2099
    Parameters:
2100
     - itemId
2101
     - risky
2102
    """
2103
    self.send_changeItemRiskyFlag(itemId, risky)
2104
    self.recv_changeItemRiskyFlag()
2105
 
2106
  def send_changeItemRiskyFlag(self, itemId, risky):
2107
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
2108
    args = changeItemRiskyFlag_args()
2109
    args.itemId = itemId
2110
    args.risky = risky
2111
    args.write(self._oprot)
2112
    self._oprot.writeMessageEnd()
2113
    self._oprot.trans.flush()
2114
 
2115
  def recv_changeItemRiskyFlag(self, ):
2116
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2117
    if mtype == TMessageType.EXCEPTION:
2118
      x = TApplicationException()
2119
      x.read(self._iprot)
2120
      self._iprot.readMessageEnd()
2121
      raise x
2122
    result = changeItemRiskyFlag_result()
2123
    result.read(self._iprot)
2124
    self._iprot.readMessageEnd()
2125
    return
2126
 
2127
  def getItemsByRiskyFlag(self, ):
2128
    """
2129
    Returns list of items marked as risky.
2130
    """
2131
    self.send_getItemsByRiskyFlag()
2132
    return self.recv_getItemsByRiskyFlag()
2133
 
2134
  def send_getItemsByRiskyFlag(self, ):
2135
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2136
    args = getItemsByRiskyFlag_args()
2137
    args.write(self._oprot)
2138
    self._oprot.writeMessageEnd()
2139
    self._oprot.trans.flush()
2140
 
2141
  def recv_getItemsByRiskyFlag(self, ):
2142
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2143
    if mtype == TMessageType.EXCEPTION:
2144
      x = TApplicationException()
2145
      x.read(self._iprot)
2146
      self._iprot.readMessageEnd()
2147
      raise x
2148
    result = getItemsByRiskyFlag_result()
2149
    result.read(self._iprot)
2150
    self._iprot.readMessageEnd()
2151
    if result.success is not None:
2152
      return result.success
2153
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2154
 
2155
  def getItemsForMasterSheet(self, category, brand):
2156
    """
2157
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2158
 
2159
    Parameters:
2160
     - category
2161
     - brand
2162
    """
2163
    self.send_getItemsForMasterSheet(category, brand)
2164
    return self.recv_getItemsForMasterSheet()
2165
 
2166
  def send_getItemsForMasterSheet(self, category, brand):
2167
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2168
    args = getItemsForMasterSheet_args()
2169
    args.category = category
2170
    args.brand = brand
2171
    args.write(self._oprot)
2172
    self._oprot.writeMessageEnd()
2173
    self._oprot.trans.flush()
2174
 
2175
  def recv_getItemsForMasterSheet(self, ):
2176
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2177
    if mtype == TMessageType.EXCEPTION:
2178
      x = TApplicationException()
2179
      x.read(self._iprot)
2180
      self._iprot.readMessageEnd()
2181
      raise x
2182
    result = getItemsForMasterSheet_result()
2183
    result.read(self._iprot)
2184
    self._iprot.readMessageEnd()
2185
    if result.success is not None:
2186
      return result.success
2187
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2188
 
2189
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2190
    """
2191
    Returns list of catalog ids of items with same similarity index as of the given itemId
2192
 
2193
    Parameters:
2194
     - beginIndex
2195
     - totalItems
2196
     - itemId
2197
    """
2198
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2199
    return self.recv_getSimilarItemsCatalogIds()
2200
 
2201
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2202
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2203
    args = getSimilarItemsCatalogIds_args()
2204
    args.beginIndex = beginIndex
2205
    args.totalItems = totalItems
2206
    args.itemId = itemId
2207
    args.write(self._oprot)
2208
    self._oprot.writeMessageEnd()
2209
    self._oprot.trans.flush()
2210
 
2211
  def recv_getSimilarItemsCatalogIds(self, ):
2212
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2213
    if mtype == TMessageType.EXCEPTION:
2214
      x = TApplicationException()
2215
      x.read(self._iprot)
2216
      self._iprot.readMessageEnd()
2217
      raise x
2218
    result = getSimilarItemsCatalogIds_result()
2219
    result.read(self._iprot)
2220
    self._iprot.readMessageEnd()
2221
    if result.success is not None:
2222
      return result.success
2223
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2224
 
2225
  def addProductNotification(self, itemId, email):
2226
    """
2227
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2228
 
2229
    Parameters:
2230
     - itemId
2231
     - email
2232
    """
2233
    self.send_addProductNotification(itemId, email)
2234
    return self.recv_addProductNotification()
2235
 
2236
  def send_addProductNotification(self, itemId, email):
2237
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2238
    args = addProductNotification_args()
2239
    args.itemId = itemId
2240
    args.email = email
2241
    args.write(self._oprot)
2242
    self._oprot.writeMessageEnd()
2243
    self._oprot.trans.flush()
2244
 
2245
  def recv_addProductNotification(self, ):
2246
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2247
    if mtype == TMessageType.EXCEPTION:
2248
      x = TApplicationException()
2249
      x.read(self._iprot)
2250
      self._iprot.readMessageEnd()
2251
      raise x
2252
    result = addProductNotification_result()
2253
    result.read(self._iprot)
2254
    self._iprot.readMessageEnd()
2255
    if result.success is not None:
2256
      return result.success
2257
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2258
 
2259
  def sendProductNotifications(self, ):
2260
    """
2261
    Send the product notifications to the users for items which has stock.
2262
    """
2263
    self.send_sendProductNotifications()
2264
    return self.recv_sendProductNotifications()
2265
 
2266
  def send_sendProductNotifications(self, ):
2267
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2268
    args = sendProductNotifications_args()
2269
    args.write(self._oprot)
2270
    self._oprot.writeMessageEnd()
2271
    self._oprot.trans.flush()
2272
 
2273
  def recv_sendProductNotifications(self, ):
2274
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2275
    if mtype == TMessageType.EXCEPTION:
2276
      x = TApplicationException()
2277
      x.read(self._iprot)
2278
      self._iprot.readMessageEnd()
2279
      raise x
2280
    result = sendProductNotifications_result()
2281
    result.read(self._iprot)
2282
    self._iprot.readMessageEnd()
2283
    if result.success is not None:
2284
      return result.success
2285
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2286
 
2287
  def getAllBrandsByCategory(self, categoryId):
2288
    """
2289
    Returns list of brand names for a given category Id
2290
 
2291
    Parameters:
2292
     - categoryId
2293
    """
2294
    self.send_getAllBrandsByCategory(categoryId)
2295
    return self.recv_getAllBrandsByCategory()
2296
 
2297
  def send_getAllBrandsByCategory(self, categoryId):
2298
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2299
    args = getAllBrandsByCategory_args()
2300
    args.categoryId = categoryId
2301
    args.write(self._oprot)
2302
    self._oprot.writeMessageEnd()
2303
    self._oprot.trans.flush()
2304
 
2305
  def recv_getAllBrandsByCategory(self, ):
2306
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2307
    if mtype == TMessageType.EXCEPTION:
2308
      x = TApplicationException()
2309
      x.read(self._iprot)
2310
      self._iprot.readMessageEnd()
2311
      raise x
2312
    result = getAllBrandsByCategory_result()
2313
    result.read(self._iprot)
2314
    self._iprot.readMessageEnd()
2315
    if result.success is not None:
2316
      return result.success
2317
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2318
 
2319
  def getAllBrands(self, ):
2320
    """
2321
    Returns list of brand names
2322
    """
2323
    self.send_getAllBrands()
2324
    return self.recv_getAllBrands()
2325
 
2326
  def send_getAllBrands(self, ):
2327
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2328
    args = getAllBrands_args()
2329
    args.write(self._oprot)
2330
    self._oprot.writeMessageEnd()
2331
    self._oprot.trans.flush()
2332
 
2333
  def recv_getAllBrands(self, ):
2334
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2335
    if mtype == TMessageType.EXCEPTION:
2336
      x = TApplicationException()
2337
      x.read(self._iprot)
2338
      self._iprot.readMessageEnd()
2339
      raise x
2340
    result = getAllBrands_result()
2341
    result.read(self._iprot)
2342
    self._iprot.readMessageEnd()
2343
    if result.success is not None:
2344
      return result.success
2345
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2346
 
2347
  def getAllSources(self, ):
2348
    """
2349
    Return list of all sources
2350
    """
2351
    self.send_getAllSources()
2352
    return self.recv_getAllSources()
2353
 
2354
  def send_getAllSources(self, ):
2355
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2356
    args = getAllSources_args()
2357
    args.write(self._oprot)
2358
    self._oprot.writeMessageEnd()
2359
    self._oprot.trans.flush()
2360
 
2361
  def recv_getAllSources(self, ):
2362
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2363
    if mtype == TMessageType.EXCEPTION:
2364
      x = TApplicationException()
2365
      x.read(self._iprot)
2366
      self._iprot.readMessageEnd()
2367
      raise x
2368
    result = getAllSources_result()
2369
    result.read(self._iprot)
2370
    self._iprot.readMessageEnd()
2371
    if result.success is not None:
2372
      return result.success
2373
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2374
 
2375
  def getItemPricingBySource(self, itemId, sourceId):
2376
    """
2377
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2378
 
2379
    Parameters:
2380
     - itemId
2381
     - sourceId
2382
    """
2383
    self.send_getItemPricingBySource(itemId, sourceId)
2384
    return self.recv_getItemPricingBySource()
2385
 
2386
  def send_getItemPricingBySource(self, itemId, sourceId):
2387
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2388
    args = getItemPricingBySource_args()
2389
    args.itemId = itemId
2390
    args.sourceId = sourceId
2391
    args.write(self._oprot)
2392
    self._oprot.writeMessageEnd()
2393
    self._oprot.trans.flush()
2394
 
2395
  def recv_getItemPricingBySource(self, ):
2396
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2397
    if mtype == TMessageType.EXCEPTION:
2398
      x = TApplicationException()
2399
      x.read(self._iprot)
2400
      self._iprot.readMessageEnd()
2401
      raise x
2402
    result = getItemPricingBySource_result()
2403
    result.read(self._iprot)
2404
    self._iprot.readMessageEnd()
2405
    if result.success is not None:
2406
      return result.success
2407
    if result.cex is not None:
2408
      raise result.cex
2409
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2410
 
2411
  def addSourceItemPricing(self, sourceItemPricing):
2412
    """
2413
    Adds prices to be displayed corresponding to the item if user comes from a source.
2414
    If item is not found or source is not found, it will throw exception.
2415
 
2416
    Parameters:
2417
     - sourceItemPricing
2418
    """
2419
    self.send_addSourceItemPricing(sourceItemPricing)
2420
    self.recv_addSourceItemPricing()
2421
 
2422
  def send_addSourceItemPricing(self, sourceItemPricing):
2423
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2424
    args = addSourceItemPricing_args()
2425
    args.sourceItemPricing = sourceItemPricing
2426
    args.write(self._oprot)
2427
    self._oprot.writeMessageEnd()
2428
    self._oprot.trans.flush()
2429
 
2430
  def recv_addSourceItemPricing(self, ):
2431
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2432
    if mtype == TMessageType.EXCEPTION:
2433
      x = TApplicationException()
2434
      x.read(self._iprot)
2435
      self._iprot.readMessageEnd()
2436
      raise x
2437
    result = addSourceItemPricing_result()
2438
    result.read(self._iprot)
2439
    self._iprot.readMessageEnd()
2440
    if result.cex is not None:
2441
      raise result.cex
2442
    return
2443
 
2444
  def getAllSourcePricing(self, itemId):
2445
    """
2446
    Returns the list of source pricing information of an item.
2447
    Raises an exception if item not found corresponding to itemId
2448
 
2449
    Parameters:
2450
     - itemId
2451
    """
2452
    self.send_getAllSourcePricing(itemId)
2453
    return self.recv_getAllSourcePricing()
2454
 
2455
  def send_getAllSourcePricing(self, itemId):
2456
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2457
    args = getAllSourcePricing_args()
2458
    args.itemId = itemId
2459
    args.write(self._oprot)
2460
    self._oprot.writeMessageEnd()
2461
    self._oprot.trans.flush()
2462
 
2463
  def recv_getAllSourcePricing(self, ):
2464
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2465
    if mtype == TMessageType.EXCEPTION:
2466
      x = TApplicationException()
2467
      x.read(self._iprot)
2468
      self._iprot.readMessageEnd()
2469
      raise x
2470
    result = getAllSourcePricing_result()
2471
    result.read(self._iprot)
2472
    self._iprot.readMessageEnd()
2473
    if result.success is not None:
2474
      return result.success
2475
    if result.cex is not None:
2476
      raise result.cex
2477
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2478
 
2479
  def getItemForSource(self, item_id, sourceId):
2480
    """
2481
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2482
 
2483
    Parameters:
2484
     - item_id
2485
     - sourceId
2486
    """
2487
    self.send_getItemForSource(item_id, sourceId)
2488
    return self.recv_getItemForSource()
2489
 
2490
  def send_getItemForSource(self, item_id, sourceId):
2491
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2492
    args = getItemForSource_args()
2493
    args.item_id = item_id
2494
    args.sourceId = sourceId
2495
    args.write(self._oprot)
2496
    self._oprot.writeMessageEnd()
2497
    self._oprot.trans.flush()
2498
 
2499
  def recv_getItemForSource(self, ):
2500
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2501
    if mtype == TMessageType.EXCEPTION:
2502
      x = TApplicationException()
2503
      x.read(self._iprot)
2504
      self._iprot.readMessageEnd()
2505
      raise x
2506
    result = getItemForSource_result()
2507
    result.read(self._iprot)
2508
    self._iprot.readMessageEnd()
2509
    if result.success is not None:
2510
      return result.success
2511
    if result.cex is not None:
2512
      raise result.cex
2513
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2514
 
2515
  def searchItemsInRange(self, searchTerms, offset, limit):
2516
    """
2517
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2518
 
2519
    Parameters:
2520
     - searchTerms
2521
     - offset
2522
     - limit
2523
    """
2524
    self.send_searchItemsInRange(searchTerms, offset, limit)
2525
    return self.recv_searchItemsInRange()
2526
 
2527
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2528
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2529
    args = searchItemsInRange_args()
2530
    args.searchTerms = searchTerms
2531
    args.offset = offset
2532
    args.limit = limit
2533
    args.write(self._oprot)
2534
    self._oprot.writeMessageEnd()
2535
    self._oprot.trans.flush()
2536
 
2537
  def recv_searchItemsInRange(self, ):
2538
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2539
    if mtype == TMessageType.EXCEPTION:
2540
      x = TApplicationException()
2541
      x.read(self._iprot)
2542
      self._iprot.readMessageEnd()
2543
      raise x
2544
    result = searchItemsInRange_result()
2545
    result.read(self._iprot)
2546
    self._iprot.readMessageEnd()
2547
    if result.success is not None:
2548
      return result.success
2549
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2550
 
2551
  def getSearchResultCount(self, searchTerms):
2552
    """
2553
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2554
 
2555
    Parameters:
2556
     - searchTerms
2557
    """
2558
    self.send_getSearchResultCount(searchTerms)
2559
    return self.recv_getSearchResultCount()
2560
 
2561
  def send_getSearchResultCount(self, searchTerms):
2562
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2563
    args = getSearchResultCount_args()
2564
    args.searchTerms = searchTerms
2565
    args.write(self._oprot)
2566
    self._oprot.writeMessageEnd()
2567
    self._oprot.trans.flush()
2568
 
2569
  def recv_getSearchResultCount(self, ):
2570
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2571
    if mtype == TMessageType.EXCEPTION:
2572
      x = TApplicationException()
2573
      x.read(self._iprot)
2574
      self._iprot.readMessageEnd()
2575
      raise x
2576
    result = getSearchResultCount_result()
2577
    result.read(self._iprot)
2578
    self._iprot.readMessageEnd()
2579
    if result.success is not None:
2580
      return result.success
2581
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2582
 
2583
  def getProductNotifications(self, startDateTime):
2584
    """
2585
    Returns a list of product notifications added after a supplied datetime
2586
 
2587
    Parameters:
2588
     - startDateTime
2589
    """
2590
    self.send_getProductNotifications(startDateTime)
2591
    return self.recv_getProductNotifications()
2592
 
2593
  def send_getProductNotifications(self, startDateTime):
2594
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2595
    args = getProductNotifications_args()
2596
    args.startDateTime = startDateTime
2597
    args.write(self._oprot)
2598
    self._oprot.writeMessageEnd()
2599
    self._oprot.trans.flush()
2600
 
2601
  def recv_getProductNotifications(self, ):
2602
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2603
    if mtype == TMessageType.EXCEPTION:
2604
      x = TApplicationException()
2605
      x.read(self._iprot)
2606
      self._iprot.readMessageEnd()
2607
      raise x
2608
    result = getProductNotifications_result()
2609
    result.read(self._iprot)
2610
    self._iprot.readMessageEnd()
2611
    if result.success is not None:
2612
      return result.success
2613
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2614
 
2615
  def getProductNotificationRequestCount(self, startDateTime):
2616
    """
2617
    Returns a list of count of requests for product notification against each item
2618
 
2619
    Parameters:
2620
     - startDateTime
2621
    """
2622
    self.send_getProductNotificationRequestCount(startDateTime)
2623
    return self.recv_getProductNotificationRequestCount()
2624
 
2625
  def send_getProductNotificationRequestCount(self, startDateTime):
2626
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2627
    args = getProductNotificationRequestCount_args()
2628
    args.startDateTime = startDateTime
2629
    args.write(self._oprot)
2630
    self._oprot.writeMessageEnd()
2631
    self._oprot.trans.flush()
2632
 
2633
  def recv_getProductNotificationRequestCount(self, ):
2634
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2635
    if mtype == TMessageType.EXCEPTION:
2636
      x = TApplicationException()
2637
      x.read(self._iprot)
2638
      self._iprot.readMessageEnd()
2639
      raise x
2640
    result = getProductNotificationRequestCount_result()
2641
    result.read(self._iprot)
2642
    self._iprot.readMessageEnd()
2643
    if result.success is not None:
2644
      return result.success
2645
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2646
 
2647
  def addAuthorizationLog(self, itemId, username, reason):
2648
    """
2649
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2650
 
2651
    Parameters:
2652
     - itemId
2653
     - username
2654
     - reason
2655
    """
2656
    self.send_addAuthorizationLog(itemId, username, reason)
2657
    return self.recv_addAuthorizationLog()
2658
 
2659
  def send_addAuthorizationLog(self, itemId, username, reason):
2660
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2661
    args = addAuthorizationLog_args()
2662
    args.itemId = itemId
2663
    args.username = username
2664
    args.reason = reason
2665
    args.write(self._oprot)
2666
    self._oprot.writeMessageEnd()
2667
    self._oprot.trans.flush()
2668
 
2669
  def recv_addAuthorizationLog(self, ):
2670
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2671
    if mtype == TMessageType.EXCEPTION:
2672
      x = TApplicationException()
2673
      x.read(self._iprot)
2674
      self._iprot.readMessageEnd()
2675
      raise x
2676
    result = addAuthorizationLog_result()
2677
    result.read(self._iprot)
2678
    self._iprot.readMessageEnd()
2679
    if result.success is not None:
2680
      return result.success
2681
    if result.cex is not None:
2682
      raise result.cex
2683
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2684
 
2685
  def getClearanceSaleCatalogIds(self, ):
2686
    self.send_getClearanceSaleCatalogIds()
2687
    return self.recv_getClearanceSaleCatalogIds()
2688
 
2689
  def send_getClearanceSaleCatalogIds(self, ):
2690
    self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)
2691
    args = getClearanceSaleCatalogIds_args()
2692
    args.write(self._oprot)
2693
    self._oprot.writeMessageEnd()
2694
    self._oprot.trans.flush()
2695
 
2696
  def recv_getClearanceSaleCatalogIds(self, ):
2697
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2698
    if mtype == TMessageType.EXCEPTION:
2699
      x = TApplicationException()
2700
      x.read(self._iprot)
2701
      self._iprot.readMessageEnd()
2702
      raise x
2703
    result = getClearanceSaleCatalogIds_result()
2704
    result.read(self._iprot)
2705
    self._iprot.readMessageEnd()
2706
    if result.success is not None:
2707
      return result.success
2708
    if result.cex is not None:
2709
      raise result.cex
2710
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2711
 
2712
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2713
    """
2714
    Parameters:
2715
     - catalog_item_id
2716
     - voucherType
2717
     - voucherAmount
2718
    """
2719
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2720
    return self.recv_addupdateVoucherForItem()
2721
 
2722
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2723
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2724
    args = addupdateVoucherForItem_args()
2725
    args.catalog_item_id = catalog_item_id
2726
    args.voucherType = voucherType
2727
    args.voucherAmount = voucherAmount
2728
    args.write(self._oprot)
2729
    self._oprot.writeMessageEnd()
2730
    self._oprot.trans.flush()
2731
 
2732
  def recv_addupdateVoucherForItem(self, ):
2733
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2734
    if mtype == TMessageType.EXCEPTION:
2735
      x = TApplicationException()
2736
      x.read(self._iprot)
2737
      self._iprot.readMessageEnd()
2738
      raise x
2739
    result = addupdateVoucherForItem_result()
2740
    result.read(self._iprot)
2741
    self._iprot.readMessageEnd()
2742
    if result.success is not None:
2743
      return result.success
2744
    if result.cex is not None:
2745
      raise result.cex
2746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2747
 
2748
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2749
    """
2750
    Parameters:
2751
     - catalog_item_id
2752
     - voucherType
2753
    """
2754
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2755
    return self.recv_deleteVoucherForItem()
2756
 
2757
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2758
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2759
    args = deleteVoucherForItem_args()
2760
    args.catalog_item_id = catalog_item_id
2761
    args.voucherType = voucherType
2762
    args.write(self._oprot)
2763
    self._oprot.writeMessageEnd()
2764
    self._oprot.trans.flush()
2765
 
2766
  def recv_deleteVoucherForItem(self, ):
2767
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2768
    if mtype == TMessageType.EXCEPTION:
2769
      x = TApplicationException()
2770
      x.read(self._iprot)
2771
      self._iprot.readMessageEnd()
2772
      raise x
2773
    result = deleteVoucherForItem_result()
2774
    result.read(self._iprot)
2775
    self._iprot.readMessageEnd()
2776
    if result.success is not None:
2777
      return result.success
2778
    if result.cex is not None:
2779
      raise result.cex
2780
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2781
 
2782
  def getVoucherAmount(self, itemId, voucherType):
2783
    """
2784
    Parameters:
2785
     - itemId
2786
     - voucherType
2787
    """
2788
    self.send_getVoucherAmount(itemId, voucherType)
2789
    return self.recv_getVoucherAmount()
2790
 
2791
  def send_getVoucherAmount(self, itemId, voucherType):
2792
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2793
    args = getVoucherAmount_args()
2794
    args.itemId = itemId
2795
    args.voucherType = voucherType
2796
    args.write(self._oprot)
2797
    self._oprot.writeMessageEnd()
2798
    self._oprot.trans.flush()
2799
 
2800
  def recv_getVoucherAmount(self, ):
2801
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2802
    if mtype == TMessageType.EXCEPTION:
2803
      x = TApplicationException()
2804
      x.read(self._iprot)
2805
      self._iprot.readMessageEnd()
2806
      raise x
2807
    result = getVoucherAmount_result()
2808
    result.read(self._iprot)
2809
    self._iprot.readMessageEnd()
2810
    if result.success is not None:
2811
      return result.success
2812
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
2813
 
2814
  def getAllItemVouchers(self, itemId):
2815
    """
2816
    Parameters:
2817
     - itemId
2818
    """
2819
    self.send_getAllItemVouchers(itemId)
2820
    return self.recv_getAllItemVouchers()
2821
 
2822
  def send_getAllItemVouchers(self, itemId):
2823
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
2824
    args = getAllItemVouchers_args()
2825
    args.itemId = itemId
2826
    args.write(self._oprot)
2827
    self._oprot.writeMessageEnd()
2828
    self._oprot.trans.flush()
2829
 
2830
  def recv_getAllItemVouchers(self, ):
2831
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2832
    if mtype == TMessageType.EXCEPTION:
2833
      x = TApplicationException()
2834
      x.read(self._iprot)
2835
      self._iprot.readMessageEnd()
2836
      raise x
2837
    result = getAllItemVouchers_result()
2838
    result.read(self._iprot)
2839
    self._iprot.readMessageEnd()
2840
    if result.success is not None:
2841
      return result.success
2842
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
2843
 
2844
  def isValidCatalogItemId(self, catalog_item_id):
2845
    """
2846
    Parameters:
2847
     - catalog_item_id
2848
    """
2849
    self.send_isValidCatalogItemId(catalog_item_id)
2850
    return self.recv_isValidCatalogItemId()
2851
 
2852
  def send_isValidCatalogItemId(self, catalog_item_id):
2853
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
2854
    args = isValidCatalogItemId_args()
2855
    args.catalog_item_id = catalog_item_id
2856
    args.write(self._oprot)
2857
    self._oprot.writeMessageEnd()
2858
    self._oprot.trans.flush()
2859
 
2860
  def recv_isValidCatalogItemId(self, ):
2861
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2862
    if mtype == TMessageType.EXCEPTION:
2863
      x = TApplicationException()
2864
      x.read(self._iprot)
2865
      self._iprot.readMessageEnd()
2866
      raise x
2867
    result = isValidCatalogItemId_result()
2868
    result.read(self._iprot)
2869
    self._iprot.readMessageEnd()
2870
    if result.success is not None:
2871
      return result.success
2872
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
2873
 
6039 amit.gupta 2874
  def getVatPercentageForItem(self, itemId, price):
2875
    """
2876
    Parameters:
2877
     - itemId
2878
     - price
2879
    """
2880
    self.send_getVatPercentageForItem(itemId, price)
2881
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 2882
 
6039 amit.gupta 2883
  def send_getVatPercentageForItem(self, itemId, price):
2884
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
2885
    args = getVatPercentageForItem_args()
2886
    args.itemId = itemId
2887
    args.price = price
2888
    args.write(self._oprot)
2889
    self._oprot.writeMessageEnd()
2890
    self._oprot.trans.flush()
2891
 
2892
  def recv_getVatPercentageForItem(self, ):
2893
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2894
    if mtype == TMessageType.EXCEPTION:
2895
      x = TApplicationException()
2896
      x.read(self._iprot)
2897
      self._iprot.readMessageEnd()
2898
      raise x
2899
    result = getVatPercentageForItem_result()
2900
    result.read(self._iprot)
2901
    self._iprot.readMessageEnd()
2902
    if result.success is not None:
2903
      return result.success
2904
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
2905
 
2906
  def getVatAmountForItem(self, itemId, price):
2907
    """
2908
    Parameters:
2909
     - itemId
2910
     - price
2911
    """
2912
    self.send_getVatAmountForItem(itemId, price)
2913
    return self.recv_getVatAmountForItem()
2914
 
2915
  def send_getVatAmountForItem(self, itemId, price):
2916
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
2917
    args = getVatAmountForItem_args()
2918
    args.itemId = itemId
2919
    args.price = price
2920
    args.write(self._oprot)
2921
    self._oprot.writeMessageEnd()
2922
    self._oprot.trans.flush()
2923
 
2924
  def recv_getVatAmountForItem(self, ):
2925
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2926
    if mtype == TMessageType.EXCEPTION:
2927
      x = TApplicationException()
2928
      x.read(self._iprot)
2929
      self._iprot.readMessageEnd()
2930
      raise x
2931
    result = getVatAmountForItem_result()
2932
    result.read(self._iprot)
2933
    self._iprot.readMessageEnd()
2934
    if result.success is not None:
2935
      return result.success
2936
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
2937
 
6531 vikram.rag 2938
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2939
    """
2940
    Parameters:
2941
     - offset
2942
     - limit
2943
    """
2944
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
2945
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 2946
 
6531 vikram.rag 2947
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2948
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
2949
    args = getAllIgnoredInventoryUpdateItemsList_args()
2950
    args.offset = offset
2951
    args.limit = limit
2952
    args.write(self._oprot)
2953
    self._oprot.writeMessageEnd()
2954
    self._oprot.trans.flush()
2955
 
2956
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
2957
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2958
    if mtype == TMessageType.EXCEPTION:
2959
      x = TApplicationException()
2960
      x.read(self._iprot)
2961
      self._iprot.readMessageEnd()
2962
      raise x
2963
    result = getAllIgnoredInventoryUpdateItemsList_result()
2964
    result.read(self._iprot)
2965
    self._iprot.readMessageEnd()
2966
    if result.success is not None:
2967
      return result.success
2968
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
2969
 
6821 amar.kumar 2970
  def getAllAliveItems(self, ):
2971
    self.send_getAllAliveItems()
2972
    return self.recv_getAllAliveItems()
2973
 
2974
  def send_getAllAliveItems(self, ):
2975
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
2976
    args = getAllAliveItems_args()
2977
    args.write(self._oprot)
2978
    self._oprot.writeMessageEnd()
2979
    self._oprot.trans.flush()
2980
 
2981
  def recv_getAllAliveItems(self, ):
2982
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2983
    if mtype == TMessageType.EXCEPTION:
2984
      x = TApplicationException()
2985
      x.read(self._iprot)
2986
      self._iprot.readMessageEnd()
2987
      raise x
2988
    result = getAllAliveItems_result()
2989
    result.read(self._iprot)
2990
    self._iprot.readMessageEnd()
2991
    if result.success is not None:
2992
      return result.success
2993
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
2994
 
6805 anupam.sin 2995
  def getInsuranceAmount(self, itemId, insurerId, quantity):
2996
    """
2997
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 2998
 
6805 anupam.sin 2999
    Parameters:
3000
     - itemId
3001
     - insurerId
3002
     - quantity
3003
    """
3004
    self.send_getInsuranceAmount(itemId, insurerId, quantity)
3005
    return self.recv_getInsuranceAmount()
3006
 
3007
  def send_getInsuranceAmount(self, itemId, insurerId, quantity):
3008
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3009
    args = getInsuranceAmount_args()
3010
    args.itemId = itemId
3011
    args.insurerId = insurerId
3012
    args.quantity = quantity
3013
    args.write(self._oprot)
3014
    self._oprot.writeMessageEnd()
3015
    self._oprot.trans.flush()
3016
 
3017
  def recv_getInsuranceAmount(self, ):
3018
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3019
    if mtype == TMessageType.EXCEPTION:
3020
      x = TApplicationException()
3021
      x.read(self._iprot)
3022
      self._iprot.readMessageEnd()
3023
      raise x
3024
    result = getInsuranceAmount_result()
3025
    result.read(self._iprot)
3026
    self._iprot.readMessageEnd()
3027
    if result.success is not None:
3028
      return result.success
3029
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3030
 
3031
  def getInsurer(self, insurerId):
3032
    """
3033
    Parameters:
3034
     - insurerId
3035
    """
3036
    self.send_getInsurer(insurerId)
3037
    return self.recv_getInsurer()
3038
 
3039
  def send_getInsurer(self, insurerId):
3040
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3041
    args = getInsurer_args()
3042
    args.insurerId = insurerId
3043
    args.write(self._oprot)
3044
    self._oprot.writeMessageEnd()
3045
    self._oprot.trans.flush()
3046
 
3047
  def recv_getInsurer(self, ):
3048
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3049
    if mtype == TMessageType.EXCEPTION:
3050
      x = TApplicationException()
3051
      x.read(self._iprot)
3052
      self._iprot.readMessageEnd()
3053
      raise x
3054
    result = getInsurer_result()
3055
    result.read(self._iprot)
3056
    self._iprot.readMessageEnd()
3057
    if result.success is not None:
3058
      return result.success
3059
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3060
 
6838 vikram.rag 3061
  def getAllInsurers(self, ):
3062
    self.send_getAllInsurers()
3063
    return self.recv_getAllInsurers()
6805 anupam.sin 3064
 
6838 vikram.rag 3065
  def send_getAllInsurers(self, ):
3066
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3067
    args = getAllInsurers_args()
3068
    args.write(self._oprot)
3069
    self._oprot.writeMessageEnd()
3070
    self._oprot.trans.flush()
3071
 
3072
  def recv_getAllInsurers(self, ):
3073
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3074
    if mtype == TMessageType.EXCEPTION:
3075
      x = TApplicationException()
3076
      x.read(self._iprot)
3077
      self._iprot.readMessageEnd()
3078
      raise x
3079
    result = getAllInsurers_result()
3080
    result.read(self._iprot)
3081
    self._iprot.readMessageEnd()
3082
    if result.success is not None:
3083
      return result.success
3084
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3085
 
3086
 
5944 mandeep.dh 3087
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3088
  def __init__(self, handler):
3089
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3090
    self._processMap["addItem"] = Processor.process_addItem
3091
    self._processMap["updateItem"] = Processor.process_updateItem
3092
    self._processMap["isActive"] = Processor.process_isActive
3093
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
3094
    self._processMap["startItemOn"] = Processor.process_startItemOn
3095
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
3096
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3097
    self._processMap["getItem"] = Processor.process_getItem
3098
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
3099
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
3100
    self._processMap["getAllItems"] = Processor.process_getAllItems
3101
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
3102
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
3103
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
3104
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
3105
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
3106
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
3107
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
3108
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
3109
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
3110
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
3111
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
3112
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
3113
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
3114
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
3115
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
3116
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
3117
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
3118
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
3119
    self._processMap["addCategory"] = Processor.process_addCategory
3120
    self._processMap["getCategory"] = Processor.process_getCategory
3121
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
3122
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
3123
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 3124
    self._processMap["addTag"] = Processor.process_addTag
3125
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
3126
    self._processMap["deleteTag"] = Processor.process_deleteTag
3127
    self._processMap["getAllTags"] = Processor.process_getAllTags
3128
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 3129
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6849 kshitij.so 3130
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
3131
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
3132
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
5944 mandeep.dh 3133
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
3134
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
3135
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
3136
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
3137
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
3138
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
3139
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
3140
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
3141
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
3142
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
3143
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
3144
    self._processMap["getAllSources"] = Processor.process_getAllSources
3145
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
3146
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
3147
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
3148
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
3149
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
3150
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
3151
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
3152
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
3153
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
3154
    self._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIds
3155
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
3156
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
3157
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
3158
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
3159
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 3160
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
3161
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 3162
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 3163
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 3164
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
3165
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 3166
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
5944 mandeep.dh 3167
 
3168
  def process(self, iprot, oprot):
3169
    (name, type, seqid) = iprot.readMessageBegin()
3170
    if name not in self._processMap:
3171
      iprot.skip(TType.STRUCT)
3172
      iprot.readMessageEnd()
3173
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3174
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3175
      x.write(oprot)
3176
      oprot.writeMessageEnd()
3177
      oprot.trans.flush()
3178
      return
3179
    else:
3180
      self._processMap[name](self, seqid, iprot, oprot)
3181
    return True
3182
 
3183
  def process_addItem(self, seqid, iprot, oprot):
3184
    args = addItem_args()
3185
    args.read(iprot)
3186
    iprot.readMessageEnd()
3187
    result = addItem_result()
3188
    try:
3189
      result.success = self._handler.addItem(args.item)
3190
    except CatalogServiceException, cex:
3191
      result.cex = cex
3192
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
3193
    result.write(oprot)
3194
    oprot.writeMessageEnd()
3195
    oprot.trans.flush()
3196
 
3197
  def process_updateItem(self, seqid, iprot, oprot):
3198
    args = updateItem_args()
3199
    args.read(iprot)
3200
    iprot.readMessageEnd()
3201
    result = updateItem_result()
3202
    try:
3203
      result.success = self._handler.updateItem(args.item)
3204
    except CatalogServiceException, cex:
3205
      result.cex = cex
3206
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3207
    result.write(oprot)
3208
    oprot.writeMessageEnd()
3209
    oprot.trans.flush()
3210
 
3211
  def process_isActive(self, seqid, iprot, oprot):
3212
    args = isActive_args()
3213
    args.read(iprot)
3214
    iprot.readMessageEnd()
3215
    result = isActive_result()
3216
    try:
3217
      result.success = self._handler.isActive(args.itemId)
3218
    except CatalogServiceException, isex:
3219
      result.isex = isex
3220
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3221
    result.write(oprot)
3222
    oprot.writeMessageEnd()
3223
    oprot.trans.flush()
3224
 
3225
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3226
    args = getItemStatusDescription_args()
3227
    args.read(iprot)
3228
    iprot.readMessageEnd()
3229
    result = getItemStatusDescription_result()
3230
    try:
3231
      result.success = self._handler.getItemStatusDescription(args.itemId)
3232
    except CatalogServiceException, isex:
3233
      result.isex = isex
3234
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3235
    result.write(oprot)
3236
    oprot.writeMessageEnd()
3237
    oprot.trans.flush()
3238
 
3239
  def process_startItemOn(self, seqid, iprot, oprot):
3240
    args = startItemOn_args()
3241
    args.read(iprot)
3242
    iprot.readMessageEnd()
3243
    result = startItemOn_result()
3244
    try:
3245
      self._handler.startItemOn(args.item_id, args.timestamp)
3246
    except CatalogServiceException, cex:
3247
      result.cex = cex
3248
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3249
    result.write(oprot)
3250
    oprot.writeMessageEnd()
3251
    oprot.trans.flush()
3252
 
3253
  def process_retireItemOn(self, seqid, iprot, oprot):
3254
    args = retireItemOn_args()
3255
    args.read(iprot)
3256
    iprot.readMessageEnd()
3257
    result = retireItemOn_result()
3258
    try:
3259
      self._handler.retireItemOn(args.item_id, args.timestamp)
3260
    except CatalogServiceException, cex:
3261
      result.cex = cex
3262
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3263
    result.write(oprot)
3264
    oprot.writeMessageEnd()
3265
    oprot.trans.flush()
3266
 
3267
  def process_changeItemStatus(self, seqid, iprot, oprot):
3268
    args = changeItemStatus_args()
3269
    args.read(iprot)
3270
    iprot.readMessageEnd()
3271
    result = changeItemStatus_result()
3272
    try:
3273
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3274
    except CatalogServiceException, cex:
3275
      result.cex = cex
3276
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3277
    result.write(oprot)
3278
    oprot.writeMessageEnd()
3279
    oprot.trans.flush()
3280
 
3281
  def process_getItem(self, seqid, iprot, oprot):
3282
    args = getItem_args()
3283
    args.read(iprot)
3284
    iprot.readMessageEnd()
3285
    result = getItem_result()
3286
    try:
3287
      result.success = self._handler.getItem(args.item_id)
3288
    except CatalogServiceException, cex:
3289
      result.cex = cex
3290
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3291
    result.write(oprot)
3292
    oprot.writeMessageEnd()
3293
    oprot.trans.flush()
3294
 
3295
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3296
    args = getItemsByCatalogId_args()
3297
    args.read(iprot)
3298
    iprot.readMessageEnd()
3299
    result = getItemsByCatalogId_result()
3300
    try:
3301
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3302
    except CatalogServiceException, cex:
3303
      result.cex = cex
3304
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3305
    result.write(oprot)
3306
    oprot.writeMessageEnd()
3307
    oprot.trans.flush()
3308
 
3309
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3310
    args = getValidItemsByCatalogId_args()
3311
    args.read(iprot)
3312
    iprot.readMessageEnd()
3313
    result = getValidItemsByCatalogId_result()
3314
    try:
3315
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3316
    except CatalogServiceException, cex:
3317
      result.cex = cex
3318
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3319
    result.write(oprot)
3320
    oprot.writeMessageEnd()
3321
    oprot.trans.flush()
3322
 
3323
  def process_getAllItems(self, seqid, iprot, oprot):
3324
    args = getAllItems_args()
3325
    args.read(iprot)
3326
    iprot.readMessageEnd()
3327
    result = getAllItems_result()
3328
    try:
3329
      result.success = self._handler.getAllItems(args.isActive)
3330
    except CatalogServiceException, cex:
3331
      result.cex = cex
3332
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3333
    result.write(oprot)
3334
    oprot.writeMessageEnd()
3335
    oprot.trans.flush()
3336
 
3337
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3338
    args = getAllItemsByStatus_args()
3339
    args.read(iprot)
3340
    iprot.readMessageEnd()
3341
    result = getAllItemsByStatus_result()
3342
    try:
3343
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3344
    except CatalogServiceException, cex:
3345
      result.cex = cex
3346
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3347
    result.write(oprot)
3348
    oprot.writeMessageEnd()
3349
    oprot.trans.flush()
3350
 
3351
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3352
    args = markItemAsContentComplete_args()
3353
    args.read(iprot)
3354
    iprot.readMessageEnd()
3355
    result = markItemAsContentComplete_result()
3356
    try:
3357
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3358
    except CatalogServiceException, cex:
3359
      result.cex = cex
3360
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3361
    result.write(oprot)
3362
    oprot.writeMessageEnd()
3363
    oprot.trans.flush()
3364
 
3365
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3366
    args = getAllItemsInRange_args()
3367
    args.read(iprot)
3368
    iprot.readMessageEnd()
3369
    result = getAllItemsInRange_result()
3370
    try:
3371
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3372
    except CatalogServiceException, cex:
3373
      result.cex = cex
3374
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3375
    result.write(oprot)
3376
    oprot.writeMessageEnd()
3377
    oprot.trans.flush()
3378
 
3379
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3380
    args = getAllItemsByStatusInRange_args()
3381
    args.read(iprot)
3382
    iprot.readMessageEnd()
3383
    result = getAllItemsByStatusInRange_result()
3384
    try:
3385
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3386
    except CatalogServiceException, cex:
3387
      result.cex = cex
3388
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3389
    result.write(oprot)
3390
    oprot.writeMessageEnd()
3391
    oprot.trans.flush()
3392
 
3393
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3394
    args = getItemCountByStatus_args()
3395
    args.read(iprot)
3396
    iprot.readMessageEnd()
3397
    result = getItemCountByStatus_result()
3398
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3399
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3400
    result.write(oprot)
3401
    oprot.writeMessageEnd()
3402
    oprot.trans.flush()
3403
 
3404
  def process_getBestSellers(self, seqid, iprot, oprot):
3405
    args = getBestSellers_args()
3406
    args.read(iprot)
3407
    iprot.readMessageEnd()
3408
    result = getBestSellers_result()
3409
    try:
3410
      result.success = self._handler.getBestSellers()
3411
    except CatalogServiceException, isex:
3412
      result.isex = isex
3413
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3414
    result.write(oprot)
3415
    oprot.writeMessageEnd()
3416
    oprot.trans.flush()
3417
 
3418
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3419
    args = getBestSellersCatalogIds_args()
3420
    args.read(iprot)
3421
    iprot.readMessageEnd()
3422
    result = getBestSellersCatalogIds_result()
3423
    try:
3424
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3425
    except CatalogServiceException, cex:
3426
      result.cex = cex
3427
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3428
    result.write(oprot)
3429
    oprot.writeMessageEnd()
3430
    oprot.trans.flush()
3431
 
3432
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3433
    args = getBestSellersCount_args()
3434
    args.read(iprot)
3435
    iprot.readMessageEnd()
3436
    result = getBestSellersCount_result()
3437
    try:
3438
      result.success = self._handler.getBestSellersCount()
3439
    except CatalogServiceException, cex:
3440
      result.cex = cex
3441
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3442
    result.write(oprot)
3443
    oprot.writeMessageEnd()
3444
    oprot.trans.flush()
3445
 
3446
  def process_getBestDeals(self, seqid, iprot, oprot):
3447
    args = getBestDeals_args()
3448
    args.read(iprot)
3449
    iprot.readMessageEnd()
3450
    result = getBestDeals_result()
3451
    try:
3452
      result.success = self._handler.getBestDeals()
3453
    except CatalogServiceException, isex:
3454
      result.isex = isex
3455
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3456
    result.write(oprot)
3457
    oprot.writeMessageEnd()
3458
    oprot.trans.flush()
3459
 
3460
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3461
    args = getBestDealsCatalogIds_args()
3462
    args.read(iprot)
3463
    iprot.readMessageEnd()
3464
    result = getBestDealsCatalogIds_result()
3465
    try:
3466
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3467
    except CatalogServiceException, cex:
3468
      result.cex = cex
3469
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3470
    result.write(oprot)
3471
    oprot.writeMessageEnd()
3472
    oprot.trans.flush()
3473
 
3474
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3475
    args = getBestDealsCount_args()
3476
    args.read(iprot)
3477
    iprot.readMessageEnd()
3478
    result = getBestDealsCount_result()
3479
    try:
3480
      result.success = self._handler.getBestDealsCount()
3481
    except CatalogServiceException, cex:
3482
      result.cex = cex
3483
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3484
    result.write(oprot)
3485
    oprot.writeMessageEnd()
3486
    oprot.trans.flush()
3487
 
3488
  def process_getComingSoon(self, seqid, iprot, oprot):
3489
    args = getComingSoon_args()
3490
    args.read(iprot)
3491
    iprot.readMessageEnd()
3492
    result = getComingSoon_result()
3493
    try:
3494
      result.success = self._handler.getComingSoon()
3495
    except CatalogServiceException, isex:
3496
      result.isex = isex
3497
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3498
    result.write(oprot)
3499
    oprot.writeMessageEnd()
3500
    oprot.trans.flush()
3501
 
3502
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3503
    args = getComingSoonCatalogIds_args()
3504
    args.read(iprot)
3505
    iprot.readMessageEnd()
3506
    result = getComingSoonCatalogIds_result()
3507
    try:
3508
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3509
    except CatalogServiceException, cex:
3510
      result.cex = cex
3511
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3512
    result.write(oprot)
3513
    oprot.writeMessageEnd()
3514
    oprot.trans.flush()
3515
 
3516
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3517
    args = getComingSoonCount_args()
3518
    args.read(iprot)
3519
    iprot.readMessageEnd()
3520
    result = getComingSoonCount_result()
3521
    try:
3522
      result.success = self._handler.getComingSoonCount()
3523
    except CatalogServiceException, cex:
3524
      result.cex = cex
3525
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3526
    result.write(oprot)
3527
    oprot.writeMessageEnd()
3528
    oprot.trans.flush()
3529
 
3530
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3531
    args = getLatestArrivals_args()
3532
    args.read(iprot)
3533
    iprot.readMessageEnd()
3534
    result = getLatestArrivals_result()
3535
    try:
3536
      result.success = self._handler.getLatestArrivals()
3537
    except CatalogServiceException, isex:
3538
      result.isex = isex
3539
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3540
    result.write(oprot)
3541
    oprot.writeMessageEnd()
3542
    oprot.trans.flush()
3543
 
3544
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3545
    args = getLatestArrivalsCatalogIds_args()
3546
    args.read(iprot)
3547
    iprot.readMessageEnd()
3548
    result = getLatestArrivalsCatalogIds_result()
3549
    try:
3550
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3551
    except CatalogServiceException, cex:
3552
      result.cex = cex
3553
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3554
    result.write(oprot)
3555
    oprot.writeMessageEnd()
3556
    oprot.trans.flush()
3557
 
3558
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3559
    args = getLatestArrivalsCount_args()
3560
    args.read(iprot)
3561
    iprot.readMessageEnd()
3562
    result = getLatestArrivalsCount_result()
3563
    try:
3564
      result.success = self._handler.getLatestArrivalsCount()
3565
    except CatalogServiceException, cex:
3566
      result.cex = cex
3567
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3568
    result.write(oprot)
3569
    oprot.writeMessageEnd()
3570
    oprot.trans.flush()
3571
 
3572
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3573
    args = generateNewEntityID_args()
3574
    args.read(iprot)
3575
    iprot.readMessageEnd()
3576
    result = generateNewEntityID_result()
3577
    result.success = self._handler.generateNewEntityID()
3578
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3579
    result.write(oprot)
3580
    oprot.writeMessageEnd()
3581
    oprot.trans.flush()
3582
 
3583
  def process_addCategory(self, seqid, iprot, oprot):
3584
    args = addCategory_args()
3585
    args.read(iprot)
3586
    iprot.readMessageEnd()
3587
    result = addCategory_result()
3588
    result.success = self._handler.addCategory(args.category)
3589
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3590
    result.write(oprot)
3591
    oprot.writeMessageEnd()
3592
    oprot.trans.flush()
3593
 
3594
  def process_getCategory(self, seqid, iprot, oprot):
3595
    args = getCategory_args()
3596
    args.read(iprot)
3597
    iprot.readMessageEnd()
3598
    result = getCategory_result()
3599
    result.success = self._handler.getCategory(args.id)
3600
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3601
    result.write(oprot)
3602
    oprot.writeMessageEnd()
3603
    oprot.trans.flush()
3604
 
3605
  def process_getAllCategories(self, seqid, iprot, oprot):
3606
    args = getAllCategories_args()
3607
    args.read(iprot)
3608
    iprot.readMessageEnd()
3609
    result = getAllCategories_result()
3610
    result.success = self._handler.getAllCategories()
3611
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3612
    result.write(oprot)
3613
    oprot.writeMessageEnd()
3614
    oprot.trans.flush()
3615
 
3616
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3617
    args = getAllSimilarItems_args()
3618
    args.read(iprot)
3619
    iprot.readMessageEnd()
3620
    result = getAllSimilarItems_result()
3621
    result.success = self._handler.getAllSimilarItems(args.itemId)
3622
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3623
    result.write(oprot)
3624
    oprot.writeMessageEnd()
3625
    oprot.trans.flush()
3626
 
3627
  def process_addSimilarItem(self, seqid, iprot, oprot):
3628
    args = addSimilarItem_args()
3629
    args.read(iprot)
3630
    iprot.readMessageEnd()
3631
    result = addSimilarItem_result()
3632
    try:
3633
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3634
    except CatalogServiceException, cex:
3635
      result.cex = cex
3636
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3637
    result.write(oprot)
3638
    oprot.writeMessageEnd()
3639
    oprot.trans.flush()
3640
 
6512 kshitij.so 3641
  def process_addTag(self, seqid, iprot, oprot):
3642
    args = addTag_args()
3643
    args.read(iprot)
3644
    iprot.readMessageEnd()
3645
    result = addTag_result()
3646
    result.success = self._handler.addTag(args.displayName, args.itemId)
3647
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3648
    result.write(oprot)
3649
    oprot.writeMessageEnd()
3650
    oprot.trans.flush()
3651
 
3652
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3653
    args = deleteEntityTag_args()
3654
    args.read(iprot)
3655
    iprot.readMessageEnd()
3656
    result = deleteEntityTag_result()
3657
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3658
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3659
    result.write(oprot)
3660
    oprot.writeMessageEnd()
3661
    oprot.trans.flush()
3662
 
3663
  def process_deleteTag(self, seqid, iprot, oprot):
3664
    args = deleteTag_args()
3665
    args.read(iprot)
3666
    iprot.readMessageEnd()
3667
    result = deleteTag_result()
3668
    result.success = self._handler.deleteTag(args.displayName)
3669
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3670
    result.write(oprot)
3671
    oprot.writeMessageEnd()
3672
    oprot.trans.flush()
3673
 
3674
  def process_getAllTags(self, seqid, iprot, oprot):
3675
    args = getAllTags_args()
3676
    args.read(iprot)
3677
    iprot.readMessageEnd()
3678
    result = getAllTags_result()
3679
    result.success = self._handler.getAllTags()
3680
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3681
    result.write(oprot)
3682
    oprot.writeMessageEnd()
3683
    oprot.trans.flush()
3684
 
3685
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3686
    args = getAllEntitiesByTagName_args()
3687
    args.read(iprot)
3688
    iprot.readMessageEnd()
3689
    result = getAllEntitiesByTagName_result()
3690
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
3691
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
3692
    result.write(oprot)
3693
    oprot.writeMessageEnd()
3694
    oprot.trans.flush()
3695
 
6845 amit.gupta 3696
  def process_getAllEntityTags(self, seqid, iprot, oprot):
3697
    args = getAllEntityTags_args()
3698
    args.read(iprot)
3699
    iprot.readMessageEnd()
3700
    result = getAllEntityTags_result()
3701
    result.success = self._handler.getAllEntityTags()
3702
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
3703
    result.write(oprot)
3704
    oprot.writeMessageEnd()
3705
    oprot.trans.flush()
3706
 
6849 kshitij.so 3707
  def process_addBannerMap(self, seqid, iprot, oprot):
3708
    args = addBannerMap_args()
3709
    args.read(iprot)
3710
    iprot.readMessageEnd()
3711
    result = addBannerMap_result()
3712
    result.success = self._handler.addBannerMap(args.bannerName, args.mapLink, args.coordinates)
3713
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
3714
    result.write(oprot)
3715
    oprot.writeMessageEnd()
3716
    oprot.trans.flush()
3717
 
3718
  def process_deleteBannerMap(self, seqid, iprot, oprot):
3719
    args = deleteBannerMap_args()
3720
    args.read(iprot)
3721
    iprot.readMessageEnd()
3722
    result = deleteBannerMap_result()
3723
    result.success = self._handler.deleteBannerMap(args.bannerName)
3724
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
3725
    result.write(oprot)
3726
    oprot.writeMessageEnd()
3727
    oprot.trans.flush()
3728
 
3729
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
3730
    args = getBannerMapDetails_args()
3731
    args.read(iprot)
3732
    iprot.readMessageEnd()
3733
    result = getBannerMapDetails_result()
3734
    result.success = self._handler.getBannerMapDetails(args.bannerName)
3735
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
3736
    result.write(oprot)
3737
    oprot.writeMessageEnd()
3738
    oprot.trans.flush()
3739
 
5944 mandeep.dh 3740
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
3741
    args = deleteSimilarItem_args()
3742
    args.read(iprot)
3743
    iprot.readMessageEnd()
3744
    result = deleteSimilarItem_result()
3745
    try:
3746
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
3747
    except CatalogServiceException, cex:
3748
      result.cex = cex
3749
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
3750
    result.write(oprot)
3751
    oprot.writeMessageEnd()
3752
    oprot.trans.flush()
3753
 
3754
  def process_checkSimilarItem(self, seqid, iprot, oprot):
3755
    args = checkSimilarItem_args()
3756
    args.read(iprot)
3757
    iprot.readMessageEnd()
3758
    result = checkSimilarItem_result()
3759
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
3760
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
3761
    result.write(oprot)
3762
    oprot.writeMessageEnd()
3763
    oprot.trans.flush()
3764
 
3765
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
3766
    args = validateRiskyStatus_args()
3767
    args.read(iprot)
3768
    iprot.readMessageEnd()
3769
    result = validateRiskyStatus_result()
3770
    self._handler.validateRiskyStatus(args.itemId)
3771
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
3772
    result.write(oprot)
3773
    oprot.writeMessageEnd()
3774
    oprot.trans.flush()
3775
 
3776
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
3777
    args = changeItemRiskyFlag_args()
3778
    args.read(iprot)
3779
    iprot.readMessageEnd()
3780
    result = changeItemRiskyFlag_result()
3781
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
3782
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
3783
    result.write(oprot)
3784
    oprot.writeMessageEnd()
3785
    oprot.trans.flush()
3786
 
3787
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
3788
    args = getItemsByRiskyFlag_args()
3789
    args.read(iprot)
3790
    iprot.readMessageEnd()
3791
    result = getItemsByRiskyFlag_result()
3792
    result.success = self._handler.getItemsByRiskyFlag()
3793
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
3794
    result.write(oprot)
3795
    oprot.writeMessageEnd()
3796
    oprot.trans.flush()
3797
 
3798
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
3799
    args = getItemsForMasterSheet_args()
3800
    args.read(iprot)
3801
    iprot.readMessageEnd()
3802
    result = getItemsForMasterSheet_result()
3803
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
3804
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
3805
    result.write(oprot)
3806
    oprot.writeMessageEnd()
3807
    oprot.trans.flush()
3808
 
3809
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
3810
    args = getSimilarItemsCatalogIds_args()
3811
    args.read(iprot)
3812
    iprot.readMessageEnd()
3813
    result = getSimilarItemsCatalogIds_result()
3814
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
3815
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
3816
    result.write(oprot)
3817
    oprot.writeMessageEnd()
3818
    oprot.trans.flush()
3819
 
3820
  def process_addProductNotification(self, seqid, iprot, oprot):
3821
    args = addProductNotification_args()
3822
    args.read(iprot)
3823
    iprot.readMessageEnd()
3824
    result = addProductNotification_result()
3825
    result.success = self._handler.addProductNotification(args.itemId, args.email)
3826
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
3827
    result.write(oprot)
3828
    oprot.writeMessageEnd()
3829
    oprot.trans.flush()
3830
 
3831
  def process_sendProductNotifications(self, seqid, iprot, oprot):
3832
    args = sendProductNotifications_args()
3833
    args.read(iprot)
3834
    iprot.readMessageEnd()
3835
    result = sendProductNotifications_result()
3836
    result.success = self._handler.sendProductNotifications()
3837
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
3838
    result.write(oprot)
3839
    oprot.writeMessageEnd()
3840
    oprot.trans.flush()
3841
 
3842
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
3843
    args = getAllBrandsByCategory_args()
3844
    args.read(iprot)
3845
    iprot.readMessageEnd()
3846
    result = getAllBrandsByCategory_result()
3847
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
3848
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
3849
    result.write(oprot)
3850
    oprot.writeMessageEnd()
3851
    oprot.trans.flush()
3852
 
3853
  def process_getAllBrands(self, seqid, iprot, oprot):
3854
    args = getAllBrands_args()
3855
    args.read(iprot)
3856
    iprot.readMessageEnd()
3857
    result = getAllBrands_result()
3858
    result.success = self._handler.getAllBrands()
3859
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
3860
    result.write(oprot)
3861
    oprot.writeMessageEnd()
3862
    oprot.trans.flush()
3863
 
3864
  def process_getAllSources(self, seqid, iprot, oprot):
3865
    args = getAllSources_args()
3866
    args.read(iprot)
3867
    iprot.readMessageEnd()
3868
    result = getAllSources_result()
3869
    result.success = self._handler.getAllSources()
3870
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
3871
    result.write(oprot)
3872
    oprot.writeMessageEnd()
3873
    oprot.trans.flush()
3874
 
3875
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
3876
    args = getItemPricingBySource_args()
3877
    args.read(iprot)
3878
    iprot.readMessageEnd()
3879
    result = getItemPricingBySource_result()
3880
    try:
3881
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
3882
    except CatalogServiceException, cex:
3883
      result.cex = cex
3884
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
3885
    result.write(oprot)
3886
    oprot.writeMessageEnd()
3887
    oprot.trans.flush()
3888
 
3889
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
3890
    args = addSourceItemPricing_args()
3891
    args.read(iprot)
3892
    iprot.readMessageEnd()
3893
    result = addSourceItemPricing_result()
3894
    try:
3895
      self._handler.addSourceItemPricing(args.sourceItemPricing)
3896
    except CatalogServiceException, cex:
3897
      result.cex = cex
3898
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
3899
    result.write(oprot)
3900
    oprot.writeMessageEnd()
3901
    oprot.trans.flush()
3902
 
3903
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
3904
    args = getAllSourcePricing_args()
3905
    args.read(iprot)
3906
    iprot.readMessageEnd()
3907
    result = getAllSourcePricing_result()
3908
    try:
3909
      result.success = self._handler.getAllSourcePricing(args.itemId)
3910
    except CatalogServiceException, cex:
3911
      result.cex = cex
3912
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
3913
    result.write(oprot)
3914
    oprot.writeMessageEnd()
3915
    oprot.trans.flush()
3916
 
3917
  def process_getItemForSource(self, seqid, iprot, oprot):
3918
    args = getItemForSource_args()
3919
    args.read(iprot)
3920
    iprot.readMessageEnd()
3921
    result = getItemForSource_result()
3922
    try:
3923
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
3924
    except CatalogServiceException, cex:
3925
      result.cex = cex
3926
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
3927
    result.write(oprot)
3928
    oprot.writeMessageEnd()
3929
    oprot.trans.flush()
3930
 
3931
  def process_searchItemsInRange(self, seqid, iprot, oprot):
3932
    args = searchItemsInRange_args()
3933
    args.read(iprot)
3934
    iprot.readMessageEnd()
3935
    result = searchItemsInRange_result()
3936
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
3937
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
3938
    result.write(oprot)
3939
    oprot.writeMessageEnd()
3940
    oprot.trans.flush()
3941
 
3942
  def process_getSearchResultCount(self, seqid, iprot, oprot):
3943
    args = getSearchResultCount_args()
3944
    args.read(iprot)
3945
    iprot.readMessageEnd()
3946
    result = getSearchResultCount_result()
3947
    result.success = self._handler.getSearchResultCount(args.searchTerms)
3948
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
3949
    result.write(oprot)
3950
    oprot.writeMessageEnd()
3951
    oprot.trans.flush()
3952
 
3953
  def process_getProductNotifications(self, seqid, iprot, oprot):
3954
    args = getProductNotifications_args()
3955
    args.read(iprot)
3956
    iprot.readMessageEnd()
3957
    result = getProductNotifications_result()
3958
    result.success = self._handler.getProductNotifications(args.startDateTime)
3959
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
3960
    result.write(oprot)
3961
    oprot.writeMessageEnd()
3962
    oprot.trans.flush()
3963
 
3964
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
3965
    args = getProductNotificationRequestCount_args()
3966
    args.read(iprot)
3967
    iprot.readMessageEnd()
3968
    result = getProductNotificationRequestCount_result()
3969
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
3970
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
3971
    result.write(oprot)
3972
    oprot.writeMessageEnd()
3973
    oprot.trans.flush()
3974
 
3975
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
3976
    args = addAuthorizationLog_args()
3977
    args.read(iprot)
3978
    iprot.readMessageEnd()
3979
    result = addAuthorizationLog_result()
3980
    try:
3981
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
3982
    except CatalogServiceException, cex:
3983
      result.cex = cex
3984
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
3985
    result.write(oprot)
3986
    oprot.writeMessageEnd()
3987
    oprot.trans.flush()
3988
 
3989
  def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):
3990
    args = getClearanceSaleCatalogIds_args()
3991
    args.read(iprot)
3992
    iprot.readMessageEnd()
3993
    result = getClearanceSaleCatalogIds_result()
3994
    try:
3995
      result.success = self._handler.getClearanceSaleCatalogIds()
3996
    except CatalogServiceException, cex:
3997
      result.cex = cex
3998
    oprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)
3999
    result.write(oprot)
4000
    oprot.writeMessageEnd()
4001
    oprot.trans.flush()
4002
 
4003
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
4004
    args = addupdateVoucherForItem_args()
4005
    args.read(iprot)
4006
    iprot.readMessageEnd()
4007
    result = addupdateVoucherForItem_result()
4008
    try:
4009
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
4010
    except CatalogServiceException, cex:
4011
      result.cex = cex
4012
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
4013
    result.write(oprot)
4014
    oprot.writeMessageEnd()
4015
    oprot.trans.flush()
4016
 
4017
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
4018
    args = deleteVoucherForItem_args()
4019
    args.read(iprot)
4020
    iprot.readMessageEnd()
4021
    result = deleteVoucherForItem_result()
4022
    try:
4023
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
4024
    except CatalogServiceException, cex:
4025
      result.cex = cex
4026
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
4027
    result.write(oprot)
4028
    oprot.writeMessageEnd()
4029
    oprot.trans.flush()
4030
 
4031
  def process_getVoucherAmount(self, seqid, iprot, oprot):
4032
    args = getVoucherAmount_args()
4033
    args.read(iprot)
4034
    iprot.readMessageEnd()
4035
    result = getVoucherAmount_result()
4036
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
4037
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
4038
    result.write(oprot)
4039
    oprot.writeMessageEnd()
4040
    oprot.trans.flush()
4041
 
4042
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
4043
    args = getAllItemVouchers_args()
4044
    args.read(iprot)
4045
    iprot.readMessageEnd()
4046
    result = getAllItemVouchers_result()
4047
    result.success = self._handler.getAllItemVouchers(args.itemId)
4048
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
4049
    result.write(oprot)
4050
    oprot.writeMessageEnd()
4051
    oprot.trans.flush()
4052
 
4053
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
4054
    args = isValidCatalogItemId_args()
4055
    args.read(iprot)
4056
    iprot.readMessageEnd()
4057
    result = isValidCatalogItemId_result()
4058
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
4059
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
4060
    result.write(oprot)
4061
    oprot.writeMessageEnd()
4062
    oprot.trans.flush()
4063
 
6039 amit.gupta 4064
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
4065
    args = getVatPercentageForItem_args()
4066
    args.read(iprot)
4067
    iprot.readMessageEnd()
4068
    result = getVatPercentageForItem_result()
4069
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
4070
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
4071
    result.write(oprot)
4072
    oprot.writeMessageEnd()
4073
    oprot.trans.flush()
5944 mandeep.dh 4074
 
6039 amit.gupta 4075
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
4076
    args = getVatAmountForItem_args()
4077
    args.read(iprot)
4078
    iprot.readMessageEnd()
4079
    result = getVatAmountForItem_result()
4080
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
4081
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
4082
    result.write(oprot)
4083
    oprot.writeMessageEnd()
4084
    oprot.trans.flush()
4085
 
6531 vikram.rag 4086
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
4087
    args = getAllIgnoredInventoryUpdateItemsList_args()
4088
    args.read(iprot)
4089
    iprot.readMessageEnd()
4090
    result = getAllIgnoredInventoryUpdateItemsList_result()
4091
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
4092
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
4093
    result.write(oprot)
4094
    oprot.writeMessageEnd()
4095
    oprot.trans.flush()
6039 amit.gupta 4096
 
6821 amar.kumar 4097
  def process_getAllAliveItems(self, seqid, iprot, oprot):
4098
    args = getAllAliveItems_args()
4099
    args.read(iprot)
4100
    iprot.readMessageEnd()
4101
    result = getAllAliveItems_result()
4102
    result.success = self._handler.getAllAliveItems()
4103
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
4104
    result.write(oprot)
4105
    oprot.writeMessageEnd()
4106
    oprot.trans.flush()
4107
 
6805 anupam.sin 4108
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
4109
    args = getInsuranceAmount_args()
4110
    args.read(iprot)
4111
    iprot.readMessageEnd()
4112
    result = getInsuranceAmount_result()
4113
    result.success = self._handler.getInsuranceAmount(args.itemId, args.insurerId, args.quantity)
4114
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
4115
    result.write(oprot)
4116
    oprot.writeMessageEnd()
4117
    oprot.trans.flush()
6531 vikram.rag 4118
 
6805 anupam.sin 4119
  def process_getInsurer(self, seqid, iprot, oprot):
4120
    args = getInsurer_args()
4121
    args.read(iprot)
4122
    iprot.readMessageEnd()
4123
    result = getInsurer_result()
4124
    result.success = self._handler.getInsurer(args.insurerId)
4125
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
4126
    result.write(oprot)
4127
    oprot.writeMessageEnd()
4128
    oprot.trans.flush()
4129
 
6838 vikram.rag 4130
  def process_getAllInsurers(self, seqid, iprot, oprot):
4131
    args = getAllInsurers_args()
4132
    args.read(iprot)
4133
    iprot.readMessageEnd()
4134
    result = getAllInsurers_result()
4135
    result.success = self._handler.getAllInsurers()
4136
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
4137
    result.write(oprot)
4138
    oprot.writeMessageEnd()
4139
    oprot.trans.flush()
6805 anupam.sin 4140
 
6838 vikram.rag 4141
 
5944 mandeep.dh 4142
# HELPER FUNCTIONS AND STRUCTURES
4143
 
4144
class addItem_args:
4145
  """
4146
  Attributes:
4147
   - item
4148
  """
4149
 
4150
  thrift_spec = (
4151
    None, # 0
4152
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4153
  )
4154
 
4155
  def __init__(self, item=None,):
4156
    self.item = item
4157
 
4158
  def read(self, iprot):
4159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4161
      return
4162
    iprot.readStructBegin()
4163
    while True:
4164
      (fname, ftype, fid) = iprot.readFieldBegin()
4165
      if ftype == TType.STOP:
4166
        break
4167
      if fid == 1:
4168
        if ftype == TType.STRUCT:
4169
          self.item = Item()
4170
          self.item.read(iprot)
4171
        else:
4172
          iprot.skip(ftype)
4173
      else:
4174
        iprot.skip(ftype)
4175
      iprot.readFieldEnd()
4176
    iprot.readStructEnd()
4177
 
4178
  def write(self, oprot):
4179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4181
      return
4182
    oprot.writeStructBegin('addItem_args')
4183
    if self.item is not None:
4184
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4185
      self.item.write(oprot)
4186
      oprot.writeFieldEnd()
4187
    oprot.writeFieldStop()
4188
    oprot.writeStructEnd()
4189
 
4190
  def validate(self):
4191
    return
4192
 
4193
 
4194
  def __repr__(self):
4195
    L = ['%s=%r' % (key, value)
4196
      for key, value in self.__dict__.iteritems()]
4197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4198
 
4199
  def __eq__(self, other):
4200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4201
 
4202
  def __ne__(self, other):
4203
    return not (self == other)
4204
 
4205
class addItem_result:
4206
  """
4207
  Attributes:
4208
   - success
4209
   - cex
4210
  """
4211
 
4212
  thrift_spec = (
4213
    (0, TType.I64, 'success', None, None, ), # 0
4214
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4215
  )
4216
 
4217
  def __init__(self, success=None, cex=None,):
4218
    self.success = success
4219
    self.cex = cex
4220
 
4221
  def read(self, iprot):
4222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4224
      return
4225
    iprot.readStructBegin()
4226
    while True:
4227
      (fname, ftype, fid) = iprot.readFieldBegin()
4228
      if ftype == TType.STOP:
4229
        break
4230
      if fid == 0:
4231
        if ftype == TType.I64:
4232
          self.success = iprot.readI64();
4233
        else:
4234
          iprot.skip(ftype)
4235
      elif fid == 1:
4236
        if ftype == TType.STRUCT:
4237
          self.cex = CatalogServiceException()
4238
          self.cex.read(iprot)
4239
        else:
4240
          iprot.skip(ftype)
4241
      else:
4242
        iprot.skip(ftype)
4243
      iprot.readFieldEnd()
4244
    iprot.readStructEnd()
4245
 
4246
  def write(self, oprot):
4247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4249
      return
4250
    oprot.writeStructBegin('addItem_result')
4251
    if self.success is not None:
4252
      oprot.writeFieldBegin('success', TType.I64, 0)
4253
      oprot.writeI64(self.success)
4254
      oprot.writeFieldEnd()
4255
    if self.cex is not None:
4256
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4257
      self.cex.write(oprot)
4258
      oprot.writeFieldEnd()
4259
    oprot.writeFieldStop()
4260
    oprot.writeStructEnd()
4261
 
4262
  def validate(self):
4263
    return
4264
 
4265
 
4266
  def __repr__(self):
4267
    L = ['%s=%r' % (key, value)
4268
      for key, value in self.__dict__.iteritems()]
4269
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4270
 
4271
  def __eq__(self, other):
4272
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4273
 
4274
  def __ne__(self, other):
4275
    return not (self == other)
4276
 
4277
class updateItem_args:
4278
  """
4279
  Attributes:
4280
   - item
4281
  """
4282
 
4283
  thrift_spec = (
4284
    None, # 0
4285
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4286
  )
4287
 
4288
  def __init__(self, item=None,):
4289
    self.item = item
4290
 
4291
  def read(self, iprot):
4292
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4293
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4294
      return
4295
    iprot.readStructBegin()
4296
    while True:
4297
      (fname, ftype, fid) = iprot.readFieldBegin()
4298
      if ftype == TType.STOP:
4299
        break
4300
      if fid == 1:
4301
        if ftype == TType.STRUCT:
4302
          self.item = Item()
4303
          self.item.read(iprot)
4304
        else:
4305
          iprot.skip(ftype)
4306
      else:
4307
        iprot.skip(ftype)
4308
      iprot.readFieldEnd()
4309
    iprot.readStructEnd()
4310
 
4311
  def write(self, oprot):
4312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4314
      return
4315
    oprot.writeStructBegin('updateItem_args')
4316
    if self.item is not None:
4317
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4318
      self.item.write(oprot)
4319
      oprot.writeFieldEnd()
4320
    oprot.writeFieldStop()
4321
    oprot.writeStructEnd()
4322
 
4323
  def validate(self):
4324
    return
4325
 
4326
 
4327
  def __repr__(self):
4328
    L = ['%s=%r' % (key, value)
4329
      for key, value in self.__dict__.iteritems()]
4330
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4331
 
4332
  def __eq__(self, other):
4333
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4334
 
4335
  def __ne__(self, other):
4336
    return not (self == other)
4337
 
4338
class updateItem_result:
4339
  """
4340
  Attributes:
4341
   - success
4342
   - cex
4343
  """
4344
 
4345
  thrift_spec = (
4346
    (0, TType.I64, 'success', None, None, ), # 0
4347
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4348
  )
4349
 
4350
  def __init__(self, success=None, cex=None,):
4351
    self.success = success
4352
    self.cex = cex
4353
 
4354
  def read(self, iprot):
4355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4357
      return
4358
    iprot.readStructBegin()
4359
    while True:
4360
      (fname, ftype, fid) = iprot.readFieldBegin()
4361
      if ftype == TType.STOP:
4362
        break
4363
      if fid == 0:
4364
        if ftype == TType.I64:
4365
          self.success = iprot.readI64();
4366
        else:
4367
          iprot.skip(ftype)
4368
      elif fid == 1:
4369
        if ftype == TType.STRUCT:
4370
          self.cex = CatalogServiceException()
4371
          self.cex.read(iprot)
4372
        else:
4373
          iprot.skip(ftype)
4374
      else:
4375
        iprot.skip(ftype)
4376
      iprot.readFieldEnd()
4377
    iprot.readStructEnd()
4378
 
4379
  def write(self, oprot):
4380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4382
      return
4383
    oprot.writeStructBegin('updateItem_result')
4384
    if self.success is not None:
4385
      oprot.writeFieldBegin('success', TType.I64, 0)
4386
      oprot.writeI64(self.success)
4387
      oprot.writeFieldEnd()
4388
    if self.cex is not None:
4389
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4390
      self.cex.write(oprot)
4391
      oprot.writeFieldEnd()
4392
    oprot.writeFieldStop()
4393
    oprot.writeStructEnd()
4394
 
4395
  def validate(self):
4396
    return
4397
 
4398
 
4399
  def __repr__(self):
4400
    L = ['%s=%r' % (key, value)
4401
      for key, value in self.__dict__.iteritems()]
4402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4403
 
4404
  def __eq__(self, other):
4405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4406
 
4407
  def __ne__(self, other):
4408
    return not (self == other)
4409
 
4410
class isActive_args:
4411
  """
4412
  Attributes:
4413
   - itemId
4414
  """
4415
 
4416
  thrift_spec = (
4417
    None, # 0
4418
    (1, TType.I64, 'itemId', None, None, ), # 1
4419
  )
4420
 
4421
  def __init__(self, itemId=None,):
4422
    self.itemId = itemId
4423
 
4424
  def read(self, iprot):
4425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4427
      return
4428
    iprot.readStructBegin()
4429
    while True:
4430
      (fname, ftype, fid) = iprot.readFieldBegin()
4431
      if ftype == TType.STOP:
4432
        break
4433
      if fid == 1:
4434
        if ftype == TType.I64:
4435
          self.itemId = iprot.readI64();
4436
        else:
4437
          iprot.skip(ftype)
4438
      else:
4439
        iprot.skip(ftype)
4440
      iprot.readFieldEnd()
4441
    iprot.readStructEnd()
4442
 
4443
  def write(self, oprot):
4444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4446
      return
4447
    oprot.writeStructBegin('isActive_args')
4448
    if self.itemId is not None:
4449
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4450
      oprot.writeI64(self.itemId)
4451
      oprot.writeFieldEnd()
4452
    oprot.writeFieldStop()
4453
    oprot.writeStructEnd()
4454
 
4455
  def validate(self):
4456
    return
4457
 
4458
 
4459
  def __repr__(self):
4460
    L = ['%s=%r' % (key, value)
4461
      for key, value in self.__dict__.iteritems()]
4462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4463
 
4464
  def __eq__(self, other):
4465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4466
 
4467
  def __ne__(self, other):
4468
    return not (self == other)
4469
 
4470
class isActive_result:
4471
  """
4472
  Attributes:
4473
   - success
4474
   - isex
4475
  """
4476
 
4477
  thrift_spec = (
4478
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4479
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4480
  )
4481
 
4482
  def __init__(self, success=None, isex=None,):
4483
    self.success = success
4484
    self.isex = isex
4485
 
4486
  def read(self, iprot):
4487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4489
      return
4490
    iprot.readStructBegin()
4491
    while True:
4492
      (fname, ftype, fid) = iprot.readFieldBegin()
4493
      if ftype == TType.STOP:
4494
        break
4495
      if fid == 0:
4496
        if ftype == TType.STRUCT:
4497
          self.success = ItemShippingInfo()
4498
          self.success.read(iprot)
4499
        else:
4500
          iprot.skip(ftype)
4501
      elif fid == 1:
4502
        if ftype == TType.STRUCT:
4503
          self.isex = CatalogServiceException()
4504
          self.isex.read(iprot)
4505
        else:
4506
          iprot.skip(ftype)
4507
      else:
4508
        iprot.skip(ftype)
4509
      iprot.readFieldEnd()
4510
    iprot.readStructEnd()
4511
 
4512
  def write(self, oprot):
4513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4515
      return
4516
    oprot.writeStructBegin('isActive_result')
4517
    if self.success is not None:
4518
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4519
      self.success.write(oprot)
4520
      oprot.writeFieldEnd()
4521
    if self.isex is not None:
4522
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4523
      self.isex.write(oprot)
4524
      oprot.writeFieldEnd()
4525
    oprot.writeFieldStop()
4526
    oprot.writeStructEnd()
4527
 
4528
  def validate(self):
4529
    return
4530
 
4531
 
4532
  def __repr__(self):
4533
    L = ['%s=%r' % (key, value)
4534
      for key, value in self.__dict__.iteritems()]
4535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4536
 
4537
  def __eq__(self, other):
4538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4539
 
4540
  def __ne__(self, other):
4541
    return not (self == other)
4542
 
4543
class getItemStatusDescription_args:
4544
  """
4545
  Attributes:
4546
   - itemId
4547
  """
4548
 
4549
  thrift_spec = (
4550
    None, # 0
4551
    (1, TType.I64, 'itemId', None, None, ), # 1
4552
  )
4553
 
4554
  def __init__(self, itemId=None,):
4555
    self.itemId = itemId
4556
 
4557
  def read(self, iprot):
4558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4560
      return
4561
    iprot.readStructBegin()
4562
    while True:
4563
      (fname, ftype, fid) = iprot.readFieldBegin()
4564
      if ftype == TType.STOP:
4565
        break
4566
      if fid == 1:
4567
        if ftype == TType.I64:
4568
          self.itemId = iprot.readI64();
4569
        else:
4570
          iprot.skip(ftype)
4571
      else:
4572
        iprot.skip(ftype)
4573
      iprot.readFieldEnd()
4574
    iprot.readStructEnd()
4575
 
4576
  def write(self, oprot):
4577
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4578
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4579
      return
4580
    oprot.writeStructBegin('getItemStatusDescription_args')
4581
    if self.itemId is not None:
4582
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4583
      oprot.writeI64(self.itemId)
4584
      oprot.writeFieldEnd()
4585
    oprot.writeFieldStop()
4586
    oprot.writeStructEnd()
4587
 
4588
  def validate(self):
4589
    return
4590
 
4591
 
4592
  def __repr__(self):
4593
    L = ['%s=%r' % (key, value)
4594
      for key, value in self.__dict__.iteritems()]
4595
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4596
 
4597
  def __eq__(self, other):
4598
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4599
 
4600
  def __ne__(self, other):
4601
    return not (self == other)
4602
 
4603
class getItemStatusDescription_result:
4604
  """
4605
  Attributes:
4606
   - success
4607
   - isex
4608
  """
4609
 
4610
  thrift_spec = (
4611
    (0, TType.STRING, 'success', None, None, ), # 0
4612
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4613
  )
4614
 
4615
  def __init__(self, success=None, isex=None,):
4616
    self.success = success
4617
    self.isex = isex
4618
 
4619
  def read(self, iprot):
4620
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4621
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4622
      return
4623
    iprot.readStructBegin()
4624
    while True:
4625
      (fname, ftype, fid) = iprot.readFieldBegin()
4626
      if ftype == TType.STOP:
4627
        break
4628
      if fid == 0:
4629
        if ftype == TType.STRING:
4630
          self.success = iprot.readString();
4631
        else:
4632
          iprot.skip(ftype)
4633
      elif fid == 1:
4634
        if ftype == TType.STRUCT:
4635
          self.isex = CatalogServiceException()
4636
          self.isex.read(iprot)
4637
        else:
4638
          iprot.skip(ftype)
4639
      else:
4640
        iprot.skip(ftype)
4641
      iprot.readFieldEnd()
4642
    iprot.readStructEnd()
4643
 
4644
  def write(self, oprot):
4645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4647
      return
4648
    oprot.writeStructBegin('getItemStatusDescription_result')
4649
    if self.success is not None:
4650
      oprot.writeFieldBegin('success', TType.STRING, 0)
4651
      oprot.writeString(self.success)
4652
      oprot.writeFieldEnd()
4653
    if self.isex is not None:
4654
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4655
      self.isex.write(oprot)
4656
      oprot.writeFieldEnd()
4657
    oprot.writeFieldStop()
4658
    oprot.writeStructEnd()
4659
 
4660
  def validate(self):
4661
    return
4662
 
4663
 
4664
  def __repr__(self):
4665
    L = ['%s=%r' % (key, value)
4666
      for key, value in self.__dict__.iteritems()]
4667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4668
 
4669
  def __eq__(self, other):
4670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4671
 
4672
  def __ne__(self, other):
4673
    return not (self == other)
4674
 
4675
class startItemOn_args:
4676
  """
4677
  Attributes:
4678
   - item_id
4679
   - timestamp
4680
  """
4681
 
4682
  thrift_spec = (
4683
    None, # 0
4684
    (1, TType.I64, 'item_id', None, None, ), # 1
4685
    (2, TType.I64, 'timestamp', None, None, ), # 2
4686
  )
4687
 
4688
  def __init__(self, item_id=None, timestamp=None,):
4689
    self.item_id = item_id
4690
    self.timestamp = timestamp
4691
 
4692
  def read(self, iprot):
4693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4695
      return
4696
    iprot.readStructBegin()
4697
    while True:
4698
      (fname, ftype, fid) = iprot.readFieldBegin()
4699
      if ftype == TType.STOP:
4700
        break
4701
      if fid == 1:
4702
        if ftype == TType.I64:
4703
          self.item_id = iprot.readI64();
4704
        else:
4705
          iprot.skip(ftype)
4706
      elif fid == 2:
4707
        if ftype == TType.I64:
4708
          self.timestamp = iprot.readI64();
4709
        else:
4710
          iprot.skip(ftype)
4711
      else:
4712
        iprot.skip(ftype)
4713
      iprot.readFieldEnd()
4714
    iprot.readStructEnd()
4715
 
4716
  def write(self, oprot):
4717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4719
      return
4720
    oprot.writeStructBegin('startItemOn_args')
4721
    if self.item_id is not None:
4722
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4723
      oprot.writeI64(self.item_id)
4724
      oprot.writeFieldEnd()
4725
    if self.timestamp is not None:
4726
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4727
      oprot.writeI64(self.timestamp)
4728
      oprot.writeFieldEnd()
4729
    oprot.writeFieldStop()
4730
    oprot.writeStructEnd()
4731
 
4732
  def validate(self):
4733
    return
4734
 
4735
 
4736
  def __repr__(self):
4737
    L = ['%s=%r' % (key, value)
4738
      for key, value in self.__dict__.iteritems()]
4739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4740
 
4741
  def __eq__(self, other):
4742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4743
 
4744
  def __ne__(self, other):
4745
    return not (self == other)
4746
 
4747
class startItemOn_result:
4748
  """
4749
  Attributes:
4750
   - cex
4751
  """
4752
 
4753
  thrift_spec = (
4754
    None, # 0
4755
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4756
  )
4757
 
4758
  def __init__(self, cex=None,):
4759
    self.cex = cex
4760
 
4761
  def read(self, iprot):
4762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4764
      return
4765
    iprot.readStructBegin()
4766
    while True:
4767
      (fname, ftype, fid) = iprot.readFieldBegin()
4768
      if ftype == TType.STOP:
4769
        break
4770
      if fid == 1:
4771
        if ftype == TType.STRUCT:
4772
          self.cex = CatalogServiceException()
4773
          self.cex.read(iprot)
4774
        else:
4775
          iprot.skip(ftype)
4776
      else:
4777
        iprot.skip(ftype)
4778
      iprot.readFieldEnd()
4779
    iprot.readStructEnd()
4780
 
4781
  def write(self, oprot):
4782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4784
      return
4785
    oprot.writeStructBegin('startItemOn_result')
4786
    if self.cex is not None:
4787
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4788
      self.cex.write(oprot)
4789
      oprot.writeFieldEnd()
4790
    oprot.writeFieldStop()
4791
    oprot.writeStructEnd()
4792
 
4793
  def validate(self):
4794
    return
4795
 
4796
 
4797
  def __repr__(self):
4798
    L = ['%s=%r' % (key, value)
4799
      for key, value in self.__dict__.iteritems()]
4800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4801
 
4802
  def __eq__(self, other):
4803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4804
 
4805
  def __ne__(self, other):
4806
    return not (self == other)
4807
 
4808
class retireItemOn_args:
4809
  """
4810
  Attributes:
4811
   - item_id
4812
   - timestamp
4813
  """
4814
 
4815
  thrift_spec = (
4816
    None, # 0
4817
    (1, TType.I64, 'item_id', None, None, ), # 1
4818
    (2, TType.I64, 'timestamp', None, None, ), # 2
4819
  )
4820
 
4821
  def __init__(self, item_id=None, timestamp=None,):
4822
    self.item_id = item_id
4823
    self.timestamp = timestamp
4824
 
4825
  def read(self, iprot):
4826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4828
      return
4829
    iprot.readStructBegin()
4830
    while True:
4831
      (fname, ftype, fid) = iprot.readFieldBegin()
4832
      if ftype == TType.STOP:
4833
        break
4834
      if fid == 1:
4835
        if ftype == TType.I64:
4836
          self.item_id = iprot.readI64();
4837
        else:
4838
          iprot.skip(ftype)
4839
      elif fid == 2:
4840
        if ftype == TType.I64:
4841
          self.timestamp = iprot.readI64();
4842
        else:
4843
          iprot.skip(ftype)
4844
      else:
4845
        iprot.skip(ftype)
4846
      iprot.readFieldEnd()
4847
    iprot.readStructEnd()
4848
 
4849
  def write(self, oprot):
4850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4852
      return
4853
    oprot.writeStructBegin('retireItemOn_args')
4854
    if self.item_id is not None:
4855
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4856
      oprot.writeI64(self.item_id)
4857
      oprot.writeFieldEnd()
4858
    if self.timestamp is not None:
4859
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4860
      oprot.writeI64(self.timestamp)
4861
      oprot.writeFieldEnd()
4862
    oprot.writeFieldStop()
4863
    oprot.writeStructEnd()
4864
 
4865
  def validate(self):
4866
    return
4867
 
4868
 
4869
  def __repr__(self):
4870
    L = ['%s=%r' % (key, value)
4871
      for key, value in self.__dict__.iteritems()]
4872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4873
 
4874
  def __eq__(self, other):
4875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4876
 
4877
  def __ne__(self, other):
4878
    return not (self == other)
4879
 
4880
class retireItemOn_result:
4881
  """
4882
  Attributes:
4883
   - cex
4884
  """
4885
 
4886
  thrift_spec = (
4887
    None, # 0
4888
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4889
  )
4890
 
4891
  def __init__(self, cex=None,):
4892
    self.cex = cex
4893
 
4894
  def read(self, iprot):
4895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4897
      return
4898
    iprot.readStructBegin()
4899
    while True:
4900
      (fname, ftype, fid) = iprot.readFieldBegin()
4901
      if ftype == TType.STOP:
4902
        break
4903
      if fid == 1:
4904
        if ftype == TType.STRUCT:
4905
          self.cex = CatalogServiceException()
4906
          self.cex.read(iprot)
4907
        else:
4908
          iprot.skip(ftype)
4909
      else:
4910
        iprot.skip(ftype)
4911
      iprot.readFieldEnd()
4912
    iprot.readStructEnd()
4913
 
4914
  def write(self, oprot):
4915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4917
      return
4918
    oprot.writeStructBegin('retireItemOn_result')
4919
    if self.cex is not None:
4920
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4921
      self.cex.write(oprot)
4922
      oprot.writeFieldEnd()
4923
    oprot.writeFieldStop()
4924
    oprot.writeStructEnd()
4925
 
4926
  def validate(self):
4927
    return
4928
 
4929
 
4930
  def __repr__(self):
4931
    L = ['%s=%r' % (key, value)
4932
      for key, value in self.__dict__.iteritems()]
4933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4934
 
4935
  def __eq__(self, other):
4936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4937
 
4938
  def __ne__(self, other):
4939
    return not (self == other)
4940
 
4941
class changeItemStatus_args:
4942
  """
4943
  Attributes:
4944
   - item_id
4945
   - timestamp
4946
   - newstatus
4947
  """
4948
 
4949
  thrift_spec = (
4950
    None, # 0
4951
    (1, TType.I64, 'item_id', None, None, ), # 1
4952
    (2, TType.I64, 'timestamp', None, None, ), # 2
4953
    (3, TType.I32, 'newstatus', None, None, ), # 3
4954
  )
4955
 
4956
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
4957
    self.item_id = item_id
4958
    self.timestamp = timestamp
4959
    self.newstatus = newstatus
4960
 
4961
  def read(self, iprot):
4962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4964
      return
4965
    iprot.readStructBegin()
4966
    while True:
4967
      (fname, ftype, fid) = iprot.readFieldBegin()
4968
      if ftype == TType.STOP:
4969
        break
4970
      if fid == 1:
4971
        if ftype == TType.I64:
4972
          self.item_id = iprot.readI64();
4973
        else:
4974
          iprot.skip(ftype)
4975
      elif fid == 2:
4976
        if ftype == TType.I64:
4977
          self.timestamp = iprot.readI64();
4978
        else:
4979
          iprot.skip(ftype)
4980
      elif fid == 3:
4981
        if ftype == TType.I32:
4982
          self.newstatus = iprot.readI32();
4983
        else:
4984
          iprot.skip(ftype)
4985
      else:
4986
        iprot.skip(ftype)
4987
      iprot.readFieldEnd()
4988
    iprot.readStructEnd()
4989
 
4990
  def write(self, oprot):
4991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4993
      return
4994
    oprot.writeStructBegin('changeItemStatus_args')
4995
    if self.item_id is not None:
4996
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4997
      oprot.writeI64(self.item_id)
4998
      oprot.writeFieldEnd()
4999
    if self.timestamp is not None:
5000
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5001
      oprot.writeI64(self.timestamp)
5002
      oprot.writeFieldEnd()
5003
    if self.newstatus is not None:
5004
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
5005
      oprot.writeI32(self.newstatus)
5006
      oprot.writeFieldEnd()
5007
    oprot.writeFieldStop()
5008
    oprot.writeStructEnd()
5009
 
5010
  def validate(self):
5011
    return
5012
 
5013
 
5014
  def __repr__(self):
5015
    L = ['%s=%r' % (key, value)
5016
      for key, value in self.__dict__.iteritems()]
5017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5018
 
5019
  def __eq__(self, other):
5020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5021
 
5022
  def __ne__(self, other):
5023
    return not (self == other)
5024
 
5025
class changeItemStatus_result:
5026
  """
5027
  Attributes:
5028
   - cex
5029
  """
5030
 
5031
  thrift_spec = (
5032
    None, # 0
5033
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5034
  )
5035
 
5036
  def __init__(self, cex=None,):
5037
    self.cex = cex
5038
 
5039
  def read(self, iprot):
5040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5042
      return
5043
    iprot.readStructBegin()
5044
    while True:
5045
      (fname, ftype, fid) = iprot.readFieldBegin()
5046
      if ftype == TType.STOP:
5047
        break
5048
      if fid == 1:
5049
        if ftype == TType.STRUCT:
5050
          self.cex = CatalogServiceException()
5051
          self.cex.read(iprot)
5052
        else:
5053
          iprot.skip(ftype)
5054
      else:
5055
        iprot.skip(ftype)
5056
      iprot.readFieldEnd()
5057
    iprot.readStructEnd()
5058
 
5059
  def write(self, oprot):
5060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5062
      return
5063
    oprot.writeStructBegin('changeItemStatus_result')
5064
    if self.cex is not None:
5065
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5066
      self.cex.write(oprot)
5067
      oprot.writeFieldEnd()
5068
    oprot.writeFieldStop()
5069
    oprot.writeStructEnd()
5070
 
5071
  def validate(self):
5072
    return
5073
 
5074
 
5075
  def __repr__(self):
5076
    L = ['%s=%r' % (key, value)
5077
      for key, value in self.__dict__.iteritems()]
5078
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5079
 
5080
  def __eq__(self, other):
5081
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5082
 
5083
  def __ne__(self, other):
5084
    return not (self == other)
5085
 
5086
class getItem_args:
5087
  """
5088
  Attributes:
5089
   - item_id
5090
  """
5091
 
5092
  thrift_spec = (
5093
    None, # 0
5094
    (1, TType.I64, 'item_id', None, None, ), # 1
5095
  )
5096
 
5097
  def __init__(self, item_id=None,):
5098
    self.item_id = item_id
5099
 
5100
  def read(self, iprot):
5101
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5102
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5103
      return
5104
    iprot.readStructBegin()
5105
    while True:
5106
      (fname, ftype, fid) = iprot.readFieldBegin()
5107
      if ftype == TType.STOP:
5108
        break
5109
      if fid == 1:
5110
        if ftype == TType.I64:
5111
          self.item_id = iprot.readI64();
5112
        else:
5113
          iprot.skip(ftype)
5114
      else:
5115
        iprot.skip(ftype)
5116
      iprot.readFieldEnd()
5117
    iprot.readStructEnd()
5118
 
5119
  def write(self, oprot):
5120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5122
      return
5123
    oprot.writeStructBegin('getItem_args')
5124
    if self.item_id is not None:
5125
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5126
      oprot.writeI64(self.item_id)
5127
      oprot.writeFieldEnd()
5128
    oprot.writeFieldStop()
5129
    oprot.writeStructEnd()
5130
 
5131
  def validate(self):
5132
    return
5133
 
5134
 
5135
  def __repr__(self):
5136
    L = ['%s=%r' % (key, value)
5137
      for key, value in self.__dict__.iteritems()]
5138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5139
 
5140
  def __eq__(self, other):
5141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5142
 
5143
  def __ne__(self, other):
5144
    return not (self == other)
5145
 
5146
class getItem_result:
5147
  """
5148
  Attributes:
5149
   - success
5150
   - cex
5151
  """
5152
 
5153
  thrift_spec = (
5154
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
5155
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5156
  )
5157
 
5158
  def __init__(self, success=None, cex=None,):
5159
    self.success = success
5160
    self.cex = cex
5161
 
5162
  def read(self, iprot):
5163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5165
      return
5166
    iprot.readStructBegin()
5167
    while True:
5168
      (fname, ftype, fid) = iprot.readFieldBegin()
5169
      if ftype == TType.STOP:
5170
        break
5171
      if fid == 0:
5172
        if ftype == TType.STRUCT:
5173
          self.success = Item()
5174
          self.success.read(iprot)
5175
        else:
5176
          iprot.skip(ftype)
5177
      elif fid == 1:
5178
        if ftype == TType.STRUCT:
5179
          self.cex = CatalogServiceException()
5180
          self.cex.read(iprot)
5181
        else:
5182
          iprot.skip(ftype)
5183
      else:
5184
        iprot.skip(ftype)
5185
      iprot.readFieldEnd()
5186
    iprot.readStructEnd()
5187
 
5188
  def write(self, oprot):
5189
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5190
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5191
      return
5192
    oprot.writeStructBegin('getItem_result')
5193
    if self.success is not None:
5194
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5195
      self.success.write(oprot)
5196
      oprot.writeFieldEnd()
5197
    if self.cex is not None:
5198
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5199
      self.cex.write(oprot)
5200
      oprot.writeFieldEnd()
5201
    oprot.writeFieldStop()
5202
    oprot.writeStructEnd()
5203
 
5204
  def validate(self):
5205
    return
5206
 
5207
 
5208
  def __repr__(self):
5209
    L = ['%s=%r' % (key, value)
5210
      for key, value in self.__dict__.iteritems()]
5211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5212
 
5213
  def __eq__(self, other):
5214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5215
 
5216
  def __ne__(self, other):
5217
    return not (self == other)
5218
 
5219
class getItemsByCatalogId_args:
5220
  """
5221
  Attributes:
5222
   - catalog_item_id
5223
  """
5224
 
5225
  thrift_spec = (
5226
    None, # 0
5227
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5228
  )
5229
 
5230
  def __init__(self, catalog_item_id=None,):
5231
    self.catalog_item_id = catalog_item_id
5232
 
5233
  def read(self, iprot):
5234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5236
      return
5237
    iprot.readStructBegin()
5238
    while True:
5239
      (fname, ftype, fid) = iprot.readFieldBegin()
5240
      if ftype == TType.STOP:
5241
        break
5242
      if fid == 1:
5243
        if ftype == TType.I64:
5244
          self.catalog_item_id = iprot.readI64();
5245
        else:
5246
          iprot.skip(ftype)
5247
      else:
5248
        iprot.skip(ftype)
5249
      iprot.readFieldEnd()
5250
    iprot.readStructEnd()
5251
 
5252
  def write(self, oprot):
5253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5255
      return
5256
    oprot.writeStructBegin('getItemsByCatalogId_args')
5257
    if self.catalog_item_id is not None:
5258
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5259
      oprot.writeI64(self.catalog_item_id)
5260
      oprot.writeFieldEnd()
5261
    oprot.writeFieldStop()
5262
    oprot.writeStructEnd()
5263
 
5264
  def validate(self):
5265
    return
5266
 
5267
 
5268
  def __repr__(self):
5269
    L = ['%s=%r' % (key, value)
5270
      for key, value in self.__dict__.iteritems()]
5271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5272
 
5273
  def __eq__(self, other):
5274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5275
 
5276
  def __ne__(self, other):
5277
    return not (self == other)
5278
 
5279
class getItemsByCatalogId_result:
5280
  """
5281
  Attributes:
5282
   - success
5283
   - cex
5284
  """
5285
 
5286
  thrift_spec = (
5287
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5288
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5289
  )
5290
 
5291
  def __init__(self, success=None, cex=None,):
5292
    self.success = success
5293
    self.cex = cex
5294
 
5295
  def read(self, iprot):
5296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5298
      return
5299
    iprot.readStructBegin()
5300
    while True:
5301
      (fname, ftype, fid) = iprot.readFieldBegin()
5302
      if ftype == TType.STOP:
5303
        break
5304
      if fid == 0:
5305
        if ftype == TType.LIST:
5306
          self.success = []
5307
          (_etype19, _size16) = iprot.readListBegin()
5308
          for _i20 in xrange(_size16):
5309
            _elem21 = Item()
5310
            _elem21.read(iprot)
5311
            self.success.append(_elem21)
5312
          iprot.readListEnd()
5313
        else:
5314
          iprot.skip(ftype)
5315
      elif fid == 1:
5316
        if ftype == TType.STRUCT:
5317
          self.cex = CatalogServiceException()
5318
          self.cex.read(iprot)
5319
        else:
5320
          iprot.skip(ftype)
5321
      else:
5322
        iprot.skip(ftype)
5323
      iprot.readFieldEnd()
5324
    iprot.readStructEnd()
5325
 
5326
  def write(self, oprot):
5327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5329
      return
5330
    oprot.writeStructBegin('getItemsByCatalogId_result')
5331
    if self.success is not None:
5332
      oprot.writeFieldBegin('success', TType.LIST, 0)
5333
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5334
      for iter22 in self.success:
5335
        iter22.write(oprot)
5336
      oprot.writeListEnd()
5337
      oprot.writeFieldEnd()
5338
    if self.cex is not None:
5339
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5340
      self.cex.write(oprot)
5341
      oprot.writeFieldEnd()
5342
    oprot.writeFieldStop()
5343
    oprot.writeStructEnd()
5344
 
5345
  def validate(self):
5346
    return
5347
 
5348
 
5349
  def __repr__(self):
5350
    L = ['%s=%r' % (key, value)
5351
      for key, value in self.__dict__.iteritems()]
5352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5353
 
5354
  def __eq__(self, other):
5355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5356
 
5357
  def __ne__(self, other):
5358
    return not (self == other)
5359
 
5360
class getValidItemsByCatalogId_args:
5361
  """
5362
  Attributes:
5363
   - catalog_item_id
5364
  """
5365
 
5366
  thrift_spec = (
5367
    None, # 0
5368
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5369
  )
5370
 
5371
  def __init__(self, catalog_item_id=None,):
5372
    self.catalog_item_id = catalog_item_id
5373
 
5374
  def read(self, iprot):
5375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5377
      return
5378
    iprot.readStructBegin()
5379
    while True:
5380
      (fname, ftype, fid) = iprot.readFieldBegin()
5381
      if ftype == TType.STOP:
5382
        break
5383
      if fid == 1:
5384
        if ftype == TType.I64:
5385
          self.catalog_item_id = iprot.readI64();
5386
        else:
5387
          iprot.skip(ftype)
5388
      else:
5389
        iprot.skip(ftype)
5390
      iprot.readFieldEnd()
5391
    iprot.readStructEnd()
5392
 
5393
  def write(self, oprot):
5394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5396
      return
5397
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5398
    if self.catalog_item_id is not None:
5399
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5400
      oprot.writeI64(self.catalog_item_id)
5401
      oprot.writeFieldEnd()
5402
    oprot.writeFieldStop()
5403
    oprot.writeStructEnd()
5404
 
5405
  def validate(self):
5406
    return
5407
 
5408
 
5409
  def __repr__(self):
5410
    L = ['%s=%r' % (key, value)
5411
      for key, value in self.__dict__.iteritems()]
5412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5413
 
5414
  def __eq__(self, other):
5415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5416
 
5417
  def __ne__(self, other):
5418
    return not (self == other)
5419
 
5420
class getValidItemsByCatalogId_result:
5421
  """
5422
  Attributes:
5423
   - success
5424
   - cex
5425
  """
5426
 
5427
  thrift_spec = (
5428
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5429
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5430
  )
5431
 
5432
  def __init__(self, success=None, cex=None,):
5433
    self.success = success
5434
    self.cex = cex
5435
 
5436
  def read(self, iprot):
5437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5439
      return
5440
    iprot.readStructBegin()
5441
    while True:
5442
      (fname, ftype, fid) = iprot.readFieldBegin()
5443
      if ftype == TType.STOP:
5444
        break
5445
      if fid == 0:
5446
        if ftype == TType.LIST:
5447
          self.success = []
5448
          (_etype26, _size23) = iprot.readListBegin()
5449
          for _i27 in xrange(_size23):
5450
            _elem28 = Item()
5451
            _elem28.read(iprot)
5452
            self.success.append(_elem28)
5453
          iprot.readListEnd()
5454
        else:
5455
          iprot.skip(ftype)
5456
      elif fid == 1:
5457
        if ftype == TType.STRUCT:
5458
          self.cex = CatalogServiceException()
5459
          self.cex.read(iprot)
5460
        else:
5461
          iprot.skip(ftype)
5462
      else:
5463
        iprot.skip(ftype)
5464
      iprot.readFieldEnd()
5465
    iprot.readStructEnd()
5466
 
5467
  def write(self, oprot):
5468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5470
      return
5471
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5472
    if self.success is not None:
5473
      oprot.writeFieldBegin('success', TType.LIST, 0)
5474
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5475
      for iter29 in self.success:
5476
        iter29.write(oprot)
5477
      oprot.writeListEnd()
5478
      oprot.writeFieldEnd()
5479
    if self.cex is not None:
5480
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5481
      self.cex.write(oprot)
5482
      oprot.writeFieldEnd()
5483
    oprot.writeFieldStop()
5484
    oprot.writeStructEnd()
5485
 
5486
  def validate(self):
5487
    return
5488
 
5489
 
5490
  def __repr__(self):
5491
    L = ['%s=%r' % (key, value)
5492
      for key, value in self.__dict__.iteritems()]
5493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5494
 
5495
  def __eq__(self, other):
5496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5497
 
5498
  def __ne__(self, other):
5499
    return not (self == other)
5500
 
5501
class getAllItems_args:
5502
  """
5503
  Attributes:
5504
   - isActive
5505
  """
5506
 
5507
  thrift_spec = (
5508
    None, # 0
5509
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5510
  )
5511
 
5512
  def __init__(self, isActive=None,):
5513
    self.isActive = isActive
5514
 
5515
  def read(self, iprot):
5516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5518
      return
5519
    iprot.readStructBegin()
5520
    while True:
5521
      (fname, ftype, fid) = iprot.readFieldBegin()
5522
      if ftype == TType.STOP:
5523
        break
5524
      if fid == 1:
5525
        if ftype == TType.BOOL:
5526
          self.isActive = iprot.readBool();
5527
        else:
5528
          iprot.skip(ftype)
5529
      else:
5530
        iprot.skip(ftype)
5531
      iprot.readFieldEnd()
5532
    iprot.readStructEnd()
5533
 
5534
  def write(self, oprot):
5535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5537
      return
5538
    oprot.writeStructBegin('getAllItems_args')
5539
    if self.isActive is not None:
5540
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5541
      oprot.writeBool(self.isActive)
5542
      oprot.writeFieldEnd()
5543
    oprot.writeFieldStop()
5544
    oprot.writeStructEnd()
5545
 
5546
  def validate(self):
5547
    return
5548
 
5549
 
5550
  def __repr__(self):
5551
    L = ['%s=%r' % (key, value)
5552
      for key, value in self.__dict__.iteritems()]
5553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5554
 
5555
  def __eq__(self, other):
5556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5557
 
5558
  def __ne__(self, other):
5559
    return not (self == other)
5560
 
5561
class getAllItems_result:
5562
  """
5563
  Attributes:
5564
   - success
5565
   - cex
5566
  """
5567
 
5568
  thrift_spec = (
5569
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5570
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5571
  )
5572
 
5573
  def __init__(self, success=None, cex=None,):
5574
    self.success = success
5575
    self.cex = cex
5576
 
5577
  def read(self, iprot):
5578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5580
      return
5581
    iprot.readStructBegin()
5582
    while True:
5583
      (fname, ftype, fid) = iprot.readFieldBegin()
5584
      if ftype == TType.STOP:
5585
        break
5586
      if fid == 0:
5587
        if ftype == TType.LIST:
5588
          self.success = []
5589
          (_etype33, _size30) = iprot.readListBegin()
5590
          for _i34 in xrange(_size30):
5591
            _elem35 = Item()
5592
            _elem35.read(iprot)
5593
            self.success.append(_elem35)
5594
          iprot.readListEnd()
5595
        else:
5596
          iprot.skip(ftype)
5597
      elif fid == 1:
5598
        if ftype == TType.STRUCT:
5599
          self.cex = CatalogServiceException()
5600
          self.cex.read(iprot)
5601
        else:
5602
          iprot.skip(ftype)
5603
      else:
5604
        iprot.skip(ftype)
5605
      iprot.readFieldEnd()
5606
    iprot.readStructEnd()
5607
 
5608
  def write(self, oprot):
5609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5611
      return
5612
    oprot.writeStructBegin('getAllItems_result')
5613
    if self.success is not None:
5614
      oprot.writeFieldBegin('success', TType.LIST, 0)
5615
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5616
      for iter36 in self.success:
5617
        iter36.write(oprot)
5618
      oprot.writeListEnd()
5619
      oprot.writeFieldEnd()
5620
    if self.cex is not None:
5621
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5622
      self.cex.write(oprot)
5623
      oprot.writeFieldEnd()
5624
    oprot.writeFieldStop()
5625
    oprot.writeStructEnd()
5626
 
5627
  def validate(self):
5628
    return
5629
 
5630
 
5631
  def __repr__(self):
5632
    L = ['%s=%r' % (key, value)
5633
      for key, value in self.__dict__.iteritems()]
5634
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5635
 
5636
  def __eq__(self, other):
5637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5638
 
5639
  def __ne__(self, other):
5640
    return not (self == other)
5641
 
5642
class getAllItemsByStatus_args:
5643
  """
5644
  Attributes:
5645
   - itemStatus
5646
  """
5647
 
5648
  thrift_spec = (
5649
    None, # 0
5650
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5651
  )
5652
 
5653
  def __init__(self, itemStatus=None,):
5654
    self.itemStatus = itemStatus
5655
 
5656
  def read(self, iprot):
5657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5659
      return
5660
    iprot.readStructBegin()
5661
    while True:
5662
      (fname, ftype, fid) = iprot.readFieldBegin()
5663
      if ftype == TType.STOP:
5664
        break
5665
      if fid == 1:
5666
        if ftype == TType.I32:
5667
          self.itemStatus = iprot.readI32();
5668
        else:
5669
          iprot.skip(ftype)
5670
      else:
5671
        iprot.skip(ftype)
5672
      iprot.readFieldEnd()
5673
    iprot.readStructEnd()
5674
 
5675
  def write(self, oprot):
5676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5678
      return
5679
    oprot.writeStructBegin('getAllItemsByStatus_args')
5680
    if self.itemStatus is not None:
5681
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5682
      oprot.writeI32(self.itemStatus)
5683
      oprot.writeFieldEnd()
5684
    oprot.writeFieldStop()
5685
    oprot.writeStructEnd()
5686
 
5687
  def validate(self):
5688
    return
5689
 
5690
 
5691
  def __repr__(self):
5692
    L = ['%s=%r' % (key, value)
5693
      for key, value in self.__dict__.iteritems()]
5694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5695
 
5696
  def __eq__(self, other):
5697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5698
 
5699
  def __ne__(self, other):
5700
    return not (self == other)
5701
 
5702
class getAllItemsByStatus_result:
5703
  """
5704
  Attributes:
5705
   - success
5706
   - cex
5707
  """
5708
 
5709
  thrift_spec = (
5710
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5711
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5712
  )
5713
 
5714
  def __init__(self, success=None, cex=None,):
5715
    self.success = success
5716
    self.cex = cex
5717
 
5718
  def read(self, iprot):
5719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5721
      return
5722
    iprot.readStructBegin()
5723
    while True:
5724
      (fname, ftype, fid) = iprot.readFieldBegin()
5725
      if ftype == TType.STOP:
5726
        break
5727
      if fid == 0:
5728
        if ftype == TType.LIST:
5729
          self.success = []
5730
          (_etype40, _size37) = iprot.readListBegin()
5731
          for _i41 in xrange(_size37):
5732
            _elem42 = Item()
5733
            _elem42.read(iprot)
5734
            self.success.append(_elem42)
5735
          iprot.readListEnd()
5736
        else:
5737
          iprot.skip(ftype)
5738
      elif fid == 1:
5739
        if ftype == TType.STRUCT:
5740
          self.cex = CatalogServiceException()
5741
          self.cex.read(iprot)
5742
        else:
5743
          iprot.skip(ftype)
5744
      else:
5745
        iprot.skip(ftype)
5746
      iprot.readFieldEnd()
5747
    iprot.readStructEnd()
5748
 
5749
  def write(self, oprot):
5750
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5751
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5752
      return
5753
    oprot.writeStructBegin('getAllItemsByStatus_result')
5754
    if self.success is not None:
5755
      oprot.writeFieldBegin('success', TType.LIST, 0)
5756
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5757
      for iter43 in self.success:
5758
        iter43.write(oprot)
5759
      oprot.writeListEnd()
5760
      oprot.writeFieldEnd()
5761
    if self.cex is not None:
5762
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5763
      self.cex.write(oprot)
5764
      oprot.writeFieldEnd()
5765
    oprot.writeFieldStop()
5766
    oprot.writeStructEnd()
5767
 
5768
  def validate(self):
5769
    return
5770
 
5771
 
5772
  def __repr__(self):
5773
    L = ['%s=%r' % (key, value)
5774
      for key, value in self.__dict__.iteritems()]
5775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5776
 
5777
  def __eq__(self, other):
5778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5779
 
5780
  def __ne__(self, other):
5781
    return not (self == other)
5782
 
5783
class markItemAsContentComplete_args:
5784
  """
5785
  Attributes:
5786
   - entityId
5787
   - category
5788
   - brand
5789
   - modelName
5790
   - modelNumber
5791
  """
5792
 
5793
  thrift_spec = (
5794
    None, # 0
5795
    (1, TType.I64, 'entityId', None, None, ), # 1
5796
    (2, TType.I64, 'category', None, None, ), # 2
5797
    (3, TType.STRING, 'brand', None, None, ), # 3
5798
    (4, TType.STRING, 'modelName', None, None, ), # 4
5799
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
5800
  )
5801
 
5802
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
5803
    self.entityId = entityId
5804
    self.category = category
5805
    self.brand = brand
5806
    self.modelName = modelName
5807
    self.modelNumber = modelNumber
5808
 
5809
  def read(self, iprot):
5810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5812
      return
5813
    iprot.readStructBegin()
5814
    while True:
5815
      (fname, ftype, fid) = iprot.readFieldBegin()
5816
      if ftype == TType.STOP:
5817
        break
5818
      if fid == 1:
5819
        if ftype == TType.I64:
5820
          self.entityId = iprot.readI64();
5821
        else:
5822
          iprot.skip(ftype)
5823
      elif fid == 2:
5824
        if ftype == TType.I64:
5825
          self.category = iprot.readI64();
5826
        else:
5827
          iprot.skip(ftype)
5828
      elif fid == 3:
5829
        if ftype == TType.STRING:
5830
          self.brand = iprot.readString();
5831
        else:
5832
          iprot.skip(ftype)
5833
      elif fid == 4:
5834
        if ftype == TType.STRING:
5835
          self.modelName = iprot.readString();
5836
        else:
5837
          iprot.skip(ftype)
5838
      elif fid == 5:
5839
        if ftype == TType.STRING:
5840
          self.modelNumber = iprot.readString();
5841
        else:
5842
          iprot.skip(ftype)
5843
      else:
5844
        iprot.skip(ftype)
5845
      iprot.readFieldEnd()
5846
    iprot.readStructEnd()
5847
 
5848
  def write(self, oprot):
5849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5851
      return
5852
    oprot.writeStructBegin('markItemAsContentComplete_args')
5853
    if self.entityId is not None:
5854
      oprot.writeFieldBegin('entityId', TType.I64, 1)
5855
      oprot.writeI64(self.entityId)
5856
      oprot.writeFieldEnd()
5857
    if self.category is not None:
5858
      oprot.writeFieldBegin('category', TType.I64, 2)
5859
      oprot.writeI64(self.category)
5860
      oprot.writeFieldEnd()
5861
    if self.brand is not None:
5862
      oprot.writeFieldBegin('brand', TType.STRING, 3)
5863
      oprot.writeString(self.brand)
5864
      oprot.writeFieldEnd()
5865
    if self.modelName is not None:
5866
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
5867
      oprot.writeString(self.modelName)
5868
      oprot.writeFieldEnd()
5869
    if self.modelNumber is not None:
5870
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
5871
      oprot.writeString(self.modelNumber)
5872
      oprot.writeFieldEnd()
5873
    oprot.writeFieldStop()
5874
    oprot.writeStructEnd()
5875
 
5876
  def validate(self):
5877
    return
5878
 
5879
 
5880
  def __repr__(self):
5881
    L = ['%s=%r' % (key, value)
5882
      for key, value in self.__dict__.iteritems()]
5883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5884
 
5885
  def __eq__(self, other):
5886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5887
 
5888
  def __ne__(self, other):
5889
    return not (self == other)
5890
 
5891
class markItemAsContentComplete_result:
5892
  """
5893
  Attributes:
5894
   - success
5895
   - cex
5896
  """
5897
 
5898
  thrift_spec = (
5899
    (0, TType.BOOL, 'success', None, None, ), # 0
5900
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5901
  )
5902
 
5903
  def __init__(self, success=None, cex=None,):
5904
    self.success = success
5905
    self.cex = cex
5906
 
5907
  def read(self, iprot):
5908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5910
      return
5911
    iprot.readStructBegin()
5912
    while True:
5913
      (fname, ftype, fid) = iprot.readFieldBegin()
5914
      if ftype == TType.STOP:
5915
        break
5916
      if fid == 0:
5917
        if ftype == TType.BOOL:
5918
          self.success = iprot.readBool();
5919
        else:
5920
          iprot.skip(ftype)
5921
      elif fid == 1:
5922
        if ftype == TType.STRUCT:
5923
          self.cex = CatalogServiceException()
5924
          self.cex.read(iprot)
5925
        else:
5926
          iprot.skip(ftype)
5927
      else:
5928
        iprot.skip(ftype)
5929
      iprot.readFieldEnd()
5930
    iprot.readStructEnd()
5931
 
5932
  def write(self, oprot):
5933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5935
      return
5936
    oprot.writeStructBegin('markItemAsContentComplete_result')
5937
    if self.success is not None:
5938
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5939
      oprot.writeBool(self.success)
5940
      oprot.writeFieldEnd()
5941
    if self.cex is not None:
5942
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5943
      self.cex.write(oprot)
5944
      oprot.writeFieldEnd()
5945
    oprot.writeFieldStop()
5946
    oprot.writeStructEnd()
5947
 
5948
  def validate(self):
5949
    return
5950
 
5951
 
5952
  def __repr__(self):
5953
    L = ['%s=%r' % (key, value)
5954
      for key, value in self.__dict__.iteritems()]
5955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5956
 
5957
  def __eq__(self, other):
5958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5959
 
5960
  def __ne__(self, other):
5961
    return not (self == other)
5962
 
5963
class getAllItemsInRange_args:
5964
  """
5965
  Attributes:
5966
   - offset
5967
   - limit
5968
  """
5969
 
5970
  thrift_spec = (
5971
    None, # 0
5972
    (1, TType.I64, 'offset', None, None, ), # 1
5973
    (2, TType.I64, 'limit', None, None, ), # 2
5974
  )
5975
 
5976
  def __init__(self, offset=None, limit=None,):
5977
    self.offset = offset
5978
    self.limit = limit
5979
 
5980
  def read(self, iprot):
5981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5983
      return
5984
    iprot.readStructBegin()
5985
    while True:
5986
      (fname, ftype, fid) = iprot.readFieldBegin()
5987
      if ftype == TType.STOP:
5988
        break
5989
      if fid == 1:
5990
        if ftype == TType.I64:
5991
          self.offset = iprot.readI64();
5992
        else:
5993
          iprot.skip(ftype)
5994
      elif fid == 2:
5995
        if ftype == TType.I64:
5996
          self.limit = iprot.readI64();
5997
        else:
5998
          iprot.skip(ftype)
5999
      else:
6000
        iprot.skip(ftype)
6001
      iprot.readFieldEnd()
6002
    iprot.readStructEnd()
6003
 
6004
  def write(self, oprot):
6005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6007
      return
6008
    oprot.writeStructBegin('getAllItemsInRange_args')
6009
    if self.offset is not None:
6010
      oprot.writeFieldBegin('offset', TType.I64, 1)
6011
      oprot.writeI64(self.offset)
6012
      oprot.writeFieldEnd()
6013
    if self.limit is not None:
6014
      oprot.writeFieldBegin('limit', TType.I64, 2)
6015
      oprot.writeI64(self.limit)
6016
      oprot.writeFieldEnd()
6017
    oprot.writeFieldStop()
6018
    oprot.writeStructEnd()
6019
 
6020
  def validate(self):
6021
    return
6022
 
6023
 
6024
  def __repr__(self):
6025
    L = ['%s=%r' % (key, value)
6026
      for key, value in self.__dict__.iteritems()]
6027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6028
 
6029
  def __eq__(self, other):
6030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6031
 
6032
  def __ne__(self, other):
6033
    return not (self == other)
6034
 
6035
class getAllItemsInRange_result:
6036
  """
6037
  Attributes:
6038
   - success
6039
   - cex
6040
  """
6041
 
6042
  thrift_spec = (
6043
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6044
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6045
  )
6046
 
6047
  def __init__(self, success=None, cex=None,):
6048
    self.success = success
6049
    self.cex = cex
6050
 
6051
  def read(self, iprot):
6052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6054
      return
6055
    iprot.readStructBegin()
6056
    while True:
6057
      (fname, ftype, fid) = iprot.readFieldBegin()
6058
      if ftype == TType.STOP:
6059
        break
6060
      if fid == 0:
6061
        if ftype == TType.LIST:
6062
          self.success = []
6063
          (_etype47, _size44) = iprot.readListBegin()
6064
          for _i48 in xrange(_size44):
6065
            _elem49 = Item()
6066
            _elem49.read(iprot)
6067
            self.success.append(_elem49)
6068
          iprot.readListEnd()
6069
        else:
6070
          iprot.skip(ftype)
6071
      elif fid == 1:
6072
        if ftype == TType.STRUCT:
6073
          self.cex = CatalogServiceException()
6074
          self.cex.read(iprot)
6075
        else:
6076
          iprot.skip(ftype)
6077
      else:
6078
        iprot.skip(ftype)
6079
      iprot.readFieldEnd()
6080
    iprot.readStructEnd()
6081
 
6082
  def write(self, oprot):
6083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6085
      return
6086
    oprot.writeStructBegin('getAllItemsInRange_result')
6087
    if self.success is not None:
6088
      oprot.writeFieldBegin('success', TType.LIST, 0)
6089
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6090
      for iter50 in self.success:
6091
        iter50.write(oprot)
6092
      oprot.writeListEnd()
6093
      oprot.writeFieldEnd()
6094
    if self.cex is not None:
6095
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6096
      self.cex.write(oprot)
6097
      oprot.writeFieldEnd()
6098
    oprot.writeFieldStop()
6099
    oprot.writeStructEnd()
6100
 
6101
  def validate(self):
6102
    return
6103
 
6104
 
6105
  def __repr__(self):
6106
    L = ['%s=%r' % (key, value)
6107
      for key, value in self.__dict__.iteritems()]
6108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6109
 
6110
  def __eq__(self, other):
6111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6112
 
6113
  def __ne__(self, other):
6114
    return not (self == other)
6115
 
6116
class getAllItemsByStatusInRange_args:
6117
  """
6118
  Attributes:
6119
   - itemStatus
6120
   - offset
6121
   - limit
6122
  """
6123
 
6124
  thrift_spec = (
6125
    None, # 0
6126
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6127
    (2, TType.I64, 'offset', None, None, ), # 2
6128
    (3, TType.I64, 'limit', None, None, ), # 3
6129
  )
6130
 
6131
  def __init__(self, itemStatus=None, offset=None, limit=None,):
6132
    self.itemStatus = itemStatus
6133
    self.offset = offset
6134
    self.limit = limit
6135
 
6136
  def read(self, iprot):
6137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6139
      return
6140
    iprot.readStructBegin()
6141
    while True:
6142
      (fname, ftype, fid) = iprot.readFieldBegin()
6143
      if ftype == TType.STOP:
6144
        break
6145
      if fid == 1:
6146
        if ftype == TType.I32:
6147
          self.itemStatus = iprot.readI32();
6148
        else:
6149
          iprot.skip(ftype)
6150
      elif fid == 2:
6151
        if ftype == TType.I64:
6152
          self.offset = iprot.readI64();
6153
        else:
6154
          iprot.skip(ftype)
6155
      elif fid == 3:
6156
        if ftype == TType.I64:
6157
          self.limit = iprot.readI64();
6158
        else:
6159
          iprot.skip(ftype)
6160
      else:
6161
        iprot.skip(ftype)
6162
      iprot.readFieldEnd()
6163
    iprot.readStructEnd()
6164
 
6165
  def write(self, oprot):
6166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6168
      return
6169
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
6170
    if self.itemStatus is not None:
6171
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6172
      oprot.writeI32(self.itemStatus)
6173
      oprot.writeFieldEnd()
6174
    if self.offset is not None:
6175
      oprot.writeFieldBegin('offset', TType.I64, 2)
6176
      oprot.writeI64(self.offset)
6177
      oprot.writeFieldEnd()
6178
    if self.limit is not None:
6179
      oprot.writeFieldBegin('limit', TType.I64, 3)
6180
      oprot.writeI64(self.limit)
6181
      oprot.writeFieldEnd()
6182
    oprot.writeFieldStop()
6183
    oprot.writeStructEnd()
6184
 
6185
  def validate(self):
6186
    return
6187
 
6188
 
6189
  def __repr__(self):
6190
    L = ['%s=%r' % (key, value)
6191
      for key, value in self.__dict__.iteritems()]
6192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6193
 
6194
  def __eq__(self, other):
6195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6196
 
6197
  def __ne__(self, other):
6198
    return not (self == other)
6199
 
6200
class getAllItemsByStatusInRange_result:
6201
  """
6202
  Attributes:
6203
   - success
6204
   - cex
6205
  """
6206
 
6207
  thrift_spec = (
6208
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6209
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6210
  )
6211
 
6212
  def __init__(self, success=None, cex=None,):
6213
    self.success = success
6214
    self.cex = cex
6215
 
6216
  def read(self, iprot):
6217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6219
      return
6220
    iprot.readStructBegin()
6221
    while True:
6222
      (fname, ftype, fid) = iprot.readFieldBegin()
6223
      if ftype == TType.STOP:
6224
        break
6225
      if fid == 0:
6226
        if ftype == TType.LIST:
6227
          self.success = []
6228
          (_etype54, _size51) = iprot.readListBegin()
6229
          for _i55 in xrange(_size51):
6230
            _elem56 = Item()
6231
            _elem56.read(iprot)
6232
            self.success.append(_elem56)
6233
          iprot.readListEnd()
6234
        else:
6235
          iprot.skip(ftype)
6236
      elif fid == 1:
6237
        if ftype == TType.STRUCT:
6238
          self.cex = CatalogServiceException()
6239
          self.cex.read(iprot)
6240
        else:
6241
          iprot.skip(ftype)
6242
      else:
6243
        iprot.skip(ftype)
6244
      iprot.readFieldEnd()
6245
    iprot.readStructEnd()
6246
 
6247
  def write(self, oprot):
6248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6250
      return
6251
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
6252
    if self.success is not None:
6253
      oprot.writeFieldBegin('success', TType.LIST, 0)
6254
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6255
      for iter57 in self.success:
6256
        iter57.write(oprot)
6257
      oprot.writeListEnd()
6258
      oprot.writeFieldEnd()
6259
    if self.cex is not None:
6260
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6261
      self.cex.write(oprot)
6262
      oprot.writeFieldEnd()
6263
    oprot.writeFieldStop()
6264
    oprot.writeStructEnd()
6265
 
6266
  def validate(self):
6267
    return
6268
 
6269
 
6270
  def __repr__(self):
6271
    L = ['%s=%r' % (key, value)
6272
      for key, value in self.__dict__.iteritems()]
6273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6274
 
6275
  def __eq__(self, other):
6276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6277
 
6278
  def __ne__(self, other):
6279
    return not (self == other)
6280
 
6281
class getItemCountByStatus_args:
6282
  """
6283
  Attributes:
6284
   - useStatus
6285
   - itemStatus
6286
  """
6287
 
6288
  thrift_spec = (
6289
    None, # 0
6290
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6291
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6292
  )
6293
 
6294
  def __init__(self, useStatus=None, itemStatus=None,):
6295
    self.useStatus = useStatus
6296
    self.itemStatus = itemStatus
6297
 
6298
  def read(self, iprot):
6299
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6300
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6301
      return
6302
    iprot.readStructBegin()
6303
    while True:
6304
      (fname, ftype, fid) = iprot.readFieldBegin()
6305
      if ftype == TType.STOP:
6306
        break
6307
      if fid == 1:
6308
        if ftype == TType.BOOL:
6309
          self.useStatus = iprot.readBool();
6310
        else:
6311
          iprot.skip(ftype)
6312
      elif fid == 2:
6313
        if ftype == TType.I32:
6314
          self.itemStatus = iprot.readI32();
6315
        else:
6316
          iprot.skip(ftype)
6317
      else:
6318
        iprot.skip(ftype)
6319
      iprot.readFieldEnd()
6320
    iprot.readStructEnd()
6321
 
6322
  def write(self, oprot):
6323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6325
      return
6326
    oprot.writeStructBegin('getItemCountByStatus_args')
6327
    if self.useStatus is not None:
6328
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6329
      oprot.writeBool(self.useStatus)
6330
      oprot.writeFieldEnd()
6331
    if self.itemStatus is not None:
6332
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6333
      oprot.writeI32(self.itemStatus)
6334
      oprot.writeFieldEnd()
6335
    oprot.writeFieldStop()
6336
    oprot.writeStructEnd()
6337
 
6338
  def validate(self):
6339
    return
6340
 
6341
 
6342
  def __repr__(self):
6343
    L = ['%s=%r' % (key, value)
6344
      for key, value in self.__dict__.iteritems()]
6345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6346
 
6347
  def __eq__(self, other):
6348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6349
 
6350
  def __ne__(self, other):
6351
    return not (self == other)
6352
 
6353
class getItemCountByStatus_result:
6354
  """
6355
  Attributes:
6356
   - success
6357
  """
6358
 
6359
  thrift_spec = (
6360
    (0, TType.I32, 'success', None, None, ), # 0
6361
  )
6362
 
6363
  def __init__(self, success=None,):
6364
    self.success = success
6365
 
6366
  def read(self, iprot):
6367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6369
      return
6370
    iprot.readStructBegin()
6371
    while True:
6372
      (fname, ftype, fid) = iprot.readFieldBegin()
6373
      if ftype == TType.STOP:
6374
        break
6375
      if fid == 0:
6376
        if ftype == TType.I32:
6377
          self.success = iprot.readI32();
6378
        else:
6379
          iprot.skip(ftype)
6380
      else:
6381
        iprot.skip(ftype)
6382
      iprot.readFieldEnd()
6383
    iprot.readStructEnd()
6384
 
6385
  def write(self, oprot):
6386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6388
      return
6389
    oprot.writeStructBegin('getItemCountByStatus_result')
6390
    if self.success is not None:
6391
      oprot.writeFieldBegin('success', TType.I32, 0)
6392
      oprot.writeI32(self.success)
6393
      oprot.writeFieldEnd()
6394
    oprot.writeFieldStop()
6395
    oprot.writeStructEnd()
6396
 
6397
  def validate(self):
6398
    return
6399
 
6400
 
6401
  def __repr__(self):
6402
    L = ['%s=%r' % (key, value)
6403
      for key, value in self.__dict__.iteritems()]
6404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6405
 
6406
  def __eq__(self, other):
6407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6408
 
6409
  def __ne__(self, other):
6410
    return not (self == other)
6411
 
6412
class getBestSellers_args:
6413
 
6414
  thrift_spec = (
6415
  )
6416
 
6417
  def read(self, iprot):
6418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6420
      return
6421
    iprot.readStructBegin()
6422
    while True:
6423
      (fname, ftype, fid) = iprot.readFieldBegin()
6424
      if ftype == TType.STOP:
6425
        break
6426
      else:
6427
        iprot.skip(ftype)
6428
      iprot.readFieldEnd()
6429
    iprot.readStructEnd()
6430
 
6431
  def write(self, oprot):
6432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6434
      return
6435
    oprot.writeStructBegin('getBestSellers_args')
6436
    oprot.writeFieldStop()
6437
    oprot.writeStructEnd()
6438
 
6439
  def validate(self):
6440
    return
6441
 
6442
 
6443
  def __repr__(self):
6444
    L = ['%s=%r' % (key, value)
6445
      for key, value in self.__dict__.iteritems()]
6446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6447
 
6448
  def __eq__(self, other):
6449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6450
 
6451
  def __ne__(self, other):
6452
    return not (self == other)
6453
 
6454
class getBestSellers_result:
6455
  """
6456
  Attributes:
6457
   - success
6458
   - isex
6459
  """
6460
 
6461
  thrift_spec = (
6462
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6463
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6464
  )
6465
 
6466
  def __init__(self, success=None, isex=None,):
6467
    self.success = success
6468
    self.isex = isex
6469
 
6470
  def read(self, iprot):
6471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6473
      return
6474
    iprot.readStructBegin()
6475
    while True:
6476
      (fname, ftype, fid) = iprot.readFieldBegin()
6477
      if ftype == TType.STOP:
6478
        break
6479
      if fid == 0:
6480
        if ftype == TType.LIST:
6481
          self.success = []
6482
          (_etype61, _size58) = iprot.readListBegin()
6483
          for _i62 in xrange(_size58):
6484
            _elem63 = Item()
6485
            _elem63.read(iprot)
6486
            self.success.append(_elem63)
6487
          iprot.readListEnd()
6488
        else:
6489
          iprot.skip(ftype)
6490
      elif fid == 1:
6491
        if ftype == TType.STRUCT:
6492
          self.isex = CatalogServiceException()
6493
          self.isex.read(iprot)
6494
        else:
6495
          iprot.skip(ftype)
6496
      else:
6497
        iprot.skip(ftype)
6498
      iprot.readFieldEnd()
6499
    iprot.readStructEnd()
6500
 
6501
  def write(self, oprot):
6502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6503
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6504
      return
6505
    oprot.writeStructBegin('getBestSellers_result')
6506
    if self.success is not None:
6507
      oprot.writeFieldBegin('success', TType.LIST, 0)
6508
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6509
      for iter64 in self.success:
6510
        iter64.write(oprot)
6511
      oprot.writeListEnd()
6512
      oprot.writeFieldEnd()
6513
    if self.isex is not None:
6514
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6515
      self.isex.write(oprot)
6516
      oprot.writeFieldEnd()
6517
    oprot.writeFieldStop()
6518
    oprot.writeStructEnd()
6519
 
6520
  def validate(self):
6521
    return
6522
 
6523
 
6524
  def __repr__(self):
6525
    L = ['%s=%r' % (key, value)
6526
      for key, value in self.__dict__.iteritems()]
6527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6528
 
6529
  def __eq__(self, other):
6530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6531
 
6532
  def __ne__(self, other):
6533
    return not (self == other)
6534
 
6535
class getBestSellersCatalogIds_args:
6536
  """
6537
  Attributes:
6538
   - beginIndex
6539
   - totalItems
6540
   - brand
6541
   - category
6542
  """
6543
 
6544
  thrift_spec = (
6545
    None, # 0
6546
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6547
    (2, TType.I64, 'totalItems', None, None, ), # 2
6548
    (3, TType.STRING, 'brand', None, None, ), # 3
6549
    (4, TType.I64, 'category', None, None, ), # 4
6550
  )
6551
 
6552
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6553
    self.beginIndex = beginIndex
6554
    self.totalItems = totalItems
6555
    self.brand = brand
6556
    self.category = category
6557
 
6558
  def read(self, iprot):
6559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6561
      return
6562
    iprot.readStructBegin()
6563
    while True:
6564
      (fname, ftype, fid) = iprot.readFieldBegin()
6565
      if ftype == TType.STOP:
6566
        break
6567
      if fid == 1:
6568
        if ftype == TType.I64:
6569
          self.beginIndex = iprot.readI64();
6570
        else:
6571
          iprot.skip(ftype)
6572
      elif fid == 2:
6573
        if ftype == TType.I64:
6574
          self.totalItems = iprot.readI64();
6575
        else:
6576
          iprot.skip(ftype)
6577
      elif fid == 3:
6578
        if ftype == TType.STRING:
6579
          self.brand = iprot.readString();
6580
        else:
6581
          iprot.skip(ftype)
6582
      elif fid == 4:
6583
        if ftype == TType.I64:
6584
          self.category = iprot.readI64();
6585
        else:
6586
          iprot.skip(ftype)
6587
      else:
6588
        iprot.skip(ftype)
6589
      iprot.readFieldEnd()
6590
    iprot.readStructEnd()
6591
 
6592
  def write(self, oprot):
6593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6595
      return
6596
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6597
    if self.beginIndex is not None:
6598
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6599
      oprot.writeI64(self.beginIndex)
6600
      oprot.writeFieldEnd()
6601
    if self.totalItems is not None:
6602
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6603
      oprot.writeI64(self.totalItems)
6604
      oprot.writeFieldEnd()
6605
    if self.brand is not None:
6606
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6607
      oprot.writeString(self.brand)
6608
      oprot.writeFieldEnd()
6609
    if self.category is not None:
6610
      oprot.writeFieldBegin('category', TType.I64, 4)
6611
      oprot.writeI64(self.category)
6612
      oprot.writeFieldEnd()
6613
    oprot.writeFieldStop()
6614
    oprot.writeStructEnd()
6615
 
6616
  def validate(self):
6617
    return
6618
 
6619
 
6620
  def __repr__(self):
6621
    L = ['%s=%r' % (key, value)
6622
      for key, value in self.__dict__.iteritems()]
6623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6624
 
6625
  def __eq__(self, other):
6626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6627
 
6628
  def __ne__(self, other):
6629
    return not (self == other)
6630
 
6631
class getBestSellersCatalogIds_result:
6632
  """
6633
  Attributes:
6634
   - success
6635
   - cex
6636
  """
6637
 
6638
  thrift_spec = (
6639
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6640
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6641
  )
6642
 
6643
  def __init__(self, success=None, cex=None,):
6644
    self.success = success
6645
    self.cex = cex
6646
 
6647
  def read(self, iprot):
6648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6650
      return
6651
    iprot.readStructBegin()
6652
    while True:
6653
      (fname, ftype, fid) = iprot.readFieldBegin()
6654
      if ftype == TType.STOP:
6655
        break
6656
      if fid == 0:
6657
        if ftype == TType.LIST:
6658
          self.success = []
6659
          (_etype68, _size65) = iprot.readListBegin()
6660
          for _i69 in xrange(_size65):
6661
            _elem70 = iprot.readI64();
6662
            self.success.append(_elem70)
6663
          iprot.readListEnd()
6664
        else:
6665
          iprot.skip(ftype)
6666
      elif fid == 1:
6667
        if ftype == TType.STRUCT:
6668
          self.cex = CatalogServiceException()
6669
          self.cex.read(iprot)
6670
        else:
6671
          iprot.skip(ftype)
6672
      else:
6673
        iprot.skip(ftype)
6674
      iprot.readFieldEnd()
6675
    iprot.readStructEnd()
6676
 
6677
  def write(self, oprot):
6678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6680
      return
6681
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
6682
    if self.success is not None:
6683
      oprot.writeFieldBegin('success', TType.LIST, 0)
6684
      oprot.writeListBegin(TType.I64, len(self.success))
6685
      for iter71 in self.success:
6686
        oprot.writeI64(iter71)
6687
      oprot.writeListEnd()
6688
      oprot.writeFieldEnd()
6689
    if self.cex is not None:
6690
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6691
      self.cex.write(oprot)
6692
      oprot.writeFieldEnd()
6693
    oprot.writeFieldStop()
6694
    oprot.writeStructEnd()
6695
 
6696
  def validate(self):
6697
    return
6698
 
6699
 
6700
  def __repr__(self):
6701
    L = ['%s=%r' % (key, value)
6702
      for key, value in self.__dict__.iteritems()]
6703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6704
 
6705
  def __eq__(self, other):
6706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6707
 
6708
  def __ne__(self, other):
6709
    return not (self == other)
6710
 
6711
class getBestSellersCount_args:
6712
 
6713
  thrift_spec = (
6714
  )
6715
 
6716
  def read(self, iprot):
6717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6719
      return
6720
    iprot.readStructBegin()
6721
    while True:
6722
      (fname, ftype, fid) = iprot.readFieldBegin()
6723
      if ftype == TType.STOP:
6724
        break
6725
      else:
6726
        iprot.skip(ftype)
6727
      iprot.readFieldEnd()
6728
    iprot.readStructEnd()
6729
 
6730
  def write(self, oprot):
6731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6733
      return
6734
    oprot.writeStructBegin('getBestSellersCount_args')
6735
    oprot.writeFieldStop()
6736
    oprot.writeStructEnd()
6737
 
6738
  def validate(self):
6739
    return
6740
 
6741
 
6742
  def __repr__(self):
6743
    L = ['%s=%r' % (key, value)
6744
      for key, value in self.__dict__.iteritems()]
6745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6746
 
6747
  def __eq__(self, other):
6748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6749
 
6750
  def __ne__(self, other):
6751
    return not (self == other)
6752
 
6753
class getBestSellersCount_result:
6754
  """
6755
  Attributes:
6756
   - success
6757
   - cex
6758
  """
6759
 
6760
  thrift_spec = (
6761
    (0, TType.I64, 'success', None, None, ), # 0
6762
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6763
  )
6764
 
6765
  def __init__(self, success=None, cex=None,):
6766
    self.success = success
6767
    self.cex = cex
6768
 
6769
  def read(self, iprot):
6770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6772
      return
6773
    iprot.readStructBegin()
6774
    while True:
6775
      (fname, ftype, fid) = iprot.readFieldBegin()
6776
      if ftype == TType.STOP:
6777
        break
6778
      if fid == 0:
6779
        if ftype == TType.I64:
6780
          self.success = iprot.readI64();
6781
        else:
6782
          iprot.skip(ftype)
6783
      elif fid == 1:
6784
        if ftype == TType.STRUCT:
6785
          self.cex = CatalogServiceException()
6786
          self.cex.read(iprot)
6787
        else:
6788
          iprot.skip(ftype)
6789
      else:
6790
        iprot.skip(ftype)
6791
      iprot.readFieldEnd()
6792
    iprot.readStructEnd()
6793
 
6794
  def write(self, oprot):
6795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6797
      return
6798
    oprot.writeStructBegin('getBestSellersCount_result')
6799
    if self.success is not None:
6800
      oprot.writeFieldBegin('success', TType.I64, 0)
6801
      oprot.writeI64(self.success)
6802
      oprot.writeFieldEnd()
6803
    if self.cex is not None:
6804
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6805
      self.cex.write(oprot)
6806
      oprot.writeFieldEnd()
6807
    oprot.writeFieldStop()
6808
    oprot.writeStructEnd()
6809
 
6810
  def validate(self):
6811
    return
6812
 
6813
 
6814
  def __repr__(self):
6815
    L = ['%s=%r' % (key, value)
6816
      for key, value in self.__dict__.iteritems()]
6817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6818
 
6819
  def __eq__(self, other):
6820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6821
 
6822
  def __ne__(self, other):
6823
    return not (self == other)
6824
 
6825
class getBestDeals_args:
6826
 
6827
  thrift_spec = (
6828
  )
6829
 
6830
  def read(self, iprot):
6831
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6832
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6833
      return
6834
    iprot.readStructBegin()
6835
    while True:
6836
      (fname, ftype, fid) = iprot.readFieldBegin()
6837
      if ftype == TType.STOP:
6838
        break
6839
      else:
6840
        iprot.skip(ftype)
6841
      iprot.readFieldEnd()
6842
    iprot.readStructEnd()
6843
 
6844
  def write(self, oprot):
6845
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6846
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6847
      return
6848
    oprot.writeStructBegin('getBestDeals_args')
6849
    oprot.writeFieldStop()
6850
    oprot.writeStructEnd()
6851
 
6852
  def validate(self):
6853
    return
6854
 
6855
 
6856
  def __repr__(self):
6857
    L = ['%s=%r' % (key, value)
6858
      for key, value in self.__dict__.iteritems()]
6859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6860
 
6861
  def __eq__(self, other):
6862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6863
 
6864
  def __ne__(self, other):
6865
    return not (self == other)
6866
 
6867
class getBestDeals_result:
6868
  """
6869
  Attributes:
6870
   - success
6871
   - isex
6872
  """
6873
 
6874
  thrift_spec = (
6875
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6876
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6877
  )
6878
 
6879
  def __init__(self, success=None, isex=None,):
6880
    self.success = success
6881
    self.isex = isex
6882
 
6883
  def read(self, iprot):
6884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6886
      return
6887
    iprot.readStructBegin()
6888
    while True:
6889
      (fname, ftype, fid) = iprot.readFieldBegin()
6890
      if ftype == TType.STOP:
6891
        break
6892
      if fid == 0:
6893
        if ftype == TType.LIST:
6894
          self.success = []
6895
          (_etype75, _size72) = iprot.readListBegin()
6896
          for _i76 in xrange(_size72):
6897
            _elem77 = Item()
6898
            _elem77.read(iprot)
6899
            self.success.append(_elem77)
6900
          iprot.readListEnd()
6901
        else:
6902
          iprot.skip(ftype)
6903
      elif fid == 1:
6904
        if ftype == TType.STRUCT:
6905
          self.isex = CatalogServiceException()
6906
          self.isex.read(iprot)
6907
        else:
6908
          iprot.skip(ftype)
6909
      else:
6910
        iprot.skip(ftype)
6911
      iprot.readFieldEnd()
6912
    iprot.readStructEnd()
6913
 
6914
  def write(self, oprot):
6915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6917
      return
6918
    oprot.writeStructBegin('getBestDeals_result')
6919
    if self.success is not None:
6920
      oprot.writeFieldBegin('success', TType.LIST, 0)
6921
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6922
      for iter78 in self.success:
6923
        iter78.write(oprot)
6924
      oprot.writeListEnd()
6925
      oprot.writeFieldEnd()
6926
    if self.isex is not None:
6927
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6928
      self.isex.write(oprot)
6929
      oprot.writeFieldEnd()
6930
    oprot.writeFieldStop()
6931
    oprot.writeStructEnd()
6932
 
6933
  def validate(self):
6934
    return
6935
 
6936
 
6937
  def __repr__(self):
6938
    L = ['%s=%r' % (key, value)
6939
      for key, value in self.__dict__.iteritems()]
6940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6941
 
6942
  def __eq__(self, other):
6943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6944
 
6945
  def __ne__(self, other):
6946
    return not (self == other)
6947
 
6948
class getBestDealsCatalogIds_args:
6949
  """
6950
  Attributes:
6951
   - beginIndex
6952
   - totalItems
6953
   - brand
6954
   - category
6955
  """
6956
 
6957
  thrift_spec = (
6958
    None, # 0
6959
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6960
    (2, TType.I64, 'totalItems', None, None, ), # 2
6961
    (3, TType.STRING, 'brand', None, None, ), # 3
6962
    (4, TType.I64, 'category', None, None, ), # 4
6963
  )
6964
 
6965
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6966
    self.beginIndex = beginIndex
6967
    self.totalItems = totalItems
6968
    self.brand = brand
6969
    self.category = category
6970
 
6971
  def read(self, iprot):
6972
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6973
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6974
      return
6975
    iprot.readStructBegin()
6976
    while True:
6977
      (fname, ftype, fid) = iprot.readFieldBegin()
6978
      if ftype == TType.STOP:
6979
        break
6980
      if fid == 1:
6981
        if ftype == TType.I64:
6982
          self.beginIndex = iprot.readI64();
6983
        else:
6984
          iprot.skip(ftype)
6985
      elif fid == 2:
6986
        if ftype == TType.I64:
6987
          self.totalItems = iprot.readI64();
6988
        else:
6989
          iprot.skip(ftype)
6990
      elif fid == 3:
6991
        if ftype == TType.STRING:
6992
          self.brand = iprot.readString();
6993
        else:
6994
          iprot.skip(ftype)
6995
      elif fid == 4:
6996
        if ftype == TType.I64:
6997
          self.category = iprot.readI64();
6998
        else:
6999
          iprot.skip(ftype)
7000
      else:
7001
        iprot.skip(ftype)
7002
      iprot.readFieldEnd()
7003
    iprot.readStructEnd()
7004
 
7005
  def write(self, oprot):
7006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7008
      return
7009
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
7010
    if self.beginIndex is not None:
7011
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7012
      oprot.writeI64(self.beginIndex)
7013
      oprot.writeFieldEnd()
7014
    if self.totalItems is not None:
7015
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7016
      oprot.writeI64(self.totalItems)
7017
      oprot.writeFieldEnd()
7018
    if self.brand is not None:
7019
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7020
      oprot.writeString(self.brand)
7021
      oprot.writeFieldEnd()
7022
    if self.category is not None:
7023
      oprot.writeFieldBegin('category', TType.I64, 4)
7024
      oprot.writeI64(self.category)
7025
      oprot.writeFieldEnd()
7026
    oprot.writeFieldStop()
7027
    oprot.writeStructEnd()
7028
 
7029
  def validate(self):
7030
    return
7031
 
7032
 
7033
  def __repr__(self):
7034
    L = ['%s=%r' % (key, value)
7035
      for key, value in self.__dict__.iteritems()]
7036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7037
 
7038
  def __eq__(self, other):
7039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7040
 
7041
  def __ne__(self, other):
7042
    return not (self == other)
7043
 
7044
class getBestDealsCatalogIds_result:
7045
  """
7046
  Attributes:
7047
   - success
7048
   - cex
7049
  """
7050
 
7051
  thrift_spec = (
7052
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7053
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7054
  )
7055
 
7056
  def __init__(self, success=None, cex=None,):
7057
    self.success = success
7058
    self.cex = cex
7059
 
7060
  def read(self, iprot):
7061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7063
      return
7064
    iprot.readStructBegin()
7065
    while True:
7066
      (fname, ftype, fid) = iprot.readFieldBegin()
7067
      if ftype == TType.STOP:
7068
        break
7069
      if fid == 0:
7070
        if ftype == TType.LIST:
7071
          self.success = []
7072
          (_etype82, _size79) = iprot.readListBegin()
7073
          for _i83 in xrange(_size79):
7074
            _elem84 = iprot.readI64();
7075
            self.success.append(_elem84)
7076
          iprot.readListEnd()
7077
        else:
7078
          iprot.skip(ftype)
7079
      elif fid == 1:
7080
        if ftype == TType.STRUCT:
7081
          self.cex = CatalogServiceException()
7082
          self.cex.read(iprot)
7083
        else:
7084
          iprot.skip(ftype)
7085
      else:
7086
        iprot.skip(ftype)
7087
      iprot.readFieldEnd()
7088
    iprot.readStructEnd()
7089
 
7090
  def write(self, oprot):
7091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7093
      return
7094
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
7095
    if self.success is not None:
7096
      oprot.writeFieldBegin('success', TType.LIST, 0)
7097
      oprot.writeListBegin(TType.I64, len(self.success))
7098
      for iter85 in self.success:
7099
        oprot.writeI64(iter85)
7100
      oprot.writeListEnd()
7101
      oprot.writeFieldEnd()
7102
    if self.cex is not None:
7103
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7104
      self.cex.write(oprot)
7105
      oprot.writeFieldEnd()
7106
    oprot.writeFieldStop()
7107
    oprot.writeStructEnd()
7108
 
7109
  def validate(self):
7110
    return
7111
 
7112
 
7113
  def __repr__(self):
7114
    L = ['%s=%r' % (key, value)
7115
      for key, value in self.__dict__.iteritems()]
7116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7117
 
7118
  def __eq__(self, other):
7119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7120
 
7121
  def __ne__(self, other):
7122
    return not (self == other)
7123
 
7124
class getBestDealsCount_args:
7125
 
7126
  thrift_spec = (
7127
  )
7128
 
7129
  def read(self, iprot):
7130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7132
      return
7133
    iprot.readStructBegin()
7134
    while True:
7135
      (fname, ftype, fid) = iprot.readFieldBegin()
7136
      if ftype == TType.STOP:
7137
        break
7138
      else:
7139
        iprot.skip(ftype)
7140
      iprot.readFieldEnd()
7141
    iprot.readStructEnd()
7142
 
7143
  def write(self, oprot):
7144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7146
      return
7147
    oprot.writeStructBegin('getBestDealsCount_args')
7148
    oprot.writeFieldStop()
7149
    oprot.writeStructEnd()
7150
 
7151
  def validate(self):
7152
    return
7153
 
7154
 
7155
  def __repr__(self):
7156
    L = ['%s=%r' % (key, value)
7157
      for key, value in self.__dict__.iteritems()]
7158
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7159
 
7160
  def __eq__(self, other):
7161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7162
 
7163
  def __ne__(self, other):
7164
    return not (self == other)
7165
 
7166
class getBestDealsCount_result:
7167
  """
7168
  Attributes:
7169
   - success
7170
   - cex
7171
  """
7172
 
7173
  thrift_spec = (
7174
    (0, TType.I64, 'success', None, None, ), # 0
7175
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7176
  )
7177
 
7178
  def __init__(self, success=None, cex=None,):
7179
    self.success = success
7180
    self.cex = cex
7181
 
7182
  def read(self, iprot):
7183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7185
      return
7186
    iprot.readStructBegin()
7187
    while True:
7188
      (fname, ftype, fid) = iprot.readFieldBegin()
7189
      if ftype == TType.STOP:
7190
        break
7191
      if fid == 0:
7192
        if ftype == TType.I64:
7193
          self.success = iprot.readI64();
7194
        else:
7195
          iprot.skip(ftype)
7196
      elif fid == 1:
7197
        if ftype == TType.STRUCT:
7198
          self.cex = CatalogServiceException()
7199
          self.cex.read(iprot)
7200
        else:
7201
          iprot.skip(ftype)
7202
      else:
7203
        iprot.skip(ftype)
7204
      iprot.readFieldEnd()
7205
    iprot.readStructEnd()
7206
 
7207
  def write(self, oprot):
7208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7210
      return
7211
    oprot.writeStructBegin('getBestDealsCount_result')
7212
    if self.success is not None:
7213
      oprot.writeFieldBegin('success', TType.I64, 0)
7214
      oprot.writeI64(self.success)
7215
      oprot.writeFieldEnd()
7216
    if self.cex is not None:
7217
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7218
      self.cex.write(oprot)
7219
      oprot.writeFieldEnd()
7220
    oprot.writeFieldStop()
7221
    oprot.writeStructEnd()
7222
 
7223
  def validate(self):
7224
    return
7225
 
7226
 
7227
  def __repr__(self):
7228
    L = ['%s=%r' % (key, value)
7229
      for key, value in self.__dict__.iteritems()]
7230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7231
 
7232
  def __eq__(self, other):
7233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7234
 
7235
  def __ne__(self, other):
7236
    return not (self == other)
7237
 
7238
class getComingSoon_args:
7239
 
7240
  thrift_spec = (
7241
  )
7242
 
7243
  def read(self, iprot):
7244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7246
      return
7247
    iprot.readStructBegin()
7248
    while True:
7249
      (fname, ftype, fid) = iprot.readFieldBegin()
7250
      if ftype == TType.STOP:
7251
        break
7252
      else:
7253
        iprot.skip(ftype)
7254
      iprot.readFieldEnd()
7255
    iprot.readStructEnd()
7256
 
7257
  def write(self, oprot):
7258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7260
      return
7261
    oprot.writeStructBegin('getComingSoon_args')
7262
    oprot.writeFieldStop()
7263
    oprot.writeStructEnd()
7264
 
7265
  def validate(self):
7266
    return
7267
 
7268
 
7269
  def __repr__(self):
7270
    L = ['%s=%r' % (key, value)
7271
      for key, value in self.__dict__.iteritems()]
7272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7273
 
7274
  def __eq__(self, other):
7275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7276
 
7277
  def __ne__(self, other):
7278
    return not (self == other)
7279
 
7280
class getComingSoon_result:
7281
  """
7282
  Attributes:
7283
   - success
7284
   - isex
7285
  """
7286
 
7287
  thrift_spec = (
7288
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7289
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7290
  )
7291
 
7292
  def __init__(self, success=None, isex=None,):
7293
    self.success = success
7294
    self.isex = isex
7295
 
7296
  def read(self, iprot):
7297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7299
      return
7300
    iprot.readStructBegin()
7301
    while True:
7302
      (fname, ftype, fid) = iprot.readFieldBegin()
7303
      if ftype == TType.STOP:
7304
        break
7305
      if fid == 0:
7306
        if ftype == TType.LIST:
7307
          self.success = []
7308
          (_etype89, _size86) = iprot.readListBegin()
7309
          for _i90 in xrange(_size86):
7310
            _elem91 = Item()
7311
            _elem91.read(iprot)
7312
            self.success.append(_elem91)
7313
          iprot.readListEnd()
7314
        else:
7315
          iprot.skip(ftype)
7316
      elif fid == 1:
7317
        if ftype == TType.STRUCT:
7318
          self.isex = CatalogServiceException()
7319
          self.isex.read(iprot)
7320
        else:
7321
          iprot.skip(ftype)
7322
      else:
7323
        iprot.skip(ftype)
7324
      iprot.readFieldEnd()
7325
    iprot.readStructEnd()
7326
 
7327
  def write(self, oprot):
7328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7330
      return
7331
    oprot.writeStructBegin('getComingSoon_result')
7332
    if self.success is not None:
7333
      oprot.writeFieldBegin('success', TType.LIST, 0)
7334
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7335
      for iter92 in self.success:
7336
        iter92.write(oprot)
7337
      oprot.writeListEnd()
7338
      oprot.writeFieldEnd()
7339
    if self.isex is not None:
7340
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7341
      self.isex.write(oprot)
7342
      oprot.writeFieldEnd()
7343
    oprot.writeFieldStop()
7344
    oprot.writeStructEnd()
7345
 
7346
  def validate(self):
7347
    return
7348
 
7349
 
7350
  def __repr__(self):
7351
    L = ['%s=%r' % (key, value)
7352
      for key, value in self.__dict__.iteritems()]
7353
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7354
 
7355
  def __eq__(self, other):
7356
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7357
 
7358
  def __ne__(self, other):
7359
    return not (self == other)
7360
 
7361
class getComingSoonCatalogIds_args:
7362
  """
7363
  Attributes:
7364
   - beginIndex
7365
   - totalItems
7366
   - brand
7367
   - category
7368
  """
7369
 
7370
  thrift_spec = (
7371
    None, # 0
7372
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7373
    (2, TType.I64, 'totalItems', None, None, ), # 2
7374
    (3, TType.STRING, 'brand', None, None, ), # 3
7375
    (4, TType.I64, 'category', None, None, ), # 4
7376
  )
7377
 
7378
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7379
    self.beginIndex = beginIndex
7380
    self.totalItems = totalItems
7381
    self.brand = brand
7382
    self.category = category
7383
 
7384
  def read(self, iprot):
7385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7387
      return
7388
    iprot.readStructBegin()
7389
    while True:
7390
      (fname, ftype, fid) = iprot.readFieldBegin()
7391
      if ftype == TType.STOP:
7392
        break
7393
      if fid == 1:
7394
        if ftype == TType.I64:
7395
          self.beginIndex = iprot.readI64();
7396
        else:
7397
          iprot.skip(ftype)
7398
      elif fid == 2:
7399
        if ftype == TType.I64:
7400
          self.totalItems = iprot.readI64();
7401
        else:
7402
          iprot.skip(ftype)
7403
      elif fid == 3:
7404
        if ftype == TType.STRING:
7405
          self.brand = iprot.readString();
7406
        else:
7407
          iprot.skip(ftype)
7408
      elif fid == 4:
7409
        if ftype == TType.I64:
7410
          self.category = iprot.readI64();
7411
        else:
7412
          iprot.skip(ftype)
7413
      else:
7414
        iprot.skip(ftype)
7415
      iprot.readFieldEnd()
7416
    iprot.readStructEnd()
7417
 
7418
  def write(self, oprot):
7419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7421
      return
7422
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7423
    if self.beginIndex is not None:
7424
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7425
      oprot.writeI64(self.beginIndex)
7426
      oprot.writeFieldEnd()
7427
    if self.totalItems is not None:
7428
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7429
      oprot.writeI64(self.totalItems)
7430
      oprot.writeFieldEnd()
7431
    if self.brand is not None:
7432
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7433
      oprot.writeString(self.brand)
7434
      oprot.writeFieldEnd()
7435
    if self.category is not None:
7436
      oprot.writeFieldBegin('category', TType.I64, 4)
7437
      oprot.writeI64(self.category)
7438
      oprot.writeFieldEnd()
7439
    oprot.writeFieldStop()
7440
    oprot.writeStructEnd()
7441
 
7442
  def validate(self):
7443
    return
7444
 
7445
 
7446
  def __repr__(self):
7447
    L = ['%s=%r' % (key, value)
7448
      for key, value in self.__dict__.iteritems()]
7449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7450
 
7451
  def __eq__(self, other):
7452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7453
 
7454
  def __ne__(self, other):
7455
    return not (self == other)
7456
 
7457
class getComingSoonCatalogIds_result:
7458
  """
7459
  Attributes:
7460
   - success
7461
   - cex
7462
  """
7463
 
7464
  thrift_spec = (
7465
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7466
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7467
  )
7468
 
7469
  def __init__(self, success=None, cex=None,):
7470
    self.success = success
7471
    self.cex = cex
7472
 
7473
  def read(self, iprot):
7474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7476
      return
7477
    iprot.readStructBegin()
7478
    while True:
7479
      (fname, ftype, fid) = iprot.readFieldBegin()
7480
      if ftype == TType.STOP:
7481
        break
7482
      if fid == 0:
7483
        if ftype == TType.LIST:
7484
          self.success = []
7485
          (_etype96, _size93) = iprot.readListBegin()
7486
          for _i97 in xrange(_size93):
7487
            _elem98 = iprot.readI64();
7488
            self.success.append(_elem98)
7489
          iprot.readListEnd()
7490
        else:
7491
          iprot.skip(ftype)
7492
      elif fid == 1:
7493
        if ftype == TType.STRUCT:
7494
          self.cex = CatalogServiceException()
7495
          self.cex.read(iprot)
7496
        else:
7497
          iprot.skip(ftype)
7498
      else:
7499
        iprot.skip(ftype)
7500
      iprot.readFieldEnd()
7501
    iprot.readStructEnd()
7502
 
7503
  def write(self, oprot):
7504
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7505
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7506
      return
7507
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7508
    if self.success is not None:
7509
      oprot.writeFieldBegin('success', TType.LIST, 0)
7510
      oprot.writeListBegin(TType.I64, len(self.success))
7511
      for iter99 in self.success:
7512
        oprot.writeI64(iter99)
7513
      oprot.writeListEnd()
7514
      oprot.writeFieldEnd()
7515
    if self.cex is not None:
7516
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7517
      self.cex.write(oprot)
7518
      oprot.writeFieldEnd()
7519
    oprot.writeFieldStop()
7520
    oprot.writeStructEnd()
7521
 
7522
  def validate(self):
7523
    return
7524
 
7525
 
7526
  def __repr__(self):
7527
    L = ['%s=%r' % (key, value)
7528
      for key, value in self.__dict__.iteritems()]
7529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7530
 
7531
  def __eq__(self, other):
7532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7533
 
7534
  def __ne__(self, other):
7535
    return not (self == other)
7536
 
7537
class getComingSoonCount_args:
7538
 
7539
  thrift_spec = (
7540
  )
7541
 
7542
  def read(self, iprot):
7543
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7544
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7545
      return
7546
    iprot.readStructBegin()
7547
    while True:
7548
      (fname, ftype, fid) = iprot.readFieldBegin()
7549
      if ftype == TType.STOP:
7550
        break
7551
      else:
7552
        iprot.skip(ftype)
7553
      iprot.readFieldEnd()
7554
    iprot.readStructEnd()
7555
 
7556
  def write(self, oprot):
7557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7559
      return
7560
    oprot.writeStructBegin('getComingSoonCount_args')
7561
    oprot.writeFieldStop()
7562
    oprot.writeStructEnd()
7563
 
7564
  def validate(self):
7565
    return
7566
 
7567
 
7568
  def __repr__(self):
7569
    L = ['%s=%r' % (key, value)
7570
      for key, value in self.__dict__.iteritems()]
7571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7572
 
7573
  def __eq__(self, other):
7574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7575
 
7576
  def __ne__(self, other):
7577
    return not (self == other)
7578
 
7579
class getComingSoonCount_result:
7580
  """
7581
  Attributes:
7582
   - success
7583
   - cex
7584
  """
7585
 
7586
  thrift_spec = (
7587
    (0, TType.I64, 'success', None, None, ), # 0
7588
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7589
  )
7590
 
7591
  def __init__(self, success=None, cex=None,):
7592
    self.success = success
7593
    self.cex = cex
7594
 
7595
  def read(self, iprot):
7596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7598
      return
7599
    iprot.readStructBegin()
7600
    while True:
7601
      (fname, ftype, fid) = iprot.readFieldBegin()
7602
      if ftype == TType.STOP:
7603
        break
7604
      if fid == 0:
7605
        if ftype == TType.I64:
7606
          self.success = iprot.readI64();
7607
        else:
7608
          iprot.skip(ftype)
7609
      elif fid == 1:
7610
        if ftype == TType.STRUCT:
7611
          self.cex = CatalogServiceException()
7612
          self.cex.read(iprot)
7613
        else:
7614
          iprot.skip(ftype)
7615
      else:
7616
        iprot.skip(ftype)
7617
      iprot.readFieldEnd()
7618
    iprot.readStructEnd()
7619
 
7620
  def write(self, oprot):
7621
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7622
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7623
      return
7624
    oprot.writeStructBegin('getComingSoonCount_result')
7625
    if self.success is not None:
7626
      oprot.writeFieldBegin('success', TType.I64, 0)
7627
      oprot.writeI64(self.success)
7628
      oprot.writeFieldEnd()
7629
    if self.cex is not None:
7630
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7631
      self.cex.write(oprot)
7632
      oprot.writeFieldEnd()
7633
    oprot.writeFieldStop()
7634
    oprot.writeStructEnd()
7635
 
7636
  def validate(self):
7637
    return
7638
 
7639
 
7640
  def __repr__(self):
7641
    L = ['%s=%r' % (key, value)
7642
      for key, value in self.__dict__.iteritems()]
7643
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7644
 
7645
  def __eq__(self, other):
7646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7647
 
7648
  def __ne__(self, other):
7649
    return not (self == other)
7650
 
7651
class getLatestArrivals_args:
7652
 
7653
  thrift_spec = (
7654
  )
7655
 
7656
  def read(self, iprot):
7657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7659
      return
7660
    iprot.readStructBegin()
7661
    while True:
7662
      (fname, ftype, fid) = iprot.readFieldBegin()
7663
      if ftype == TType.STOP:
7664
        break
7665
      else:
7666
        iprot.skip(ftype)
7667
      iprot.readFieldEnd()
7668
    iprot.readStructEnd()
7669
 
7670
  def write(self, oprot):
7671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7673
      return
7674
    oprot.writeStructBegin('getLatestArrivals_args')
7675
    oprot.writeFieldStop()
7676
    oprot.writeStructEnd()
7677
 
7678
  def validate(self):
7679
    return
7680
 
7681
 
7682
  def __repr__(self):
7683
    L = ['%s=%r' % (key, value)
7684
      for key, value in self.__dict__.iteritems()]
7685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7686
 
7687
  def __eq__(self, other):
7688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7689
 
7690
  def __ne__(self, other):
7691
    return not (self == other)
7692
 
7693
class getLatestArrivals_result:
7694
  """
7695
  Attributes:
7696
   - success
7697
   - isex
7698
  """
7699
 
7700
  thrift_spec = (
7701
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7702
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7703
  )
7704
 
7705
  def __init__(self, success=None, isex=None,):
7706
    self.success = success
7707
    self.isex = isex
7708
 
7709
  def read(self, iprot):
7710
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7711
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7712
      return
7713
    iprot.readStructBegin()
7714
    while True:
7715
      (fname, ftype, fid) = iprot.readFieldBegin()
7716
      if ftype == TType.STOP:
7717
        break
7718
      if fid == 0:
7719
        if ftype == TType.LIST:
7720
          self.success = []
7721
          (_etype103, _size100) = iprot.readListBegin()
7722
          for _i104 in xrange(_size100):
7723
            _elem105 = Item()
7724
            _elem105.read(iprot)
7725
            self.success.append(_elem105)
7726
          iprot.readListEnd()
7727
        else:
7728
          iprot.skip(ftype)
7729
      elif fid == 1:
7730
        if ftype == TType.STRUCT:
7731
          self.isex = CatalogServiceException()
7732
          self.isex.read(iprot)
7733
        else:
7734
          iprot.skip(ftype)
7735
      else:
7736
        iprot.skip(ftype)
7737
      iprot.readFieldEnd()
7738
    iprot.readStructEnd()
7739
 
7740
  def write(self, oprot):
7741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7743
      return
7744
    oprot.writeStructBegin('getLatestArrivals_result')
7745
    if self.success is not None:
7746
      oprot.writeFieldBegin('success', TType.LIST, 0)
7747
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7748
      for iter106 in self.success:
7749
        iter106.write(oprot)
7750
      oprot.writeListEnd()
7751
      oprot.writeFieldEnd()
7752
    if self.isex is not None:
7753
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7754
      self.isex.write(oprot)
7755
      oprot.writeFieldEnd()
7756
    oprot.writeFieldStop()
7757
    oprot.writeStructEnd()
7758
 
7759
  def validate(self):
7760
    return
7761
 
7762
 
7763
  def __repr__(self):
7764
    L = ['%s=%r' % (key, value)
7765
      for key, value in self.__dict__.iteritems()]
7766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7767
 
7768
  def __eq__(self, other):
7769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7770
 
7771
  def __ne__(self, other):
7772
    return not (self == other)
7773
 
7774
class getLatestArrivalsCatalogIds_args:
7775
  """
7776
  Attributes:
7777
   - beginIndex
7778
   - totalItems
7779
   - brand
7780
   - categories
7781
  """
7782
 
7783
  thrift_spec = (
7784
    None, # 0
7785
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7786
    (2, TType.I64, 'totalItems', None, None, ), # 2
7787
    (3, TType.STRING, 'brand', None, None, ), # 3
7788
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
7789
  )
7790
 
7791
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
7792
    self.beginIndex = beginIndex
7793
    self.totalItems = totalItems
7794
    self.brand = brand
7795
    self.categories = categories
7796
 
7797
  def read(self, iprot):
7798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7800
      return
7801
    iprot.readStructBegin()
7802
    while True:
7803
      (fname, ftype, fid) = iprot.readFieldBegin()
7804
      if ftype == TType.STOP:
7805
        break
7806
      if fid == 1:
7807
        if ftype == TType.I64:
7808
          self.beginIndex = iprot.readI64();
7809
        else:
7810
          iprot.skip(ftype)
7811
      elif fid == 2:
7812
        if ftype == TType.I64:
7813
          self.totalItems = iprot.readI64();
7814
        else:
7815
          iprot.skip(ftype)
7816
      elif fid == 3:
7817
        if ftype == TType.STRING:
7818
          self.brand = iprot.readString();
7819
        else:
7820
          iprot.skip(ftype)
7821
      elif fid == 4:
7822
        if ftype == TType.LIST:
7823
          self.categories = []
7824
          (_etype110, _size107) = iprot.readListBegin()
7825
          for _i111 in xrange(_size107):
7826
            _elem112 = iprot.readI64();
7827
            self.categories.append(_elem112)
7828
          iprot.readListEnd()
7829
        else:
7830
          iprot.skip(ftype)
7831
      else:
7832
        iprot.skip(ftype)
7833
      iprot.readFieldEnd()
7834
    iprot.readStructEnd()
7835
 
7836
  def write(self, oprot):
7837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7839
      return
7840
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
7841
    if self.beginIndex is not None:
7842
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7843
      oprot.writeI64(self.beginIndex)
7844
      oprot.writeFieldEnd()
7845
    if self.totalItems is not None:
7846
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7847
      oprot.writeI64(self.totalItems)
7848
      oprot.writeFieldEnd()
7849
    if self.brand is not None:
7850
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7851
      oprot.writeString(self.brand)
7852
      oprot.writeFieldEnd()
7853
    if self.categories is not None:
7854
      oprot.writeFieldBegin('categories', TType.LIST, 4)
7855
      oprot.writeListBegin(TType.I64, len(self.categories))
7856
      for iter113 in self.categories:
7857
        oprot.writeI64(iter113)
7858
      oprot.writeListEnd()
7859
      oprot.writeFieldEnd()
7860
    oprot.writeFieldStop()
7861
    oprot.writeStructEnd()
7862
 
7863
  def validate(self):
7864
    return
7865
 
7866
 
7867
  def __repr__(self):
7868
    L = ['%s=%r' % (key, value)
7869
      for key, value in self.__dict__.iteritems()]
7870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7871
 
7872
  def __eq__(self, other):
7873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7874
 
7875
  def __ne__(self, other):
7876
    return not (self == other)
7877
 
7878
class getLatestArrivalsCatalogIds_result:
7879
  """
7880
  Attributes:
7881
   - success
7882
   - cex
7883
  """
7884
 
7885
  thrift_spec = (
7886
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7887
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7888
  )
7889
 
7890
  def __init__(self, success=None, cex=None,):
7891
    self.success = success
7892
    self.cex = cex
7893
 
7894
  def read(self, iprot):
7895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7897
      return
7898
    iprot.readStructBegin()
7899
    while True:
7900
      (fname, ftype, fid) = iprot.readFieldBegin()
7901
      if ftype == TType.STOP:
7902
        break
7903
      if fid == 0:
7904
        if ftype == TType.LIST:
7905
          self.success = []
7906
          (_etype117, _size114) = iprot.readListBegin()
7907
          for _i118 in xrange(_size114):
7908
            _elem119 = iprot.readI64();
7909
            self.success.append(_elem119)
7910
          iprot.readListEnd()
7911
        else:
7912
          iprot.skip(ftype)
7913
      elif fid == 1:
7914
        if ftype == TType.STRUCT:
7915
          self.cex = CatalogServiceException()
7916
          self.cex.read(iprot)
7917
        else:
7918
          iprot.skip(ftype)
7919
      else:
7920
        iprot.skip(ftype)
7921
      iprot.readFieldEnd()
7922
    iprot.readStructEnd()
7923
 
7924
  def write(self, oprot):
7925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7927
      return
7928
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
7929
    if self.success is not None:
7930
      oprot.writeFieldBegin('success', TType.LIST, 0)
7931
      oprot.writeListBegin(TType.I64, len(self.success))
7932
      for iter120 in self.success:
7933
        oprot.writeI64(iter120)
7934
      oprot.writeListEnd()
7935
      oprot.writeFieldEnd()
7936
    if self.cex is not None:
7937
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7938
      self.cex.write(oprot)
7939
      oprot.writeFieldEnd()
7940
    oprot.writeFieldStop()
7941
    oprot.writeStructEnd()
7942
 
7943
  def validate(self):
7944
    return
7945
 
7946
 
7947
  def __repr__(self):
7948
    L = ['%s=%r' % (key, value)
7949
      for key, value in self.__dict__.iteritems()]
7950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7951
 
7952
  def __eq__(self, other):
7953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7954
 
7955
  def __ne__(self, other):
7956
    return not (self == other)
7957
 
7958
class getLatestArrivalsCount_args:
7959
 
7960
  thrift_spec = (
7961
  )
7962
 
7963
  def read(self, iprot):
7964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7966
      return
7967
    iprot.readStructBegin()
7968
    while True:
7969
      (fname, ftype, fid) = iprot.readFieldBegin()
7970
      if ftype == TType.STOP:
7971
        break
7972
      else:
7973
        iprot.skip(ftype)
7974
      iprot.readFieldEnd()
7975
    iprot.readStructEnd()
7976
 
7977
  def write(self, oprot):
7978
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7979
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7980
      return
7981
    oprot.writeStructBegin('getLatestArrivalsCount_args')
7982
    oprot.writeFieldStop()
7983
    oprot.writeStructEnd()
7984
 
7985
  def validate(self):
7986
    return
7987
 
7988
 
7989
  def __repr__(self):
7990
    L = ['%s=%r' % (key, value)
7991
      for key, value in self.__dict__.iteritems()]
7992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7993
 
7994
  def __eq__(self, other):
7995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7996
 
7997
  def __ne__(self, other):
7998
    return not (self == other)
7999
 
8000
class getLatestArrivalsCount_result:
8001
  """
8002
  Attributes:
8003
   - success
8004
   - cex
8005
  """
8006
 
8007
  thrift_spec = (
8008
    (0, TType.I64, 'success', None, None, ), # 0
8009
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8010
  )
8011
 
8012
  def __init__(self, success=None, cex=None,):
8013
    self.success = success
8014
    self.cex = cex
8015
 
8016
  def read(self, iprot):
8017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8019
      return
8020
    iprot.readStructBegin()
8021
    while True:
8022
      (fname, ftype, fid) = iprot.readFieldBegin()
8023
      if ftype == TType.STOP:
8024
        break
8025
      if fid == 0:
8026
        if ftype == TType.I64:
8027
          self.success = iprot.readI64();
8028
        else:
8029
          iprot.skip(ftype)
8030
      elif fid == 1:
8031
        if ftype == TType.STRUCT:
8032
          self.cex = CatalogServiceException()
8033
          self.cex.read(iprot)
8034
        else:
8035
          iprot.skip(ftype)
8036
      else:
8037
        iprot.skip(ftype)
8038
      iprot.readFieldEnd()
8039
    iprot.readStructEnd()
8040
 
8041
  def write(self, oprot):
8042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8044
      return
8045
    oprot.writeStructBegin('getLatestArrivalsCount_result')
8046
    if self.success is not None:
8047
      oprot.writeFieldBegin('success', TType.I64, 0)
8048
      oprot.writeI64(self.success)
8049
      oprot.writeFieldEnd()
8050
    if self.cex is not None:
8051
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8052
      self.cex.write(oprot)
8053
      oprot.writeFieldEnd()
8054
    oprot.writeFieldStop()
8055
    oprot.writeStructEnd()
8056
 
8057
  def validate(self):
8058
    return
8059
 
8060
 
8061
  def __repr__(self):
8062
    L = ['%s=%r' % (key, value)
8063
      for key, value in self.__dict__.iteritems()]
8064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8065
 
8066
  def __eq__(self, other):
8067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8068
 
8069
  def __ne__(self, other):
8070
    return not (self == other)
8071
 
8072
class generateNewEntityID_args:
8073
 
8074
  thrift_spec = (
8075
  )
8076
 
8077
  def read(self, iprot):
8078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8080
      return
8081
    iprot.readStructBegin()
8082
    while True:
8083
      (fname, ftype, fid) = iprot.readFieldBegin()
8084
      if ftype == TType.STOP:
8085
        break
8086
      else:
8087
        iprot.skip(ftype)
8088
      iprot.readFieldEnd()
8089
    iprot.readStructEnd()
8090
 
8091
  def write(self, oprot):
8092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8094
      return
8095
    oprot.writeStructBegin('generateNewEntityID_args')
8096
    oprot.writeFieldStop()
8097
    oprot.writeStructEnd()
8098
 
8099
  def validate(self):
8100
    return
8101
 
8102
 
8103
  def __repr__(self):
8104
    L = ['%s=%r' % (key, value)
8105
      for key, value in self.__dict__.iteritems()]
8106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8107
 
8108
  def __eq__(self, other):
8109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8110
 
8111
  def __ne__(self, other):
8112
    return not (self == other)
8113
 
8114
class generateNewEntityID_result:
8115
  """
8116
  Attributes:
8117
   - success
8118
  """
8119
 
8120
  thrift_spec = (
8121
    (0, TType.I64, 'success', None, None, ), # 0
8122
  )
8123
 
8124
  def __init__(self, success=None,):
8125
    self.success = success
8126
 
8127
  def read(self, iprot):
8128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8130
      return
8131
    iprot.readStructBegin()
8132
    while True:
8133
      (fname, ftype, fid) = iprot.readFieldBegin()
8134
      if ftype == TType.STOP:
8135
        break
8136
      if fid == 0:
8137
        if ftype == TType.I64:
8138
          self.success = iprot.readI64();
8139
        else:
8140
          iprot.skip(ftype)
8141
      else:
8142
        iprot.skip(ftype)
8143
      iprot.readFieldEnd()
8144
    iprot.readStructEnd()
8145
 
8146
  def write(self, oprot):
8147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8149
      return
8150
    oprot.writeStructBegin('generateNewEntityID_result')
8151
    if self.success is not None:
8152
      oprot.writeFieldBegin('success', TType.I64, 0)
8153
      oprot.writeI64(self.success)
8154
      oprot.writeFieldEnd()
8155
    oprot.writeFieldStop()
8156
    oprot.writeStructEnd()
8157
 
8158
  def validate(self):
8159
    return
8160
 
8161
 
8162
  def __repr__(self):
8163
    L = ['%s=%r' % (key, value)
8164
      for key, value in self.__dict__.iteritems()]
8165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8166
 
8167
  def __eq__(self, other):
8168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8169
 
8170
  def __ne__(self, other):
8171
    return not (self == other)
8172
 
8173
class addCategory_args:
8174
  """
8175
  Attributes:
8176
   - category
8177
  """
8178
 
8179
  thrift_spec = (
8180
    None, # 0
8181
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
8182
  )
8183
 
8184
  def __init__(self, category=None,):
8185
    self.category = category
8186
 
8187
  def read(self, iprot):
8188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8190
      return
8191
    iprot.readStructBegin()
8192
    while True:
8193
      (fname, ftype, fid) = iprot.readFieldBegin()
8194
      if ftype == TType.STOP:
8195
        break
8196
      if fid == 1:
8197
        if ftype == TType.STRUCT:
8198
          self.category = Category()
8199
          self.category.read(iprot)
8200
        else:
8201
          iprot.skip(ftype)
8202
      else:
8203
        iprot.skip(ftype)
8204
      iprot.readFieldEnd()
8205
    iprot.readStructEnd()
8206
 
8207
  def write(self, oprot):
8208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8210
      return
8211
    oprot.writeStructBegin('addCategory_args')
8212
    if self.category is not None:
8213
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
8214
      self.category.write(oprot)
8215
      oprot.writeFieldEnd()
8216
    oprot.writeFieldStop()
8217
    oprot.writeStructEnd()
8218
 
8219
  def validate(self):
8220
    return
8221
 
8222
 
8223
  def __repr__(self):
8224
    L = ['%s=%r' % (key, value)
8225
      for key, value in self.__dict__.iteritems()]
8226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8227
 
8228
  def __eq__(self, other):
8229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8230
 
8231
  def __ne__(self, other):
8232
    return not (self == other)
8233
 
8234
class addCategory_result:
8235
  """
8236
  Attributes:
8237
   - success
8238
  """
8239
 
8240
  thrift_spec = (
8241
    (0, TType.BOOL, 'success', None, None, ), # 0
8242
  )
8243
 
8244
  def __init__(self, success=None,):
8245
    self.success = success
8246
 
8247
  def read(self, iprot):
8248
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8249
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8250
      return
8251
    iprot.readStructBegin()
8252
    while True:
8253
      (fname, ftype, fid) = iprot.readFieldBegin()
8254
      if ftype == TType.STOP:
8255
        break
8256
      if fid == 0:
8257
        if ftype == TType.BOOL:
8258
          self.success = iprot.readBool();
8259
        else:
8260
          iprot.skip(ftype)
8261
      else:
8262
        iprot.skip(ftype)
8263
      iprot.readFieldEnd()
8264
    iprot.readStructEnd()
8265
 
8266
  def write(self, oprot):
8267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8269
      return
8270
    oprot.writeStructBegin('addCategory_result')
8271
    if self.success is not None:
8272
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8273
      oprot.writeBool(self.success)
8274
      oprot.writeFieldEnd()
8275
    oprot.writeFieldStop()
8276
    oprot.writeStructEnd()
8277
 
8278
  def validate(self):
8279
    return
8280
 
8281
 
8282
  def __repr__(self):
8283
    L = ['%s=%r' % (key, value)
8284
      for key, value in self.__dict__.iteritems()]
8285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8286
 
8287
  def __eq__(self, other):
8288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8289
 
8290
  def __ne__(self, other):
8291
    return not (self == other)
8292
 
8293
class getCategory_args:
8294
  """
8295
  Attributes:
8296
   - id
8297
  """
8298
 
8299
  thrift_spec = (
8300
    None, # 0
8301
    (1, TType.I64, 'id', None, None, ), # 1
8302
  )
8303
 
8304
  def __init__(self, id=None,):
8305
    self.id = id
8306
 
8307
  def read(self, iprot):
8308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8310
      return
8311
    iprot.readStructBegin()
8312
    while True:
8313
      (fname, ftype, fid) = iprot.readFieldBegin()
8314
      if ftype == TType.STOP:
8315
        break
8316
      if fid == 1:
8317
        if ftype == TType.I64:
8318
          self.id = iprot.readI64();
8319
        else:
8320
          iprot.skip(ftype)
8321
      else:
8322
        iprot.skip(ftype)
8323
      iprot.readFieldEnd()
8324
    iprot.readStructEnd()
8325
 
8326
  def write(self, oprot):
8327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8329
      return
8330
    oprot.writeStructBegin('getCategory_args')
8331
    if self.id is not None:
8332
      oprot.writeFieldBegin('id', TType.I64, 1)
8333
      oprot.writeI64(self.id)
8334
      oprot.writeFieldEnd()
8335
    oprot.writeFieldStop()
8336
    oprot.writeStructEnd()
8337
 
8338
  def validate(self):
8339
    return
8340
 
8341
 
8342
  def __repr__(self):
8343
    L = ['%s=%r' % (key, value)
8344
      for key, value in self.__dict__.iteritems()]
8345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8346
 
8347
  def __eq__(self, other):
8348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8349
 
8350
  def __ne__(self, other):
8351
    return not (self == other)
8352
 
8353
class getCategory_result:
8354
  """
8355
  Attributes:
8356
   - success
8357
  """
8358
 
8359
  thrift_spec = (
8360
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8361
  )
8362
 
8363
  def __init__(self, success=None,):
8364
    self.success = success
8365
 
8366
  def read(self, iprot):
8367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8369
      return
8370
    iprot.readStructBegin()
8371
    while True:
8372
      (fname, ftype, fid) = iprot.readFieldBegin()
8373
      if ftype == TType.STOP:
8374
        break
8375
      if fid == 0:
8376
        if ftype == TType.STRUCT:
8377
          self.success = Category()
8378
          self.success.read(iprot)
8379
        else:
8380
          iprot.skip(ftype)
8381
      else:
8382
        iprot.skip(ftype)
8383
      iprot.readFieldEnd()
8384
    iprot.readStructEnd()
8385
 
8386
  def write(self, oprot):
8387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8389
      return
8390
    oprot.writeStructBegin('getCategory_result')
8391
    if self.success is not None:
8392
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8393
      self.success.write(oprot)
8394
      oprot.writeFieldEnd()
8395
    oprot.writeFieldStop()
8396
    oprot.writeStructEnd()
8397
 
8398
  def validate(self):
8399
    return
8400
 
8401
 
8402
  def __repr__(self):
8403
    L = ['%s=%r' % (key, value)
8404
      for key, value in self.__dict__.iteritems()]
8405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8406
 
8407
  def __eq__(self, other):
8408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8409
 
8410
  def __ne__(self, other):
8411
    return not (self == other)
8412
 
8413
class getAllCategories_args:
8414
 
8415
  thrift_spec = (
8416
  )
8417
 
8418
  def read(self, iprot):
8419
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8420
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8421
      return
8422
    iprot.readStructBegin()
8423
    while True:
8424
      (fname, ftype, fid) = iprot.readFieldBegin()
8425
      if ftype == TType.STOP:
8426
        break
8427
      else:
8428
        iprot.skip(ftype)
8429
      iprot.readFieldEnd()
8430
    iprot.readStructEnd()
8431
 
8432
  def write(self, oprot):
8433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8435
      return
8436
    oprot.writeStructBegin('getAllCategories_args')
8437
    oprot.writeFieldStop()
8438
    oprot.writeStructEnd()
8439
 
8440
  def validate(self):
8441
    return
8442
 
8443
 
8444
  def __repr__(self):
8445
    L = ['%s=%r' % (key, value)
8446
      for key, value in self.__dict__.iteritems()]
8447
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8448
 
8449
  def __eq__(self, other):
8450
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8451
 
8452
  def __ne__(self, other):
8453
    return not (self == other)
8454
 
8455
class getAllCategories_result:
8456
  """
8457
  Attributes:
8458
   - success
8459
  """
8460
 
8461
  thrift_spec = (
8462
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8463
  )
8464
 
8465
  def __init__(self, success=None,):
8466
    self.success = success
8467
 
8468
  def read(self, iprot):
8469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8471
      return
8472
    iprot.readStructBegin()
8473
    while True:
8474
      (fname, ftype, fid) = iprot.readFieldBegin()
8475
      if ftype == TType.STOP:
8476
        break
8477
      if fid == 0:
8478
        if ftype == TType.LIST:
8479
          self.success = []
8480
          (_etype124, _size121) = iprot.readListBegin()
8481
          for _i125 in xrange(_size121):
8482
            _elem126 = Category()
8483
            _elem126.read(iprot)
8484
            self.success.append(_elem126)
8485
          iprot.readListEnd()
8486
        else:
8487
          iprot.skip(ftype)
8488
      else:
8489
        iprot.skip(ftype)
8490
      iprot.readFieldEnd()
8491
    iprot.readStructEnd()
8492
 
8493
  def write(self, oprot):
8494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8496
      return
8497
    oprot.writeStructBegin('getAllCategories_result')
8498
    if self.success is not None:
8499
      oprot.writeFieldBegin('success', TType.LIST, 0)
8500
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8501
      for iter127 in self.success:
8502
        iter127.write(oprot)
8503
      oprot.writeListEnd()
8504
      oprot.writeFieldEnd()
8505
    oprot.writeFieldStop()
8506
    oprot.writeStructEnd()
8507
 
8508
  def validate(self):
8509
    return
8510
 
8511
 
8512
  def __repr__(self):
8513
    L = ['%s=%r' % (key, value)
8514
      for key, value in self.__dict__.iteritems()]
8515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8516
 
8517
  def __eq__(self, other):
8518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8519
 
8520
  def __ne__(self, other):
8521
    return not (self == other)
8522
 
8523
class getAllSimilarItems_args:
8524
  """
8525
  Attributes:
8526
   - itemId
8527
  """
8528
 
8529
  thrift_spec = (
8530
    None, # 0
8531
    (1, TType.I64, 'itemId', None, None, ), # 1
8532
  )
8533
 
8534
  def __init__(self, itemId=None,):
8535
    self.itemId = itemId
8536
 
8537
  def read(self, iprot):
8538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8540
      return
8541
    iprot.readStructBegin()
8542
    while True:
8543
      (fname, ftype, fid) = iprot.readFieldBegin()
8544
      if ftype == TType.STOP:
8545
        break
8546
      if fid == 1:
8547
        if ftype == TType.I64:
8548
          self.itemId = iprot.readI64();
8549
        else:
8550
          iprot.skip(ftype)
8551
      else:
8552
        iprot.skip(ftype)
8553
      iprot.readFieldEnd()
8554
    iprot.readStructEnd()
8555
 
8556
  def write(self, oprot):
8557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8559
      return
8560
    oprot.writeStructBegin('getAllSimilarItems_args')
8561
    if self.itemId is not None:
8562
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8563
      oprot.writeI64(self.itemId)
8564
      oprot.writeFieldEnd()
8565
    oprot.writeFieldStop()
8566
    oprot.writeStructEnd()
8567
 
8568
  def validate(self):
8569
    return
8570
 
8571
 
8572
  def __repr__(self):
8573
    L = ['%s=%r' % (key, value)
8574
      for key, value in self.__dict__.iteritems()]
8575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8576
 
8577
  def __eq__(self, other):
8578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8579
 
8580
  def __ne__(self, other):
8581
    return not (self == other)
8582
 
8583
class getAllSimilarItems_result:
8584
  """
8585
  Attributes:
8586
   - success
8587
  """
8588
 
8589
  thrift_spec = (
8590
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8591
  )
8592
 
8593
  def __init__(self, success=None,):
8594
    self.success = success
8595
 
8596
  def read(self, iprot):
8597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8599
      return
8600
    iprot.readStructBegin()
8601
    while True:
8602
      (fname, ftype, fid) = iprot.readFieldBegin()
8603
      if ftype == TType.STOP:
8604
        break
8605
      if fid == 0:
8606
        if ftype == TType.LIST:
8607
          self.success = []
8608
          (_etype131, _size128) = iprot.readListBegin()
8609
          for _i132 in xrange(_size128):
8610
            _elem133 = Item()
8611
            _elem133.read(iprot)
8612
            self.success.append(_elem133)
8613
          iprot.readListEnd()
8614
        else:
8615
          iprot.skip(ftype)
8616
      else:
8617
        iprot.skip(ftype)
8618
      iprot.readFieldEnd()
8619
    iprot.readStructEnd()
8620
 
8621
  def write(self, oprot):
8622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8624
      return
8625
    oprot.writeStructBegin('getAllSimilarItems_result')
8626
    if self.success is not None:
8627
      oprot.writeFieldBegin('success', TType.LIST, 0)
8628
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8629
      for iter134 in self.success:
8630
        iter134.write(oprot)
8631
      oprot.writeListEnd()
8632
      oprot.writeFieldEnd()
8633
    oprot.writeFieldStop()
8634
    oprot.writeStructEnd()
8635
 
8636
  def validate(self):
8637
    return
8638
 
8639
 
8640
  def __repr__(self):
8641
    L = ['%s=%r' % (key, value)
8642
      for key, value in self.__dict__.iteritems()]
8643
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8644
 
8645
  def __eq__(self, other):
8646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8647
 
8648
  def __ne__(self, other):
8649
    return not (self == other)
8650
 
8651
class addSimilarItem_args:
8652
  """
8653
  Attributes:
8654
   - itemId
8655
   - catalogItemId
8656
  """
8657
 
8658
  thrift_spec = (
8659
    None, # 0
8660
    (1, TType.I64, 'itemId', None, None, ), # 1
8661
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
8662
  )
8663
 
8664
  def __init__(self, itemId=None, catalogItemId=None,):
8665
    self.itemId = itemId
8666
    self.catalogItemId = catalogItemId
8667
 
8668
  def read(self, iprot):
8669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8671
      return
8672
    iprot.readStructBegin()
8673
    while True:
8674
      (fname, ftype, fid) = iprot.readFieldBegin()
8675
      if ftype == TType.STOP:
8676
        break
8677
      if fid == 1:
8678
        if ftype == TType.I64:
8679
          self.itemId = iprot.readI64();
8680
        else:
8681
          iprot.skip(ftype)
8682
      elif fid == 2:
8683
        if ftype == TType.I64:
8684
          self.catalogItemId = iprot.readI64();
8685
        else:
8686
          iprot.skip(ftype)
8687
      else:
8688
        iprot.skip(ftype)
8689
      iprot.readFieldEnd()
8690
    iprot.readStructEnd()
8691
 
8692
  def write(self, oprot):
8693
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8694
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8695
      return
8696
    oprot.writeStructBegin('addSimilarItem_args')
8697
    if self.itemId is not None:
8698
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8699
      oprot.writeI64(self.itemId)
8700
      oprot.writeFieldEnd()
8701
    if self.catalogItemId is not None:
8702
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
8703
      oprot.writeI64(self.catalogItemId)
8704
      oprot.writeFieldEnd()
8705
    oprot.writeFieldStop()
8706
    oprot.writeStructEnd()
8707
 
8708
  def validate(self):
8709
    return
8710
 
8711
 
8712
  def __repr__(self):
8713
    L = ['%s=%r' % (key, value)
8714
      for key, value in self.__dict__.iteritems()]
8715
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8716
 
8717
  def __eq__(self, other):
8718
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8719
 
8720
  def __ne__(self, other):
8721
    return not (self == other)
8722
 
8723
class addSimilarItem_result:
8724
  """
8725
  Attributes:
8726
   - success
8727
   - cex
8728
  """
8729
 
8730
  thrift_spec = (
8731
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8732
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8733
  )
8734
 
8735
  def __init__(self, success=None, cex=None,):
8736
    self.success = success
8737
    self.cex = cex
8738
 
8739
  def read(self, iprot):
8740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8742
      return
8743
    iprot.readStructBegin()
8744
    while True:
8745
      (fname, ftype, fid) = iprot.readFieldBegin()
8746
      if ftype == TType.STOP:
8747
        break
8748
      if fid == 0:
8749
        if ftype == TType.STRUCT:
8750
          self.success = Item()
8751
          self.success.read(iprot)
8752
        else:
8753
          iprot.skip(ftype)
8754
      elif fid == 1:
8755
        if ftype == TType.STRUCT:
8756
          self.cex = CatalogServiceException()
8757
          self.cex.read(iprot)
8758
        else:
8759
          iprot.skip(ftype)
8760
      else:
8761
        iprot.skip(ftype)
8762
      iprot.readFieldEnd()
8763
    iprot.readStructEnd()
8764
 
8765
  def write(self, oprot):
8766
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8767
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8768
      return
8769
    oprot.writeStructBegin('addSimilarItem_result')
8770
    if self.success is not None:
8771
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8772
      self.success.write(oprot)
8773
      oprot.writeFieldEnd()
8774
    if self.cex is not None:
8775
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8776
      self.cex.write(oprot)
8777
      oprot.writeFieldEnd()
8778
    oprot.writeFieldStop()
8779
    oprot.writeStructEnd()
8780
 
8781
  def validate(self):
8782
    return
8783
 
8784
 
8785
  def __repr__(self):
8786
    L = ['%s=%r' % (key, value)
8787
      for key, value in self.__dict__.iteritems()]
8788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8789
 
8790
  def __eq__(self, other):
8791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8792
 
8793
  def __ne__(self, other):
8794
    return not (self == other)
8795
 
6512 kshitij.so 8796
class addTag_args:
8797
  """
8798
  Attributes:
8799
   - displayName
8800
   - itemId
8801
  """
8802
 
8803
  thrift_spec = (
8804
    None, # 0
8805
    (1, TType.STRING, 'displayName', None, None, ), # 1
8806
    (2, TType.I64, 'itemId', None, None, ), # 2
8807
  )
8808
 
8809
  def __init__(self, displayName=None, itemId=None,):
8810
    self.displayName = displayName
8811
    self.itemId = itemId
8812
 
8813
  def read(self, iprot):
8814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8816
      return
8817
    iprot.readStructBegin()
8818
    while True:
8819
      (fname, ftype, fid) = iprot.readFieldBegin()
8820
      if ftype == TType.STOP:
8821
        break
8822
      if fid == 1:
8823
        if ftype == TType.STRING:
8824
          self.displayName = iprot.readString();
8825
        else:
8826
          iprot.skip(ftype)
8827
      elif fid == 2:
8828
        if ftype == TType.I64:
8829
          self.itemId = iprot.readI64();
8830
        else:
8831
          iprot.skip(ftype)
8832
      else:
8833
        iprot.skip(ftype)
8834
      iprot.readFieldEnd()
8835
    iprot.readStructEnd()
8836
 
8837
  def write(self, oprot):
8838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8840
      return
8841
    oprot.writeStructBegin('addTag_args')
8842
    if self.displayName is not None:
8843
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8844
      oprot.writeString(self.displayName)
8845
      oprot.writeFieldEnd()
8846
    if self.itemId is not None:
8847
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8848
      oprot.writeI64(self.itemId)
8849
      oprot.writeFieldEnd()
8850
    oprot.writeFieldStop()
8851
    oprot.writeStructEnd()
8852
 
8853
  def validate(self):
8854
    return
8855
 
8856
 
8857
  def __repr__(self):
8858
    L = ['%s=%r' % (key, value)
8859
      for key, value in self.__dict__.iteritems()]
8860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8861
 
8862
  def __eq__(self, other):
8863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8864
 
8865
  def __ne__(self, other):
8866
    return not (self == other)
8867
 
8868
class addTag_result:
8869
  """
8870
  Attributes:
8871
   - success
8872
  """
8873
 
8874
  thrift_spec = (
8875
    (0, TType.BOOL, 'success', None, None, ), # 0
8876
  )
8877
 
8878
  def __init__(self, success=None,):
8879
    self.success = success
8880
 
8881
  def read(self, iprot):
8882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8884
      return
8885
    iprot.readStructBegin()
8886
    while True:
8887
      (fname, ftype, fid) = iprot.readFieldBegin()
8888
      if ftype == TType.STOP:
8889
        break
8890
      if fid == 0:
8891
        if ftype == TType.BOOL:
8892
          self.success = iprot.readBool();
8893
        else:
8894
          iprot.skip(ftype)
8895
      else:
8896
        iprot.skip(ftype)
8897
      iprot.readFieldEnd()
8898
    iprot.readStructEnd()
8899
 
8900
  def write(self, oprot):
8901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8903
      return
8904
    oprot.writeStructBegin('addTag_result')
8905
    if self.success is not None:
8906
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8907
      oprot.writeBool(self.success)
8908
      oprot.writeFieldEnd()
8909
    oprot.writeFieldStop()
8910
    oprot.writeStructEnd()
8911
 
8912
  def validate(self):
8913
    return
8914
 
8915
 
8916
  def __repr__(self):
8917
    L = ['%s=%r' % (key, value)
8918
      for key, value in self.__dict__.iteritems()]
8919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8920
 
8921
  def __eq__(self, other):
8922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8923
 
8924
  def __ne__(self, other):
8925
    return not (self == other)
8926
 
8927
class deleteEntityTag_args:
8928
  """
8929
  Attributes:
8930
   - displayName
8931
   - itemId
8932
  """
8933
 
8934
  thrift_spec = (
8935
    None, # 0
8936
    (1, TType.STRING, 'displayName', None, None, ), # 1
8937
    (2, TType.I64, 'itemId', None, None, ), # 2
8938
  )
8939
 
8940
  def __init__(self, displayName=None, itemId=None,):
8941
    self.displayName = displayName
8942
    self.itemId = itemId
8943
 
8944
  def read(self, iprot):
8945
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8946
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8947
      return
8948
    iprot.readStructBegin()
8949
    while True:
8950
      (fname, ftype, fid) = iprot.readFieldBegin()
8951
      if ftype == TType.STOP:
8952
        break
8953
      if fid == 1:
8954
        if ftype == TType.STRING:
8955
          self.displayName = iprot.readString();
8956
        else:
8957
          iprot.skip(ftype)
8958
      elif fid == 2:
8959
        if ftype == TType.I64:
8960
          self.itemId = iprot.readI64();
8961
        else:
8962
          iprot.skip(ftype)
8963
      else:
8964
        iprot.skip(ftype)
8965
      iprot.readFieldEnd()
8966
    iprot.readStructEnd()
8967
 
8968
  def write(self, oprot):
8969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8971
      return
8972
    oprot.writeStructBegin('deleteEntityTag_args')
8973
    if self.displayName is not None:
8974
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8975
      oprot.writeString(self.displayName)
8976
      oprot.writeFieldEnd()
8977
    if self.itemId is not None:
8978
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8979
      oprot.writeI64(self.itemId)
8980
      oprot.writeFieldEnd()
8981
    oprot.writeFieldStop()
8982
    oprot.writeStructEnd()
8983
 
8984
  def validate(self):
8985
    return
8986
 
8987
 
8988
  def __repr__(self):
8989
    L = ['%s=%r' % (key, value)
8990
      for key, value in self.__dict__.iteritems()]
8991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8992
 
8993
  def __eq__(self, other):
8994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8995
 
8996
  def __ne__(self, other):
8997
    return not (self == other)
8998
 
8999
class deleteEntityTag_result:
9000
  """
9001
  Attributes:
9002
   - success
9003
  """
9004
 
9005
  thrift_spec = (
9006
    (0, TType.BOOL, 'success', None, None, ), # 0
9007
  )
9008
 
9009
  def __init__(self, success=None,):
9010
    self.success = success
9011
 
9012
  def read(self, iprot):
9013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9015
      return
9016
    iprot.readStructBegin()
9017
    while True:
9018
      (fname, ftype, fid) = iprot.readFieldBegin()
9019
      if ftype == TType.STOP:
9020
        break
9021
      if fid == 0:
9022
        if ftype == TType.BOOL:
9023
          self.success = iprot.readBool();
9024
        else:
9025
          iprot.skip(ftype)
9026
      else:
9027
        iprot.skip(ftype)
9028
      iprot.readFieldEnd()
9029
    iprot.readStructEnd()
9030
 
9031
  def write(self, oprot):
9032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9034
      return
9035
    oprot.writeStructBegin('deleteEntityTag_result')
9036
    if self.success is not None:
9037
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9038
      oprot.writeBool(self.success)
9039
      oprot.writeFieldEnd()
9040
    oprot.writeFieldStop()
9041
    oprot.writeStructEnd()
9042
 
9043
  def validate(self):
9044
    return
9045
 
9046
 
9047
  def __repr__(self):
9048
    L = ['%s=%r' % (key, value)
9049
      for key, value in self.__dict__.iteritems()]
9050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9051
 
9052
  def __eq__(self, other):
9053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9054
 
9055
  def __ne__(self, other):
9056
    return not (self == other)
9057
 
9058
class deleteTag_args:
9059
  """
9060
  Attributes:
9061
   - displayName
9062
  """
9063
 
9064
  thrift_spec = (
9065
    None, # 0
9066
    (1, TType.STRING, 'displayName', None, None, ), # 1
9067
  )
9068
 
9069
  def __init__(self, displayName=None,):
9070
    self.displayName = displayName
9071
 
9072
  def read(self, iprot):
9073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9075
      return
9076
    iprot.readStructBegin()
9077
    while True:
9078
      (fname, ftype, fid) = iprot.readFieldBegin()
9079
      if ftype == TType.STOP:
9080
        break
9081
      if fid == 1:
9082
        if ftype == TType.STRING:
9083
          self.displayName = iprot.readString();
9084
        else:
9085
          iprot.skip(ftype)
9086
      else:
9087
        iprot.skip(ftype)
9088
      iprot.readFieldEnd()
9089
    iprot.readStructEnd()
9090
 
9091
  def write(self, oprot):
9092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9094
      return
9095
    oprot.writeStructBegin('deleteTag_args')
9096
    if self.displayName is not None:
9097
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9098
      oprot.writeString(self.displayName)
9099
      oprot.writeFieldEnd()
9100
    oprot.writeFieldStop()
9101
    oprot.writeStructEnd()
9102
 
9103
  def validate(self):
9104
    return
9105
 
9106
 
9107
  def __repr__(self):
9108
    L = ['%s=%r' % (key, value)
9109
      for key, value in self.__dict__.iteritems()]
9110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9111
 
9112
  def __eq__(self, other):
9113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9114
 
9115
  def __ne__(self, other):
9116
    return not (self == other)
9117
 
9118
class deleteTag_result:
9119
  """
9120
  Attributes:
9121
   - success
9122
  """
9123
 
9124
  thrift_spec = (
9125
    (0, TType.BOOL, 'success', None, None, ), # 0
9126
  )
9127
 
9128
  def __init__(self, success=None,):
9129
    self.success = success
9130
 
9131
  def read(self, iprot):
9132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9134
      return
9135
    iprot.readStructBegin()
9136
    while True:
9137
      (fname, ftype, fid) = iprot.readFieldBegin()
9138
      if ftype == TType.STOP:
9139
        break
9140
      if fid == 0:
9141
        if ftype == TType.BOOL:
9142
          self.success = iprot.readBool();
9143
        else:
9144
          iprot.skip(ftype)
9145
      else:
9146
        iprot.skip(ftype)
9147
      iprot.readFieldEnd()
9148
    iprot.readStructEnd()
9149
 
9150
  def write(self, oprot):
9151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9153
      return
9154
    oprot.writeStructBegin('deleteTag_result')
9155
    if self.success is not None:
9156
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9157
      oprot.writeBool(self.success)
9158
      oprot.writeFieldEnd()
9159
    oprot.writeFieldStop()
9160
    oprot.writeStructEnd()
9161
 
9162
  def validate(self):
9163
    return
9164
 
9165
 
9166
  def __repr__(self):
9167
    L = ['%s=%r' % (key, value)
9168
      for key, value in self.__dict__.iteritems()]
9169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9170
 
9171
  def __eq__(self, other):
9172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9173
 
9174
  def __ne__(self, other):
9175
    return not (self == other)
9176
 
9177
class getAllTags_args:
9178
 
9179
  thrift_spec = (
9180
  )
9181
 
9182
  def read(self, iprot):
9183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9185
      return
9186
    iprot.readStructBegin()
9187
    while True:
9188
      (fname, ftype, fid) = iprot.readFieldBegin()
9189
      if ftype == TType.STOP:
9190
        break
9191
      else:
9192
        iprot.skip(ftype)
9193
      iprot.readFieldEnd()
9194
    iprot.readStructEnd()
9195
 
9196
  def write(self, oprot):
9197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9199
      return
9200
    oprot.writeStructBegin('getAllTags_args')
9201
    oprot.writeFieldStop()
9202
    oprot.writeStructEnd()
9203
 
9204
  def validate(self):
9205
    return
9206
 
9207
 
9208
  def __repr__(self):
9209
    L = ['%s=%r' % (key, value)
9210
      for key, value in self.__dict__.iteritems()]
9211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9212
 
9213
  def __eq__(self, other):
9214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9215
 
9216
  def __ne__(self, other):
9217
    return not (self == other)
9218
 
9219
class getAllTags_result:
9220
  """
9221
  Attributes:
9222
   - success
9223
  """
9224
 
9225
  thrift_spec = (
9226
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
9227
  )
9228
 
9229
  def __init__(self, success=None,):
9230
    self.success = success
9231
 
9232
  def read(self, iprot):
9233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9235
      return
9236
    iprot.readStructBegin()
9237
    while True:
9238
      (fname, ftype, fid) = iprot.readFieldBegin()
9239
      if ftype == TType.STOP:
9240
        break
9241
      if fid == 0:
9242
        if ftype == TType.LIST:
9243
          self.success = []
9244
          (_etype138, _size135) = iprot.readListBegin()
9245
          for _i139 in xrange(_size135):
9246
            _elem140 = iprot.readString();
9247
            self.success.append(_elem140)
9248
          iprot.readListEnd()
9249
        else:
9250
          iprot.skip(ftype)
9251
      else:
9252
        iprot.skip(ftype)
9253
      iprot.readFieldEnd()
9254
    iprot.readStructEnd()
9255
 
9256
  def write(self, oprot):
9257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9259
      return
9260
    oprot.writeStructBegin('getAllTags_result')
9261
    if self.success is not None:
9262
      oprot.writeFieldBegin('success', TType.LIST, 0)
9263
      oprot.writeListBegin(TType.STRING, len(self.success))
9264
      for iter141 in self.success:
9265
        oprot.writeString(iter141)
9266
      oprot.writeListEnd()
9267
      oprot.writeFieldEnd()
9268
    oprot.writeFieldStop()
9269
    oprot.writeStructEnd()
9270
 
9271
  def validate(self):
9272
    return
9273
 
9274
 
9275
  def __repr__(self):
9276
    L = ['%s=%r' % (key, value)
9277
      for key, value in self.__dict__.iteritems()]
9278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9279
 
9280
  def __eq__(self, other):
9281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9282
 
9283
  def __ne__(self, other):
9284
    return not (self == other)
9285
 
9286
class getAllEntitiesByTagName_args:
9287
  """
9288
  Attributes:
9289
   - displayName
9290
  """
9291
 
9292
  thrift_spec = (
9293
    None, # 0
9294
    (1, TType.STRING, 'displayName', None, None, ), # 1
9295
  )
9296
 
9297
  def __init__(self, displayName=None,):
9298
    self.displayName = displayName
9299
 
9300
  def read(self, iprot):
9301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9303
      return
9304
    iprot.readStructBegin()
9305
    while True:
9306
      (fname, ftype, fid) = iprot.readFieldBegin()
9307
      if ftype == TType.STOP:
9308
        break
9309
      if fid == 1:
9310
        if ftype == TType.STRING:
9311
          self.displayName = iprot.readString();
9312
        else:
9313
          iprot.skip(ftype)
9314
      else:
9315
        iprot.skip(ftype)
9316
      iprot.readFieldEnd()
9317
    iprot.readStructEnd()
9318
 
9319
  def write(self, oprot):
9320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9322
      return
9323
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9324
    if self.displayName is not None:
9325
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9326
      oprot.writeString(self.displayName)
9327
      oprot.writeFieldEnd()
9328
    oprot.writeFieldStop()
9329
    oprot.writeStructEnd()
9330
 
9331
  def validate(self):
9332
    return
9333
 
9334
 
9335
  def __repr__(self):
9336
    L = ['%s=%r' % (key, value)
9337
      for key, value in self.__dict__.iteritems()]
9338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9339
 
9340
  def __eq__(self, other):
9341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9342
 
9343
  def __ne__(self, other):
9344
    return not (self == other)
9345
 
9346
class getAllEntitiesByTagName_result:
9347
  """
9348
  Attributes:
9349
   - success
9350
  """
9351
 
9352
  thrift_spec = (
9353
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9354
  )
9355
 
9356
  def __init__(self, success=None,):
9357
    self.success = success
9358
 
9359
  def read(self, iprot):
9360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9362
      return
9363
    iprot.readStructBegin()
9364
    while True:
9365
      (fname, ftype, fid) = iprot.readFieldBegin()
9366
      if ftype == TType.STOP:
9367
        break
9368
      if fid == 0:
9369
        if ftype == TType.LIST:
9370
          self.success = []
9371
          (_etype145, _size142) = iprot.readListBegin()
9372
          for _i146 in xrange(_size142):
9373
            _elem147 = iprot.readI64();
9374
            self.success.append(_elem147)
9375
          iprot.readListEnd()
9376
        else:
9377
          iprot.skip(ftype)
9378
      else:
9379
        iprot.skip(ftype)
9380
      iprot.readFieldEnd()
9381
    iprot.readStructEnd()
9382
 
9383
  def write(self, oprot):
9384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9386
      return
9387
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9388
    if self.success is not None:
9389
      oprot.writeFieldBegin('success', TType.LIST, 0)
9390
      oprot.writeListBegin(TType.I64, len(self.success))
9391
      for iter148 in self.success:
9392
        oprot.writeI64(iter148)
9393
      oprot.writeListEnd()
9394
      oprot.writeFieldEnd()
9395
    oprot.writeFieldStop()
9396
    oprot.writeStructEnd()
9397
 
9398
  def validate(self):
9399
    return
9400
 
9401
 
9402
  def __repr__(self):
9403
    L = ['%s=%r' % (key, value)
9404
      for key, value in self.__dict__.iteritems()]
9405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9406
 
9407
  def __eq__(self, other):
9408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9409
 
9410
  def __ne__(self, other):
9411
    return not (self == other)
9412
 
6845 amit.gupta 9413
class getAllEntityTags_args:
9414
 
9415
  thrift_spec = (
9416
  )
9417
 
9418
  def read(self, iprot):
9419
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9420
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9421
      return
9422
    iprot.readStructBegin()
9423
    while True:
9424
      (fname, ftype, fid) = iprot.readFieldBegin()
9425
      if ftype == TType.STOP:
9426
        break
9427
      else:
9428
        iprot.skip(ftype)
9429
      iprot.readFieldEnd()
9430
    iprot.readStructEnd()
9431
 
9432
  def write(self, oprot):
9433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9435
      return
9436
    oprot.writeStructBegin('getAllEntityTags_args')
9437
    oprot.writeFieldStop()
9438
    oprot.writeStructEnd()
9439
 
9440
  def validate(self):
9441
    return
9442
 
9443
 
9444
  def __repr__(self):
9445
    L = ['%s=%r' % (key, value)
9446
      for key, value in self.__dict__.iteritems()]
9447
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9448
 
9449
  def __eq__(self, other):
9450
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9451
 
9452
  def __ne__(self, other):
9453
    return not (self == other)
9454
 
9455
class getAllEntityTags_result:
9456
  """
9457
  Attributes:
9458
   - success
9459
  """
9460
 
9461
  thrift_spec = (
9462
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
9463
  )
9464
 
9465
  def __init__(self, success=None,):
9466
    self.success = success
9467
 
9468
  def read(self, iprot):
9469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9471
      return
9472
    iprot.readStructBegin()
9473
    while True:
9474
      (fname, ftype, fid) = iprot.readFieldBegin()
9475
      if ftype == TType.STOP:
9476
        break
9477
      if fid == 0:
9478
        if ftype == TType.MAP:
9479
          self.success = {}
9480
          (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() 
9481
          for _i153 in xrange(_size149):
9482
            _key154 = iprot.readI64();
9483
            _val155 = []
9484
            (_etype159, _size156) = iprot.readListBegin()
9485
            for _i160 in xrange(_size156):
9486
              _elem161 = iprot.readString();
9487
              _val155.append(_elem161)
9488
            iprot.readListEnd()
9489
            self.success[_key154] = _val155
9490
          iprot.readMapEnd()
9491
        else:
9492
          iprot.skip(ftype)
9493
      else:
9494
        iprot.skip(ftype)
9495
      iprot.readFieldEnd()
9496
    iprot.readStructEnd()
9497
 
9498
  def write(self, oprot):
9499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9501
      return
9502
    oprot.writeStructBegin('getAllEntityTags_result')
9503
    if self.success is not None:
9504
      oprot.writeFieldBegin('success', TType.MAP, 0)
9505
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
9506
      for kiter162,viter163 in self.success.items():
9507
        oprot.writeI64(kiter162)
9508
        oprot.writeListBegin(TType.STRING, len(viter163))
9509
        for iter164 in viter163:
9510
          oprot.writeString(iter164)
9511
        oprot.writeListEnd()
9512
      oprot.writeMapEnd()
9513
      oprot.writeFieldEnd()
9514
    oprot.writeFieldStop()
9515
    oprot.writeStructEnd()
9516
 
9517
  def validate(self):
9518
    return
9519
 
9520
 
9521
  def __repr__(self):
9522
    L = ['%s=%r' % (key, value)
9523
      for key, value in self.__dict__.iteritems()]
9524
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9525
 
9526
  def __eq__(self, other):
9527
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9528
 
9529
  def __ne__(self, other):
9530
    return not (self == other)
9531
 
6849 kshitij.so 9532
class addBannerMap_args:
9533
  """
9534
  Attributes:
9535
   - bannerName
9536
   - mapLink
9537
   - coordinates
9538
  """
9539
 
9540
  thrift_spec = (
9541
    None, # 0
9542
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9543
    (2, TType.STRING, 'mapLink', None, None, ), # 2
9544
    (3, TType.STRING, 'coordinates', None, None, ), # 3
9545
  )
9546
 
9547
  def __init__(self, bannerName=None, mapLink=None, coordinates=None,):
9548
    self.bannerName = bannerName
9549
    self.mapLink = mapLink
9550
    self.coordinates = coordinates
9551
 
9552
  def read(self, iprot):
9553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9555
      return
9556
    iprot.readStructBegin()
9557
    while True:
9558
      (fname, ftype, fid) = iprot.readFieldBegin()
9559
      if ftype == TType.STOP:
9560
        break
9561
      if fid == 1:
9562
        if ftype == TType.STRING:
9563
          self.bannerName = iprot.readString();
9564
        else:
9565
          iprot.skip(ftype)
9566
      elif fid == 2:
9567
        if ftype == TType.STRING:
9568
          self.mapLink = iprot.readString();
9569
        else:
9570
          iprot.skip(ftype)
9571
      elif fid == 3:
9572
        if ftype == TType.STRING:
9573
          self.coordinates = iprot.readString();
9574
        else:
9575
          iprot.skip(ftype)
9576
      else:
9577
        iprot.skip(ftype)
9578
      iprot.readFieldEnd()
9579
    iprot.readStructEnd()
9580
 
9581
  def write(self, oprot):
9582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9584
      return
9585
    oprot.writeStructBegin('addBannerMap_args')
9586
    if self.bannerName is not None:
9587
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
9588
      oprot.writeString(self.bannerName)
9589
      oprot.writeFieldEnd()
9590
    if self.mapLink is not None:
9591
      oprot.writeFieldBegin('mapLink', TType.STRING, 2)
9592
      oprot.writeString(self.mapLink)
9593
      oprot.writeFieldEnd()
9594
    if self.coordinates is not None:
9595
      oprot.writeFieldBegin('coordinates', TType.STRING, 3)
9596
      oprot.writeString(self.coordinates)
9597
      oprot.writeFieldEnd()
9598
    oprot.writeFieldStop()
9599
    oprot.writeStructEnd()
9600
 
9601
  def validate(self):
9602
    return
9603
 
9604
 
9605
  def __repr__(self):
9606
    L = ['%s=%r' % (key, value)
9607
      for key, value in self.__dict__.iteritems()]
9608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9609
 
9610
  def __eq__(self, other):
9611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9612
 
9613
  def __ne__(self, other):
9614
    return not (self == other)
9615
 
9616
class addBannerMap_result:
9617
  """
9618
  Attributes:
9619
   - success
9620
  """
9621
 
9622
  thrift_spec = (
9623
    (0, TType.BOOL, 'success', None, None, ), # 0
9624
  )
9625
 
9626
  def __init__(self, success=None,):
9627
    self.success = success
9628
 
9629
  def read(self, iprot):
9630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9632
      return
9633
    iprot.readStructBegin()
9634
    while True:
9635
      (fname, ftype, fid) = iprot.readFieldBegin()
9636
      if ftype == TType.STOP:
9637
        break
9638
      if fid == 0:
9639
        if ftype == TType.BOOL:
9640
          self.success = iprot.readBool();
9641
        else:
9642
          iprot.skip(ftype)
9643
      else:
9644
        iprot.skip(ftype)
9645
      iprot.readFieldEnd()
9646
    iprot.readStructEnd()
9647
 
9648
  def write(self, oprot):
9649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9651
      return
9652
    oprot.writeStructBegin('addBannerMap_result')
9653
    if self.success is not None:
9654
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9655
      oprot.writeBool(self.success)
9656
      oprot.writeFieldEnd()
9657
    oprot.writeFieldStop()
9658
    oprot.writeStructEnd()
9659
 
9660
  def validate(self):
9661
    return
9662
 
9663
 
9664
  def __repr__(self):
9665
    L = ['%s=%r' % (key, value)
9666
      for key, value in self.__dict__.iteritems()]
9667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9668
 
9669
  def __eq__(self, other):
9670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9671
 
9672
  def __ne__(self, other):
9673
    return not (self == other)
9674
 
9675
class deleteBannerMap_args:
9676
  """
9677
  Attributes:
9678
   - bannerName
9679
  """
9680
 
9681
  thrift_spec = (
9682
    None, # 0
9683
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9684
  )
9685
 
9686
  def __init__(self, bannerName=None,):
9687
    self.bannerName = bannerName
9688
 
9689
  def read(self, iprot):
9690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9692
      return
9693
    iprot.readStructBegin()
9694
    while True:
9695
      (fname, ftype, fid) = iprot.readFieldBegin()
9696
      if ftype == TType.STOP:
9697
        break
9698
      if fid == 1:
9699
        if ftype == TType.STRING:
9700
          self.bannerName = iprot.readString();
9701
        else:
9702
          iprot.skip(ftype)
9703
      else:
9704
        iprot.skip(ftype)
9705
      iprot.readFieldEnd()
9706
    iprot.readStructEnd()
9707
 
9708
  def write(self, oprot):
9709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9711
      return
9712
    oprot.writeStructBegin('deleteBannerMap_args')
9713
    if self.bannerName is not None:
9714
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
9715
      oprot.writeString(self.bannerName)
9716
      oprot.writeFieldEnd()
9717
    oprot.writeFieldStop()
9718
    oprot.writeStructEnd()
9719
 
9720
  def validate(self):
9721
    return
9722
 
9723
 
9724
  def __repr__(self):
9725
    L = ['%s=%r' % (key, value)
9726
      for key, value in self.__dict__.iteritems()]
9727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9728
 
9729
  def __eq__(self, other):
9730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9731
 
9732
  def __ne__(self, other):
9733
    return not (self == other)
9734
 
9735
class deleteBannerMap_result:
9736
  """
9737
  Attributes:
9738
   - success
9739
  """
9740
 
9741
  thrift_spec = (
9742
    (0, TType.BOOL, 'success', None, None, ), # 0
9743
  )
9744
 
9745
  def __init__(self, success=None,):
9746
    self.success = success
9747
 
9748
  def read(self, iprot):
9749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9751
      return
9752
    iprot.readStructBegin()
9753
    while True:
9754
      (fname, ftype, fid) = iprot.readFieldBegin()
9755
      if ftype == TType.STOP:
9756
        break
9757
      if fid == 0:
9758
        if ftype == TType.BOOL:
9759
          self.success = iprot.readBool();
9760
        else:
9761
          iprot.skip(ftype)
9762
      else:
9763
        iprot.skip(ftype)
9764
      iprot.readFieldEnd()
9765
    iprot.readStructEnd()
9766
 
9767
  def write(self, oprot):
9768
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9769
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9770
      return
9771
    oprot.writeStructBegin('deleteBannerMap_result')
9772
    if self.success is not None:
9773
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9774
      oprot.writeBool(self.success)
9775
      oprot.writeFieldEnd()
9776
    oprot.writeFieldStop()
9777
    oprot.writeStructEnd()
9778
 
9779
  def validate(self):
9780
    return
9781
 
9782
 
9783
  def __repr__(self):
9784
    L = ['%s=%r' % (key, value)
9785
      for key, value in self.__dict__.iteritems()]
9786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9787
 
9788
  def __eq__(self, other):
9789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9790
 
9791
  def __ne__(self, other):
9792
    return not (self == other)
9793
 
9794
class getBannerMapDetails_args:
9795
  """
9796
  Attributes:
9797
   - bannerName
9798
  """
9799
 
9800
  thrift_spec = (
9801
    None, # 0
9802
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9803
  )
9804
 
9805
  def __init__(self, bannerName=None,):
9806
    self.bannerName = bannerName
9807
 
9808
  def read(self, iprot):
9809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9811
      return
9812
    iprot.readStructBegin()
9813
    while True:
9814
      (fname, ftype, fid) = iprot.readFieldBegin()
9815
      if ftype == TType.STOP:
9816
        break
9817
      if fid == 1:
9818
        if ftype == TType.STRING:
9819
          self.bannerName = iprot.readString();
9820
        else:
9821
          iprot.skip(ftype)
9822
      else:
9823
        iprot.skip(ftype)
9824
      iprot.readFieldEnd()
9825
    iprot.readStructEnd()
9826
 
9827
  def write(self, oprot):
9828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9830
      return
9831
    oprot.writeStructBegin('getBannerMapDetails_args')
9832
    if self.bannerName is not None:
9833
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
9834
      oprot.writeString(self.bannerName)
9835
      oprot.writeFieldEnd()
9836
    oprot.writeFieldStop()
9837
    oprot.writeStructEnd()
9838
 
9839
  def validate(self):
9840
    return
9841
 
9842
 
9843
  def __repr__(self):
9844
    L = ['%s=%r' % (key, value)
9845
      for key, value in self.__dict__.iteritems()]
9846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9847
 
9848
  def __eq__(self, other):
9849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9850
 
9851
  def __ne__(self, other):
9852
    return not (self == other)
9853
 
9854
class getBannerMapDetails_result:
9855
  """
9856
  Attributes:
9857
   - success
9858
  """
9859
 
9860
  thrift_spec = (
9861
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
9862
  )
9863
 
9864
  def __init__(self, success=None,):
9865
    self.success = success
9866
 
9867
  def read(self, iprot):
9868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9870
      return
9871
    iprot.readStructBegin()
9872
    while True:
9873
      (fname, ftype, fid) = iprot.readFieldBegin()
9874
      if ftype == TType.STOP:
9875
        break
9876
      if fid == 0:
9877
        if ftype == TType.LIST:
9878
          self.success = []
9879
          (_etype168, _size165) = iprot.readListBegin()
9880
          for _i169 in xrange(_size165):
9881
            _elem170 = BannerMap()
9882
            _elem170.read(iprot)
9883
            self.success.append(_elem170)
9884
          iprot.readListEnd()
9885
        else:
9886
          iprot.skip(ftype)
9887
      else:
9888
        iprot.skip(ftype)
9889
      iprot.readFieldEnd()
9890
    iprot.readStructEnd()
9891
 
9892
  def write(self, oprot):
9893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9895
      return
9896
    oprot.writeStructBegin('getBannerMapDetails_result')
9897
    if self.success is not None:
9898
      oprot.writeFieldBegin('success', TType.LIST, 0)
9899
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9900
      for iter171 in self.success:
9901
        iter171.write(oprot)
9902
      oprot.writeListEnd()
9903
      oprot.writeFieldEnd()
9904
    oprot.writeFieldStop()
9905
    oprot.writeStructEnd()
9906
 
9907
  def validate(self):
9908
    return
9909
 
9910
 
9911
  def __repr__(self):
9912
    L = ['%s=%r' % (key, value)
9913
      for key, value in self.__dict__.iteritems()]
9914
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9915
 
9916
  def __eq__(self, other):
9917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9918
 
9919
  def __ne__(self, other):
9920
    return not (self == other)
9921
 
5944 mandeep.dh 9922
class deleteSimilarItem_args:
9923
  """
9924
  Attributes:
9925
   - itemId
9926
   - catalogItemId
9927
  """
9928
 
9929
  thrift_spec = (
9930
    None, # 0
9931
    (1, TType.I64, 'itemId', None, None, ), # 1
9932
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
9933
  )
9934
 
9935
  def __init__(self, itemId=None, catalogItemId=None,):
9936
    self.itemId = itemId
9937
    self.catalogItemId = catalogItemId
9938
 
9939
  def read(self, iprot):
9940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9942
      return
9943
    iprot.readStructBegin()
9944
    while True:
9945
      (fname, ftype, fid) = iprot.readFieldBegin()
9946
      if ftype == TType.STOP:
9947
        break
9948
      if fid == 1:
9949
        if ftype == TType.I64:
9950
          self.itemId = iprot.readI64();
9951
        else:
9952
          iprot.skip(ftype)
9953
      elif fid == 2:
9954
        if ftype == TType.I64:
9955
          self.catalogItemId = iprot.readI64();
9956
        else:
9957
          iprot.skip(ftype)
9958
      else:
9959
        iprot.skip(ftype)
9960
      iprot.readFieldEnd()
9961
    iprot.readStructEnd()
9962
 
9963
  def write(self, oprot):
9964
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9965
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9966
      return
9967
    oprot.writeStructBegin('deleteSimilarItem_args')
9968
    if self.itemId is not None:
9969
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9970
      oprot.writeI64(self.itemId)
9971
      oprot.writeFieldEnd()
9972
    if self.catalogItemId is not None:
9973
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
9974
      oprot.writeI64(self.catalogItemId)
9975
      oprot.writeFieldEnd()
9976
    oprot.writeFieldStop()
9977
    oprot.writeStructEnd()
9978
 
9979
  def validate(self):
9980
    return
9981
 
9982
 
9983
  def __repr__(self):
9984
    L = ['%s=%r' % (key, value)
9985
      for key, value in self.__dict__.iteritems()]
9986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9987
 
9988
  def __eq__(self, other):
9989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9990
 
9991
  def __ne__(self, other):
9992
    return not (self == other)
9993
 
9994
class deleteSimilarItem_result:
9995
  """
9996
  Attributes:
9997
   - success
9998
   - cex
9999
  """
10000
 
10001
  thrift_spec = (
10002
    (0, TType.BOOL, 'success', None, None, ), # 0
10003
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10004
  )
10005
 
10006
  def __init__(self, success=None, cex=None,):
10007
    self.success = success
10008
    self.cex = cex
10009
 
10010
  def read(self, iprot):
10011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10013
      return
10014
    iprot.readStructBegin()
10015
    while True:
10016
      (fname, ftype, fid) = iprot.readFieldBegin()
10017
      if ftype == TType.STOP:
10018
        break
10019
      if fid == 0:
10020
        if ftype == TType.BOOL:
10021
          self.success = iprot.readBool();
10022
        else:
10023
          iprot.skip(ftype)
10024
      elif fid == 1:
10025
        if ftype == TType.STRUCT:
10026
          self.cex = CatalogServiceException()
10027
          self.cex.read(iprot)
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('deleteSimilarItem_result')
10040
    if self.success is not None:
10041
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10042
      oprot.writeBool(self.success)
10043
      oprot.writeFieldEnd()
10044
    if self.cex is not None:
10045
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10046
      self.cex.write(oprot)
10047
      oprot.writeFieldEnd()
10048
    oprot.writeFieldStop()
10049
    oprot.writeStructEnd()
10050
 
10051
  def validate(self):
10052
    return
10053
 
10054
 
10055
  def __repr__(self):
10056
    L = ['%s=%r' % (key, value)
10057
      for key, value in self.__dict__.iteritems()]
10058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10059
 
10060
  def __eq__(self, other):
10061
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10062
 
10063
  def __ne__(self, other):
10064
    return not (self == other)
10065
 
10066
class checkSimilarItem_args:
10067
  """
10068
  Attributes:
10069
   - brand
10070
   - modelNumber
10071
   - modelName
10072
   - color
10073
  """
10074
 
10075
  thrift_spec = (
10076
    None, # 0
10077
    (1, TType.STRING, 'brand', None, None, ), # 1
10078
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
10079
    (3, TType.STRING, 'modelName', None, None, ), # 3
10080
    (4, TType.STRING, 'color', None, None, ), # 4
10081
  )
10082
 
10083
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
10084
    self.brand = brand
10085
    self.modelNumber = modelNumber
10086
    self.modelName = modelName
10087
    self.color = color
10088
 
10089
  def read(self, iprot):
10090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10092
      return
10093
    iprot.readStructBegin()
10094
    while True:
10095
      (fname, ftype, fid) = iprot.readFieldBegin()
10096
      if ftype == TType.STOP:
10097
        break
10098
      if fid == 1:
10099
        if ftype == TType.STRING:
10100
          self.brand = iprot.readString();
10101
        else:
10102
          iprot.skip(ftype)
10103
      elif fid == 2:
10104
        if ftype == TType.STRING:
10105
          self.modelNumber = iprot.readString();
10106
        else:
10107
          iprot.skip(ftype)
10108
      elif fid == 3:
10109
        if ftype == TType.STRING:
10110
          self.modelName = iprot.readString();
10111
        else:
10112
          iprot.skip(ftype)
10113
      elif fid == 4:
10114
        if ftype == TType.STRING:
10115
          self.color = iprot.readString();
10116
        else:
10117
          iprot.skip(ftype)
10118
      else:
10119
        iprot.skip(ftype)
10120
      iprot.readFieldEnd()
10121
    iprot.readStructEnd()
10122
 
10123
  def write(self, oprot):
10124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10126
      return
10127
    oprot.writeStructBegin('checkSimilarItem_args')
10128
    if self.brand is not None:
10129
      oprot.writeFieldBegin('brand', TType.STRING, 1)
10130
      oprot.writeString(self.brand)
10131
      oprot.writeFieldEnd()
10132
    if self.modelNumber is not None:
10133
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
10134
      oprot.writeString(self.modelNumber)
10135
      oprot.writeFieldEnd()
10136
    if self.modelName is not None:
10137
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
10138
      oprot.writeString(self.modelName)
10139
      oprot.writeFieldEnd()
10140
    if self.color is not None:
10141
      oprot.writeFieldBegin('color', TType.STRING, 4)
10142
      oprot.writeString(self.color)
10143
      oprot.writeFieldEnd()
10144
    oprot.writeFieldStop()
10145
    oprot.writeStructEnd()
10146
 
10147
  def validate(self):
10148
    return
10149
 
10150
 
10151
  def __repr__(self):
10152
    L = ['%s=%r' % (key, value)
10153
      for key, value in self.__dict__.iteritems()]
10154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10155
 
10156
  def __eq__(self, other):
10157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10158
 
10159
  def __ne__(self, other):
10160
    return not (self == other)
10161
 
10162
class checkSimilarItem_result:
10163
  """
10164
  Attributes:
10165
   - success
10166
  """
10167
 
10168
  thrift_spec = (
10169
    (0, TType.I64, 'success', None, None, ), # 0
10170
  )
10171
 
10172
  def __init__(self, success=None,):
10173
    self.success = success
10174
 
10175
  def read(self, iprot):
10176
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10177
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10178
      return
10179
    iprot.readStructBegin()
10180
    while True:
10181
      (fname, ftype, fid) = iprot.readFieldBegin()
10182
      if ftype == TType.STOP:
10183
        break
10184
      if fid == 0:
10185
        if ftype == TType.I64:
10186
          self.success = iprot.readI64();
10187
        else:
10188
          iprot.skip(ftype)
10189
      else:
10190
        iprot.skip(ftype)
10191
      iprot.readFieldEnd()
10192
    iprot.readStructEnd()
10193
 
10194
  def write(self, oprot):
10195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10197
      return
10198
    oprot.writeStructBegin('checkSimilarItem_result')
10199
    if self.success is not None:
10200
      oprot.writeFieldBegin('success', TType.I64, 0)
10201
      oprot.writeI64(self.success)
10202
      oprot.writeFieldEnd()
10203
    oprot.writeFieldStop()
10204
    oprot.writeStructEnd()
10205
 
10206
  def validate(self):
10207
    return
10208
 
10209
 
10210
  def __repr__(self):
10211
    L = ['%s=%r' % (key, value)
10212
      for key, value in self.__dict__.iteritems()]
10213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10214
 
10215
  def __eq__(self, other):
10216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10217
 
10218
  def __ne__(self, other):
10219
    return not (self == other)
10220
 
10221
class validateRiskyStatus_args:
10222
  """
10223
  Attributes:
10224
   - itemId
10225
  """
10226
 
10227
  thrift_spec = (
10228
    None, # 0
10229
    (1, TType.I64, 'itemId', None, None, ), # 1
10230
  )
10231
 
10232
  def __init__(self, itemId=None,):
10233
    self.itemId = itemId
10234
 
10235
  def read(self, iprot):
10236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10238
      return
10239
    iprot.readStructBegin()
10240
    while True:
10241
      (fname, ftype, fid) = iprot.readFieldBegin()
10242
      if ftype == TType.STOP:
10243
        break
10244
      if fid == 1:
10245
        if ftype == TType.I64:
10246
          self.itemId = iprot.readI64();
10247
        else:
10248
          iprot.skip(ftype)
10249
      else:
10250
        iprot.skip(ftype)
10251
      iprot.readFieldEnd()
10252
    iprot.readStructEnd()
10253
 
10254
  def write(self, oprot):
10255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10257
      return
10258
    oprot.writeStructBegin('validateRiskyStatus_args')
10259
    if self.itemId is not None:
10260
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10261
      oprot.writeI64(self.itemId)
10262
      oprot.writeFieldEnd()
10263
    oprot.writeFieldStop()
10264
    oprot.writeStructEnd()
10265
 
10266
  def validate(self):
10267
    return
10268
 
10269
 
10270
  def __repr__(self):
10271
    L = ['%s=%r' % (key, value)
10272
      for key, value in self.__dict__.iteritems()]
10273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10274
 
10275
  def __eq__(self, other):
10276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10277
 
10278
  def __ne__(self, other):
10279
    return not (self == other)
10280
 
10281
class validateRiskyStatus_result:
10282
 
10283
  thrift_spec = (
10284
  )
10285
 
10286
  def read(self, iprot):
10287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10289
      return
10290
    iprot.readStructBegin()
10291
    while True:
10292
      (fname, ftype, fid) = iprot.readFieldBegin()
10293
      if ftype == TType.STOP:
10294
        break
10295
      else:
10296
        iprot.skip(ftype)
10297
      iprot.readFieldEnd()
10298
    iprot.readStructEnd()
10299
 
10300
  def write(self, oprot):
10301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10303
      return
10304
    oprot.writeStructBegin('validateRiskyStatus_result')
10305
    oprot.writeFieldStop()
10306
    oprot.writeStructEnd()
10307
 
10308
  def validate(self):
10309
    return
10310
 
10311
 
10312
  def __repr__(self):
10313
    L = ['%s=%r' % (key, value)
10314
      for key, value in self.__dict__.iteritems()]
10315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10316
 
10317
  def __eq__(self, other):
10318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10319
 
10320
  def __ne__(self, other):
10321
    return not (self == other)
10322
 
10323
class changeItemRiskyFlag_args:
10324
  """
10325
  Attributes:
10326
   - itemId
10327
   - risky
10328
  """
10329
 
10330
  thrift_spec = (
10331
    None, # 0
10332
    (1, TType.I64, 'itemId', None, None, ), # 1
10333
    (2, TType.BOOL, 'risky', None, None, ), # 2
10334
  )
10335
 
10336
  def __init__(self, itemId=None, risky=None,):
10337
    self.itemId = itemId
10338
    self.risky = risky
10339
 
10340
  def read(self, iprot):
10341
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10342
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10343
      return
10344
    iprot.readStructBegin()
10345
    while True:
10346
      (fname, ftype, fid) = iprot.readFieldBegin()
10347
      if ftype == TType.STOP:
10348
        break
10349
      if fid == 1:
10350
        if ftype == TType.I64:
10351
          self.itemId = iprot.readI64();
10352
        else:
10353
          iprot.skip(ftype)
10354
      elif fid == 2:
10355
        if ftype == TType.BOOL:
10356
          self.risky = iprot.readBool();
10357
        else:
10358
          iprot.skip(ftype)
10359
      else:
10360
        iprot.skip(ftype)
10361
      iprot.readFieldEnd()
10362
    iprot.readStructEnd()
10363
 
10364
  def write(self, oprot):
10365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10367
      return
10368
    oprot.writeStructBegin('changeItemRiskyFlag_args')
10369
    if self.itemId is not None:
10370
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10371
      oprot.writeI64(self.itemId)
10372
      oprot.writeFieldEnd()
10373
    if self.risky is not None:
10374
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
10375
      oprot.writeBool(self.risky)
10376
      oprot.writeFieldEnd()
10377
    oprot.writeFieldStop()
10378
    oprot.writeStructEnd()
10379
 
10380
  def validate(self):
10381
    return
10382
 
10383
 
10384
  def __repr__(self):
10385
    L = ['%s=%r' % (key, value)
10386
      for key, value in self.__dict__.iteritems()]
10387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10388
 
10389
  def __eq__(self, other):
10390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10391
 
10392
  def __ne__(self, other):
10393
    return not (self == other)
10394
 
10395
class changeItemRiskyFlag_result:
10396
 
10397
  thrift_spec = (
10398
  )
10399
 
10400
  def read(self, iprot):
10401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10403
      return
10404
    iprot.readStructBegin()
10405
    while True:
10406
      (fname, ftype, fid) = iprot.readFieldBegin()
10407
      if ftype == TType.STOP:
10408
        break
10409
      else:
10410
        iprot.skip(ftype)
10411
      iprot.readFieldEnd()
10412
    iprot.readStructEnd()
10413
 
10414
  def write(self, oprot):
10415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10417
      return
10418
    oprot.writeStructBegin('changeItemRiskyFlag_result')
10419
    oprot.writeFieldStop()
10420
    oprot.writeStructEnd()
10421
 
10422
  def validate(self):
10423
    return
10424
 
10425
 
10426
  def __repr__(self):
10427
    L = ['%s=%r' % (key, value)
10428
      for key, value in self.__dict__.iteritems()]
10429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10430
 
10431
  def __eq__(self, other):
10432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10433
 
10434
  def __ne__(self, other):
10435
    return not (self == other)
10436
 
10437
class getItemsByRiskyFlag_args:
10438
 
10439
  thrift_spec = (
10440
  )
10441
 
10442
  def read(self, iprot):
10443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10445
      return
10446
    iprot.readStructBegin()
10447
    while True:
10448
      (fname, ftype, fid) = iprot.readFieldBegin()
10449
      if ftype == TType.STOP:
10450
        break
10451
      else:
10452
        iprot.skip(ftype)
10453
      iprot.readFieldEnd()
10454
    iprot.readStructEnd()
10455
 
10456
  def write(self, oprot):
10457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10459
      return
10460
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
10461
    oprot.writeFieldStop()
10462
    oprot.writeStructEnd()
10463
 
10464
  def validate(self):
10465
    return
10466
 
10467
 
10468
  def __repr__(self):
10469
    L = ['%s=%r' % (key, value)
10470
      for key, value in self.__dict__.iteritems()]
10471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10472
 
10473
  def __eq__(self, other):
10474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10475
 
10476
  def __ne__(self, other):
10477
    return not (self == other)
10478
 
10479
class getItemsByRiskyFlag_result:
10480
  """
10481
  Attributes:
10482
   - success
10483
  """
10484
 
10485
  thrift_spec = (
10486
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10487
  )
10488
 
10489
  def __init__(self, success=None,):
10490
    self.success = success
10491
 
10492
  def read(self, iprot):
10493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10495
      return
10496
    iprot.readStructBegin()
10497
    while True:
10498
      (fname, ftype, fid) = iprot.readFieldBegin()
10499
      if ftype == TType.STOP:
10500
        break
10501
      if fid == 0:
10502
        if ftype == TType.LIST:
10503
          self.success = []
6849 kshitij.so 10504
          (_etype175, _size172) = iprot.readListBegin()
10505
          for _i176 in xrange(_size172):
10506
            _elem177 = Item()
10507
            _elem177.read(iprot)
10508
            self.success.append(_elem177)
5944 mandeep.dh 10509
          iprot.readListEnd()
10510
        else:
10511
          iprot.skip(ftype)
10512
      else:
10513
        iprot.skip(ftype)
10514
      iprot.readFieldEnd()
10515
    iprot.readStructEnd()
10516
 
10517
  def write(self, oprot):
10518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10520
      return
10521
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
10522
    if self.success is not None:
10523
      oprot.writeFieldBegin('success', TType.LIST, 0)
10524
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849 kshitij.so 10525
      for iter178 in self.success:
10526
        iter178.write(oprot)
5944 mandeep.dh 10527
      oprot.writeListEnd()
10528
      oprot.writeFieldEnd()
10529
    oprot.writeFieldStop()
10530
    oprot.writeStructEnd()
10531
 
10532
  def validate(self):
10533
    return
10534
 
10535
 
10536
  def __repr__(self):
10537
    L = ['%s=%r' % (key, value)
10538
      for key, value in self.__dict__.iteritems()]
10539
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10540
 
10541
  def __eq__(self, other):
10542
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10543
 
10544
  def __ne__(self, other):
10545
    return not (self == other)
10546
 
10547
class getItemsForMasterSheet_args:
10548
  """
10549
  Attributes:
10550
   - category
10551
   - brand
10552
  """
10553
 
10554
  thrift_spec = (
10555
    None, # 0
10556
    (1, TType.STRING, 'category', None, None, ), # 1
10557
    (2, TType.STRING, 'brand', None, None, ), # 2
10558
  )
10559
 
10560
  def __init__(self, category=None, brand=None,):
10561
    self.category = category
10562
    self.brand = brand
10563
 
10564
  def read(self, iprot):
10565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10567
      return
10568
    iprot.readStructBegin()
10569
    while True:
10570
      (fname, ftype, fid) = iprot.readFieldBegin()
10571
      if ftype == TType.STOP:
10572
        break
10573
      if fid == 1:
10574
        if ftype == TType.STRING:
10575
          self.category = iprot.readString();
10576
        else:
10577
          iprot.skip(ftype)
10578
      elif fid == 2:
10579
        if ftype == TType.STRING:
10580
          self.brand = iprot.readString();
10581
        else:
10582
          iprot.skip(ftype)
10583
      else:
10584
        iprot.skip(ftype)
10585
      iprot.readFieldEnd()
10586
    iprot.readStructEnd()
10587
 
10588
  def write(self, oprot):
10589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10591
      return
10592
    oprot.writeStructBegin('getItemsForMasterSheet_args')
10593
    if self.category is not None:
10594
      oprot.writeFieldBegin('category', TType.STRING, 1)
10595
      oprot.writeString(self.category)
10596
      oprot.writeFieldEnd()
10597
    if self.brand is not None:
10598
      oprot.writeFieldBegin('brand', TType.STRING, 2)
10599
      oprot.writeString(self.brand)
10600
      oprot.writeFieldEnd()
10601
    oprot.writeFieldStop()
10602
    oprot.writeStructEnd()
10603
 
10604
  def validate(self):
10605
    return
10606
 
10607
 
10608
  def __repr__(self):
10609
    L = ['%s=%r' % (key, value)
10610
      for key, value in self.__dict__.iteritems()]
10611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10612
 
10613
  def __eq__(self, other):
10614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10615
 
10616
  def __ne__(self, other):
10617
    return not (self == other)
10618
 
10619
class getItemsForMasterSheet_result:
10620
  """
10621
  Attributes:
10622
   - success
10623
  """
10624
 
10625
  thrift_spec = (
10626
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10627
  )
10628
 
10629
  def __init__(self, success=None,):
10630
    self.success = success
10631
 
10632
  def read(self, iprot):
10633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10635
      return
10636
    iprot.readStructBegin()
10637
    while True:
10638
      (fname, ftype, fid) = iprot.readFieldBegin()
10639
      if ftype == TType.STOP:
10640
        break
10641
      if fid == 0:
10642
        if ftype == TType.LIST:
10643
          self.success = []
6849 kshitij.so 10644
          (_etype182, _size179) = iprot.readListBegin()
10645
          for _i183 in xrange(_size179):
10646
            _elem184 = Item()
10647
            _elem184.read(iprot)
10648
            self.success.append(_elem184)
5944 mandeep.dh 10649
          iprot.readListEnd()
10650
        else:
10651
          iprot.skip(ftype)
10652
      else:
10653
        iprot.skip(ftype)
10654
      iprot.readFieldEnd()
10655
    iprot.readStructEnd()
10656
 
10657
  def write(self, oprot):
10658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10660
      return
10661
    oprot.writeStructBegin('getItemsForMasterSheet_result')
10662
    if self.success is not None:
10663
      oprot.writeFieldBegin('success', TType.LIST, 0)
10664
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849 kshitij.so 10665
      for iter185 in self.success:
10666
        iter185.write(oprot)
5944 mandeep.dh 10667
      oprot.writeListEnd()
10668
      oprot.writeFieldEnd()
10669
    oprot.writeFieldStop()
10670
    oprot.writeStructEnd()
10671
 
10672
  def validate(self):
10673
    return
10674
 
10675
 
10676
  def __repr__(self):
10677
    L = ['%s=%r' % (key, value)
10678
      for key, value in self.__dict__.iteritems()]
10679
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10680
 
10681
  def __eq__(self, other):
10682
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10683
 
10684
  def __ne__(self, other):
10685
    return not (self == other)
10686
 
10687
class getSimilarItemsCatalogIds_args:
10688
  """
10689
  Attributes:
10690
   - beginIndex
10691
   - totalItems
10692
   - itemId
10693
  """
10694
 
10695
  thrift_spec = (
10696
    None, # 0
10697
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10698
    (2, TType.I64, 'totalItems', None, None, ), # 2
10699
    (3, TType.I64, 'itemId', None, None, ), # 3
10700
  )
10701
 
10702
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
10703
    self.beginIndex = beginIndex
10704
    self.totalItems = totalItems
10705
    self.itemId = itemId
10706
 
10707
  def read(self, iprot):
10708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10710
      return
10711
    iprot.readStructBegin()
10712
    while True:
10713
      (fname, ftype, fid) = iprot.readFieldBegin()
10714
      if ftype == TType.STOP:
10715
        break
10716
      if fid == 1:
10717
        if ftype == TType.I64:
10718
          self.beginIndex = iprot.readI64();
10719
        else:
10720
          iprot.skip(ftype)
10721
      elif fid == 2:
10722
        if ftype == TType.I64:
10723
          self.totalItems = iprot.readI64();
10724
        else:
10725
          iprot.skip(ftype)
10726
      elif fid == 3:
10727
        if ftype == TType.I64:
10728
          self.itemId = iprot.readI64();
10729
        else:
10730
          iprot.skip(ftype)
10731
      else:
10732
        iprot.skip(ftype)
10733
      iprot.readFieldEnd()
10734
    iprot.readStructEnd()
10735
 
10736
  def write(self, oprot):
10737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10739
      return
10740
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
10741
    if self.beginIndex is not None:
10742
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10743
      oprot.writeI64(self.beginIndex)
10744
      oprot.writeFieldEnd()
10745
    if self.totalItems is not None:
10746
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10747
      oprot.writeI64(self.totalItems)
10748
      oprot.writeFieldEnd()
10749
    if self.itemId is not None:
10750
      oprot.writeFieldBegin('itemId', TType.I64, 3)
10751
      oprot.writeI64(self.itemId)
10752
      oprot.writeFieldEnd()
10753
    oprot.writeFieldStop()
10754
    oprot.writeStructEnd()
10755
 
10756
  def validate(self):
10757
    return
10758
 
10759
 
10760
  def __repr__(self):
10761
    L = ['%s=%r' % (key, value)
10762
      for key, value in self.__dict__.iteritems()]
10763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10764
 
10765
  def __eq__(self, other):
10766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10767
 
10768
  def __ne__(self, other):
10769
    return not (self == other)
10770
 
10771
class getSimilarItemsCatalogIds_result:
10772
  """
10773
  Attributes:
10774
   - success
10775
  """
10776
 
10777
  thrift_spec = (
10778
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10779
  )
10780
 
10781
  def __init__(self, success=None,):
10782
    self.success = success
10783
 
10784
  def read(self, iprot):
10785
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10786
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10787
      return
10788
    iprot.readStructBegin()
10789
    while True:
10790
      (fname, ftype, fid) = iprot.readFieldBegin()
10791
      if ftype == TType.STOP:
10792
        break
10793
      if fid == 0:
10794
        if ftype == TType.LIST:
10795
          self.success = []
6849 kshitij.so 10796
          (_etype189, _size186) = iprot.readListBegin()
10797
          for _i190 in xrange(_size186):
10798
            _elem191 = iprot.readI64();
10799
            self.success.append(_elem191)
5944 mandeep.dh 10800
          iprot.readListEnd()
10801
        else:
10802
          iprot.skip(ftype)
10803
      else:
10804
        iprot.skip(ftype)
10805
      iprot.readFieldEnd()
10806
    iprot.readStructEnd()
10807
 
10808
  def write(self, oprot):
10809
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10810
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10811
      return
10812
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
10813
    if self.success is not None:
10814
      oprot.writeFieldBegin('success', TType.LIST, 0)
10815
      oprot.writeListBegin(TType.I64, len(self.success))
6849 kshitij.so 10816
      for iter192 in self.success:
10817
        oprot.writeI64(iter192)
5944 mandeep.dh 10818
      oprot.writeListEnd()
10819
      oprot.writeFieldEnd()
10820
    oprot.writeFieldStop()
10821
    oprot.writeStructEnd()
10822
 
10823
  def validate(self):
10824
    return
10825
 
10826
 
10827
  def __repr__(self):
10828
    L = ['%s=%r' % (key, value)
10829
      for key, value in self.__dict__.iteritems()]
10830
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10831
 
10832
  def __eq__(self, other):
10833
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10834
 
10835
  def __ne__(self, other):
10836
    return not (self == other)
10837
 
10838
class addProductNotification_args:
10839
  """
10840
  Attributes:
10841
   - itemId
10842
   - email
10843
  """
10844
 
10845
  thrift_spec = None
10846
  def __init__(self, itemId=None, email=None,):
10847
    self.itemId = itemId
10848
    self.email = email
10849
 
10850
  def read(self, iprot):
10851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10853
      return
10854
    iprot.readStructBegin()
10855
    while True:
10856
      (fname, ftype, fid) = iprot.readFieldBegin()
10857
      if ftype == TType.STOP:
10858
        break
10859
      if fid == -1:
10860
        if ftype == TType.I64:
10861
          self.itemId = iprot.readI64();
10862
        else:
10863
          iprot.skip(ftype)
10864
      elif fid == -2:
10865
        if ftype == TType.STRING:
10866
          self.email = iprot.readString();
10867
        else:
10868
          iprot.skip(ftype)
10869
      else:
10870
        iprot.skip(ftype)
10871
      iprot.readFieldEnd()
10872
    iprot.readStructEnd()
10873
 
10874
  def write(self, oprot):
10875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10877
      return
10878
    oprot.writeStructBegin('addProductNotification_args')
10879
    if self.email is not None:
10880
      oprot.writeFieldBegin('email', TType.STRING, -2)
10881
      oprot.writeString(self.email)
10882
      oprot.writeFieldEnd()
10883
    if self.itemId is not None:
10884
      oprot.writeFieldBegin('itemId', TType.I64, -1)
10885
      oprot.writeI64(self.itemId)
10886
      oprot.writeFieldEnd()
10887
    oprot.writeFieldStop()
10888
    oprot.writeStructEnd()
10889
 
10890
  def validate(self):
10891
    return
10892
 
10893
 
10894
  def __repr__(self):
10895
    L = ['%s=%r' % (key, value)
10896
      for key, value in self.__dict__.iteritems()]
10897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10898
 
10899
  def __eq__(self, other):
10900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10901
 
10902
  def __ne__(self, other):
10903
    return not (self == other)
10904
 
10905
class addProductNotification_result:
10906
  """
10907
  Attributes:
10908
   - success
10909
  """
10910
 
10911
  thrift_spec = (
10912
    (0, TType.BOOL, 'success', None, None, ), # 0
10913
  )
10914
 
10915
  def __init__(self, success=None,):
10916
    self.success = success
10917
 
10918
  def read(self, iprot):
10919
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10920
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10921
      return
10922
    iprot.readStructBegin()
10923
    while True:
10924
      (fname, ftype, fid) = iprot.readFieldBegin()
10925
      if ftype == TType.STOP:
10926
        break
10927
      if fid == 0:
10928
        if ftype == TType.BOOL:
10929
          self.success = iprot.readBool();
10930
        else:
10931
          iprot.skip(ftype)
10932
      else:
10933
        iprot.skip(ftype)
10934
      iprot.readFieldEnd()
10935
    iprot.readStructEnd()
10936
 
10937
  def write(self, oprot):
10938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10940
      return
10941
    oprot.writeStructBegin('addProductNotification_result')
10942
    if self.success is not None:
10943
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10944
      oprot.writeBool(self.success)
10945
      oprot.writeFieldEnd()
10946
    oprot.writeFieldStop()
10947
    oprot.writeStructEnd()
10948
 
10949
  def validate(self):
10950
    return
10951
 
10952
 
10953
  def __repr__(self):
10954
    L = ['%s=%r' % (key, value)
10955
      for key, value in self.__dict__.iteritems()]
10956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10957
 
10958
  def __eq__(self, other):
10959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10960
 
10961
  def __ne__(self, other):
10962
    return not (self == other)
10963
 
10964
class sendProductNotifications_args:
10965
 
10966
  thrift_spec = (
10967
  )
10968
 
10969
  def read(self, iprot):
10970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10972
      return
10973
    iprot.readStructBegin()
10974
    while True:
10975
      (fname, ftype, fid) = iprot.readFieldBegin()
10976
      if ftype == TType.STOP:
10977
        break
10978
      else:
10979
        iprot.skip(ftype)
10980
      iprot.readFieldEnd()
10981
    iprot.readStructEnd()
10982
 
10983
  def write(self, oprot):
10984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10986
      return
10987
    oprot.writeStructBegin('sendProductNotifications_args')
10988
    oprot.writeFieldStop()
10989
    oprot.writeStructEnd()
10990
 
10991
  def validate(self):
10992
    return
10993
 
10994
 
10995
  def __repr__(self):
10996
    L = ['%s=%r' % (key, value)
10997
      for key, value in self.__dict__.iteritems()]
10998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10999
 
11000
  def __eq__(self, other):
11001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11002
 
11003
  def __ne__(self, other):
11004
    return not (self == other)
11005
 
11006
class sendProductNotifications_result:
11007
  """
11008
  Attributes:
11009
   - success
11010
  """
11011
 
11012
  thrift_spec = (
11013
    (0, TType.BOOL, 'success', None, None, ), # 0
11014
  )
11015
 
11016
  def __init__(self, success=None,):
11017
    self.success = success
11018
 
11019
  def read(self, iprot):
11020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11022
      return
11023
    iprot.readStructBegin()
11024
    while True:
11025
      (fname, ftype, fid) = iprot.readFieldBegin()
11026
      if ftype == TType.STOP:
11027
        break
11028
      if fid == 0:
11029
        if ftype == TType.BOOL:
11030
          self.success = iprot.readBool();
11031
        else:
11032
          iprot.skip(ftype)
11033
      else:
11034
        iprot.skip(ftype)
11035
      iprot.readFieldEnd()
11036
    iprot.readStructEnd()
11037
 
11038
  def write(self, oprot):
11039
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11040
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11041
      return
11042
    oprot.writeStructBegin('sendProductNotifications_result')
11043
    if self.success is not None:
11044
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11045
      oprot.writeBool(self.success)
11046
      oprot.writeFieldEnd()
11047
    oprot.writeFieldStop()
11048
    oprot.writeStructEnd()
11049
 
11050
  def validate(self):
11051
    return
11052
 
11053
 
11054
  def __repr__(self):
11055
    L = ['%s=%r' % (key, value)
11056
      for key, value in self.__dict__.iteritems()]
11057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11058
 
11059
  def __eq__(self, other):
11060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11061
 
11062
  def __ne__(self, other):
11063
    return not (self == other)
11064
 
11065
class getAllBrandsByCategory_args:
11066
  """
11067
  Attributes:
11068
   - categoryId
11069
  """
11070
 
11071
  thrift_spec = (
11072
    None, # 0
11073
    (1, TType.I64, 'categoryId', None, None, ), # 1
11074
  )
11075
 
11076
  def __init__(self, categoryId=None,):
11077
    self.categoryId = categoryId
11078
 
11079
  def read(self, iprot):
11080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11082
      return
11083
    iprot.readStructBegin()
11084
    while True:
11085
      (fname, ftype, fid) = iprot.readFieldBegin()
11086
      if ftype == TType.STOP:
11087
        break
11088
      if fid == 1:
11089
        if ftype == TType.I64:
11090
          self.categoryId = iprot.readI64();
11091
        else:
11092
          iprot.skip(ftype)
11093
      else:
11094
        iprot.skip(ftype)
11095
      iprot.readFieldEnd()
11096
    iprot.readStructEnd()
11097
 
11098
  def write(self, oprot):
11099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11101
      return
11102
    oprot.writeStructBegin('getAllBrandsByCategory_args')
11103
    if self.categoryId is not None:
11104
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
11105
      oprot.writeI64(self.categoryId)
11106
      oprot.writeFieldEnd()
11107
    oprot.writeFieldStop()
11108
    oprot.writeStructEnd()
11109
 
11110
  def validate(self):
11111
    return
11112
 
11113
 
11114
  def __repr__(self):
11115
    L = ['%s=%r' % (key, value)
11116
      for key, value in self.__dict__.iteritems()]
11117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11118
 
11119
  def __eq__(self, other):
11120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11121
 
11122
  def __ne__(self, other):
11123
    return not (self == other)
11124
 
11125
class getAllBrandsByCategory_result:
11126
  """
11127
  Attributes:
11128
   - success
11129
  """
11130
 
11131
  thrift_spec = (
11132
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
11133
  )
11134
 
11135
  def __init__(self, success=None,):
11136
    self.success = success
11137
 
11138
  def read(self, iprot):
11139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11141
      return
11142
    iprot.readStructBegin()
11143
    while True:
11144
      (fname, ftype, fid) = iprot.readFieldBegin()
11145
      if ftype == TType.STOP:
11146
        break
11147
      if fid == 0:
11148
        if ftype == TType.LIST:
11149
          self.success = []
6849 kshitij.so 11150
          (_etype196, _size193) = iprot.readListBegin()
11151
          for _i197 in xrange(_size193):
11152
            _elem198 = iprot.readString();
11153
            self.success.append(_elem198)
5944 mandeep.dh 11154
          iprot.readListEnd()
11155
        else:
11156
          iprot.skip(ftype)
11157
      else:
11158
        iprot.skip(ftype)
11159
      iprot.readFieldEnd()
11160
    iprot.readStructEnd()
11161
 
11162
  def write(self, oprot):
11163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11165
      return
11166
    oprot.writeStructBegin('getAllBrandsByCategory_result')
11167
    if self.success is not None:
11168
      oprot.writeFieldBegin('success', TType.LIST, 0)
11169
      oprot.writeListBegin(TType.STRING, len(self.success))
6849 kshitij.so 11170
      for iter199 in self.success:
11171
        oprot.writeString(iter199)
5944 mandeep.dh 11172
      oprot.writeListEnd()
11173
      oprot.writeFieldEnd()
11174
    oprot.writeFieldStop()
11175
    oprot.writeStructEnd()
11176
 
11177
  def validate(self):
11178
    return
11179
 
11180
 
11181
  def __repr__(self):
11182
    L = ['%s=%r' % (key, value)
11183
      for key, value in self.__dict__.iteritems()]
11184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11185
 
11186
  def __eq__(self, other):
11187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11188
 
11189
  def __ne__(self, other):
11190
    return not (self == other)
11191
 
11192
class getAllBrands_args:
11193
 
11194
  thrift_spec = (
11195
  )
11196
 
11197
  def read(self, iprot):
11198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11200
      return
11201
    iprot.readStructBegin()
11202
    while True:
11203
      (fname, ftype, fid) = iprot.readFieldBegin()
11204
      if ftype == TType.STOP:
11205
        break
11206
      else:
11207
        iprot.skip(ftype)
11208
      iprot.readFieldEnd()
11209
    iprot.readStructEnd()
11210
 
11211
  def write(self, oprot):
11212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11214
      return
11215
    oprot.writeStructBegin('getAllBrands_args')
11216
    oprot.writeFieldStop()
11217
    oprot.writeStructEnd()
11218
 
11219
  def validate(self):
11220
    return
11221
 
11222
 
11223
  def __repr__(self):
11224
    L = ['%s=%r' % (key, value)
11225
      for key, value in self.__dict__.iteritems()]
11226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11227
 
11228
  def __eq__(self, other):
11229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11230
 
11231
  def __ne__(self, other):
11232
    return not (self == other)
11233
 
11234
class getAllBrands_result:
11235
  """
11236
  Attributes:
11237
   - success
11238
  """
11239
 
11240
  thrift_spec = (
11241
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
11242
  )
11243
 
11244
  def __init__(self, success=None,):
11245
    self.success = success
11246
 
11247
  def read(self, iprot):
11248
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11249
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11250
      return
11251
    iprot.readStructBegin()
11252
    while True:
11253
      (fname, ftype, fid) = iprot.readFieldBegin()
11254
      if ftype == TType.STOP:
11255
        break
11256
      if fid == 0:
11257
        if ftype == TType.LIST:
11258
          self.success = []
6849 kshitij.so 11259
          (_etype203, _size200) = iprot.readListBegin()
11260
          for _i204 in xrange(_size200):
11261
            _elem205 = iprot.readString();
11262
            self.success.append(_elem205)
5944 mandeep.dh 11263
          iprot.readListEnd()
11264
        else:
11265
          iprot.skip(ftype)
11266
      else:
11267
        iprot.skip(ftype)
11268
      iprot.readFieldEnd()
11269
    iprot.readStructEnd()
11270
 
11271
  def write(self, oprot):
11272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11274
      return
11275
    oprot.writeStructBegin('getAllBrands_result')
11276
    if self.success is not None:
11277
      oprot.writeFieldBegin('success', TType.LIST, 0)
11278
      oprot.writeListBegin(TType.STRING, len(self.success))
6849 kshitij.so 11279
      for iter206 in self.success:
11280
        oprot.writeString(iter206)
5944 mandeep.dh 11281
      oprot.writeListEnd()
11282
      oprot.writeFieldEnd()
11283
    oprot.writeFieldStop()
11284
    oprot.writeStructEnd()
11285
 
11286
  def validate(self):
11287
    return
11288
 
11289
 
11290
  def __repr__(self):
11291
    L = ['%s=%r' % (key, value)
11292
      for key, value in self.__dict__.iteritems()]
11293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11294
 
11295
  def __eq__(self, other):
11296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11297
 
11298
  def __ne__(self, other):
11299
    return not (self == other)
11300
 
11301
class getAllSources_args:
11302
 
11303
  thrift_spec = (
11304
  )
11305
 
11306
  def read(self, iprot):
11307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11309
      return
11310
    iprot.readStructBegin()
11311
    while True:
11312
      (fname, ftype, fid) = iprot.readFieldBegin()
11313
      if ftype == TType.STOP:
11314
        break
11315
      else:
11316
        iprot.skip(ftype)
11317
      iprot.readFieldEnd()
11318
    iprot.readStructEnd()
11319
 
11320
  def write(self, oprot):
11321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11323
      return
11324
    oprot.writeStructBegin('getAllSources_args')
11325
    oprot.writeFieldStop()
11326
    oprot.writeStructEnd()
11327
 
11328
  def validate(self):
11329
    return
11330
 
11331
 
11332
  def __repr__(self):
11333
    L = ['%s=%r' % (key, value)
11334
      for key, value in self.__dict__.iteritems()]
11335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11336
 
11337
  def __eq__(self, other):
11338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11339
 
11340
  def __ne__(self, other):
11341
    return not (self == other)
11342
 
11343
class getAllSources_result:
11344
  """
11345
  Attributes:
11346
   - success
11347
  """
11348
 
11349
  thrift_spec = (
11350
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
11351
  )
11352
 
11353
  def __init__(self, success=None,):
11354
    self.success = success
11355
 
11356
  def read(self, iprot):
11357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11359
      return
11360
    iprot.readStructBegin()
11361
    while True:
11362
      (fname, ftype, fid) = iprot.readFieldBegin()
11363
      if ftype == TType.STOP:
11364
        break
11365
      if fid == 0:
11366
        if ftype == TType.LIST:
11367
          self.success = []
6849 kshitij.so 11368
          (_etype210, _size207) = iprot.readListBegin()
11369
          for _i211 in xrange(_size207):
11370
            _elem212 = Source()
11371
            _elem212.read(iprot)
11372
            self.success.append(_elem212)
5944 mandeep.dh 11373
          iprot.readListEnd()
11374
        else:
11375
          iprot.skip(ftype)
11376
      else:
11377
        iprot.skip(ftype)
11378
      iprot.readFieldEnd()
11379
    iprot.readStructEnd()
11380
 
11381
  def write(self, oprot):
11382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11384
      return
11385
    oprot.writeStructBegin('getAllSources_result')
11386
    if self.success is not None:
11387
      oprot.writeFieldBegin('success', TType.LIST, 0)
11388
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849 kshitij.so 11389
      for iter213 in self.success:
11390
        iter213.write(oprot)
5944 mandeep.dh 11391
      oprot.writeListEnd()
11392
      oprot.writeFieldEnd()
11393
    oprot.writeFieldStop()
11394
    oprot.writeStructEnd()
11395
 
11396
  def validate(self):
11397
    return
11398
 
11399
 
11400
  def __repr__(self):
11401
    L = ['%s=%r' % (key, value)
11402
      for key, value in self.__dict__.iteritems()]
11403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11404
 
11405
  def __eq__(self, other):
11406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11407
 
11408
  def __ne__(self, other):
11409
    return not (self == other)
11410
 
11411
class getItemPricingBySource_args:
11412
  """
11413
  Attributes:
11414
   - itemId
11415
   - sourceId
11416
  """
11417
 
11418
  thrift_spec = (
11419
    None, # 0
11420
    (1, TType.I64, 'itemId', None, None, ), # 1
11421
    (2, TType.I64, 'sourceId', None, None, ), # 2
11422
  )
11423
 
11424
  def __init__(self, itemId=None, sourceId=None,):
11425
    self.itemId = itemId
11426
    self.sourceId = sourceId
11427
 
11428
  def read(self, iprot):
11429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11431
      return
11432
    iprot.readStructBegin()
11433
    while True:
11434
      (fname, ftype, fid) = iprot.readFieldBegin()
11435
      if ftype == TType.STOP:
11436
        break
11437
      if fid == 1:
11438
        if ftype == TType.I64:
11439
          self.itemId = iprot.readI64();
11440
        else:
11441
          iprot.skip(ftype)
11442
      elif fid == 2:
11443
        if ftype == TType.I64:
11444
          self.sourceId = iprot.readI64();
11445
        else:
11446
          iprot.skip(ftype)
11447
      else:
11448
        iprot.skip(ftype)
11449
      iprot.readFieldEnd()
11450
    iprot.readStructEnd()
11451
 
11452
  def write(self, oprot):
11453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11455
      return
11456
    oprot.writeStructBegin('getItemPricingBySource_args')
11457
    if self.itemId is not None:
11458
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11459
      oprot.writeI64(self.itemId)
11460
      oprot.writeFieldEnd()
11461
    if self.sourceId is not None:
11462
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11463
      oprot.writeI64(self.sourceId)
11464
      oprot.writeFieldEnd()
11465
    oprot.writeFieldStop()
11466
    oprot.writeStructEnd()
11467
 
11468
  def validate(self):
11469
    return
11470
 
11471
 
11472
  def __repr__(self):
11473
    L = ['%s=%r' % (key, value)
11474
      for key, value in self.__dict__.iteritems()]
11475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11476
 
11477
  def __eq__(self, other):
11478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11479
 
11480
  def __ne__(self, other):
11481
    return not (self == other)
11482
 
11483
class getItemPricingBySource_result:
11484
  """
11485
  Attributes:
11486
   - success
11487
   - cex
11488
  """
11489
 
11490
  thrift_spec = (
11491
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
11492
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11493
  )
11494
 
11495
  def __init__(self, success=None, cex=None,):
11496
    self.success = success
11497
    self.cex = cex
11498
 
11499
  def read(self, iprot):
11500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11502
      return
11503
    iprot.readStructBegin()
11504
    while True:
11505
      (fname, ftype, fid) = iprot.readFieldBegin()
11506
      if ftype == TType.STOP:
11507
        break
11508
      if fid == 0:
11509
        if ftype == TType.STRUCT:
11510
          self.success = SourceItemPricing()
11511
          self.success.read(iprot)
11512
        else:
11513
          iprot.skip(ftype)
11514
      elif fid == 1:
11515
        if ftype == TType.STRUCT:
11516
          self.cex = CatalogServiceException()
11517
          self.cex.read(iprot)
11518
        else:
11519
          iprot.skip(ftype)
11520
      else:
11521
        iprot.skip(ftype)
11522
      iprot.readFieldEnd()
11523
    iprot.readStructEnd()
11524
 
11525
  def write(self, oprot):
11526
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11527
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11528
      return
11529
    oprot.writeStructBegin('getItemPricingBySource_result')
11530
    if self.success is not None:
11531
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11532
      self.success.write(oprot)
11533
      oprot.writeFieldEnd()
11534
    if self.cex is not None:
11535
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11536
      self.cex.write(oprot)
11537
      oprot.writeFieldEnd()
11538
    oprot.writeFieldStop()
11539
    oprot.writeStructEnd()
11540
 
11541
  def validate(self):
11542
    return
11543
 
11544
 
11545
  def __repr__(self):
11546
    L = ['%s=%r' % (key, value)
11547
      for key, value in self.__dict__.iteritems()]
11548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11549
 
11550
  def __eq__(self, other):
11551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11552
 
11553
  def __ne__(self, other):
11554
    return not (self == other)
11555
 
11556
class addSourceItemPricing_args:
11557
  """
11558
  Attributes:
11559
   - sourceItemPricing
11560
  """
11561
 
11562
  thrift_spec = (
11563
    None, # 0
11564
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
11565
  )
11566
 
11567
  def __init__(self, sourceItemPricing=None,):
11568
    self.sourceItemPricing = sourceItemPricing
11569
 
11570
  def read(self, iprot):
11571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11573
      return
11574
    iprot.readStructBegin()
11575
    while True:
11576
      (fname, ftype, fid) = iprot.readFieldBegin()
11577
      if ftype == TType.STOP:
11578
        break
11579
      if fid == 1:
11580
        if ftype == TType.STRUCT:
11581
          self.sourceItemPricing = SourceItemPricing()
11582
          self.sourceItemPricing.read(iprot)
11583
        else:
11584
          iprot.skip(ftype)
11585
      else:
11586
        iprot.skip(ftype)
11587
      iprot.readFieldEnd()
11588
    iprot.readStructEnd()
11589
 
11590
  def write(self, oprot):
11591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11593
      return
11594
    oprot.writeStructBegin('addSourceItemPricing_args')
11595
    if self.sourceItemPricing is not None:
11596
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
11597
      self.sourceItemPricing.write(oprot)
11598
      oprot.writeFieldEnd()
11599
    oprot.writeFieldStop()
11600
    oprot.writeStructEnd()
11601
 
11602
  def validate(self):
11603
    return
11604
 
11605
 
11606
  def __repr__(self):
11607
    L = ['%s=%r' % (key, value)
11608
      for key, value in self.__dict__.iteritems()]
11609
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11610
 
11611
  def __eq__(self, other):
11612
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11613
 
11614
  def __ne__(self, other):
11615
    return not (self == other)
11616
 
11617
class addSourceItemPricing_result:
11618
  """
11619
  Attributes:
11620
   - cex
11621
  """
11622
 
11623
  thrift_spec = (
11624
    None, # 0
11625
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11626
  )
11627
 
11628
  def __init__(self, cex=None,):
11629
    self.cex = cex
11630
 
11631
  def read(self, iprot):
11632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11634
      return
11635
    iprot.readStructBegin()
11636
    while True:
11637
      (fname, ftype, fid) = iprot.readFieldBegin()
11638
      if ftype == TType.STOP:
11639
        break
11640
      if fid == 1:
11641
        if ftype == TType.STRUCT:
11642
          self.cex = CatalogServiceException()
11643
          self.cex.read(iprot)
11644
        else:
11645
          iprot.skip(ftype)
11646
      else:
11647
        iprot.skip(ftype)
11648
      iprot.readFieldEnd()
11649
    iprot.readStructEnd()
11650
 
11651
  def write(self, oprot):
11652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11654
      return
11655
    oprot.writeStructBegin('addSourceItemPricing_result')
11656
    if self.cex is not None:
11657
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11658
      self.cex.write(oprot)
11659
      oprot.writeFieldEnd()
11660
    oprot.writeFieldStop()
11661
    oprot.writeStructEnd()
11662
 
11663
  def validate(self):
11664
    return
11665
 
11666
 
11667
  def __repr__(self):
11668
    L = ['%s=%r' % (key, value)
11669
      for key, value in self.__dict__.iteritems()]
11670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11671
 
11672
  def __eq__(self, other):
11673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11674
 
11675
  def __ne__(self, other):
11676
    return not (self == other)
11677
 
11678
class getAllSourcePricing_args:
11679
  """
11680
  Attributes:
11681
   - itemId
11682
  """
11683
 
11684
  thrift_spec = (
11685
    None, # 0
11686
    (1, TType.I64, 'itemId', None, None, ), # 1
11687
  )
11688
 
11689
  def __init__(self, itemId=None,):
11690
    self.itemId = itemId
11691
 
11692
  def read(self, iprot):
11693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11695
      return
11696
    iprot.readStructBegin()
11697
    while True:
11698
      (fname, ftype, fid) = iprot.readFieldBegin()
11699
      if ftype == TType.STOP:
11700
        break
11701
      if fid == 1:
11702
        if ftype == TType.I64:
11703
          self.itemId = iprot.readI64();
11704
        else:
11705
          iprot.skip(ftype)
11706
      else:
11707
        iprot.skip(ftype)
11708
      iprot.readFieldEnd()
11709
    iprot.readStructEnd()
11710
 
11711
  def write(self, oprot):
11712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11714
      return
11715
    oprot.writeStructBegin('getAllSourcePricing_args')
11716
    if self.itemId is not None:
11717
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11718
      oprot.writeI64(self.itemId)
11719
      oprot.writeFieldEnd()
11720
    oprot.writeFieldStop()
11721
    oprot.writeStructEnd()
11722
 
11723
  def validate(self):
11724
    return
11725
 
11726
 
11727
  def __repr__(self):
11728
    L = ['%s=%r' % (key, value)
11729
      for key, value in self.__dict__.iteritems()]
11730
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11731
 
11732
  def __eq__(self, other):
11733
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11734
 
11735
  def __ne__(self, other):
11736
    return not (self == other)
11737
 
11738
class getAllSourcePricing_result:
11739
  """
11740
  Attributes:
11741
   - success
11742
   - cex
11743
  """
11744
 
11745
  thrift_spec = (
11746
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
11747
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11748
  )
11749
 
11750
  def __init__(self, success=None, cex=None,):
11751
    self.success = success
11752
    self.cex = cex
11753
 
11754
  def read(self, iprot):
11755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11757
      return
11758
    iprot.readStructBegin()
11759
    while True:
11760
      (fname, ftype, fid) = iprot.readFieldBegin()
11761
      if ftype == TType.STOP:
11762
        break
11763
      if fid == 0:
11764
        if ftype == TType.LIST:
11765
          self.success = []
6849 kshitij.so 11766
          (_etype217, _size214) = iprot.readListBegin()
11767
          for _i218 in xrange(_size214):
11768
            _elem219 = SourceItemPricing()
11769
            _elem219.read(iprot)
11770
            self.success.append(_elem219)
5944 mandeep.dh 11771
          iprot.readListEnd()
11772
        else:
11773
          iprot.skip(ftype)
11774
      elif fid == 1:
11775
        if ftype == TType.STRUCT:
11776
          self.cex = CatalogServiceException()
11777
          self.cex.read(iprot)
11778
        else:
11779
          iprot.skip(ftype)
11780
      else:
11781
        iprot.skip(ftype)
11782
      iprot.readFieldEnd()
11783
    iprot.readStructEnd()
11784
 
11785
  def write(self, oprot):
11786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11788
      return
11789
    oprot.writeStructBegin('getAllSourcePricing_result')
11790
    if self.success is not None:
11791
      oprot.writeFieldBegin('success', TType.LIST, 0)
11792
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849 kshitij.so 11793
      for iter220 in self.success:
11794
        iter220.write(oprot)
5944 mandeep.dh 11795
      oprot.writeListEnd()
11796
      oprot.writeFieldEnd()
11797
    if self.cex is not None:
11798
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11799
      self.cex.write(oprot)
11800
      oprot.writeFieldEnd()
11801
    oprot.writeFieldStop()
11802
    oprot.writeStructEnd()
11803
 
11804
  def validate(self):
11805
    return
11806
 
11807
 
11808
  def __repr__(self):
11809
    L = ['%s=%r' % (key, value)
11810
      for key, value in self.__dict__.iteritems()]
11811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11812
 
11813
  def __eq__(self, other):
11814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11815
 
11816
  def __ne__(self, other):
11817
    return not (self == other)
11818
 
11819
class getItemForSource_args:
11820
  """
11821
  Attributes:
11822
   - item_id
11823
   - sourceId
11824
  """
11825
 
11826
  thrift_spec = (
11827
    None, # 0
11828
    (1, TType.I64, 'item_id', None, None, ), # 1
11829
    (2, TType.I64, 'sourceId', None, None, ), # 2
11830
  )
11831
 
11832
  def __init__(self, item_id=None, sourceId=None,):
11833
    self.item_id = item_id
11834
    self.sourceId = sourceId
11835
 
11836
  def read(self, iprot):
11837
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11838
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11839
      return
11840
    iprot.readStructBegin()
11841
    while True:
11842
      (fname, ftype, fid) = iprot.readFieldBegin()
11843
      if ftype == TType.STOP:
11844
        break
11845
      if fid == 1:
11846
        if ftype == TType.I64:
11847
          self.item_id = iprot.readI64();
11848
        else:
11849
          iprot.skip(ftype)
11850
      elif fid == 2:
11851
        if ftype == TType.I64:
11852
          self.sourceId = iprot.readI64();
11853
        else:
11854
          iprot.skip(ftype)
11855
      else:
11856
        iprot.skip(ftype)
11857
      iprot.readFieldEnd()
11858
    iprot.readStructEnd()
11859
 
11860
  def write(self, oprot):
11861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11863
      return
11864
    oprot.writeStructBegin('getItemForSource_args')
11865
    if self.item_id is not None:
11866
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11867
      oprot.writeI64(self.item_id)
11868
      oprot.writeFieldEnd()
11869
    if self.sourceId is not None:
11870
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11871
      oprot.writeI64(self.sourceId)
11872
      oprot.writeFieldEnd()
11873
    oprot.writeFieldStop()
11874
    oprot.writeStructEnd()
11875
 
11876
  def validate(self):
11877
    return
11878
 
11879
 
11880
  def __repr__(self):
11881
    L = ['%s=%r' % (key, value)
11882
      for key, value in self.__dict__.iteritems()]
11883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11884
 
11885
  def __eq__(self, other):
11886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11887
 
11888
  def __ne__(self, other):
11889
    return not (self == other)
11890
 
11891
class getItemForSource_result:
11892
  """
11893
  Attributes:
11894
   - success
11895
   - cex
11896
  """
11897
 
11898
  thrift_spec = (
11899
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
11900
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11901
  )
11902
 
11903
  def __init__(self, success=None, cex=None,):
11904
    self.success = success
11905
    self.cex = cex
11906
 
11907
  def read(self, iprot):
11908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11910
      return
11911
    iprot.readStructBegin()
11912
    while True:
11913
      (fname, ftype, fid) = iprot.readFieldBegin()
11914
      if ftype == TType.STOP:
11915
        break
11916
      if fid == 0:
11917
        if ftype == TType.STRUCT:
11918
          self.success = Item()
11919
          self.success.read(iprot)
11920
        else:
11921
          iprot.skip(ftype)
11922
      elif fid == 1:
11923
        if ftype == TType.STRUCT:
11924
          self.cex = CatalogServiceException()
11925
          self.cex.read(iprot)
11926
        else:
11927
          iprot.skip(ftype)
11928
      else:
11929
        iprot.skip(ftype)
11930
      iprot.readFieldEnd()
11931
    iprot.readStructEnd()
11932
 
11933
  def write(self, oprot):
11934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11936
      return
11937
    oprot.writeStructBegin('getItemForSource_result')
11938
    if self.success is not None:
11939
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11940
      self.success.write(oprot)
11941
      oprot.writeFieldEnd()
11942
    if self.cex is not None:
11943
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11944
      self.cex.write(oprot)
11945
      oprot.writeFieldEnd()
11946
    oprot.writeFieldStop()
11947
    oprot.writeStructEnd()
11948
 
11949
  def validate(self):
11950
    return
11951
 
11952
 
11953
  def __repr__(self):
11954
    L = ['%s=%r' % (key, value)
11955
      for key, value in self.__dict__.iteritems()]
11956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11957
 
11958
  def __eq__(self, other):
11959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11960
 
11961
  def __ne__(self, other):
11962
    return not (self == other)
11963
 
11964
class searchItemsInRange_args:
11965
  """
11966
  Attributes:
11967
   - searchTerms
11968
   - offset
11969
   - limit
11970
  """
11971
 
11972
  thrift_spec = (
11973
    None, # 0
11974
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11975
    (2, TType.I64, 'offset', None, None, ), # 2
11976
    (3, TType.I64, 'limit', None, None, ), # 3
11977
  )
11978
 
11979
  def __init__(self, searchTerms=None, offset=None, limit=None,):
11980
    self.searchTerms = searchTerms
11981
    self.offset = offset
11982
    self.limit = limit
11983
 
11984
  def read(self, iprot):
11985
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11986
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11987
      return
11988
    iprot.readStructBegin()
11989
    while True:
11990
      (fname, ftype, fid) = iprot.readFieldBegin()
11991
      if ftype == TType.STOP:
11992
        break
11993
      if fid == 1:
11994
        if ftype == TType.LIST:
11995
          self.searchTerms = []
6849 kshitij.so 11996
          (_etype224, _size221) = iprot.readListBegin()
11997
          for _i225 in xrange(_size221):
11998
            _elem226 = iprot.readString();
11999
            self.searchTerms.append(_elem226)
5944 mandeep.dh 12000
          iprot.readListEnd()
12001
        else:
12002
          iprot.skip(ftype)
12003
      elif fid == 2:
12004
        if ftype == TType.I64:
12005
          self.offset = iprot.readI64();
12006
        else:
12007
          iprot.skip(ftype)
12008
      elif fid == 3:
12009
        if ftype == TType.I64:
12010
          self.limit = iprot.readI64();
12011
        else:
12012
          iprot.skip(ftype)
12013
      else:
12014
        iprot.skip(ftype)
12015
      iprot.readFieldEnd()
12016
    iprot.readStructEnd()
12017
 
12018
  def write(self, oprot):
12019
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12020
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12021
      return
12022
    oprot.writeStructBegin('searchItemsInRange_args')
12023
    if self.searchTerms is not None:
12024
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
12025
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6849 kshitij.so 12026
      for iter227 in self.searchTerms:
12027
        oprot.writeString(iter227)
5944 mandeep.dh 12028
      oprot.writeListEnd()
12029
      oprot.writeFieldEnd()
12030
    if self.offset is not None:
12031
      oprot.writeFieldBegin('offset', TType.I64, 2)
12032
      oprot.writeI64(self.offset)
12033
      oprot.writeFieldEnd()
12034
    if self.limit is not None:
12035
      oprot.writeFieldBegin('limit', TType.I64, 3)
12036
      oprot.writeI64(self.limit)
12037
      oprot.writeFieldEnd()
12038
    oprot.writeFieldStop()
12039
    oprot.writeStructEnd()
12040
 
12041
  def validate(self):
12042
    return
12043
 
12044
 
12045
  def __repr__(self):
12046
    L = ['%s=%r' % (key, value)
12047
      for key, value in self.__dict__.iteritems()]
12048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12049
 
12050
  def __eq__(self, other):
12051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12052
 
12053
  def __ne__(self, other):
12054
    return not (self == other)
12055
 
12056
class searchItemsInRange_result:
12057
  """
12058
  Attributes:
12059
   - success
12060
  """
12061
 
12062
  thrift_spec = (
12063
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12064
  )
12065
 
12066
  def __init__(self, success=None,):
12067
    self.success = success
12068
 
12069
  def read(self, iprot):
12070
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12071
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12072
      return
12073
    iprot.readStructBegin()
12074
    while True:
12075
      (fname, ftype, fid) = iprot.readFieldBegin()
12076
      if ftype == TType.STOP:
12077
        break
12078
      if fid == 0:
12079
        if ftype == TType.LIST:
12080
          self.success = []
6849 kshitij.so 12081
          (_etype231, _size228) = iprot.readListBegin()
12082
          for _i232 in xrange(_size228):
12083
            _elem233 = Item()
12084
            _elem233.read(iprot)
12085
            self.success.append(_elem233)
5944 mandeep.dh 12086
          iprot.readListEnd()
12087
        else:
12088
          iprot.skip(ftype)
12089
      else:
12090
        iprot.skip(ftype)
12091
      iprot.readFieldEnd()
12092
    iprot.readStructEnd()
12093
 
12094
  def write(self, oprot):
12095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12097
      return
12098
    oprot.writeStructBegin('searchItemsInRange_result')
12099
    if self.success is not None:
12100
      oprot.writeFieldBegin('success', TType.LIST, 0)
12101
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849 kshitij.so 12102
      for iter234 in self.success:
12103
        iter234.write(oprot)
5944 mandeep.dh 12104
      oprot.writeListEnd()
12105
      oprot.writeFieldEnd()
12106
    oprot.writeFieldStop()
12107
    oprot.writeStructEnd()
12108
 
12109
  def validate(self):
12110
    return
12111
 
12112
 
12113
  def __repr__(self):
12114
    L = ['%s=%r' % (key, value)
12115
      for key, value in self.__dict__.iteritems()]
12116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12117
 
12118
  def __eq__(self, other):
12119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12120
 
12121
  def __ne__(self, other):
12122
    return not (self == other)
12123
 
12124
class getSearchResultCount_args:
12125
  """
12126
  Attributes:
12127
   - searchTerms
12128
  """
12129
 
12130
  thrift_spec = (
12131
    None, # 0
12132
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
12133
  )
12134
 
12135
  def __init__(self, searchTerms=None,):
12136
    self.searchTerms = searchTerms
12137
 
12138
  def read(self, iprot):
12139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12141
      return
12142
    iprot.readStructBegin()
12143
    while True:
12144
      (fname, ftype, fid) = iprot.readFieldBegin()
12145
      if ftype == TType.STOP:
12146
        break
12147
      if fid == 1:
12148
        if ftype == TType.LIST:
12149
          self.searchTerms = []
6849 kshitij.so 12150
          (_etype238, _size235) = iprot.readListBegin()
12151
          for _i239 in xrange(_size235):
12152
            _elem240 = iprot.readString();
12153
            self.searchTerms.append(_elem240)
5944 mandeep.dh 12154
          iprot.readListEnd()
12155
        else:
12156
          iprot.skip(ftype)
12157
      else:
12158
        iprot.skip(ftype)
12159
      iprot.readFieldEnd()
12160
    iprot.readStructEnd()
12161
 
12162
  def write(self, oprot):
12163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12165
      return
12166
    oprot.writeStructBegin('getSearchResultCount_args')
12167
    if self.searchTerms is not None:
12168
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
12169
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6849 kshitij.so 12170
      for iter241 in self.searchTerms:
12171
        oprot.writeString(iter241)
5944 mandeep.dh 12172
      oprot.writeListEnd()
12173
      oprot.writeFieldEnd()
12174
    oprot.writeFieldStop()
12175
    oprot.writeStructEnd()
12176
 
12177
  def validate(self):
12178
    return
12179
 
12180
 
12181
  def __repr__(self):
12182
    L = ['%s=%r' % (key, value)
12183
      for key, value in self.__dict__.iteritems()]
12184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12185
 
12186
  def __eq__(self, other):
12187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12188
 
12189
  def __ne__(self, other):
12190
    return not (self == other)
12191
 
12192
class getSearchResultCount_result:
12193
  """
12194
  Attributes:
12195
   - success
12196
  """
12197
 
12198
  thrift_spec = (
12199
    (0, TType.I32, 'success', None, None, ), # 0
12200
  )
12201
 
12202
  def __init__(self, success=None,):
12203
    self.success = success
12204
 
12205
  def read(self, iprot):
12206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12208
      return
12209
    iprot.readStructBegin()
12210
    while True:
12211
      (fname, ftype, fid) = iprot.readFieldBegin()
12212
      if ftype == TType.STOP:
12213
        break
12214
      if fid == 0:
12215
        if ftype == TType.I32:
12216
          self.success = iprot.readI32();
12217
        else:
12218
          iprot.skip(ftype)
12219
      else:
12220
        iprot.skip(ftype)
12221
      iprot.readFieldEnd()
12222
    iprot.readStructEnd()
12223
 
12224
  def write(self, oprot):
12225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12227
      return
12228
    oprot.writeStructBegin('getSearchResultCount_result')
12229
    if self.success is not None:
12230
      oprot.writeFieldBegin('success', TType.I32, 0)
12231
      oprot.writeI32(self.success)
12232
      oprot.writeFieldEnd()
12233
    oprot.writeFieldStop()
12234
    oprot.writeStructEnd()
12235
 
12236
  def validate(self):
12237
    return
12238
 
12239
 
12240
  def __repr__(self):
12241
    L = ['%s=%r' % (key, value)
12242
      for key, value in self.__dict__.iteritems()]
12243
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12244
 
12245
  def __eq__(self, other):
12246
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12247
 
12248
  def __ne__(self, other):
12249
    return not (self == other)
12250
 
12251
class getProductNotifications_args:
12252
  """
12253
  Attributes:
12254
   - startDateTime
12255
  """
12256
 
12257
  thrift_spec = (
12258
    None, # 0
12259
    (1, TType.I64, 'startDateTime', None, None, ), # 1
12260
  )
12261
 
12262
  def __init__(self, startDateTime=None,):
12263
    self.startDateTime = startDateTime
12264
 
12265
  def read(self, iprot):
12266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12268
      return
12269
    iprot.readStructBegin()
12270
    while True:
12271
      (fname, ftype, fid) = iprot.readFieldBegin()
12272
      if ftype == TType.STOP:
12273
        break
12274
      if fid == 1:
12275
        if ftype == TType.I64:
12276
          self.startDateTime = iprot.readI64();
12277
        else:
12278
          iprot.skip(ftype)
12279
      else:
12280
        iprot.skip(ftype)
12281
      iprot.readFieldEnd()
12282
    iprot.readStructEnd()
12283
 
12284
  def write(self, oprot):
12285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12287
      return
12288
    oprot.writeStructBegin('getProductNotifications_args')
12289
    if self.startDateTime is not None:
12290
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
12291
      oprot.writeI64(self.startDateTime)
12292
      oprot.writeFieldEnd()
12293
    oprot.writeFieldStop()
12294
    oprot.writeStructEnd()
12295
 
12296
  def validate(self):
12297
    return
12298
 
12299
 
12300
  def __repr__(self):
12301
    L = ['%s=%r' % (key, value)
12302
      for key, value in self.__dict__.iteritems()]
12303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12304
 
12305
  def __eq__(self, other):
12306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12307
 
12308
  def __ne__(self, other):
12309
    return not (self == other)
12310
 
12311
class getProductNotifications_result:
12312
  """
12313
  Attributes:
12314
   - success
12315
  """
12316
 
12317
  thrift_spec = (
12318
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
12319
  )
12320
 
12321
  def __init__(self, success=None,):
12322
    self.success = success
12323
 
12324
  def read(self, iprot):
12325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12327
      return
12328
    iprot.readStructBegin()
12329
    while True:
12330
      (fname, ftype, fid) = iprot.readFieldBegin()
12331
      if ftype == TType.STOP:
12332
        break
12333
      if fid == 0:
12334
        if ftype == TType.LIST:
12335
          self.success = []
6849 kshitij.so 12336
          (_etype245, _size242) = iprot.readListBegin()
12337
          for _i246 in xrange(_size242):
12338
            _elem247 = ProductNotificationRequest()
12339
            _elem247.read(iprot)
12340
            self.success.append(_elem247)
5944 mandeep.dh 12341
          iprot.readListEnd()
12342
        else:
12343
          iprot.skip(ftype)
12344
      else:
12345
        iprot.skip(ftype)
12346
      iprot.readFieldEnd()
12347
    iprot.readStructEnd()
12348
 
12349
  def write(self, oprot):
12350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12352
      return
12353
    oprot.writeStructBegin('getProductNotifications_result')
12354
    if self.success is not None:
12355
      oprot.writeFieldBegin('success', TType.LIST, 0)
12356
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849 kshitij.so 12357
      for iter248 in self.success:
12358
        iter248.write(oprot)
5944 mandeep.dh 12359
      oprot.writeListEnd()
12360
      oprot.writeFieldEnd()
12361
    oprot.writeFieldStop()
12362
    oprot.writeStructEnd()
12363
 
12364
  def validate(self):
12365
    return
12366
 
12367
 
12368
  def __repr__(self):
12369
    L = ['%s=%r' % (key, value)
12370
      for key, value in self.__dict__.iteritems()]
12371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12372
 
12373
  def __eq__(self, other):
12374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12375
 
12376
  def __ne__(self, other):
12377
    return not (self == other)
12378
 
12379
class getProductNotificationRequestCount_args:
12380
  """
12381
  Attributes:
12382
   - startDateTime
12383
  """
12384
 
12385
  thrift_spec = (
12386
    None, # 0
12387
    (1, TType.I64, 'startDateTime', None, None, ), # 1
12388
  )
12389
 
12390
  def __init__(self, startDateTime=None,):
12391
    self.startDateTime = startDateTime
12392
 
12393
  def read(self, iprot):
12394
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12395
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12396
      return
12397
    iprot.readStructBegin()
12398
    while True:
12399
      (fname, ftype, fid) = iprot.readFieldBegin()
12400
      if ftype == TType.STOP:
12401
        break
12402
      if fid == 1:
12403
        if ftype == TType.I64:
12404
          self.startDateTime = iprot.readI64();
12405
        else:
12406
          iprot.skip(ftype)
12407
      else:
12408
        iprot.skip(ftype)
12409
      iprot.readFieldEnd()
12410
    iprot.readStructEnd()
12411
 
12412
  def write(self, oprot):
12413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12415
      return
12416
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
12417
    if self.startDateTime is not None:
12418
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
12419
      oprot.writeI64(self.startDateTime)
12420
      oprot.writeFieldEnd()
12421
    oprot.writeFieldStop()
12422
    oprot.writeStructEnd()
12423
 
12424
  def validate(self):
12425
    return
12426
 
12427
 
12428
  def __repr__(self):
12429
    L = ['%s=%r' % (key, value)
12430
      for key, value in self.__dict__.iteritems()]
12431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12432
 
12433
  def __eq__(self, other):
12434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12435
 
12436
  def __ne__(self, other):
12437
    return not (self == other)
12438
 
12439
class getProductNotificationRequestCount_result:
12440
  """
12441
  Attributes:
12442
   - success
12443
  """
12444
 
12445
  thrift_spec = (
12446
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
12447
  )
12448
 
12449
  def __init__(self, success=None,):
12450
    self.success = success
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 == 0:
12462
        if ftype == TType.LIST:
12463
          self.success = []
6849 kshitij.so 12464
          (_etype252, _size249) = iprot.readListBegin()
12465
          for _i253 in xrange(_size249):
12466
            _elem254 = ProductNotificationRequestCount()
12467
            _elem254.read(iprot)
12468
            self.success.append(_elem254)
5944 mandeep.dh 12469
          iprot.readListEnd()
12470
        else:
12471
          iprot.skip(ftype)
12472
      else:
12473
        iprot.skip(ftype)
12474
      iprot.readFieldEnd()
12475
    iprot.readStructEnd()
12476
 
12477
  def write(self, oprot):
12478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12480
      return
12481
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
12482
    if self.success is not None:
12483
      oprot.writeFieldBegin('success', TType.LIST, 0)
12484
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849 kshitij.so 12485
      for iter255 in self.success:
12486
        iter255.write(oprot)
5944 mandeep.dh 12487
      oprot.writeListEnd()
12488
      oprot.writeFieldEnd()
12489
    oprot.writeFieldStop()
12490
    oprot.writeStructEnd()
12491
 
12492
  def validate(self):
12493
    return
12494
 
12495
 
12496
  def __repr__(self):
12497
    L = ['%s=%r' % (key, value)
12498
      for key, value in self.__dict__.iteritems()]
12499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12500
 
12501
  def __eq__(self, other):
12502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12503
 
12504
  def __ne__(self, other):
12505
    return not (self == other)
12506
 
12507
class addAuthorizationLog_args:
12508
  """
12509
  Attributes:
12510
   - itemId
12511
   - username
12512
   - reason
12513
  """
12514
 
12515
  thrift_spec = (
12516
    None, # 0
12517
    (1, TType.I64, 'itemId', None, None, ), # 1
12518
    (2, TType.STRING, 'username', None, None, ), # 2
12519
    (3, TType.STRING, 'reason', None, None, ), # 3
12520
  )
12521
 
12522
  def __init__(self, itemId=None, username=None, reason=None,):
12523
    self.itemId = itemId
12524
    self.username = username
12525
    self.reason = reason
12526
 
12527
  def read(self, iprot):
12528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12530
      return
12531
    iprot.readStructBegin()
12532
    while True:
12533
      (fname, ftype, fid) = iprot.readFieldBegin()
12534
      if ftype == TType.STOP:
12535
        break
12536
      if fid == 1:
12537
        if ftype == TType.I64:
12538
          self.itemId = iprot.readI64();
12539
        else:
12540
          iprot.skip(ftype)
12541
      elif fid == 2:
12542
        if ftype == TType.STRING:
12543
          self.username = iprot.readString();
12544
        else:
12545
          iprot.skip(ftype)
12546
      elif fid == 3:
12547
        if ftype == TType.STRING:
12548
          self.reason = iprot.readString();
12549
        else:
12550
          iprot.skip(ftype)
12551
      else:
12552
        iprot.skip(ftype)
12553
      iprot.readFieldEnd()
12554
    iprot.readStructEnd()
12555
 
12556
  def write(self, oprot):
12557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12559
      return
12560
    oprot.writeStructBegin('addAuthorizationLog_args')
12561
    if self.itemId is not None:
12562
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12563
      oprot.writeI64(self.itemId)
12564
      oprot.writeFieldEnd()
12565
    if self.username is not None:
12566
      oprot.writeFieldBegin('username', TType.STRING, 2)
12567
      oprot.writeString(self.username)
12568
      oprot.writeFieldEnd()
12569
    if self.reason is not None:
12570
      oprot.writeFieldBegin('reason', TType.STRING, 3)
12571
      oprot.writeString(self.reason)
12572
      oprot.writeFieldEnd()
12573
    oprot.writeFieldStop()
12574
    oprot.writeStructEnd()
12575
 
12576
  def validate(self):
12577
    return
12578
 
12579
 
12580
  def __repr__(self):
12581
    L = ['%s=%r' % (key, value)
12582
      for key, value in self.__dict__.iteritems()]
12583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12584
 
12585
  def __eq__(self, other):
12586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12587
 
12588
  def __ne__(self, other):
12589
    return not (self == other)
12590
 
12591
class addAuthorizationLog_result:
12592
  """
12593
  Attributes:
12594
   - success
12595
   - cex
12596
  """
12597
 
12598
  thrift_spec = (
12599
    (0, TType.BOOL, 'success', None, None, ), # 0
12600
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12601
  )
12602
 
12603
  def __init__(self, success=None, cex=None,):
12604
    self.success = success
12605
    self.cex = cex
12606
 
12607
  def read(self, iprot):
12608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12610
      return
12611
    iprot.readStructBegin()
12612
    while True:
12613
      (fname, ftype, fid) = iprot.readFieldBegin()
12614
      if ftype == TType.STOP:
12615
        break
12616
      if fid == 0:
12617
        if ftype == TType.BOOL:
12618
          self.success = iprot.readBool();
12619
        else:
12620
          iprot.skip(ftype)
12621
      elif fid == 1:
12622
        if ftype == TType.STRUCT:
12623
          self.cex = CatalogServiceException()
12624
          self.cex.read(iprot)
12625
        else:
12626
          iprot.skip(ftype)
12627
      else:
12628
        iprot.skip(ftype)
12629
      iprot.readFieldEnd()
12630
    iprot.readStructEnd()
12631
 
12632
  def write(self, oprot):
12633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12635
      return
12636
    oprot.writeStructBegin('addAuthorizationLog_result')
12637
    if self.success is not None:
12638
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12639
      oprot.writeBool(self.success)
12640
      oprot.writeFieldEnd()
12641
    if self.cex is not None:
12642
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12643
      self.cex.write(oprot)
12644
      oprot.writeFieldEnd()
12645
    oprot.writeFieldStop()
12646
    oprot.writeStructEnd()
12647
 
12648
  def validate(self):
12649
    return
12650
 
12651
 
12652
  def __repr__(self):
12653
    L = ['%s=%r' % (key, value)
12654
      for key, value in self.__dict__.iteritems()]
12655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12656
 
12657
  def __eq__(self, other):
12658
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12659
 
12660
  def __ne__(self, other):
12661
    return not (self == other)
12662
 
12663
class getClearanceSaleCatalogIds_args:
12664
 
12665
  thrift_spec = (
12666
  )
12667
 
12668
  def read(self, iprot):
12669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12671
      return
12672
    iprot.readStructBegin()
12673
    while True:
12674
      (fname, ftype, fid) = iprot.readFieldBegin()
12675
      if ftype == TType.STOP:
12676
        break
12677
      else:
12678
        iprot.skip(ftype)
12679
      iprot.readFieldEnd()
12680
    iprot.readStructEnd()
12681
 
12682
  def write(self, oprot):
12683
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12684
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12685
      return
12686
    oprot.writeStructBegin('getClearanceSaleCatalogIds_args')
12687
    oprot.writeFieldStop()
12688
    oprot.writeStructEnd()
12689
 
12690
  def validate(self):
12691
    return
12692
 
12693
 
12694
  def __repr__(self):
12695
    L = ['%s=%r' % (key, value)
12696
      for key, value in self.__dict__.iteritems()]
12697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12698
 
12699
  def __eq__(self, other):
12700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12701
 
12702
  def __ne__(self, other):
12703
    return not (self == other)
12704
 
12705
class getClearanceSaleCatalogIds_result:
12706
  """
12707
  Attributes:
12708
   - success
12709
   - cex
12710
  """
12711
 
12712
  thrift_spec = (
12713
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12714
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12715
  )
12716
 
12717
  def __init__(self, success=None, cex=None,):
12718
    self.success = success
12719
    self.cex = cex
12720
 
12721
  def read(self, iprot):
12722
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12723
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12724
      return
12725
    iprot.readStructBegin()
12726
    while True:
12727
      (fname, ftype, fid) = iprot.readFieldBegin()
12728
      if ftype == TType.STOP:
12729
        break
12730
      if fid == 0:
12731
        if ftype == TType.LIST:
12732
          self.success = []
6849 kshitij.so 12733
          (_etype259, _size256) = iprot.readListBegin()
12734
          for _i260 in xrange(_size256):
12735
            _elem261 = iprot.readI64();
12736
            self.success.append(_elem261)
5944 mandeep.dh 12737
          iprot.readListEnd()
12738
        else:
12739
          iprot.skip(ftype)
12740
      elif fid == 1:
12741
        if ftype == TType.STRUCT:
12742
          self.cex = CatalogServiceException()
12743
          self.cex.read(iprot)
12744
        else:
12745
          iprot.skip(ftype)
12746
      else:
12747
        iprot.skip(ftype)
12748
      iprot.readFieldEnd()
12749
    iprot.readStructEnd()
12750
 
12751
  def write(self, oprot):
12752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12754
      return
12755
    oprot.writeStructBegin('getClearanceSaleCatalogIds_result')
12756
    if self.success is not None:
12757
      oprot.writeFieldBegin('success', TType.LIST, 0)
12758
      oprot.writeListBegin(TType.I64, len(self.success))
6849 kshitij.so 12759
      for iter262 in self.success:
12760
        oprot.writeI64(iter262)
5944 mandeep.dh 12761
      oprot.writeListEnd()
12762
      oprot.writeFieldEnd()
12763
    if self.cex is not None:
12764
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12765
      self.cex.write(oprot)
12766
      oprot.writeFieldEnd()
12767
    oprot.writeFieldStop()
12768
    oprot.writeStructEnd()
12769
 
12770
  def validate(self):
12771
    return
12772
 
12773
 
12774
  def __repr__(self):
12775
    L = ['%s=%r' % (key, value)
12776
      for key, value in self.__dict__.iteritems()]
12777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12778
 
12779
  def __eq__(self, other):
12780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12781
 
12782
  def __ne__(self, other):
12783
    return not (self == other)
12784
 
12785
class addupdateVoucherForItem_args:
12786
  """
12787
  Attributes:
12788
   - catalog_item_id
12789
   - voucherType
12790
   - voucherAmount
12791
  """
12792
 
12793
  thrift_spec = (
12794
    None, # 0
12795
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12796
    (2, TType.I64, 'voucherType', None, None, ), # 2
12797
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
12798
  )
12799
 
12800
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
12801
    self.catalog_item_id = catalog_item_id
12802
    self.voucherType = voucherType
12803
    self.voucherAmount = voucherAmount
12804
 
12805
  def read(self, iprot):
12806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12808
      return
12809
    iprot.readStructBegin()
12810
    while True:
12811
      (fname, ftype, fid) = iprot.readFieldBegin()
12812
      if ftype == TType.STOP:
12813
        break
12814
      if fid == 1:
12815
        if ftype == TType.I64:
12816
          self.catalog_item_id = iprot.readI64();
12817
        else:
12818
          iprot.skip(ftype)
12819
      elif fid == 2:
12820
        if ftype == TType.I64:
12821
          self.voucherType = iprot.readI64();
12822
        else:
12823
          iprot.skip(ftype)
12824
      elif fid == 3:
12825
        if ftype == TType.I64:
12826
          self.voucherAmount = iprot.readI64();
12827
        else:
12828
          iprot.skip(ftype)
12829
      else:
12830
        iprot.skip(ftype)
12831
      iprot.readFieldEnd()
12832
    iprot.readStructEnd()
12833
 
12834
  def write(self, oprot):
12835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12837
      return
12838
    oprot.writeStructBegin('addupdateVoucherForItem_args')
12839
    if self.catalog_item_id is not None:
12840
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12841
      oprot.writeI64(self.catalog_item_id)
12842
      oprot.writeFieldEnd()
12843
    if self.voucherType is not None:
12844
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12845
      oprot.writeI64(self.voucherType)
12846
      oprot.writeFieldEnd()
12847
    if self.voucherAmount is not None:
12848
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
12849
      oprot.writeI64(self.voucherAmount)
12850
      oprot.writeFieldEnd()
12851
    oprot.writeFieldStop()
12852
    oprot.writeStructEnd()
12853
 
12854
  def validate(self):
12855
    return
12856
 
12857
 
12858
  def __repr__(self):
12859
    L = ['%s=%r' % (key, value)
12860
      for key, value in self.__dict__.iteritems()]
12861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12862
 
12863
  def __eq__(self, other):
12864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12865
 
12866
  def __ne__(self, other):
12867
    return not (self == other)
12868
 
12869
class addupdateVoucherForItem_result:
12870
  """
12871
  Attributes:
12872
   - success
12873
   - cex
12874
  """
12875
 
12876
  thrift_spec = (
12877
    (0, TType.BOOL, 'success', None, None, ), # 0
12878
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12879
  )
12880
 
12881
  def __init__(self, success=None, cex=None,):
12882
    self.success = success
12883
    self.cex = cex
12884
 
12885
  def read(self, iprot):
12886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12888
      return
12889
    iprot.readStructBegin()
12890
    while True:
12891
      (fname, ftype, fid) = iprot.readFieldBegin()
12892
      if ftype == TType.STOP:
12893
        break
12894
      if fid == 0:
12895
        if ftype == TType.BOOL:
12896
          self.success = iprot.readBool();
12897
        else:
12898
          iprot.skip(ftype)
12899
      elif fid == 1:
12900
        if ftype == TType.STRUCT:
12901
          self.cex = CatalogServiceException()
12902
          self.cex.read(iprot)
12903
        else:
12904
          iprot.skip(ftype)
12905
      else:
12906
        iprot.skip(ftype)
12907
      iprot.readFieldEnd()
12908
    iprot.readStructEnd()
12909
 
12910
  def write(self, oprot):
12911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12913
      return
12914
    oprot.writeStructBegin('addupdateVoucherForItem_result')
12915
    if self.success is not None:
12916
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12917
      oprot.writeBool(self.success)
12918
      oprot.writeFieldEnd()
12919
    if self.cex is not None:
12920
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12921
      self.cex.write(oprot)
12922
      oprot.writeFieldEnd()
12923
    oprot.writeFieldStop()
12924
    oprot.writeStructEnd()
12925
 
12926
  def validate(self):
12927
    return
12928
 
12929
 
12930
  def __repr__(self):
12931
    L = ['%s=%r' % (key, value)
12932
      for key, value in self.__dict__.iteritems()]
12933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12934
 
12935
  def __eq__(self, other):
12936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12937
 
12938
  def __ne__(self, other):
12939
    return not (self == other)
12940
 
12941
class deleteVoucherForItem_args:
12942
  """
12943
  Attributes:
12944
   - catalog_item_id
12945
   - voucherType
12946
  """
12947
 
12948
  thrift_spec = (
12949
    None, # 0
12950
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12951
    (2, TType.I64, 'voucherType', None, None, ), # 2
12952
  )
12953
 
12954
  def __init__(self, catalog_item_id=None, voucherType=None,):
12955
    self.catalog_item_id = catalog_item_id
12956
    self.voucherType = voucherType
12957
 
12958
  def read(self, iprot):
12959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12961
      return
12962
    iprot.readStructBegin()
12963
    while True:
12964
      (fname, ftype, fid) = iprot.readFieldBegin()
12965
      if ftype == TType.STOP:
12966
        break
12967
      if fid == 1:
12968
        if ftype == TType.I64:
12969
          self.catalog_item_id = iprot.readI64();
12970
        else:
12971
          iprot.skip(ftype)
12972
      elif fid == 2:
12973
        if ftype == TType.I64:
12974
          self.voucherType = iprot.readI64();
12975
        else:
12976
          iprot.skip(ftype)
12977
      else:
12978
        iprot.skip(ftype)
12979
      iprot.readFieldEnd()
12980
    iprot.readStructEnd()
12981
 
12982
  def write(self, oprot):
12983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12985
      return
12986
    oprot.writeStructBegin('deleteVoucherForItem_args')
12987
    if self.catalog_item_id is not None:
12988
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12989
      oprot.writeI64(self.catalog_item_id)
12990
      oprot.writeFieldEnd()
12991
    if self.voucherType is not None:
12992
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12993
      oprot.writeI64(self.voucherType)
12994
      oprot.writeFieldEnd()
12995
    oprot.writeFieldStop()
12996
    oprot.writeStructEnd()
12997
 
12998
  def validate(self):
12999
    return
13000
 
13001
 
13002
  def __repr__(self):
13003
    L = ['%s=%r' % (key, value)
13004
      for key, value in self.__dict__.iteritems()]
13005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13006
 
13007
  def __eq__(self, other):
13008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13009
 
13010
  def __ne__(self, other):
13011
    return not (self == other)
13012
 
13013
class deleteVoucherForItem_result:
13014
  """
13015
  Attributes:
13016
   - success
13017
   - cex
13018
  """
13019
 
13020
  thrift_spec = (
13021
    (0, TType.BOOL, 'success', None, None, ), # 0
13022
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13023
  )
13024
 
13025
  def __init__(self, success=None, cex=None,):
13026
    self.success = success
13027
    self.cex = cex
13028
 
13029
  def read(self, iprot):
13030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13032
      return
13033
    iprot.readStructBegin()
13034
    while True:
13035
      (fname, ftype, fid) = iprot.readFieldBegin()
13036
      if ftype == TType.STOP:
13037
        break
13038
      if fid == 0:
13039
        if ftype == TType.BOOL:
13040
          self.success = iprot.readBool();
13041
        else:
13042
          iprot.skip(ftype)
13043
      elif fid == 1:
13044
        if ftype == TType.STRUCT:
13045
          self.cex = CatalogServiceException()
13046
          self.cex.read(iprot)
13047
        else:
13048
          iprot.skip(ftype)
13049
      else:
13050
        iprot.skip(ftype)
13051
      iprot.readFieldEnd()
13052
    iprot.readStructEnd()
13053
 
13054
  def write(self, oprot):
13055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13057
      return
13058
    oprot.writeStructBegin('deleteVoucherForItem_result')
13059
    if self.success is not None:
13060
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13061
      oprot.writeBool(self.success)
13062
      oprot.writeFieldEnd()
13063
    if self.cex is not None:
13064
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13065
      self.cex.write(oprot)
13066
      oprot.writeFieldEnd()
13067
    oprot.writeFieldStop()
13068
    oprot.writeStructEnd()
13069
 
13070
  def validate(self):
13071
    return
13072
 
13073
 
13074
  def __repr__(self):
13075
    L = ['%s=%r' % (key, value)
13076
      for key, value in self.__dict__.iteritems()]
13077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13078
 
13079
  def __eq__(self, other):
13080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13081
 
13082
  def __ne__(self, other):
13083
    return not (self == other)
13084
 
13085
class getVoucherAmount_args:
13086
  """
13087
  Attributes:
13088
   - itemId
13089
   - voucherType
13090
  """
13091
 
13092
  thrift_spec = (
13093
    None, # 0
13094
    (1, TType.I64, 'itemId', None, None, ), # 1
13095
    (2, TType.I64, 'voucherType', None, None, ), # 2
13096
  )
13097
 
13098
  def __init__(self, itemId=None, voucherType=None,):
13099
    self.itemId = itemId
13100
    self.voucherType = voucherType
13101
 
13102
  def read(self, iprot):
13103
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13104
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13105
      return
13106
    iprot.readStructBegin()
13107
    while True:
13108
      (fname, ftype, fid) = iprot.readFieldBegin()
13109
      if ftype == TType.STOP:
13110
        break
13111
      if fid == 1:
13112
        if ftype == TType.I64:
13113
          self.itemId = iprot.readI64();
13114
        else:
13115
          iprot.skip(ftype)
13116
      elif fid == 2:
13117
        if ftype == TType.I64:
13118
          self.voucherType = iprot.readI64();
13119
        else:
13120
          iprot.skip(ftype)
13121
      else:
13122
        iprot.skip(ftype)
13123
      iprot.readFieldEnd()
13124
    iprot.readStructEnd()
13125
 
13126
  def write(self, oprot):
13127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13129
      return
13130
    oprot.writeStructBegin('getVoucherAmount_args')
13131
    if self.itemId is not None:
13132
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13133
      oprot.writeI64(self.itemId)
13134
      oprot.writeFieldEnd()
13135
    if self.voucherType is not None:
13136
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13137
      oprot.writeI64(self.voucherType)
13138
      oprot.writeFieldEnd()
13139
    oprot.writeFieldStop()
13140
    oprot.writeStructEnd()
13141
 
13142
  def validate(self):
13143
    return
13144
 
13145
 
13146
  def __repr__(self):
13147
    L = ['%s=%r' % (key, value)
13148
      for key, value in self.__dict__.iteritems()]
13149
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13150
 
13151
  def __eq__(self, other):
13152
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13153
 
13154
  def __ne__(self, other):
13155
    return not (self == other)
13156
 
13157
class getVoucherAmount_result:
13158
  """
13159
  Attributes:
13160
   - success
13161
  """
13162
 
13163
  thrift_spec = (
13164
    (0, TType.I64, 'success', None, None, ), # 0
13165
  )
13166
 
13167
  def __init__(self, success=None,):
13168
    self.success = success
13169
 
13170
  def read(self, iprot):
13171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13173
      return
13174
    iprot.readStructBegin()
13175
    while True:
13176
      (fname, ftype, fid) = iprot.readFieldBegin()
13177
      if ftype == TType.STOP:
13178
        break
13179
      if fid == 0:
13180
        if ftype == TType.I64:
13181
          self.success = iprot.readI64();
13182
        else:
13183
          iprot.skip(ftype)
13184
      else:
13185
        iprot.skip(ftype)
13186
      iprot.readFieldEnd()
13187
    iprot.readStructEnd()
13188
 
13189
  def write(self, oprot):
13190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13192
      return
13193
    oprot.writeStructBegin('getVoucherAmount_result')
13194
    if self.success is not None:
13195
      oprot.writeFieldBegin('success', TType.I64, 0)
13196
      oprot.writeI64(self.success)
13197
      oprot.writeFieldEnd()
13198
    oprot.writeFieldStop()
13199
    oprot.writeStructEnd()
13200
 
13201
  def validate(self):
13202
    return
13203
 
13204
 
13205
  def __repr__(self):
13206
    L = ['%s=%r' % (key, value)
13207
      for key, value in self.__dict__.iteritems()]
13208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13209
 
13210
  def __eq__(self, other):
13211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13212
 
13213
  def __ne__(self, other):
13214
    return not (self == other)
13215
 
13216
class getAllItemVouchers_args:
13217
  """
13218
  Attributes:
13219
   - itemId
13220
  """
13221
 
13222
  thrift_spec = (
13223
    None, # 0
13224
    (1, TType.I64, 'itemId', None, None, ), # 1
13225
  )
13226
 
13227
  def __init__(self, itemId=None,):
13228
    self.itemId = itemId
13229
 
13230
  def read(self, iprot):
13231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13233
      return
13234
    iprot.readStructBegin()
13235
    while True:
13236
      (fname, ftype, fid) = iprot.readFieldBegin()
13237
      if ftype == TType.STOP:
13238
        break
13239
      if fid == 1:
13240
        if ftype == TType.I64:
13241
          self.itemId = iprot.readI64();
13242
        else:
13243
          iprot.skip(ftype)
13244
      else:
13245
        iprot.skip(ftype)
13246
      iprot.readFieldEnd()
13247
    iprot.readStructEnd()
13248
 
13249
  def write(self, oprot):
13250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13252
      return
13253
    oprot.writeStructBegin('getAllItemVouchers_args')
13254
    if self.itemId is not None:
13255
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13256
      oprot.writeI64(self.itemId)
13257
      oprot.writeFieldEnd()
13258
    oprot.writeFieldStop()
13259
    oprot.writeStructEnd()
13260
 
13261
  def validate(self):
13262
    return
13263
 
13264
 
13265
  def __repr__(self):
13266
    L = ['%s=%r' % (key, value)
13267
      for key, value in self.__dict__.iteritems()]
13268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13269
 
13270
  def __eq__(self, other):
13271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13272
 
13273
  def __ne__(self, other):
13274
    return not (self == other)
13275
 
13276
class getAllItemVouchers_result:
13277
  """
13278
  Attributes:
13279
   - success
13280
  """
13281
 
13282
  thrift_spec = (
13283
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
13284
  )
13285
 
13286
  def __init__(self, success=None,):
13287
    self.success = success
13288
 
13289
  def read(self, iprot):
13290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13292
      return
13293
    iprot.readStructBegin()
13294
    while True:
13295
      (fname, ftype, fid) = iprot.readFieldBegin()
13296
      if ftype == TType.STOP:
13297
        break
13298
      if fid == 0:
13299
        if ftype == TType.LIST:
13300
          self.success = []
6849 kshitij.so 13301
          (_etype266, _size263) = iprot.readListBegin()
13302
          for _i267 in xrange(_size263):
13303
            _elem268 = VoucherItemMapping()
13304
            _elem268.read(iprot)
13305
            self.success.append(_elem268)
5944 mandeep.dh 13306
          iprot.readListEnd()
13307
        else:
13308
          iprot.skip(ftype)
13309
      else:
13310
        iprot.skip(ftype)
13311
      iprot.readFieldEnd()
13312
    iprot.readStructEnd()
13313
 
13314
  def write(self, oprot):
13315
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13316
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13317
      return
13318
    oprot.writeStructBegin('getAllItemVouchers_result')
13319
    if self.success is not None:
13320
      oprot.writeFieldBegin('success', TType.LIST, 0)
13321
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849 kshitij.so 13322
      for iter269 in self.success:
13323
        iter269.write(oprot)
5944 mandeep.dh 13324
      oprot.writeListEnd()
13325
      oprot.writeFieldEnd()
13326
    oprot.writeFieldStop()
13327
    oprot.writeStructEnd()
13328
 
13329
  def validate(self):
13330
    return
13331
 
13332
 
13333
  def __repr__(self):
13334
    L = ['%s=%r' % (key, value)
13335
      for key, value in self.__dict__.iteritems()]
13336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13337
 
13338
  def __eq__(self, other):
13339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13340
 
13341
  def __ne__(self, other):
13342
    return not (self == other)
13343
 
13344
class isValidCatalogItemId_args:
13345
  """
13346
  Attributes:
13347
   - catalog_item_id
13348
  """
13349
 
13350
  thrift_spec = (
13351
    None, # 0
13352
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13353
  )
13354
 
13355
  def __init__(self, catalog_item_id=None,):
13356
    self.catalog_item_id = catalog_item_id
13357
 
13358
  def read(self, iprot):
13359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13361
      return
13362
    iprot.readStructBegin()
13363
    while True:
13364
      (fname, ftype, fid) = iprot.readFieldBegin()
13365
      if ftype == TType.STOP:
13366
        break
13367
      if fid == 1:
13368
        if ftype == TType.I64:
13369
          self.catalog_item_id = iprot.readI64();
13370
        else:
13371
          iprot.skip(ftype)
13372
      else:
13373
        iprot.skip(ftype)
13374
      iprot.readFieldEnd()
13375
    iprot.readStructEnd()
13376
 
13377
  def write(self, oprot):
13378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13380
      return
13381
    oprot.writeStructBegin('isValidCatalogItemId_args')
13382
    if self.catalog_item_id is not None:
13383
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13384
      oprot.writeI64(self.catalog_item_id)
13385
      oprot.writeFieldEnd()
13386
    oprot.writeFieldStop()
13387
    oprot.writeStructEnd()
13388
 
13389
  def validate(self):
13390
    return
13391
 
13392
 
13393
  def __repr__(self):
13394
    L = ['%s=%r' % (key, value)
13395
      for key, value in self.__dict__.iteritems()]
13396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13397
 
13398
  def __eq__(self, other):
13399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13400
 
13401
  def __ne__(self, other):
13402
    return not (self == other)
13403
 
13404
class isValidCatalogItemId_result:
13405
  """
13406
  Attributes:
13407
   - success
13408
  """
13409
 
13410
  thrift_spec = (
13411
    (0, TType.BOOL, 'success', None, None, ), # 0
13412
  )
13413
 
13414
  def __init__(self, success=None,):
13415
    self.success = success
13416
 
13417
  def read(self, iprot):
13418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13420
      return
13421
    iprot.readStructBegin()
13422
    while True:
13423
      (fname, ftype, fid) = iprot.readFieldBegin()
13424
      if ftype == TType.STOP:
13425
        break
13426
      if fid == 0:
13427
        if ftype == TType.BOOL:
13428
          self.success = iprot.readBool();
13429
        else:
13430
          iprot.skip(ftype)
13431
      else:
13432
        iprot.skip(ftype)
13433
      iprot.readFieldEnd()
13434
    iprot.readStructEnd()
13435
 
13436
  def write(self, oprot):
13437
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13438
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13439
      return
13440
    oprot.writeStructBegin('isValidCatalogItemId_result')
13441
    if self.success is not None:
13442
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13443
      oprot.writeBool(self.success)
13444
      oprot.writeFieldEnd()
13445
    oprot.writeFieldStop()
13446
    oprot.writeStructEnd()
13447
 
13448
  def validate(self):
13449
    return
13450
 
13451
 
13452
  def __repr__(self):
13453
    L = ['%s=%r' % (key, value)
13454
      for key, value in self.__dict__.iteritems()]
13455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13456
 
13457
  def __eq__(self, other):
13458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13459
 
13460
  def __ne__(self, other):
13461
    return not (self == other)
6039 amit.gupta 13462
 
13463
class getVatPercentageForItem_args:
13464
  """
13465
  Attributes:
13466
   - itemId
13467
   - price
13468
  """
13469
 
13470
  thrift_spec = (
13471
    None, # 0
13472
    (1, TType.I64, 'itemId', None, None, ), # 1
13473
    (2, TType.DOUBLE, 'price', None, None, ), # 2
13474
  )
13475
 
13476
  def __init__(self, itemId=None, price=None,):
13477
    self.itemId = itemId
13478
    self.price = price
13479
 
13480
  def read(self, iprot):
13481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13483
      return
13484
    iprot.readStructBegin()
13485
    while True:
13486
      (fname, ftype, fid) = iprot.readFieldBegin()
13487
      if ftype == TType.STOP:
13488
        break
13489
      if fid == 1:
13490
        if ftype == TType.I64:
13491
          self.itemId = iprot.readI64();
13492
        else:
13493
          iprot.skip(ftype)
13494
      elif fid == 2:
13495
        if ftype == TType.DOUBLE:
13496
          self.price = iprot.readDouble();
13497
        else:
13498
          iprot.skip(ftype)
13499
      else:
13500
        iprot.skip(ftype)
13501
      iprot.readFieldEnd()
13502
    iprot.readStructEnd()
13503
 
13504
  def write(self, oprot):
13505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13507
      return
13508
    oprot.writeStructBegin('getVatPercentageForItem_args')
13509
    if self.itemId is not None:
13510
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13511
      oprot.writeI64(self.itemId)
13512
      oprot.writeFieldEnd()
13513
    if self.price is not None:
13514
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
13515
      oprot.writeDouble(self.price)
13516
      oprot.writeFieldEnd()
13517
    oprot.writeFieldStop()
13518
    oprot.writeStructEnd()
13519
 
13520
  def validate(self):
13521
    return
13522
 
13523
 
13524
  def __repr__(self):
13525
    L = ['%s=%r' % (key, value)
13526
      for key, value in self.__dict__.iteritems()]
13527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13528
 
13529
  def __eq__(self, other):
13530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13531
 
13532
  def __ne__(self, other):
13533
    return not (self == other)
13534
 
13535
class getVatPercentageForItem_result:
13536
  """
13537
  Attributes:
13538
   - success
13539
  """
13540
 
13541
  thrift_spec = (
13542
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13543
  )
13544
 
13545
  def __init__(self, success=None,):
13546
    self.success = success
13547
 
13548
  def read(self, iprot):
13549
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13550
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13551
      return
13552
    iprot.readStructBegin()
13553
    while True:
13554
      (fname, ftype, fid) = iprot.readFieldBegin()
13555
      if ftype == TType.STOP:
13556
        break
13557
      if fid == 0:
13558
        if ftype == TType.DOUBLE:
13559
          self.success = iprot.readDouble();
13560
        else:
13561
          iprot.skip(ftype)
13562
      else:
13563
        iprot.skip(ftype)
13564
      iprot.readFieldEnd()
13565
    iprot.readStructEnd()
13566
 
13567
  def write(self, oprot):
13568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13570
      return
13571
    oprot.writeStructBegin('getVatPercentageForItem_result')
13572
    if self.success is not None:
13573
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13574
      oprot.writeDouble(self.success)
13575
      oprot.writeFieldEnd()
13576
    oprot.writeFieldStop()
13577
    oprot.writeStructEnd()
13578
 
13579
  def validate(self):
13580
    return
13581
 
13582
 
13583
  def __repr__(self):
13584
    L = ['%s=%r' % (key, value)
13585
      for key, value in self.__dict__.iteritems()]
13586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13587
 
13588
  def __eq__(self, other):
13589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13590
 
13591
  def __ne__(self, other):
13592
    return not (self == other)
13593
 
13594
class getVatAmountForItem_args:
13595
  """
13596
  Attributes:
13597
   - itemId
13598
   - price
13599
  """
13600
 
13601
  thrift_spec = (
13602
    None, # 0
13603
    (1, TType.I64, 'itemId', None, None, ), # 1
13604
    (2, TType.DOUBLE, 'price', None, None, ), # 2
13605
  )
13606
 
13607
  def __init__(self, itemId=None, price=None,):
13608
    self.itemId = itemId
13609
    self.price = price
13610
 
13611
  def read(self, iprot):
13612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13614
      return
13615
    iprot.readStructBegin()
13616
    while True:
13617
      (fname, ftype, fid) = iprot.readFieldBegin()
13618
      if ftype == TType.STOP:
13619
        break
13620
      if fid == 1:
13621
        if ftype == TType.I64:
13622
          self.itemId = iprot.readI64();
13623
        else:
13624
          iprot.skip(ftype)
13625
      elif fid == 2:
13626
        if ftype == TType.DOUBLE:
13627
          self.price = iprot.readDouble();
13628
        else:
13629
          iprot.skip(ftype)
13630
      else:
13631
        iprot.skip(ftype)
13632
      iprot.readFieldEnd()
13633
    iprot.readStructEnd()
13634
 
13635
  def write(self, oprot):
13636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13638
      return
13639
    oprot.writeStructBegin('getVatAmountForItem_args')
13640
    if self.itemId is not None:
13641
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13642
      oprot.writeI64(self.itemId)
13643
      oprot.writeFieldEnd()
13644
    if self.price is not None:
13645
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
13646
      oprot.writeDouble(self.price)
13647
      oprot.writeFieldEnd()
13648
    oprot.writeFieldStop()
13649
    oprot.writeStructEnd()
13650
 
13651
  def validate(self):
13652
    return
13653
 
13654
 
13655
  def __repr__(self):
13656
    L = ['%s=%r' % (key, value)
13657
      for key, value in self.__dict__.iteritems()]
13658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13659
 
13660
  def __eq__(self, other):
13661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13662
 
13663
  def __ne__(self, other):
13664
    return not (self == other)
13665
 
13666
class getVatAmountForItem_result:
13667
  """
13668
  Attributes:
13669
   - success
13670
  """
13671
 
13672
  thrift_spec = (
13673
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13674
  )
13675
 
13676
  def __init__(self, success=None,):
13677
    self.success = success
13678
 
13679
  def read(self, iprot):
13680
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13681
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13682
      return
13683
    iprot.readStructBegin()
13684
    while True:
13685
      (fname, ftype, fid) = iprot.readFieldBegin()
13686
      if ftype == TType.STOP:
13687
        break
13688
      if fid == 0:
13689
        if ftype == TType.DOUBLE:
13690
          self.success = iprot.readDouble();
13691
        else:
13692
          iprot.skip(ftype)
13693
      else:
13694
        iprot.skip(ftype)
13695
      iprot.readFieldEnd()
13696
    iprot.readStructEnd()
13697
 
13698
  def write(self, oprot):
13699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13701
      return
13702
    oprot.writeStructBegin('getVatAmountForItem_result')
13703
    if self.success is not None:
13704
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13705
      oprot.writeDouble(self.success)
13706
      oprot.writeFieldEnd()
13707
    oprot.writeFieldStop()
13708
    oprot.writeStructEnd()
13709
 
13710
  def validate(self):
13711
    return
13712
 
13713
 
13714
  def __repr__(self):
13715
    L = ['%s=%r' % (key, value)
13716
      for key, value in self.__dict__.iteritems()]
13717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13718
 
13719
  def __eq__(self, other):
13720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13721
 
13722
  def __ne__(self, other):
13723
    return not (self == other)
6531 vikram.rag 13724
 
13725
class getAllIgnoredInventoryUpdateItemsList_args:
13726
  """
13727
  Attributes:
13728
   - offset
13729
   - limit
13730
  """
13731
 
13732
  thrift_spec = (
13733
    None, # 0
13734
    (1, TType.I32, 'offset', None, None, ), # 1
13735
    (2, TType.I32, 'limit', None, None, ), # 2
13736
  )
13737
 
13738
  def __init__(self, offset=None, limit=None,):
13739
    self.offset = offset
13740
    self.limit = limit
13741
 
13742
  def read(self, iprot):
13743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13745
      return
13746
    iprot.readStructBegin()
13747
    while True:
13748
      (fname, ftype, fid) = iprot.readFieldBegin()
13749
      if ftype == TType.STOP:
13750
        break
13751
      if fid == 1:
13752
        if ftype == TType.I32:
13753
          self.offset = iprot.readI32();
13754
        else:
13755
          iprot.skip(ftype)
13756
      elif fid == 2:
13757
        if ftype == TType.I32:
13758
          self.limit = iprot.readI32();
13759
        else:
13760
          iprot.skip(ftype)
13761
      else:
13762
        iprot.skip(ftype)
13763
      iprot.readFieldEnd()
13764
    iprot.readStructEnd()
13765
 
13766
  def write(self, oprot):
13767
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13768
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13769
      return
13770
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
13771
    if self.offset is not None:
13772
      oprot.writeFieldBegin('offset', TType.I32, 1)
13773
      oprot.writeI32(self.offset)
13774
      oprot.writeFieldEnd()
13775
    if self.limit is not None:
13776
      oprot.writeFieldBegin('limit', TType.I32, 2)
13777
      oprot.writeI32(self.limit)
13778
      oprot.writeFieldEnd()
13779
    oprot.writeFieldStop()
13780
    oprot.writeStructEnd()
13781
 
13782
  def validate(self):
13783
    return
13784
 
13785
 
13786
  def __repr__(self):
13787
    L = ['%s=%r' % (key, value)
13788
      for key, value in self.__dict__.iteritems()]
13789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13790
 
13791
  def __eq__(self, other):
13792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13793
 
13794
  def __ne__(self, other):
13795
    return not (self == other)
13796
 
13797
class getAllIgnoredInventoryUpdateItemsList_result:
13798
  """
13799
  Attributes:
13800
   - success
13801
  """
13802
 
13803
  thrift_spec = (
13804
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13805
  )
13806
 
13807
  def __init__(self, success=None,):
13808
    self.success = success
13809
 
13810
  def read(self, iprot):
13811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13813
      return
13814
    iprot.readStructBegin()
13815
    while True:
13816
      (fname, ftype, fid) = iprot.readFieldBegin()
13817
      if ftype == TType.STOP:
13818
        break
13819
      if fid == 0:
13820
        if ftype == TType.LIST:
13821
          self.success = []
6849 kshitij.so 13822
          (_etype273, _size270) = iprot.readListBegin()
13823
          for _i274 in xrange(_size270):
13824
            _elem275 = Item()
13825
            _elem275.read(iprot)
13826
            self.success.append(_elem275)
6531 vikram.rag 13827
          iprot.readListEnd()
13828
        else:
13829
          iprot.skip(ftype)
13830
      else:
13831
        iprot.skip(ftype)
13832
      iprot.readFieldEnd()
13833
    iprot.readStructEnd()
13834
 
13835
  def write(self, oprot):
13836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13838
      return
13839
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
13840
    if self.success is not None:
13841
      oprot.writeFieldBegin('success', TType.LIST, 0)
13842
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849 kshitij.so 13843
      for iter276 in self.success:
13844
        iter276.write(oprot)
6531 vikram.rag 13845
      oprot.writeListEnd()
13846
      oprot.writeFieldEnd()
13847
    oprot.writeFieldStop()
13848
    oprot.writeStructEnd()
13849
 
13850
  def validate(self):
13851
    return
13852
 
13853
 
13854
  def __repr__(self):
13855
    L = ['%s=%r' % (key, value)
13856
      for key, value in self.__dict__.iteritems()]
13857
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13858
 
13859
  def __eq__(self, other):
13860
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13861
 
13862
  def __ne__(self, other):
13863
    return not (self == other)
6805 anupam.sin 13864
 
6821 amar.kumar 13865
class getAllAliveItems_args:
13866
 
13867
  thrift_spec = (
13868
  )
13869
 
13870
  def read(self, iprot):
13871
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13872
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13873
      return
13874
    iprot.readStructBegin()
13875
    while True:
13876
      (fname, ftype, fid) = iprot.readFieldBegin()
13877
      if ftype == TType.STOP:
13878
        break
13879
      else:
13880
        iprot.skip(ftype)
13881
      iprot.readFieldEnd()
13882
    iprot.readStructEnd()
13883
 
13884
  def write(self, oprot):
13885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13887
      return
13888
    oprot.writeStructBegin('getAllAliveItems_args')
13889
    oprot.writeFieldStop()
13890
    oprot.writeStructEnd()
13891
 
13892
  def validate(self):
13893
    return
13894
 
13895
 
13896
  def __repr__(self):
13897
    L = ['%s=%r' % (key, value)
13898
      for key, value in self.__dict__.iteritems()]
13899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13900
 
13901
  def __eq__(self, other):
13902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13903
 
13904
  def __ne__(self, other):
13905
    return not (self == other)
13906
 
13907
class getAllAliveItems_result:
13908
  """
13909
  Attributes:
13910
   - success
13911
  """
13912
 
13913
  thrift_spec = (
13914
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13915
  )
13916
 
13917
  def __init__(self, success=None,):
13918
    self.success = success
13919
 
13920
  def read(self, iprot):
13921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13923
      return
13924
    iprot.readStructBegin()
13925
    while True:
13926
      (fname, ftype, fid) = iprot.readFieldBegin()
13927
      if ftype == TType.STOP:
13928
        break
13929
      if fid == 0:
13930
        if ftype == TType.LIST:
13931
          self.success = []
6849 kshitij.so 13932
          (_etype280, _size277) = iprot.readListBegin()
13933
          for _i281 in xrange(_size277):
13934
            _elem282 = Item()
13935
            _elem282.read(iprot)
13936
            self.success.append(_elem282)
6821 amar.kumar 13937
          iprot.readListEnd()
13938
        else:
13939
          iprot.skip(ftype)
13940
      else:
13941
        iprot.skip(ftype)
13942
      iprot.readFieldEnd()
13943
    iprot.readStructEnd()
13944
 
13945
  def write(self, oprot):
13946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13948
      return
13949
    oprot.writeStructBegin('getAllAliveItems_result')
13950
    if self.success is not None:
13951
      oprot.writeFieldBegin('success', TType.LIST, 0)
13952
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849 kshitij.so 13953
      for iter283 in self.success:
13954
        iter283.write(oprot)
6821 amar.kumar 13955
      oprot.writeListEnd()
13956
      oprot.writeFieldEnd()
13957
    oprot.writeFieldStop()
13958
    oprot.writeStructEnd()
13959
 
13960
  def validate(self):
13961
    return
13962
 
13963
 
13964
  def __repr__(self):
13965
    L = ['%s=%r' % (key, value)
13966
      for key, value in self.__dict__.iteritems()]
13967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13968
 
13969
  def __eq__(self, other):
13970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13971
 
13972
  def __ne__(self, other):
13973
    return not (self == other)
13974
 
6805 anupam.sin 13975
class getInsuranceAmount_args:
13976
  """
13977
  Attributes:
13978
   - itemId
13979
   - insurerId
13980
   - quantity
13981
  """
13982
 
13983
  thrift_spec = (
13984
    None, # 0
13985
    (1, TType.I64, 'itemId', None, None, ), # 1
13986
    (2, TType.I64, 'insurerId', None, None, ), # 2
13987
    (3, TType.I64, 'quantity', None, None, ), # 3
13988
  )
13989
 
13990
  def __init__(self, itemId=None, insurerId=None, quantity=None,):
13991
    self.itemId = itemId
13992
    self.insurerId = insurerId
13993
    self.quantity = quantity
13994
 
13995
  def read(self, iprot):
13996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13998
      return
13999
    iprot.readStructBegin()
14000
    while True:
14001
      (fname, ftype, fid) = iprot.readFieldBegin()
14002
      if ftype == TType.STOP:
14003
        break
14004
      if fid == 1:
14005
        if ftype == TType.I64:
14006
          self.itemId = iprot.readI64();
14007
        else:
14008
          iprot.skip(ftype)
14009
      elif fid == 2:
14010
        if ftype == TType.I64:
14011
          self.insurerId = iprot.readI64();
14012
        else:
14013
          iprot.skip(ftype)
14014
      elif fid == 3:
14015
        if ftype == TType.I64:
14016
          self.quantity = iprot.readI64();
14017
        else:
14018
          iprot.skip(ftype)
14019
      else:
14020
        iprot.skip(ftype)
14021
      iprot.readFieldEnd()
14022
    iprot.readStructEnd()
14023
 
14024
  def write(self, oprot):
14025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14027
      return
14028
    oprot.writeStructBegin('getInsuranceAmount_args')
14029
    if self.itemId is not None:
14030
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14031
      oprot.writeI64(self.itemId)
14032
      oprot.writeFieldEnd()
14033
    if self.insurerId is not None:
14034
      oprot.writeFieldBegin('insurerId', TType.I64, 2)
14035
      oprot.writeI64(self.insurerId)
14036
      oprot.writeFieldEnd()
14037
    if self.quantity is not None:
14038
      oprot.writeFieldBegin('quantity', TType.I64, 3)
14039
      oprot.writeI64(self.quantity)
14040
      oprot.writeFieldEnd()
14041
    oprot.writeFieldStop()
14042
    oprot.writeStructEnd()
14043
 
14044
  def validate(self):
14045
    return
14046
 
14047
 
14048
  def __repr__(self):
14049
    L = ['%s=%r' % (key, value)
14050
      for key, value in self.__dict__.iteritems()]
14051
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14052
 
14053
  def __eq__(self, other):
14054
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14055
 
14056
  def __ne__(self, other):
14057
    return not (self == other)
14058
 
14059
class getInsuranceAmount_result:
14060
  """
14061
  Attributes:
14062
   - success
14063
  """
14064
 
14065
  thrift_spec = (
14066
    (0, TType.I64, 'success', None, None, ), # 0
14067
  )
14068
 
14069
  def __init__(self, success=None,):
14070
    self.success = success
14071
 
14072
  def read(self, iprot):
14073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14075
      return
14076
    iprot.readStructBegin()
14077
    while True:
14078
      (fname, ftype, fid) = iprot.readFieldBegin()
14079
      if ftype == TType.STOP:
14080
        break
14081
      if fid == 0:
14082
        if ftype == TType.I64:
14083
          self.success = iprot.readI64();
14084
        else:
14085
          iprot.skip(ftype)
14086
      else:
14087
        iprot.skip(ftype)
14088
      iprot.readFieldEnd()
14089
    iprot.readStructEnd()
14090
 
14091
  def write(self, oprot):
14092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14094
      return
14095
    oprot.writeStructBegin('getInsuranceAmount_result')
14096
    if self.success is not None:
14097
      oprot.writeFieldBegin('success', TType.I64, 0)
14098
      oprot.writeI64(self.success)
14099
      oprot.writeFieldEnd()
14100
    oprot.writeFieldStop()
14101
    oprot.writeStructEnd()
14102
 
14103
  def validate(self):
14104
    return
14105
 
14106
 
14107
  def __repr__(self):
14108
    L = ['%s=%r' % (key, value)
14109
      for key, value in self.__dict__.iteritems()]
14110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14111
 
14112
  def __eq__(self, other):
14113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14114
 
14115
  def __ne__(self, other):
14116
    return not (self == other)
14117
 
14118
class getInsurer_args:
14119
  """
14120
  Attributes:
14121
   - insurerId
14122
  """
14123
 
14124
  thrift_spec = (
14125
    None, # 0
14126
    (1, TType.I64, 'insurerId', None, None, ), # 1
14127
  )
14128
 
14129
  def __init__(self, insurerId=None,):
14130
    self.insurerId = insurerId
14131
 
14132
  def read(self, iprot):
14133
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14134
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14135
      return
14136
    iprot.readStructBegin()
14137
    while True:
14138
      (fname, ftype, fid) = iprot.readFieldBegin()
14139
      if ftype == TType.STOP:
14140
        break
14141
      if fid == 1:
14142
        if ftype == TType.I64:
14143
          self.insurerId = iprot.readI64();
14144
        else:
14145
          iprot.skip(ftype)
14146
      else:
14147
        iprot.skip(ftype)
14148
      iprot.readFieldEnd()
14149
    iprot.readStructEnd()
14150
 
14151
  def write(self, oprot):
14152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14154
      return
14155
    oprot.writeStructBegin('getInsurer_args')
14156
    if self.insurerId is not None:
14157
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
14158
      oprot.writeI64(self.insurerId)
14159
      oprot.writeFieldEnd()
14160
    oprot.writeFieldStop()
14161
    oprot.writeStructEnd()
14162
 
14163
  def validate(self):
14164
    return
14165
 
14166
 
14167
  def __repr__(self):
14168
    L = ['%s=%r' % (key, value)
14169
      for key, value in self.__dict__.iteritems()]
14170
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14171
 
14172
  def __eq__(self, other):
14173
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14174
 
14175
  def __ne__(self, other):
14176
    return not (self == other)
14177
 
14178
class getInsurer_result:
14179
  """
14180
  Attributes:
14181
   - success
14182
  """
14183
 
14184
  thrift_spec = (
14185
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
14186
  )
14187
 
14188
  def __init__(self, success=None,):
14189
    self.success = success
14190
 
14191
  def read(self, iprot):
14192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14194
      return
14195
    iprot.readStructBegin()
14196
    while True:
14197
      (fname, ftype, fid) = iprot.readFieldBegin()
14198
      if ftype == TType.STOP:
14199
        break
14200
      if fid == 0:
14201
        if ftype == TType.STRUCT:
14202
          self.success = Insurer()
14203
          self.success.read(iprot)
14204
        else:
14205
          iprot.skip(ftype)
14206
      else:
14207
        iprot.skip(ftype)
14208
      iprot.readFieldEnd()
14209
    iprot.readStructEnd()
14210
 
14211
  def write(self, oprot):
14212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14214
      return
14215
    oprot.writeStructBegin('getInsurer_result')
14216
    if self.success is not None:
14217
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14218
      self.success.write(oprot)
14219
      oprot.writeFieldEnd()
14220
    oprot.writeFieldStop()
14221
    oprot.writeStructEnd()
14222
 
14223
  def validate(self):
14224
    return
14225
 
14226
 
14227
  def __repr__(self):
14228
    L = ['%s=%r' % (key, value)
14229
      for key, value in self.__dict__.iteritems()]
14230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14231
 
14232
  def __eq__(self, other):
14233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14234
 
14235
  def __ne__(self, other):
14236
    return not (self == other)
6838 vikram.rag 14237
 
14238
class getAllInsurers_args:
14239
 
14240
  thrift_spec = (
14241
  )
14242
 
14243
  def read(self, iprot):
14244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14246
      return
14247
    iprot.readStructBegin()
14248
    while True:
14249
      (fname, ftype, fid) = iprot.readFieldBegin()
14250
      if ftype == TType.STOP:
14251
        break
14252
      else:
14253
        iprot.skip(ftype)
14254
      iprot.readFieldEnd()
14255
    iprot.readStructEnd()
14256
 
14257
  def write(self, oprot):
14258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14260
      return
14261
    oprot.writeStructBegin('getAllInsurers_args')
14262
    oprot.writeFieldStop()
14263
    oprot.writeStructEnd()
14264
 
14265
  def validate(self):
14266
    return
14267
 
14268
 
14269
  def __repr__(self):
14270
    L = ['%s=%r' % (key, value)
14271
      for key, value in self.__dict__.iteritems()]
14272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14273
 
14274
  def __eq__(self, other):
14275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14276
 
14277
  def __ne__(self, other):
14278
    return not (self == other)
14279
 
14280
class getAllInsurers_result:
14281
  """
14282
  Attributes:
14283
   - success
14284
  """
14285
 
14286
  thrift_spec = (
14287
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
14288
  )
14289
 
14290
  def __init__(self, success=None,):
14291
    self.success = success
14292
 
14293
  def read(self, iprot):
14294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14296
      return
14297
    iprot.readStructBegin()
14298
    while True:
14299
      (fname, ftype, fid) = iprot.readFieldBegin()
14300
      if ftype == TType.STOP:
14301
        break
14302
      if fid == 0:
14303
        if ftype == TType.LIST:
14304
          self.success = []
6849 kshitij.so 14305
          (_etype287, _size284) = iprot.readListBegin()
14306
          for _i288 in xrange(_size284):
14307
            _elem289 = Insurer()
14308
            _elem289.read(iprot)
14309
            self.success.append(_elem289)
6838 vikram.rag 14310
          iprot.readListEnd()
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('getAllInsurers_result')
14323
    if self.success is not None:
14324
      oprot.writeFieldBegin('success', TType.LIST, 0)
14325
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849 kshitij.so 14326
      for iter290 in self.success:
14327
        iter290.write(oprot)
6838 vikram.rag 14328
      oprot.writeListEnd()
14329
      oprot.writeFieldEnd()
14330
    oprot.writeFieldStop()
14331
    oprot.writeStructEnd()
14332
 
14333
  def validate(self):
14334
    return
14335
 
14336
 
14337
  def __repr__(self):
14338
    L = ['%s=%r' % (key, value)
14339
      for key, value in self.__dict__.iteritems()]
14340
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14341
 
14342
  def __eq__(self, other):
14343
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14344
 
14345
  def __ne__(self, other):
14346
    return not (self == other)