Subversion Repositories SmartDukaan

Rev

Rev 6821 | Rev 6845 | 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
 
5944 mandeep.dh 306
  def deleteSimilarItem(self, itemId, catalogItemId):
307
    """
308
    Delete similar item.
309
 
310
    Parameters:
311
     - itemId
312
     - catalogItemId
313
    """
314
    pass
315
 
316
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
317
    """
318
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
319
    If yes, returns the itemId else returns 0
320
 
321
    Parameters:
322
     - brand
323
     - modelNumber
324
     - modelName
325
     - color
326
    """
327
    pass
328
 
329
  def validateRiskyStatus(self, itemId):
330
    """
331
    Check wether item is risky and change status if inventory is not available for risky items
332
 
333
    Parameters:
334
     - itemId
335
    """
336
    pass
337
 
338
  def changeItemRiskyFlag(self, itemId, risky):
339
    """
340
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
341
 
342
    Parameters:
343
     - itemId
344
     - risky
345
    """
346
    pass
347
 
348
  def getItemsByRiskyFlag(self, ):
349
    """
350
    Returns list of items marked as risky.
351
    """
352
    pass
353
 
354
  def getItemsForMasterSheet(self, category, brand):
355
    """
356
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
357
 
358
    Parameters:
359
     - category
360
     - brand
361
    """
362
    pass
363
 
364
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
365
    """
366
    Returns list of catalog ids of items with same similarity index as of the given itemId
367
 
368
    Parameters:
369
     - beginIndex
370
     - totalItems
371
     - itemId
372
    """
373
    pass
374
 
375
  def addProductNotification(self, itemId, email):
376
    """
377
    Add user requests for out of stock items. Once user will ask for notify me an entry will
378
 
379
    Parameters:
380
     - itemId
381
     - email
382
    """
383
    pass
384
 
385
  def sendProductNotifications(self, ):
386
    """
387
    Send the product notifications to the users for items which has stock.
388
    """
389
    pass
390
 
391
  def getAllBrandsByCategory(self, categoryId):
392
    """
393
    Returns list of brand names for a given category Id
394
 
395
    Parameters:
396
     - categoryId
397
    """
398
    pass
399
 
400
  def getAllBrands(self, ):
401
    """
402
    Returns list of brand names
403
    """
404
    pass
405
 
406
  def getAllSources(self, ):
407
    """
408
    Return list of all sources
409
    """
410
    pass
411
 
412
  def getItemPricingBySource(self, itemId, sourceId):
413
    """
414
    Returns the pricing information of an item. If no information is found, exception will be thrown.
415
 
416
    Parameters:
417
     - itemId
418
     - sourceId
419
    """
420
    pass
421
 
422
  def addSourceItemPricing(self, sourceItemPricing):
423
    """
424
    Adds prices to be displayed corresponding to the item if user comes from a source.
425
    If item is not found or source is not found, it will throw exception.
426
 
427
    Parameters:
428
     - sourceItemPricing
429
    """
430
    pass
431
 
432
  def getAllSourcePricing(self, itemId):
433
    """
434
    Returns the list of source pricing information of an item.
435
    Raises an exception if item not found corresponding to itemId
436
 
437
    Parameters:
438
     - itemId
439
    """
440
    pass
441
 
442
  def getItemForSource(self, item_id, sourceId):
443
    """
444
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
445
 
446
    Parameters:
447
     - item_id
448
     - sourceId
449
    """
450
    pass
451
 
452
  def searchItemsInRange(self, searchTerms, offset, limit):
453
    """
454
    Searches items matching the the given terms in the catalog and returns results within the specified range.
455
 
456
    Parameters:
457
     - searchTerms
458
     - offset
459
     - limit
460
    """
461
    pass
462
 
463
  def getSearchResultCount(self, searchTerms):
464
    """
465
    Gets the count of search results for the given search terms so that the user can go through all the pages.
466
 
467
    Parameters:
468
     - searchTerms
469
    """
470
    pass
471
 
472
  def getProductNotifications(self, startDateTime):
473
    """
474
    Returns a list of product notifications added after a supplied datetime
475
 
476
    Parameters:
477
     - startDateTime
478
    """
479
    pass
480
 
481
  def getProductNotificationRequestCount(self, startDateTime):
482
    """
483
    Returns a list of count of requests for product notification against each item
484
 
485
    Parameters:
486
     - startDateTime
487
    """
488
    pass
489
 
490
  def addAuthorizationLog(self, itemId, username, reason):
491
    """
492
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
493
 
494
    Parameters:
495
     - itemId
496
     - username
497
     - reason
498
    """
499
    pass
500
 
501
  def getClearanceSaleCatalogIds(self, ):
502
    pass
503
 
504
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
505
    """
506
    Parameters:
507
     - catalog_item_id
508
     - voucherType
509
     - voucherAmount
510
    """
511
    pass
512
 
513
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
514
    """
515
    Parameters:
516
     - catalog_item_id
517
     - voucherType
518
    """
519
    pass
520
 
521
  def getVoucherAmount(self, itemId, voucherType):
522
    """
523
    Parameters:
524
     - itemId
525
     - voucherType
526
    """
527
    pass
528
 
529
  def getAllItemVouchers(self, itemId):
530
    """
531
    Parameters:
532
     - itemId
533
    """
534
    pass
535
 
536
  def isValidCatalogItemId(self, catalog_item_id):
537
    """
538
    Parameters:
539
     - catalog_item_id
540
    """
541
    pass
542
 
6039 amit.gupta 543
  def getVatPercentageForItem(self, itemId, price):
544
    """
545
    Parameters:
546
     - itemId
547
     - price
548
    """
549
    pass
5944 mandeep.dh 550
 
6039 amit.gupta 551
  def getVatAmountForItem(self, itemId, price):
552
    """
553
    Parameters:
554
     - itemId
555
     - price
556
    """
557
    pass
558
 
6531 vikram.rag 559
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
560
    """
561
    Parameters:
562
     - offset
563
     - limit
564
    """
565
    pass
6039 amit.gupta 566
 
6821 amar.kumar 567
  def getAllAliveItems(self, ):
568
    pass
569
 
6805 anupam.sin 570
  def getInsuranceAmount(self, itemId, insurerId, quantity):
571
    """
572
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 573
 
6805 anupam.sin 574
    Parameters:
575
     - itemId
576
     - insurerId
577
     - quantity
578
    """
579
    pass
580
 
581
  def getInsurer(self, insurerId):
582
    """
583
    Parameters:
584
     - insurerId
585
    """
586
    pass
587
 
6838 vikram.rag 588
  def getAllInsurers(self, ):
589
    pass
6805 anupam.sin 590
 
6838 vikram.rag 591
 
5944 mandeep.dh 592
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
593
  def __init__(self, iprot, oprot=None):
594
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
595
 
596
  def addItem(self, item):
597
    """
598
    Availability and inventory attributes
599
 
600
    Parameters:
601
     - item
602
    """
603
    self.send_addItem(item)
604
    return self.recv_addItem()
605
 
606
  def send_addItem(self, item):
607
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
608
    args = addItem_args()
609
    args.item = item
610
    args.write(self._oprot)
611
    self._oprot.writeMessageEnd()
612
    self._oprot.trans.flush()
613
 
614
  def recv_addItem(self, ):
615
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
616
    if mtype == TMessageType.EXCEPTION:
617
      x = TApplicationException()
618
      x.read(self._iprot)
619
      self._iprot.readMessageEnd()
620
      raise x
621
    result = addItem_result()
622
    result.read(self._iprot)
623
    self._iprot.readMessageEnd()
624
    if result.success is not None:
625
      return result.success
626
    if result.cex is not None:
627
      raise result.cex
628
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
629
 
630
  def updateItem(self, item):
631
    """
632
    Parameters:
633
     - item
634
    """
635
    self.send_updateItem(item)
636
    return self.recv_updateItem()
637
 
638
  def send_updateItem(self, item):
639
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
640
    args = updateItem_args()
641
    args.item = item
642
    args.write(self._oprot)
643
    self._oprot.writeMessageEnd()
644
    self._oprot.trans.flush()
645
 
646
  def recv_updateItem(self, ):
647
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
648
    if mtype == TMessageType.EXCEPTION:
649
      x = TApplicationException()
650
      x.read(self._iprot)
651
      self._iprot.readMessageEnd()
652
      raise x
653
    result = updateItem_result()
654
    result.read(self._iprot)
655
    self._iprot.readMessageEnd()
656
    if result.success is not None:
657
      return result.success
658
    if result.cex is not None:
659
      raise result.cex
660
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
661
 
662
  def isActive(self, itemId):
663
    """
664
    Checks if the item given to the corresponding itemId is active. If it's active,
665
    whether it's risky and if it's risky, its inventory position.
666
 
667
    Parameters:
668
     - itemId
669
    """
670
    self.send_isActive(itemId)
671
    return self.recv_isActive()
672
 
673
  def send_isActive(self, itemId):
674
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
675
    args = isActive_args()
676
    args.itemId = itemId
677
    args.write(self._oprot)
678
    self._oprot.writeMessageEnd()
679
    self._oprot.trans.flush()
680
 
681
  def recv_isActive(self, ):
682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
683
    if mtype == TMessageType.EXCEPTION:
684
      x = TApplicationException()
685
      x.read(self._iprot)
686
      self._iprot.readMessageEnd()
687
      raise x
688
    result = isActive_result()
689
    result.read(self._iprot)
690
    self._iprot.readMessageEnd()
691
    if result.success is not None:
692
      return result.success
693
    if result.isex is not None:
694
      raise result.isex
695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
696
 
697
  def getItemStatusDescription(self, itemId):
698
    """
699
    Parameters:
700
     - itemId
701
    """
702
    self.send_getItemStatusDescription(itemId)
703
    return self.recv_getItemStatusDescription()
704
 
705
  def send_getItemStatusDescription(self, itemId):
706
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
707
    args = getItemStatusDescription_args()
708
    args.itemId = itemId
709
    args.write(self._oprot)
710
    self._oprot.writeMessageEnd()
711
    self._oprot.trans.flush()
712
 
713
  def recv_getItemStatusDescription(self, ):
714
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
715
    if mtype == TMessageType.EXCEPTION:
716
      x = TApplicationException()
717
      x.read(self._iprot)
718
      self._iprot.readMessageEnd()
719
      raise x
720
    result = getItemStatusDescription_result()
721
    result.read(self._iprot)
722
    self._iprot.readMessageEnd()
723
    if result.success is not None:
724
      return result.success
725
    if result.isex is not None:
726
      raise result.isex
727
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
728
 
729
  def startItemOn(self, item_id, timestamp):
730
    """
731
    Parameters:
732
     - item_id
733
     - timestamp
734
    """
735
    self.send_startItemOn(item_id, timestamp)
736
    self.recv_startItemOn()
737
 
738
  def send_startItemOn(self, item_id, timestamp):
739
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
740
    args = startItemOn_args()
741
    args.item_id = item_id
742
    args.timestamp = timestamp
743
    args.write(self._oprot)
744
    self._oprot.writeMessageEnd()
745
    self._oprot.trans.flush()
746
 
747
  def recv_startItemOn(self, ):
748
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
749
    if mtype == TMessageType.EXCEPTION:
750
      x = TApplicationException()
751
      x.read(self._iprot)
752
      self._iprot.readMessageEnd()
753
      raise x
754
    result = startItemOn_result()
755
    result.read(self._iprot)
756
    self._iprot.readMessageEnd()
757
    if result.cex is not None:
758
      raise result.cex
759
    return
760
 
761
  def retireItemOn(self, item_id, timestamp):
762
    """
763
    Parameters:
764
     - item_id
765
     - timestamp
766
    """
767
    self.send_retireItemOn(item_id, timestamp)
768
    self.recv_retireItemOn()
769
 
770
  def send_retireItemOn(self, item_id, timestamp):
771
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
772
    args = retireItemOn_args()
773
    args.item_id = item_id
774
    args.timestamp = timestamp
775
    args.write(self._oprot)
776
    self._oprot.writeMessageEnd()
777
    self._oprot.trans.flush()
778
 
779
  def recv_retireItemOn(self, ):
780
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
781
    if mtype == TMessageType.EXCEPTION:
782
      x = TApplicationException()
783
      x.read(self._iprot)
784
      self._iprot.readMessageEnd()
785
      raise x
786
    result = retireItemOn_result()
787
    result.read(self._iprot)
788
    self._iprot.readMessageEnd()
789
    if result.cex is not None:
790
      raise result.cex
791
    return
792
 
793
  def changeItemStatus(self, item_id, timestamp, newstatus):
794
    """
795
    Parameters:
796
     - item_id
797
     - timestamp
798
     - newstatus
799
    """
800
    self.send_changeItemStatus(item_id, timestamp, newstatus)
801
    self.recv_changeItemStatus()
802
 
803
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
804
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
805
    args = changeItemStatus_args()
806
    args.item_id = item_id
807
    args.timestamp = timestamp
808
    args.newstatus = newstatus
809
    args.write(self._oprot)
810
    self._oprot.writeMessageEnd()
811
    self._oprot.trans.flush()
812
 
813
  def recv_changeItemStatus(self, ):
814
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
815
    if mtype == TMessageType.EXCEPTION:
816
      x = TApplicationException()
817
      x.read(self._iprot)
818
      self._iprot.readMessageEnd()
819
      raise x
820
    result = changeItemStatus_result()
821
    result.read(self._iprot)
822
    self._iprot.readMessageEnd()
823
    if result.cex is not None:
824
      raise result.cex
825
    return
826
 
827
  def getItem(self, item_id):
828
    """
829
    Parameters:
830
     - item_id
831
    """
832
    self.send_getItem(item_id)
833
    return self.recv_getItem()
834
 
835
  def send_getItem(self, item_id):
836
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
837
    args = getItem_args()
838
    args.item_id = item_id
839
    args.write(self._oprot)
840
    self._oprot.writeMessageEnd()
841
    self._oprot.trans.flush()
842
 
843
  def recv_getItem(self, ):
844
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
845
    if mtype == TMessageType.EXCEPTION:
846
      x = TApplicationException()
847
      x.read(self._iprot)
848
      self._iprot.readMessageEnd()
849
      raise x
850
    result = getItem_result()
851
    result.read(self._iprot)
852
    self._iprot.readMessageEnd()
853
    if result.success is not None:
854
      return result.success
855
    if result.cex is not None:
856
      raise result.cex
857
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
858
 
859
  def getItemsByCatalogId(self, catalog_item_id):
860
    """
861
    Parameters:
862
     - catalog_item_id
863
    """
864
    self.send_getItemsByCatalogId(catalog_item_id)
865
    return self.recv_getItemsByCatalogId()
866
 
867
  def send_getItemsByCatalogId(self, catalog_item_id):
868
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
869
    args = getItemsByCatalogId_args()
870
    args.catalog_item_id = catalog_item_id
871
    args.write(self._oprot)
872
    self._oprot.writeMessageEnd()
873
    self._oprot.trans.flush()
874
 
875
  def recv_getItemsByCatalogId(self, ):
876
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
877
    if mtype == TMessageType.EXCEPTION:
878
      x = TApplicationException()
879
      x.read(self._iprot)
880
      self._iprot.readMessageEnd()
881
      raise x
882
    result = getItemsByCatalogId_result()
883
    result.read(self._iprot)
884
    self._iprot.readMessageEnd()
885
    if result.success is not None:
886
      return result.success
887
    if result.cex is not None:
888
      raise result.cex
889
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
890
 
891
  def getValidItemsByCatalogId(self, catalog_item_id):
892
    """
893
    Parameters:
894
     - catalog_item_id
895
    """
896
    self.send_getValidItemsByCatalogId(catalog_item_id)
897
    return self.recv_getValidItemsByCatalogId()
898
 
899
  def send_getValidItemsByCatalogId(self, catalog_item_id):
900
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
901
    args = getValidItemsByCatalogId_args()
902
    args.catalog_item_id = catalog_item_id
903
    args.write(self._oprot)
904
    self._oprot.writeMessageEnd()
905
    self._oprot.trans.flush()
906
 
907
  def recv_getValidItemsByCatalogId(self, ):
908
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
909
    if mtype == TMessageType.EXCEPTION:
910
      x = TApplicationException()
911
      x.read(self._iprot)
912
      self._iprot.readMessageEnd()
913
      raise x
914
    result = getValidItemsByCatalogId_result()
915
    result.read(self._iprot)
916
    self._iprot.readMessageEnd()
917
    if result.success is not None:
918
      return result.success
919
    if result.cex is not None:
920
      raise result.cex
921
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
922
 
923
  def getAllItems(self, isActive):
924
    """
925
    Parameters:
926
     - isActive
927
    """
928
    self.send_getAllItems(isActive)
929
    return self.recv_getAllItems()
930
 
931
  def send_getAllItems(self, isActive):
932
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
933
    args = getAllItems_args()
934
    args.isActive = isActive
935
    args.write(self._oprot)
936
    self._oprot.writeMessageEnd()
937
    self._oprot.trans.flush()
938
 
939
  def recv_getAllItems(self, ):
940
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
941
    if mtype == TMessageType.EXCEPTION:
942
      x = TApplicationException()
943
      x.read(self._iprot)
944
      self._iprot.readMessageEnd()
945
      raise x
946
    result = getAllItems_result()
947
    result.read(self._iprot)
948
    self._iprot.readMessageEnd()
949
    if result.success is not None:
950
      return result.success
951
    if result.cex is not None:
952
      raise result.cex
953
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
954
 
955
  def getAllItemsByStatus(self, itemStatus):
956
    """
957
    Parameters:
958
     - itemStatus
959
    """
960
    self.send_getAllItemsByStatus(itemStatus)
961
    return self.recv_getAllItemsByStatus()
962
 
963
  def send_getAllItemsByStatus(self, itemStatus):
964
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
965
    args = getAllItemsByStatus_args()
966
    args.itemStatus = itemStatus
967
    args.write(self._oprot)
968
    self._oprot.writeMessageEnd()
969
    self._oprot.trans.flush()
970
 
971
  def recv_getAllItemsByStatus(self, ):
972
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
973
    if mtype == TMessageType.EXCEPTION:
974
      x = TApplicationException()
975
      x.read(self._iprot)
976
      self._iprot.readMessageEnd()
977
      raise x
978
    result = getAllItemsByStatus_result()
979
    result.read(self._iprot)
980
    self._iprot.readMessageEnd()
981
    if result.success is not None:
982
      return result.success
983
    if result.cex is not None:
984
      raise result.cex
985
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
986
 
987
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
988
    """
989
    Parameters:
990
     - entityId
991
     - category
992
     - brand
993
     - modelName
994
     - modelNumber
995
    """
996
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
997
    return self.recv_markItemAsContentComplete()
998
 
999
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1000
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1001
    args = markItemAsContentComplete_args()
1002
    args.entityId = entityId
1003
    args.category = category
1004
    args.brand = brand
1005
    args.modelName = modelName
1006
    args.modelNumber = modelNumber
1007
    args.write(self._oprot)
1008
    self._oprot.writeMessageEnd()
1009
    self._oprot.trans.flush()
1010
 
1011
  def recv_markItemAsContentComplete(self, ):
1012
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1013
    if mtype == TMessageType.EXCEPTION:
1014
      x = TApplicationException()
1015
      x.read(self._iprot)
1016
      self._iprot.readMessageEnd()
1017
      raise x
1018
    result = markItemAsContentComplete_result()
1019
    result.read(self._iprot)
1020
    self._iprot.readMessageEnd()
1021
    if result.success is not None:
1022
      return result.success
1023
    if result.cex is not None:
1024
      raise result.cex
1025
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1026
 
1027
  def getAllItemsInRange(self, offset, limit):
1028
    """
1029
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1030
 
1031
    Parameters:
1032
     - offset
1033
     - limit
1034
    """
1035
    self.send_getAllItemsInRange(offset, limit)
1036
    return self.recv_getAllItemsInRange()
1037
 
1038
  def send_getAllItemsInRange(self, offset, limit):
1039
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1040
    args = getAllItemsInRange_args()
1041
    args.offset = offset
1042
    args.limit = limit
1043
    args.write(self._oprot)
1044
    self._oprot.writeMessageEnd()
1045
    self._oprot.trans.flush()
1046
 
1047
  def recv_getAllItemsInRange(self, ):
1048
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1049
    if mtype == TMessageType.EXCEPTION:
1050
      x = TApplicationException()
1051
      x.read(self._iprot)
1052
      self._iprot.readMessageEnd()
1053
      raise x
1054
    result = getAllItemsInRange_result()
1055
    result.read(self._iprot)
1056
    self._iprot.readMessageEnd()
1057
    if result.success is not None:
1058
      return result.success
1059
    if result.cex is not None:
1060
      raise result.cex
1061
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1062
 
1063
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1064
    """
1065
    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.
1066
 
1067
    Parameters:
1068
     - itemStatus
1069
     - offset
1070
     - limit
1071
    """
1072
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1073
    return self.recv_getAllItemsByStatusInRange()
1074
 
1075
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1076
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1077
    args = getAllItemsByStatusInRange_args()
1078
    args.itemStatus = itemStatus
1079
    args.offset = offset
1080
    args.limit = limit
1081
    args.write(self._oprot)
1082
    self._oprot.writeMessageEnd()
1083
    self._oprot.trans.flush()
1084
 
1085
  def recv_getAllItemsByStatusInRange(self, ):
1086
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1087
    if mtype == TMessageType.EXCEPTION:
1088
      x = TApplicationException()
1089
      x.read(self._iprot)
1090
      self._iprot.readMessageEnd()
1091
      raise x
1092
    result = getAllItemsByStatusInRange_result()
1093
    result.read(self._iprot)
1094
    self._iprot.readMessageEnd()
1095
    if result.success is not None:
1096
      return result.success
1097
    if result.cex is not None:
1098
      raise result.cex
1099
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1100
 
1101
  def getItemCountByStatus(self, useStatus, itemStatus):
1102
    """
1103
    Gets a count of all items by status
1104
 
1105
    Parameters:
1106
     - useStatus
1107
     - itemStatus
1108
    """
1109
    self.send_getItemCountByStatus(useStatus, itemStatus)
1110
    return self.recv_getItemCountByStatus()
1111
 
1112
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1113
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1114
    args = getItemCountByStatus_args()
1115
    args.useStatus = useStatus
1116
    args.itemStatus = itemStatus
1117
    args.write(self._oprot)
1118
    self._oprot.writeMessageEnd()
1119
    self._oprot.trans.flush()
1120
 
1121
  def recv_getItemCountByStatus(self, ):
1122
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1123
    if mtype == TMessageType.EXCEPTION:
1124
      x = TApplicationException()
1125
      x.read(self._iprot)
1126
      self._iprot.readMessageEnd()
1127
      raise x
1128
    result = getItemCountByStatus_result()
1129
    result.read(self._iprot)
1130
    self._iprot.readMessageEnd()
1131
    if result.success is not None:
1132
      return result.success
1133
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1134
 
1135
  def getBestSellers(self, ):
1136
    self.send_getBestSellers()
1137
    return self.recv_getBestSellers()
1138
 
1139
  def send_getBestSellers(self, ):
1140
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1141
    args = getBestSellers_args()
1142
    args.write(self._oprot)
1143
    self._oprot.writeMessageEnd()
1144
    self._oprot.trans.flush()
1145
 
1146
  def recv_getBestSellers(self, ):
1147
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1148
    if mtype == TMessageType.EXCEPTION:
1149
      x = TApplicationException()
1150
      x.read(self._iprot)
1151
      self._iprot.readMessageEnd()
1152
      raise x
1153
    result = getBestSellers_result()
1154
    result.read(self._iprot)
1155
    self._iprot.readMessageEnd()
1156
    if result.success is not None:
1157
      return result.success
1158
    if result.isex is not None:
1159
      raise result.isex
1160
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1161
 
1162
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1163
    """
1164
    Parameters:
1165
     - beginIndex
1166
     - totalItems
1167
     - brand
1168
     - category
1169
    """
1170
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1171
    return self.recv_getBestSellersCatalogIds()
1172
 
1173
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1174
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1175
    args = getBestSellersCatalogIds_args()
1176
    args.beginIndex = beginIndex
1177
    args.totalItems = totalItems
1178
    args.brand = brand
1179
    args.category = category
1180
    args.write(self._oprot)
1181
    self._oprot.writeMessageEnd()
1182
    self._oprot.trans.flush()
1183
 
1184
  def recv_getBestSellersCatalogIds(self, ):
1185
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1186
    if mtype == TMessageType.EXCEPTION:
1187
      x = TApplicationException()
1188
      x.read(self._iprot)
1189
      self._iprot.readMessageEnd()
1190
      raise x
1191
    result = getBestSellersCatalogIds_result()
1192
    result.read(self._iprot)
1193
    self._iprot.readMessageEnd()
1194
    if result.success is not None:
1195
      return result.success
1196
    if result.cex is not None:
1197
      raise result.cex
1198
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1199
 
1200
  def getBestSellersCount(self, ):
1201
    self.send_getBestSellersCount()
1202
    return self.recv_getBestSellersCount()
1203
 
1204
  def send_getBestSellersCount(self, ):
1205
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1206
    args = getBestSellersCount_args()
1207
    args.write(self._oprot)
1208
    self._oprot.writeMessageEnd()
1209
    self._oprot.trans.flush()
1210
 
1211
  def recv_getBestSellersCount(self, ):
1212
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1213
    if mtype == TMessageType.EXCEPTION:
1214
      x = TApplicationException()
1215
      x.read(self._iprot)
1216
      self._iprot.readMessageEnd()
1217
      raise x
1218
    result = getBestSellersCount_result()
1219
    result.read(self._iprot)
1220
    self._iprot.readMessageEnd()
1221
    if result.success is not None:
1222
      return result.success
1223
    if result.cex is not None:
1224
      raise result.cex
1225
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1226
 
1227
  def getBestDeals(self, ):
1228
    self.send_getBestDeals()
1229
    return self.recv_getBestDeals()
1230
 
1231
  def send_getBestDeals(self, ):
1232
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1233
    args = getBestDeals_args()
1234
    args.write(self._oprot)
1235
    self._oprot.writeMessageEnd()
1236
    self._oprot.trans.flush()
1237
 
1238
  def recv_getBestDeals(self, ):
1239
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1240
    if mtype == TMessageType.EXCEPTION:
1241
      x = TApplicationException()
1242
      x.read(self._iprot)
1243
      self._iprot.readMessageEnd()
1244
      raise x
1245
    result = getBestDeals_result()
1246
    result.read(self._iprot)
1247
    self._iprot.readMessageEnd()
1248
    if result.success is not None:
1249
      return result.success
1250
    if result.isex is not None:
1251
      raise result.isex
1252
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1253
 
1254
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1255
    """
1256
    Parameters:
1257
     - beginIndex
1258
     - totalItems
1259
     - brand
1260
     - category
1261
    """
1262
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1263
    return self.recv_getBestDealsCatalogIds()
1264
 
1265
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1266
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1267
    args = getBestDealsCatalogIds_args()
1268
    args.beginIndex = beginIndex
1269
    args.totalItems = totalItems
1270
    args.brand = brand
1271
    args.category = category
1272
    args.write(self._oprot)
1273
    self._oprot.writeMessageEnd()
1274
    self._oprot.trans.flush()
1275
 
1276
  def recv_getBestDealsCatalogIds(self, ):
1277
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1278
    if mtype == TMessageType.EXCEPTION:
1279
      x = TApplicationException()
1280
      x.read(self._iprot)
1281
      self._iprot.readMessageEnd()
1282
      raise x
1283
    result = getBestDealsCatalogIds_result()
1284
    result.read(self._iprot)
1285
    self._iprot.readMessageEnd()
1286
    if result.success is not None:
1287
      return result.success
1288
    if result.cex is not None:
1289
      raise result.cex
1290
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1291
 
1292
  def getBestDealsCount(self, ):
1293
    self.send_getBestDealsCount()
1294
    return self.recv_getBestDealsCount()
1295
 
1296
  def send_getBestDealsCount(self, ):
1297
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1298
    args = getBestDealsCount_args()
1299
    args.write(self._oprot)
1300
    self._oprot.writeMessageEnd()
1301
    self._oprot.trans.flush()
1302
 
1303
  def recv_getBestDealsCount(self, ):
1304
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1305
    if mtype == TMessageType.EXCEPTION:
1306
      x = TApplicationException()
1307
      x.read(self._iprot)
1308
      self._iprot.readMessageEnd()
1309
      raise x
1310
    result = getBestDealsCount_result()
1311
    result.read(self._iprot)
1312
    self._iprot.readMessageEnd()
1313
    if result.success is not None:
1314
      return result.success
1315
    if result.cex is not None:
1316
      raise result.cex
1317
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1318
 
1319
  def getComingSoon(self, ):
1320
    self.send_getComingSoon()
1321
    return self.recv_getComingSoon()
1322
 
1323
  def send_getComingSoon(self, ):
1324
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1325
    args = getComingSoon_args()
1326
    args.write(self._oprot)
1327
    self._oprot.writeMessageEnd()
1328
    self._oprot.trans.flush()
1329
 
1330
  def recv_getComingSoon(self, ):
1331
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1332
    if mtype == TMessageType.EXCEPTION:
1333
      x = TApplicationException()
1334
      x.read(self._iprot)
1335
      self._iprot.readMessageEnd()
1336
      raise x
1337
    result = getComingSoon_result()
1338
    result.read(self._iprot)
1339
    self._iprot.readMessageEnd()
1340
    if result.success is not None:
1341
      return result.success
1342
    if result.isex is not None:
1343
      raise result.isex
1344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1345
 
1346
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1347
    """
1348
    Parameters:
1349
     - beginIndex
1350
     - totalItems
1351
     - brand
1352
     - category
1353
    """
1354
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1355
    return self.recv_getComingSoonCatalogIds()
1356
 
1357
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1358
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1359
    args = getComingSoonCatalogIds_args()
1360
    args.beginIndex = beginIndex
1361
    args.totalItems = totalItems
1362
    args.brand = brand
1363
    args.category = category
1364
    args.write(self._oprot)
1365
    self._oprot.writeMessageEnd()
1366
    self._oprot.trans.flush()
1367
 
1368
  def recv_getComingSoonCatalogIds(self, ):
1369
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1370
    if mtype == TMessageType.EXCEPTION:
1371
      x = TApplicationException()
1372
      x.read(self._iprot)
1373
      self._iprot.readMessageEnd()
1374
      raise x
1375
    result = getComingSoonCatalogIds_result()
1376
    result.read(self._iprot)
1377
    self._iprot.readMessageEnd()
1378
    if result.success is not None:
1379
      return result.success
1380
    if result.cex is not None:
1381
      raise result.cex
1382
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1383
 
1384
  def getComingSoonCount(self, ):
1385
    self.send_getComingSoonCount()
1386
    return self.recv_getComingSoonCount()
1387
 
1388
  def send_getComingSoonCount(self, ):
1389
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1390
    args = getComingSoonCount_args()
1391
    args.write(self._oprot)
1392
    self._oprot.writeMessageEnd()
1393
    self._oprot.trans.flush()
1394
 
1395
  def recv_getComingSoonCount(self, ):
1396
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1397
    if mtype == TMessageType.EXCEPTION:
1398
      x = TApplicationException()
1399
      x.read(self._iprot)
1400
      self._iprot.readMessageEnd()
1401
      raise x
1402
    result = getComingSoonCount_result()
1403
    result.read(self._iprot)
1404
    self._iprot.readMessageEnd()
1405
    if result.success is not None:
1406
      return result.success
1407
    if result.cex is not None:
1408
      raise result.cex
1409
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1410
 
1411
  def getLatestArrivals(self, ):
1412
    """
1413
    Returns a list of items sorted in the descending order by start date.
1414
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1415
    """
1416
    self.send_getLatestArrivals()
1417
    return self.recv_getLatestArrivals()
1418
 
1419
  def send_getLatestArrivals(self, ):
1420
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1421
    args = getLatestArrivals_args()
1422
    args.write(self._oprot)
1423
    self._oprot.writeMessageEnd()
1424
    self._oprot.trans.flush()
1425
 
1426
  def recv_getLatestArrivals(self, ):
1427
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1428
    if mtype == TMessageType.EXCEPTION:
1429
      x = TApplicationException()
1430
      x.read(self._iprot)
1431
      self._iprot.readMessageEnd()
1432
      raise x
1433
    result = getLatestArrivals_result()
1434
    result.read(self._iprot)
1435
    self._iprot.readMessageEnd()
1436
    if result.success is not None:
1437
      return result.success
1438
    if result.isex is not None:
1439
      raise result.isex
1440
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1441
 
1442
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1443
    """
1444
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1445
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1446
 
1447
    Parameters:
1448
     - beginIndex
1449
     - totalItems
1450
     - brand
1451
     - categories
1452
    """
1453
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1454
    return self.recv_getLatestArrivalsCatalogIds()
1455
 
1456
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1457
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1458
    args = getLatestArrivalsCatalogIds_args()
1459
    args.beginIndex = beginIndex
1460
    args.totalItems = totalItems
1461
    args.brand = brand
1462
    args.categories = categories
1463
    args.write(self._oprot)
1464
    self._oprot.writeMessageEnd()
1465
    self._oprot.trans.flush()
1466
 
1467
  def recv_getLatestArrivalsCatalogIds(self, ):
1468
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1469
    if mtype == TMessageType.EXCEPTION:
1470
      x = TApplicationException()
1471
      x.read(self._iprot)
1472
      self._iprot.readMessageEnd()
1473
      raise x
1474
    result = getLatestArrivalsCatalogIds_result()
1475
    result.read(self._iprot)
1476
    self._iprot.readMessageEnd()
1477
    if result.success is not None:
1478
      return result.success
1479
    if result.cex is not None:
1480
      raise result.cex
1481
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1482
 
1483
  def getLatestArrivalsCount(self, ):
1484
    """
1485
    Get the total number of latest arrivals we are willing to show.
1486
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1487
    """
1488
    self.send_getLatestArrivalsCount()
1489
    return self.recv_getLatestArrivalsCount()
1490
 
1491
  def send_getLatestArrivalsCount(self, ):
1492
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1493
    args = getLatestArrivalsCount_args()
1494
    args.write(self._oprot)
1495
    self._oprot.writeMessageEnd()
1496
    self._oprot.trans.flush()
1497
 
1498
  def recv_getLatestArrivalsCount(self, ):
1499
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1500
    if mtype == TMessageType.EXCEPTION:
1501
      x = TApplicationException()
1502
      x.read(self._iprot)
1503
      self._iprot.readMessageEnd()
1504
      raise x
1505
    result = getLatestArrivalsCount_result()
1506
    result.read(self._iprot)
1507
    self._iprot.readMessageEnd()
1508
    if result.success is not None:
1509
      return result.success
1510
    if result.cex is not None:
1511
      raise result.cex
1512
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1513
 
1514
  def generateNewEntityID(self, ):
1515
    self.send_generateNewEntityID()
1516
    return self.recv_generateNewEntityID()
1517
 
1518
  def send_generateNewEntityID(self, ):
1519
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1520
    args = generateNewEntityID_args()
1521
    args.write(self._oprot)
1522
    self._oprot.writeMessageEnd()
1523
    self._oprot.trans.flush()
1524
 
1525
  def recv_generateNewEntityID(self, ):
1526
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1527
    if mtype == TMessageType.EXCEPTION:
1528
      x = TApplicationException()
1529
      x.read(self._iprot)
1530
      self._iprot.readMessageEnd()
1531
      raise x
1532
    result = generateNewEntityID_result()
1533
    result.read(self._iprot)
1534
    self._iprot.readMessageEnd()
1535
    if result.success is not None:
1536
      return result.success
1537
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1538
 
1539
  def addCategory(self, category):
1540
    """
1541
    All category related functions
1542
 
1543
    Parameters:
1544
     - category
1545
    """
1546
    self.send_addCategory(category)
1547
    return self.recv_addCategory()
1548
 
1549
  def send_addCategory(self, category):
1550
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1551
    args = addCategory_args()
1552
    args.category = category
1553
    args.write(self._oprot)
1554
    self._oprot.writeMessageEnd()
1555
    self._oprot.trans.flush()
1556
 
1557
  def recv_addCategory(self, ):
1558
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1559
    if mtype == TMessageType.EXCEPTION:
1560
      x = TApplicationException()
1561
      x.read(self._iprot)
1562
      self._iprot.readMessageEnd()
1563
      raise x
1564
    result = addCategory_result()
1565
    result.read(self._iprot)
1566
    self._iprot.readMessageEnd()
1567
    if result.success is not None:
1568
      return result.success
1569
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1570
 
1571
  def getCategory(self, id):
1572
    """
1573
    Parameters:
1574
     - id
1575
    """
1576
    self.send_getCategory(id)
1577
    return self.recv_getCategory()
1578
 
1579
  def send_getCategory(self, id):
1580
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1581
    args = getCategory_args()
1582
    args.id = id
1583
    args.write(self._oprot)
1584
    self._oprot.writeMessageEnd()
1585
    self._oprot.trans.flush()
1586
 
1587
  def recv_getCategory(self, ):
1588
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1589
    if mtype == TMessageType.EXCEPTION:
1590
      x = TApplicationException()
1591
      x.read(self._iprot)
1592
      self._iprot.readMessageEnd()
1593
      raise x
1594
    result = getCategory_result()
1595
    result.read(self._iprot)
1596
    self._iprot.readMessageEnd()
1597
    if result.success is not None:
1598
      return result.success
1599
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1600
 
1601
  def getAllCategories(self, ):
1602
    self.send_getAllCategories()
1603
    return self.recv_getAllCategories()
1604
 
1605
  def send_getAllCategories(self, ):
1606
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1607
    args = getAllCategories_args()
1608
    args.write(self._oprot)
1609
    self._oprot.writeMessageEnd()
1610
    self._oprot.trans.flush()
1611
 
1612
  def recv_getAllCategories(self, ):
1613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1614
    if mtype == TMessageType.EXCEPTION:
1615
      x = TApplicationException()
1616
      x.read(self._iprot)
1617
      self._iprot.readMessageEnd()
1618
      raise x
1619
    result = getAllCategories_result()
1620
    result.read(self._iprot)
1621
    self._iprot.readMessageEnd()
1622
    if result.success is not None:
1623
      return result.success
1624
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1625
 
1626
  def getAllSimilarItems(self, itemId):
1627
    """
1628
    Returns the list of similar items.
1629
 
1630
    Parameters:
1631
     - itemId
1632
    """
1633
    self.send_getAllSimilarItems(itemId)
1634
    return self.recv_getAllSimilarItems()
1635
 
1636
  def send_getAllSimilarItems(self, itemId):
1637
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1638
    args = getAllSimilarItems_args()
1639
    args.itemId = itemId
1640
    args.write(self._oprot)
1641
    self._oprot.writeMessageEnd()
1642
    self._oprot.trans.flush()
1643
 
1644
  def recv_getAllSimilarItems(self, ):
1645
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1646
    if mtype == TMessageType.EXCEPTION:
1647
      x = TApplicationException()
1648
      x.read(self._iprot)
1649
      self._iprot.readMessageEnd()
1650
      raise x
1651
    result = getAllSimilarItems_result()
1652
    result.read(self._iprot)
1653
    self._iprot.readMessageEnd()
1654
    if result.success is not None:
1655
      return result.success
1656
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1657
 
1658
  def addSimilarItem(self, itemId, catalogItemId):
1659
    """
1660
    Adds similar item.
1661
 
1662
    Parameters:
1663
     - itemId
1664
     - catalogItemId
1665
    """
1666
    self.send_addSimilarItem(itemId, catalogItemId)
1667
    return self.recv_addSimilarItem()
1668
 
1669
  def send_addSimilarItem(self, itemId, catalogItemId):
1670
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1671
    args = addSimilarItem_args()
1672
    args.itemId = itemId
1673
    args.catalogItemId = catalogItemId
1674
    args.write(self._oprot)
1675
    self._oprot.writeMessageEnd()
1676
    self._oprot.trans.flush()
1677
 
1678
  def recv_addSimilarItem(self, ):
1679
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1680
    if mtype == TMessageType.EXCEPTION:
1681
      x = TApplicationException()
1682
      x.read(self._iprot)
1683
      self._iprot.readMessageEnd()
1684
      raise x
1685
    result = addSimilarItem_result()
1686
    result.read(self._iprot)
1687
    self._iprot.readMessageEnd()
1688
    if result.success is not None:
1689
      return result.success
1690
    if result.cex is not None:
1691
      raise result.cex
1692
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1693
 
6512 kshitij.so 1694
  def addTag(self, displayName, itemId):
1695
    """
1696
    Tag Related
1697
 
1698
    Parameters:
1699
     - displayName
1700
     - itemId
1701
    """
1702
    self.send_addTag(displayName, itemId)
1703
    return self.recv_addTag()
1704
 
1705
  def send_addTag(self, displayName, itemId):
1706
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1707
    args = addTag_args()
1708
    args.displayName = displayName
1709
    args.itemId = itemId
1710
    args.write(self._oprot)
1711
    self._oprot.writeMessageEnd()
1712
    self._oprot.trans.flush()
1713
 
1714
  def recv_addTag(self, ):
1715
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1716
    if mtype == TMessageType.EXCEPTION:
1717
      x = TApplicationException()
1718
      x.read(self._iprot)
1719
      self._iprot.readMessageEnd()
1720
      raise x
1721
    result = addTag_result()
1722
    result.read(self._iprot)
1723
    self._iprot.readMessageEnd()
1724
    if result.success is not None:
1725
      return result.success
1726
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1727
 
1728
  def deleteEntityTag(self, displayName, itemId):
1729
    """
1730
    Parameters:
1731
     - displayName
1732
     - itemId
1733
    """
1734
    self.send_deleteEntityTag(displayName, itemId)
1735
    return self.recv_deleteEntityTag()
1736
 
1737
  def send_deleteEntityTag(self, displayName, itemId):
1738
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1739
    args = deleteEntityTag_args()
1740
    args.displayName = displayName
1741
    args.itemId = itemId
1742
    args.write(self._oprot)
1743
    self._oprot.writeMessageEnd()
1744
    self._oprot.trans.flush()
1745
 
1746
  def recv_deleteEntityTag(self, ):
1747
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1748
    if mtype == TMessageType.EXCEPTION:
1749
      x = TApplicationException()
1750
      x.read(self._iprot)
1751
      self._iprot.readMessageEnd()
1752
      raise x
1753
    result = deleteEntityTag_result()
1754
    result.read(self._iprot)
1755
    self._iprot.readMessageEnd()
1756
    if result.success is not None:
1757
      return result.success
1758
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1759
 
1760
  def deleteTag(self, displayName):
1761
    """
1762
    Parameters:
1763
     - displayName
1764
    """
1765
    self.send_deleteTag(displayName)
1766
    return self.recv_deleteTag()
1767
 
1768
  def send_deleteTag(self, displayName):
1769
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1770
    args = deleteTag_args()
1771
    args.displayName = displayName
1772
    args.write(self._oprot)
1773
    self._oprot.writeMessageEnd()
1774
    self._oprot.trans.flush()
1775
 
1776
  def recv_deleteTag(self, ):
1777
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1778
    if mtype == TMessageType.EXCEPTION:
1779
      x = TApplicationException()
1780
      x.read(self._iprot)
1781
      self._iprot.readMessageEnd()
1782
      raise x
1783
    result = deleteTag_result()
1784
    result.read(self._iprot)
1785
    self._iprot.readMessageEnd()
1786
    if result.success is not None:
1787
      return result.success
1788
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1789
 
1790
  def getAllTags(self, ):
1791
    self.send_getAllTags()
1792
    return self.recv_getAllTags()
1793
 
1794
  def send_getAllTags(self, ):
1795
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1796
    args = getAllTags_args()
1797
    args.write(self._oprot)
1798
    self._oprot.writeMessageEnd()
1799
    self._oprot.trans.flush()
1800
 
1801
  def recv_getAllTags(self, ):
1802
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1803
    if mtype == TMessageType.EXCEPTION:
1804
      x = TApplicationException()
1805
      x.read(self._iprot)
1806
      self._iprot.readMessageEnd()
1807
      raise x
1808
    result = getAllTags_result()
1809
    result.read(self._iprot)
1810
    self._iprot.readMessageEnd()
1811
    if result.success is not None:
1812
      return result.success
1813
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1814
 
1815
  def getAllEntitiesByTagName(self, displayName):
1816
    """
1817
    Parameters:
1818
     - displayName
1819
    """
1820
    self.send_getAllEntitiesByTagName(displayName)
1821
    return self.recv_getAllEntitiesByTagName()
1822
 
1823
  def send_getAllEntitiesByTagName(self, displayName):
1824
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1825
    args = getAllEntitiesByTagName_args()
1826
    args.displayName = displayName
1827
    args.write(self._oprot)
1828
    self._oprot.writeMessageEnd()
1829
    self._oprot.trans.flush()
1830
 
1831
  def recv_getAllEntitiesByTagName(self, ):
1832
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1833
    if mtype == TMessageType.EXCEPTION:
1834
      x = TApplicationException()
1835
      x.read(self._iprot)
1836
      self._iprot.readMessageEnd()
1837
      raise x
1838
    result = getAllEntitiesByTagName_result()
1839
    result.read(self._iprot)
1840
    self._iprot.readMessageEnd()
1841
    if result.success is not None:
1842
      return result.success
1843
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1844
 
5944 mandeep.dh 1845
  def deleteSimilarItem(self, itemId, catalogItemId):
1846
    """
1847
    Delete similar item.
1848
 
1849
    Parameters:
1850
     - itemId
1851
     - catalogItemId
1852
    """
1853
    self.send_deleteSimilarItem(itemId, catalogItemId)
1854
    return self.recv_deleteSimilarItem()
1855
 
1856
  def send_deleteSimilarItem(self, itemId, catalogItemId):
1857
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
1858
    args = deleteSimilarItem_args()
1859
    args.itemId = itemId
1860
    args.catalogItemId = catalogItemId
1861
    args.write(self._oprot)
1862
    self._oprot.writeMessageEnd()
1863
    self._oprot.trans.flush()
1864
 
1865
  def recv_deleteSimilarItem(self, ):
1866
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1867
    if mtype == TMessageType.EXCEPTION:
1868
      x = TApplicationException()
1869
      x.read(self._iprot)
1870
      self._iprot.readMessageEnd()
1871
      raise x
1872
    result = deleteSimilarItem_result()
1873
    result.read(self._iprot)
1874
    self._iprot.readMessageEnd()
1875
    if result.success is not None:
1876
      return result.success
1877
    if result.cex is not None:
1878
      raise result.cex
1879
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
1880
 
1881
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
1882
    """
1883
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
1884
    If yes, returns the itemId else returns 0
1885
 
1886
    Parameters:
1887
     - brand
1888
     - modelNumber
1889
     - modelName
1890
     - color
1891
    """
1892
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
1893
    return self.recv_checkSimilarItem()
1894
 
1895
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
1896
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
1897
    args = checkSimilarItem_args()
1898
    args.brand = brand
1899
    args.modelNumber = modelNumber
1900
    args.modelName = modelName
1901
    args.color = color
1902
    args.write(self._oprot)
1903
    self._oprot.writeMessageEnd()
1904
    self._oprot.trans.flush()
1905
 
1906
  def recv_checkSimilarItem(self, ):
1907
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1908
    if mtype == TMessageType.EXCEPTION:
1909
      x = TApplicationException()
1910
      x.read(self._iprot)
1911
      self._iprot.readMessageEnd()
1912
      raise x
1913
    result = checkSimilarItem_result()
1914
    result.read(self._iprot)
1915
    self._iprot.readMessageEnd()
1916
    if result.success is not None:
1917
      return result.success
1918
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
1919
 
1920
  def validateRiskyStatus(self, itemId):
1921
    """
1922
    Check wether item is risky and change status if inventory is not available for risky items
1923
 
1924
    Parameters:
1925
     - itemId
1926
    """
1927
    self.send_validateRiskyStatus(itemId)
1928
    self.recv_validateRiskyStatus()
1929
 
1930
  def send_validateRiskyStatus(self, itemId):
1931
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
1932
    args = validateRiskyStatus_args()
1933
    args.itemId = itemId
1934
    args.write(self._oprot)
1935
    self._oprot.writeMessageEnd()
1936
    self._oprot.trans.flush()
1937
 
1938
  def recv_validateRiskyStatus(self, ):
1939
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1940
    if mtype == TMessageType.EXCEPTION:
1941
      x = TApplicationException()
1942
      x.read(self._iprot)
1943
      self._iprot.readMessageEnd()
1944
      raise x
1945
    result = validateRiskyStatus_result()
1946
    result.read(self._iprot)
1947
    self._iprot.readMessageEnd()
1948
    return
1949
 
1950
  def changeItemRiskyFlag(self, itemId, risky):
1951
    """
1952
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
1953
 
1954
    Parameters:
1955
     - itemId
1956
     - risky
1957
    """
1958
    self.send_changeItemRiskyFlag(itemId, risky)
1959
    self.recv_changeItemRiskyFlag()
1960
 
1961
  def send_changeItemRiskyFlag(self, itemId, risky):
1962
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
1963
    args = changeItemRiskyFlag_args()
1964
    args.itemId = itemId
1965
    args.risky = risky
1966
    args.write(self._oprot)
1967
    self._oprot.writeMessageEnd()
1968
    self._oprot.trans.flush()
1969
 
1970
  def recv_changeItemRiskyFlag(self, ):
1971
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1972
    if mtype == TMessageType.EXCEPTION:
1973
      x = TApplicationException()
1974
      x.read(self._iprot)
1975
      self._iprot.readMessageEnd()
1976
      raise x
1977
    result = changeItemRiskyFlag_result()
1978
    result.read(self._iprot)
1979
    self._iprot.readMessageEnd()
1980
    return
1981
 
1982
  def getItemsByRiskyFlag(self, ):
1983
    """
1984
    Returns list of items marked as risky.
1985
    """
1986
    self.send_getItemsByRiskyFlag()
1987
    return self.recv_getItemsByRiskyFlag()
1988
 
1989
  def send_getItemsByRiskyFlag(self, ):
1990
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
1991
    args = getItemsByRiskyFlag_args()
1992
    args.write(self._oprot)
1993
    self._oprot.writeMessageEnd()
1994
    self._oprot.trans.flush()
1995
 
1996
  def recv_getItemsByRiskyFlag(self, ):
1997
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1998
    if mtype == TMessageType.EXCEPTION:
1999
      x = TApplicationException()
2000
      x.read(self._iprot)
2001
      self._iprot.readMessageEnd()
2002
      raise x
2003
    result = getItemsByRiskyFlag_result()
2004
    result.read(self._iprot)
2005
    self._iprot.readMessageEnd()
2006
    if result.success is not None:
2007
      return result.success
2008
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2009
 
2010
  def getItemsForMasterSheet(self, category, brand):
2011
    """
2012
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2013
 
2014
    Parameters:
2015
     - category
2016
     - brand
2017
    """
2018
    self.send_getItemsForMasterSheet(category, brand)
2019
    return self.recv_getItemsForMasterSheet()
2020
 
2021
  def send_getItemsForMasterSheet(self, category, brand):
2022
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2023
    args = getItemsForMasterSheet_args()
2024
    args.category = category
2025
    args.brand = brand
2026
    args.write(self._oprot)
2027
    self._oprot.writeMessageEnd()
2028
    self._oprot.trans.flush()
2029
 
2030
  def recv_getItemsForMasterSheet(self, ):
2031
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2032
    if mtype == TMessageType.EXCEPTION:
2033
      x = TApplicationException()
2034
      x.read(self._iprot)
2035
      self._iprot.readMessageEnd()
2036
      raise x
2037
    result = getItemsForMasterSheet_result()
2038
    result.read(self._iprot)
2039
    self._iprot.readMessageEnd()
2040
    if result.success is not None:
2041
      return result.success
2042
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2043
 
2044
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2045
    """
2046
    Returns list of catalog ids of items with same similarity index as of the given itemId
2047
 
2048
    Parameters:
2049
     - beginIndex
2050
     - totalItems
2051
     - itemId
2052
    """
2053
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2054
    return self.recv_getSimilarItemsCatalogIds()
2055
 
2056
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2057
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2058
    args = getSimilarItemsCatalogIds_args()
2059
    args.beginIndex = beginIndex
2060
    args.totalItems = totalItems
2061
    args.itemId = itemId
2062
    args.write(self._oprot)
2063
    self._oprot.writeMessageEnd()
2064
    self._oprot.trans.flush()
2065
 
2066
  def recv_getSimilarItemsCatalogIds(self, ):
2067
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2068
    if mtype == TMessageType.EXCEPTION:
2069
      x = TApplicationException()
2070
      x.read(self._iprot)
2071
      self._iprot.readMessageEnd()
2072
      raise x
2073
    result = getSimilarItemsCatalogIds_result()
2074
    result.read(self._iprot)
2075
    self._iprot.readMessageEnd()
2076
    if result.success is not None:
2077
      return result.success
2078
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2079
 
2080
  def addProductNotification(self, itemId, email):
2081
    """
2082
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2083
 
2084
    Parameters:
2085
     - itemId
2086
     - email
2087
    """
2088
    self.send_addProductNotification(itemId, email)
2089
    return self.recv_addProductNotification()
2090
 
2091
  def send_addProductNotification(self, itemId, email):
2092
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2093
    args = addProductNotification_args()
2094
    args.itemId = itemId
2095
    args.email = email
2096
    args.write(self._oprot)
2097
    self._oprot.writeMessageEnd()
2098
    self._oprot.trans.flush()
2099
 
2100
  def recv_addProductNotification(self, ):
2101
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2102
    if mtype == TMessageType.EXCEPTION:
2103
      x = TApplicationException()
2104
      x.read(self._iprot)
2105
      self._iprot.readMessageEnd()
2106
      raise x
2107
    result = addProductNotification_result()
2108
    result.read(self._iprot)
2109
    self._iprot.readMessageEnd()
2110
    if result.success is not None:
2111
      return result.success
2112
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2113
 
2114
  def sendProductNotifications(self, ):
2115
    """
2116
    Send the product notifications to the users for items which has stock.
2117
    """
2118
    self.send_sendProductNotifications()
2119
    return self.recv_sendProductNotifications()
2120
 
2121
  def send_sendProductNotifications(self, ):
2122
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2123
    args = sendProductNotifications_args()
2124
    args.write(self._oprot)
2125
    self._oprot.writeMessageEnd()
2126
    self._oprot.trans.flush()
2127
 
2128
  def recv_sendProductNotifications(self, ):
2129
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2130
    if mtype == TMessageType.EXCEPTION:
2131
      x = TApplicationException()
2132
      x.read(self._iprot)
2133
      self._iprot.readMessageEnd()
2134
      raise x
2135
    result = sendProductNotifications_result()
2136
    result.read(self._iprot)
2137
    self._iprot.readMessageEnd()
2138
    if result.success is not None:
2139
      return result.success
2140
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2141
 
2142
  def getAllBrandsByCategory(self, categoryId):
2143
    """
2144
    Returns list of brand names for a given category Id
2145
 
2146
    Parameters:
2147
     - categoryId
2148
    """
2149
    self.send_getAllBrandsByCategory(categoryId)
2150
    return self.recv_getAllBrandsByCategory()
2151
 
2152
  def send_getAllBrandsByCategory(self, categoryId):
2153
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2154
    args = getAllBrandsByCategory_args()
2155
    args.categoryId = categoryId
2156
    args.write(self._oprot)
2157
    self._oprot.writeMessageEnd()
2158
    self._oprot.trans.flush()
2159
 
2160
  def recv_getAllBrandsByCategory(self, ):
2161
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2162
    if mtype == TMessageType.EXCEPTION:
2163
      x = TApplicationException()
2164
      x.read(self._iprot)
2165
      self._iprot.readMessageEnd()
2166
      raise x
2167
    result = getAllBrandsByCategory_result()
2168
    result.read(self._iprot)
2169
    self._iprot.readMessageEnd()
2170
    if result.success is not None:
2171
      return result.success
2172
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2173
 
2174
  def getAllBrands(self, ):
2175
    """
2176
    Returns list of brand names
2177
    """
2178
    self.send_getAllBrands()
2179
    return self.recv_getAllBrands()
2180
 
2181
  def send_getAllBrands(self, ):
2182
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2183
    args = getAllBrands_args()
2184
    args.write(self._oprot)
2185
    self._oprot.writeMessageEnd()
2186
    self._oprot.trans.flush()
2187
 
2188
  def recv_getAllBrands(self, ):
2189
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2190
    if mtype == TMessageType.EXCEPTION:
2191
      x = TApplicationException()
2192
      x.read(self._iprot)
2193
      self._iprot.readMessageEnd()
2194
      raise x
2195
    result = getAllBrands_result()
2196
    result.read(self._iprot)
2197
    self._iprot.readMessageEnd()
2198
    if result.success is not None:
2199
      return result.success
2200
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2201
 
2202
  def getAllSources(self, ):
2203
    """
2204
    Return list of all sources
2205
    """
2206
    self.send_getAllSources()
2207
    return self.recv_getAllSources()
2208
 
2209
  def send_getAllSources(self, ):
2210
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2211
    args = getAllSources_args()
2212
    args.write(self._oprot)
2213
    self._oprot.writeMessageEnd()
2214
    self._oprot.trans.flush()
2215
 
2216
  def recv_getAllSources(self, ):
2217
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2218
    if mtype == TMessageType.EXCEPTION:
2219
      x = TApplicationException()
2220
      x.read(self._iprot)
2221
      self._iprot.readMessageEnd()
2222
      raise x
2223
    result = getAllSources_result()
2224
    result.read(self._iprot)
2225
    self._iprot.readMessageEnd()
2226
    if result.success is not None:
2227
      return result.success
2228
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2229
 
2230
  def getItemPricingBySource(self, itemId, sourceId):
2231
    """
2232
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2233
 
2234
    Parameters:
2235
     - itemId
2236
     - sourceId
2237
    """
2238
    self.send_getItemPricingBySource(itemId, sourceId)
2239
    return self.recv_getItemPricingBySource()
2240
 
2241
  def send_getItemPricingBySource(self, itemId, sourceId):
2242
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2243
    args = getItemPricingBySource_args()
2244
    args.itemId = itemId
2245
    args.sourceId = sourceId
2246
    args.write(self._oprot)
2247
    self._oprot.writeMessageEnd()
2248
    self._oprot.trans.flush()
2249
 
2250
  def recv_getItemPricingBySource(self, ):
2251
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2252
    if mtype == TMessageType.EXCEPTION:
2253
      x = TApplicationException()
2254
      x.read(self._iprot)
2255
      self._iprot.readMessageEnd()
2256
      raise x
2257
    result = getItemPricingBySource_result()
2258
    result.read(self._iprot)
2259
    self._iprot.readMessageEnd()
2260
    if result.success is not None:
2261
      return result.success
2262
    if result.cex is not None:
2263
      raise result.cex
2264
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2265
 
2266
  def addSourceItemPricing(self, sourceItemPricing):
2267
    """
2268
    Adds prices to be displayed corresponding to the item if user comes from a source.
2269
    If item is not found or source is not found, it will throw exception.
2270
 
2271
    Parameters:
2272
     - sourceItemPricing
2273
    """
2274
    self.send_addSourceItemPricing(sourceItemPricing)
2275
    self.recv_addSourceItemPricing()
2276
 
2277
  def send_addSourceItemPricing(self, sourceItemPricing):
2278
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2279
    args = addSourceItemPricing_args()
2280
    args.sourceItemPricing = sourceItemPricing
2281
    args.write(self._oprot)
2282
    self._oprot.writeMessageEnd()
2283
    self._oprot.trans.flush()
2284
 
2285
  def recv_addSourceItemPricing(self, ):
2286
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2287
    if mtype == TMessageType.EXCEPTION:
2288
      x = TApplicationException()
2289
      x.read(self._iprot)
2290
      self._iprot.readMessageEnd()
2291
      raise x
2292
    result = addSourceItemPricing_result()
2293
    result.read(self._iprot)
2294
    self._iprot.readMessageEnd()
2295
    if result.cex is not None:
2296
      raise result.cex
2297
    return
2298
 
2299
  def getAllSourcePricing(self, itemId):
2300
    """
2301
    Returns the list of source pricing information of an item.
2302
    Raises an exception if item not found corresponding to itemId
2303
 
2304
    Parameters:
2305
     - itemId
2306
    """
2307
    self.send_getAllSourcePricing(itemId)
2308
    return self.recv_getAllSourcePricing()
2309
 
2310
  def send_getAllSourcePricing(self, itemId):
2311
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2312
    args = getAllSourcePricing_args()
2313
    args.itemId = itemId
2314
    args.write(self._oprot)
2315
    self._oprot.writeMessageEnd()
2316
    self._oprot.trans.flush()
2317
 
2318
  def recv_getAllSourcePricing(self, ):
2319
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2320
    if mtype == TMessageType.EXCEPTION:
2321
      x = TApplicationException()
2322
      x.read(self._iprot)
2323
      self._iprot.readMessageEnd()
2324
      raise x
2325
    result = getAllSourcePricing_result()
2326
    result.read(self._iprot)
2327
    self._iprot.readMessageEnd()
2328
    if result.success is not None:
2329
      return result.success
2330
    if result.cex is not None:
2331
      raise result.cex
2332
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2333
 
2334
  def getItemForSource(self, item_id, sourceId):
2335
    """
2336
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2337
 
2338
    Parameters:
2339
     - item_id
2340
     - sourceId
2341
    """
2342
    self.send_getItemForSource(item_id, sourceId)
2343
    return self.recv_getItemForSource()
2344
 
2345
  def send_getItemForSource(self, item_id, sourceId):
2346
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2347
    args = getItemForSource_args()
2348
    args.item_id = item_id
2349
    args.sourceId = sourceId
2350
    args.write(self._oprot)
2351
    self._oprot.writeMessageEnd()
2352
    self._oprot.trans.flush()
2353
 
2354
  def recv_getItemForSource(self, ):
2355
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2356
    if mtype == TMessageType.EXCEPTION:
2357
      x = TApplicationException()
2358
      x.read(self._iprot)
2359
      self._iprot.readMessageEnd()
2360
      raise x
2361
    result = getItemForSource_result()
2362
    result.read(self._iprot)
2363
    self._iprot.readMessageEnd()
2364
    if result.success is not None:
2365
      return result.success
2366
    if result.cex is not None:
2367
      raise result.cex
2368
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2369
 
2370
  def searchItemsInRange(self, searchTerms, offset, limit):
2371
    """
2372
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2373
 
2374
    Parameters:
2375
     - searchTerms
2376
     - offset
2377
     - limit
2378
    """
2379
    self.send_searchItemsInRange(searchTerms, offset, limit)
2380
    return self.recv_searchItemsInRange()
2381
 
2382
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2383
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2384
    args = searchItemsInRange_args()
2385
    args.searchTerms = searchTerms
2386
    args.offset = offset
2387
    args.limit = limit
2388
    args.write(self._oprot)
2389
    self._oprot.writeMessageEnd()
2390
    self._oprot.trans.flush()
2391
 
2392
  def recv_searchItemsInRange(self, ):
2393
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2394
    if mtype == TMessageType.EXCEPTION:
2395
      x = TApplicationException()
2396
      x.read(self._iprot)
2397
      self._iprot.readMessageEnd()
2398
      raise x
2399
    result = searchItemsInRange_result()
2400
    result.read(self._iprot)
2401
    self._iprot.readMessageEnd()
2402
    if result.success is not None:
2403
      return result.success
2404
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2405
 
2406
  def getSearchResultCount(self, searchTerms):
2407
    """
2408
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2409
 
2410
    Parameters:
2411
     - searchTerms
2412
    """
2413
    self.send_getSearchResultCount(searchTerms)
2414
    return self.recv_getSearchResultCount()
2415
 
2416
  def send_getSearchResultCount(self, searchTerms):
2417
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2418
    args = getSearchResultCount_args()
2419
    args.searchTerms = searchTerms
2420
    args.write(self._oprot)
2421
    self._oprot.writeMessageEnd()
2422
    self._oprot.trans.flush()
2423
 
2424
  def recv_getSearchResultCount(self, ):
2425
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2426
    if mtype == TMessageType.EXCEPTION:
2427
      x = TApplicationException()
2428
      x.read(self._iprot)
2429
      self._iprot.readMessageEnd()
2430
      raise x
2431
    result = getSearchResultCount_result()
2432
    result.read(self._iprot)
2433
    self._iprot.readMessageEnd()
2434
    if result.success is not None:
2435
      return result.success
2436
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2437
 
2438
  def getProductNotifications(self, startDateTime):
2439
    """
2440
    Returns a list of product notifications added after a supplied datetime
2441
 
2442
    Parameters:
2443
     - startDateTime
2444
    """
2445
    self.send_getProductNotifications(startDateTime)
2446
    return self.recv_getProductNotifications()
2447
 
2448
  def send_getProductNotifications(self, startDateTime):
2449
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2450
    args = getProductNotifications_args()
2451
    args.startDateTime = startDateTime
2452
    args.write(self._oprot)
2453
    self._oprot.writeMessageEnd()
2454
    self._oprot.trans.flush()
2455
 
2456
  def recv_getProductNotifications(self, ):
2457
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2458
    if mtype == TMessageType.EXCEPTION:
2459
      x = TApplicationException()
2460
      x.read(self._iprot)
2461
      self._iprot.readMessageEnd()
2462
      raise x
2463
    result = getProductNotifications_result()
2464
    result.read(self._iprot)
2465
    self._iprot.readMessageEnd()
2466
    if result.success is not None:
2467
      return result.success
2468
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2469
 
2470
  def getProductNotificationRequestCount(self, startDateTime):
2471
    """
2472
    Returns a list of count of requests for product notification against each item
2473
 
2474
    Parameters:
2475
     - startDateTime
2476
    """
2477
    self.send_getProductNotificationRequestCount(startDateTime)
2478
    return self.recv_getProductNotificationRequestCount()
2479
 
2480
  def send_getProductNotificationRequestCount(self, startDateTime):
2481
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2482
    args = getProductNotificationRequestCount_args()
2483
    args.startDateTime = startDateTime
2484
    args.write(self._oprot)
2485
    self._oprot.writeMessageEnd()
2486
    self._oprot.trans.flush()
2487
 
2488
  def recv_getProductNotificationRequestCount(self, ):
2489
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2490
    if mtype == TMessageType.EXCEPTION:
2491
      x = TApplicationException()
2492
      x.read(self._iprot)
2493
      self._iprot.readMessageEnd()
2494
      raise x
2495
    result = getProductNotificationRequestCount_result()
2496
    result.read(self._iprot)
2497
    self._iprot.readMessageEnd()
2498
    if result.success is not None:
2499
      return result.success
2500
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2501
 
2502
  def addAuthorizationLog(self, itemId, username, reason):
2503
    """
2504
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2505
 
2506
    Parameters:
2507
     - itemId
2508
     - username
2509
     - reason
2510
    """
2511
    self.send_addAuthorizationLog(itemId, username, reason)
2512
    return self.recv_addAuthorizationLog()
2513
 
2514
  def send_addAuthorizationLog(self, itemId, username, reason):
2515
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2516
    args = addAuthorizationLog_args()
2517
    args.itemId = itemId
2518
    args.username = username
2519
    args.reason = reason
2520
    args.write(self._oprot)
2521
    self._oprot.writeMessageEnd()
2522
    self._oprot.trans.flush()
2523
 
2524
  def recv_addAuthorizationLog(self, ):
2525
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2526
    if mtype == TMessageType.EXCEPTION:
2527
      x = TApplicationException()
2528
      x.read(self._iprot)
2529
      self._iprot.readMessageEnd()
2530
      raise x
2531
    result = addAuthorizationLog_result()
2532
    result.read(self._iprot)
2533
    self._iprot.readMessageEnd()
2534
    if result.success is not None:
2535
      return result.success
2536
    if result.cex is not None:
2537
      raise result.cex
2538
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2539
 
2540
  def getClearanceSaleCatalogIds(self, ):
2541
    self.send_getClearanceSaleCatalogIds()
2542
    return self.recv_getClearanceSaleCatalogIds()
2543
 
2544
  def send_getClearanceSaleCatalogIds(self, ):
2545
    self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)
2546
    args = getClearanceSaleCatalogIds_args()
2547
    args.write(self._oprot)
2548
    self._oprot.writeMessageEnd()
2549
    self._oprot.trans.flush()
2550
 
2551
  def recv_getClearanceSaleCatalogIds(self, ):
2552
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2553
    if mtype == TMessageType.EXCEPTION:
2554
      x = TApplicationException()
2555
      x.read(self._iprot)
2556
      self._iprot.readMessageEnd()
2557
      raise x
2558
    result = getClearanceSaleCatalogIds_result()
2559
    result.read(self._iprot)
2560
    self._iprot.readMessageEnd()
2561
    if result.success is not None:
2562
      return result.success
2563
    if result.cex is not None:
2564
      raise result.cex
2565
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2566
 
2567
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2568
    """
2569
    Parameters:
2570
     - catalog_item_id
2571
     - voucherType
2572
     - voucherAmount
2573
    """
2574
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2575
    return self.recv_addupdateVoucherForItem()
2576
 
2577
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2578
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2579
    args = addupdateVoucherForItem_args()
2580
    args.catalog_item_id = catalog_item_id
2581
    args.voucherType = voucherType
2582
    args.voucherAmount = voucherAmount
2583
    args.write(self._oprot)
2584
    self._oprot.writeMessageEnd()
2585
    self._oprot.trans.flush()
2586
 
2587
  def recv_addupdateVoucherForItem(self, ):
2588
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2589
    if mtype == TMessageType.EXCEPTION:
2590
      x = TApplicationException()
2591
      x.read(self._iprot)
2592
      self._iprot.readMessageEnd()
2593
      raise x
2594
    result = addupdateVoucherForItem_result()
2595
    result.read(self._iprot)
2596
    self._iprot.readMessageEnd()
2597
    if result.success is not None:
2598
      return result.success
2599
    if result.cex is not None:
2600
      raise result.cex
2601
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2602
 
2603
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2604
    """
2605
    Parameters:
2606
     - catalog_item_id
2607
     - voucherType
2608
    """
2609
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2610
    return self.recv_deleteVoucherForItem()
2611
 
2612
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2613
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2614
    args = deleteVoucherForItem_args()
2615
    args.catalog_item_id = catalog_item_id
2616
    args.voucherType = voucherType
2617
    args.write(self._oprot)
2618
    self._oprot.writeMessageEnd()
2619
    self._oprot.trans.flush()
2620
 
2621
  def recv_deleteVoucherForItem(self, ):
2622
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2623
    if mtype == TMessageType.EXCEPTION:
2624
      x = TApplicationException()
2625
      x.read(self._iprot)
2626
      self._iprot.readMessageEnd()
2627
      raise x
2628
    result = deleteVoucherForItem_result()
2629
    result.read(self._iprot)
2630
    self._iprot.readMessageEnd()
2631
    if result.success is not None:
2632
      return result.success
2633
    if result.cex is not None:
2634
      raise result.cex
2635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2636
 
2637
  def getVoucherAmount(self, itemId, voucherType):
2638
    """
2639
    Parameters:
2640
     - itemId
2641
     - voucherType
2642
    """
2643
    self.send_getVoucherAmount(itemId, voucherType)
2644
    return self.recv_getVoucherAmount()
2645
 
2646
  def send_getVoucherAmount(self, itemId, voucherType):
2647
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2648
    args = getVoucherAmount_args()
2649
    args.itemId = itemId
2650
    args.voucherType = voucherType
2651
    args.write(self._oprot)
2652
    self._oprot.writeMessageEnd()
2653
    self._oprot.trans.flush()
2654
 
2655
  def recv_getVoucherAmount(self, ):
2656
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2657
    if mtype == TMessageType.EXCEPTION:
2658
      x = TApplicationException()
2659
      x.read(self._iprot)
2660
      self._iprot.readMessageEnd()
2661
      raise x
2662
    result = getVoucherAmount_result()
2663
    result.read(self._iprot)
2664
    self._iprot.readMessageEnd()
2665
    if result.success is not None:
2666
      return result.success
2667
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
2668
 
2669
  def getAllItemVouchers(self, itemId):
2670
    """
2671
    Parameters:
2672
     - itemId
2673
    """
2674
    self.send_getAllItemVouchers(itemId)
2675
    return self.recv_getAllItemVouchers()
2676
 
2677
  def send_getAllItemVouchers(self, itemId):
2678
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
2679
    args = getAllItemVouchers_args()
2680
    args.itemId = itemId
2681
    args.write(self._oprot)
2682
    self._oprot.writeMessageEnd()
2683
    self._oprot.trans.flush()
2684
 
2685
  def recv_getAllItemVouchers(self, ):
2686
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2687
    if mtype == TMessageType.EXCEPTION:
2688
      x = TApplicationException()
2689
      x.read(self._iprot)
2690
      self._iprot.readMessageEnd()
2691
      raise x
2692
    result = getAllItemVouchers_result()
2693
    result.read(self._iprot)
2694
    self._iprot.readMessageEnd()
2695
    if result.success is not None:
2696
      return result.success
2697
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
2698
 
2699
  def isValidCatalogItemId(self, catalog_item_id):
2700
    """
2701
    Parameters:
2702
     - catalog_item_id
2703
    """
2704
    self.send_isValidCatalogItemId(catalog_item_id)
2705
    return self.recv_isValidCatalogItemId()
2706
 
2707
  def send_isValidCatalogItemId(self, catalog_item_id):
2708
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
2709
    args = isValidCatalogItemId_args()
2710
    args.catalog_item_id = catalog_item_id
2711
    args.write(self._oprot)
2712
    self._oprot.writeMessageEnd()
2713
    self._oprot.trans.flush()
2714
 
2715
  def recv_isValidCatalogItemId(self, ):
2716
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2717
    if mtype == TMessageType.EXCEPTION:
2718
      x = TApplicationException()
2719
      x.read(self._iprot)
2720
      self._iprot.readMessageEnd()
2721
      raise x
2722
    result = isValidCatalogItemId_result()
2723
    result.read(self._iprot)
2724
    self._iprot.readMessageEnd()
2725
    if result.success is not None:
2726
      return result.success
2727
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
2728
 
6039 amit.gupta 2729
  def getVatPercentageForItem(self, itemId, price):
2730
    """
2731
    Parameters:
2732
     - itemId
2733
     - price
2734
    """
2735
    self.send_getVatPercentageForItem(itemId, price)
2736
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 2737
 
6039 amit.gupta 2738
  def send_getVatPercentageForItem(self, itemId, price):
2739
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
2740
    args = getVatPercentageForItem_args()
2741
    args.itemId = itemId
2742
    args.price = price
2743
    args.write(self._oprot)
2744
    self._oprot.writeMessageEnd()
2745
    self._oprot.trans.flush()
2746
 
2747
  def recv_getVatPercentageForItem(self, ):
2748
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2749
    if mtype == TMessageType.EXCEPTION:
2750
      x = TApplicationException()
2751
      x.read(self._iprot)
2752
      self._iprot.readMessageEnd()
2753
      raise x
2754
    result = getVatPercentageForItem_result()
2755
    result.read(self._iprot)
2756
    self._iprot.readMessageEnd()
2757
    if result.success is not None:
2758
      return result.success
2759
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
2760
 
2761
  def getVatAmountForItem(self, itemId, price):
2762
    """
2763
    Parameters:
2764
     - itemId
2765
     - price
2766
    """
2767
    self.send_getVatAmountForItem(itemId, price)
2768
    return self.recv_getVatAmountForItem()
2769
 
2770
  def send_getVatAmountForItem(self, itemId, price):
2771
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
2772
    args = getVatAmountForItem_args()
2773
    args.itemId = itemId
2774
    args.price = price
2775
    args.write(self._oprot)
2776
    self._oprot.writeMessageEnd()
2777
    self._oprot.trans.flush()
2778
 
2779
  def recv_getVatAmountForItem(self, ):
2780
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2781
    if mtype == TMessageType.EXCEPTION:
2782
      x = TApplicationException()
2783
      x.read(self._iprot)
2784
      self._iprot.readMessageEnd()
2785
      raise x
2786
    result = getVatAmountForItem_result()
2787
    result.read(self._iprot)
2788
    self._iprot.readMessageEnd()
2789
    if result.success is not None:
2790
      return result.success
2791
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
2792
 
6531 vikram.rag 2793
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2794
    """
2795
    Parameters:
2796
     - offset
2797
     - limit
2798
    """
2799
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
2800
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 2801
 
6531 vikram.rag 2802
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2803
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
2804
    args = getAllIgnoredInventoryUpdateItemsList_args()
2805
    args.offset = offset
2806
    args.limit = limit
2807
    args.write(self._oprot)
2808
    self._oprot.writeMessageEnd()
2809
    self._oprot.trans.flush()
2810
 
2811
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
2812
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2813
    if mtype == TMessageType.EXCEPTION:
2814
      x = TApplicationException()
2815
      x.read(self._iprot)
2816
      self._iprot.readMessageEnd()
2817
      raise x
2818
    result = getAllIgnoredInventoryUpdateItemsList_result()
2819
    result.read(self._iprot)
2820
    self._iprot.readMessageEnd()
2821
    if result.success is not None:
2822
      return result.success
2823
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
2824
 
6821 amar.kumar 2825
  def getAllAliveItems(self, ):
2826
    self.send_getAllAliveItems()
2827
    return self.recv_getAllAliveItems()
2828
 
2829
  def send_getAllAliveItems(self, ):
2830
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
2831
    args = getAllAliveItems_args()
2832
    args.write(self._oprot)
2833
    self._oprot.writeMessageEnd()
2834
    self._oprot.trans.flush()
2835
 
2836
  def recv_getAllAliveItems(self, ):
2837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2838
    if mtype == TMessageType.EXCEPTION:
2839
      x = TApplicationException()
2840
      x.read(self._iprot)
2841
      self._iprot.readMessageEnd()
2842
      raise x
2843
    result = getAllAliveItems_result()
2844
    result.read(self._iprot)
2845
    self._iprot.readMessageEnd()
2846
    if result.success is not None:
2847
      return result.success
2848
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
2849
 
6805 anupam.sin 2850
  def getInsuranceAmount(self, itemId, insurerId, quantity):
2851
    """
2852
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 2853
 
6805 anupam.sin 2854
    Parameters:
2855
     - itemId
2856
     - insurerId
2857
     - quantity
2858
    """
2859
    self.send_getInsuranceAmount(itemId, insurerId, quantity)
2860
    return self.recv_getInsuranceAmount()
2861
 
2862
  def send_getInsuranceAmount(self, itemId, insurerId, quantity):
2863
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
2864
    args = getInsuranceAmount_args()
2865
    args.itemId = itemId
2866
    args.insurerId = insurerId
2867
    args.quantity = quantity
2868
    args.write(self._oprot)
2869
    self._oprot.writeMessageEnd()
2870
    self._oprot.trans.flush()
2871
 
2872
  def recv_getInsuranceAmount(self, ):
2873
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2874
    if mtype == TMessageType.EXCEPTION:
2875
      x = TApplicationException()
2876
      x.read(self._iprot)
2877
      self._iprot.readMessageEnd()
2878
      raise x
2879
    result = getInsuranceAmount_result()
2880
    result.read(self._iprot)
2881
    self._iprot.readMessageEnd()
2882
    if result.success is not None:
2883
      return result.success
2884
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
2885
 
2886
  def getInsurer(self, insurerId):
2887
    """
2888
    Parameters:
2889
     - insurerId
2890
    """
2891
    self.send_getInsurer(insurerId)
2892
    return self.recv_getInsurer()
2893
 
2894
  def send_getInsurer(self, insurerId):
2895
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
2896
    args = getInsurer_args()
2897
    args.insurerId = insurerId
2898
    args.write(self._oprot)
2899
    self._oprot.writeMessageEnd()
2900
    self._oprot.trans.flush()
2901
 
2902
  def recv_getInsurer(self, ):
2903
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2904
    if mtype == TMessageType.EXCEPTION:
2905
      x = TApplicationException()
2906
      x.read(self._iprot)
2907
      self._iprot.readMessageEnd()
2908
      raise x
2909
    result = getInsurer_result()
2910
    result.read(self._iprot)
2911
    self._iprot.readMessageEnd()
2912
    if result.success is not None:
2913
      return result.success
2914
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
2915
 
6838 vikram.rag 2916
  def getAllInsurers(self, ):
2917
    self.send_getAllInsurers()
2918
    return self.recv_getAllInsurers()
6805 anupam.sin 2919
 
6838 vikram.rag 2920
  def send_getAllInsurers(self, ):
2921
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
2922
    args = getAllInsurers_args()
2923
    args.write(self._oprot)
2924
    self._oprot.writeMessageEnd()
2925
    self._oprot.trans.flush()
2926
 
2927
  def recv_getAllInsurers(self, ):
2928
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2929
    if mtype == TMessageType.EXCEPTION:
2930
      x = TApplicationException()
2931
      x.read(self._iprot)
2932
      self._iprot.readMessageEnd()
2933
      raise x
2934
    result = getAllInsurers_result()
2935
    result.read(self._iprot)
2936
    self._iprot.readMessageEnd()
2937
    if result.success is not None:
2938
      return result.success
2939
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
2940
 
2941
 
5944 mandeep.dh 2942
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2943
  def __init__(self, handler):
2944
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2945
    self._processMap["addItem"] = Processor.process_addItem
2946
    self._processMap["updateItem"] = Processor.process_updateItem
2947
    self._processMap["isActive"] = Processor.process_isActive
2948
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
2949
    self._processMap["startItemOn"] = Processor.process_startItemOn
2950
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
2951
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2952
    self._processMap["getItem"] = Processor.process_getItem
2953
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
2954
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
2955
    self._processMap["getAllItems"] = Processor.process_getAllItems
2956
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
2957
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
2958
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
2959
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
2960
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
2961
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
2962
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
2963
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
2964
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
2965
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
2966
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
2967
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
2968
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
2969
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
2970
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
2971
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
2972
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
2973
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
2974
    self._processMap["addCategory"] = Processor.process_addCategory
2975
    self._processMap["getCategory"] = Processor.process_getCategory
2976
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
2977
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
2978
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 2979
    self._processMap["addTag"] = Processor.process_addTag
2980
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
2981
    self._processMap["deleteTag"] = Processor.process_deleteTag
2982
    self._processMap["getAllTags"] = Processor.process_getAllTags
2983
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
5944 mandeep.dh 2984
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
2985
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
2986
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
2987
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
2988
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
2989
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
2990
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
2991
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
2992
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
2993
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
2994
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
2995
    self._processMap["getAllSources"] = Processor.process_getAllSources
2996
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
2997
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
2998
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
2999
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
3000
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
3001
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
3002
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
3003
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
3004
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
3005
    self._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIds
3006
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
3007
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
3008
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
3009
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
3010
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 3011
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
3012
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 3013
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 3014
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 3015
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
3016
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 3017
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
5944 mandeep.dh 3018
 
3019
  def process(self, iprot, oprot):
3020
    (name, type, seqid) = iprot.readMessageBegin()
3021
    if name not in self._processMap:
3022
      iprot.skip(TType.STRUCT)
3023
      iprot.readMessageEnd()
3024
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3025
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3026
      x.write(oprot)
3027
      oprot.writeMessageEnd()
3028
      oprot.trans.flush()
3029
      return
3030
    else:
3031
      self._processMap[name](self, seqid, iprot, oprot)
3032
    return True
3033
 
3034
  def process_addItem(self, seqid, iprot, oprot):
3035
    args = addItem_args()
3036
    args.read(iprot)
3037
    iprot.readMessageEnd()
3038
    result = addItem_result()
3039
    try:
3040
      result.success = self._handler.addItem(args.item)
3041
    except CatalogServiceException, cex:
3042
      result.cex = cex
3043
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
3044
    result.write(oprot)
3045
    oprot.writeMessageEnd()
3046
    oprot.trans.flush()
3047
 
3048
  def process_updateItem(self, seqid, iprot, oprot):
3049
    args = updateItem_args()
3050
    args.read(iprot)
3051
    iprot.readMessageEnd()
3052
    result = updateItem_result()
3053
    try:
3054
      result.success = self._handler.updateItem(args.item)
3055
    except CatalogServiceException, cex:
3056
      result.cex = cex
3057
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3058
    result.write(oprot)
3059
    oprot.writeMessageEnd()
3060
    oprot.trans.flush()
3061
 
3062
  def process_isActive(self, seqid, iprot, oprot):
3063
    args = isActive_args()
3064
    args.read(iprot)
3065
    iprot.readMessageEnd()
3066
    result = isActive_result()
3067
    try:
3068
      result.success = self._handler.isActive(args.itemId)
3069
    except CatalogServiceException, isex:
3070
      result.isex = isex
3071
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3072
    result.write(oprot)
3073
    oprot.writeMessageEnd()
3074
    oprot.trans.flush()
3075
 
3076
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3077
    args = getItemStatusDescription_args()
3078
    args.read(iprot)
3079
    iprot.readMessageEnd()
3080
    result = getItemStatusDescription_result()
3081
    try:
3082
      result.success = self._handler.getItemStatusDescription(args.itemId)
3083
    except CatalogServiceException, isex:
3084
      result.isex = isex
3085
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3086
    result.write(oprot)
3087
    oprot.writeMessageEnd()
3088
    oprot.trans.flush()
3089
 
3090
  def process_startItemOn(self, seqid, iprot, oprot):
3091
    args = startItemOn_args()
3092
    args.read(iprot)
3093
    iprot.readMessageEnd()
3094
    result = startItemOn_result()
3095
    try:
3096
      self._handler.startItemOn(args.item_id, args.timestamp)
3097
    except CatalogServiceException, cex:
3098
      result.cex = cex
3099
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3100
    result.write(oprot)
3101
    oprot.writeMessageEnd()
3102
    oprot.trans.flush()
3103
 
3104
  def process_retireItemOn(self, seqid, iprot, oprot):
3105
    args = retireItemOn_args()
3106
    args.read(iprot)
3107
    iprot.readMessageEnd()
3108
    result = retireItemOn_result()
3109
    try:
3110
      self._handler.retireItemOn(args.item_id, args.timestamp)
3111
    except CatalogServiceException, cex:
3112
      result.cex = cex
3113
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3114
    result.write(oprot)
3115
    oprot.writeMessageEnd()
3116
    oprot.trans.flush()
3117
 
3118
  def process_changeItemStatus(self, seqid, iprot, oprot):
3119
    args = changeItemStatus_args()
3120
    args.read(iprot)
3121
    iprot.readMessageEnd()
3122
    result = changeItemStatus_result()
3123
    try:
3124
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3125
    except CatalogServiceException, cex:
3126
      result.cex = cex
3127
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3128
    result.write(oprot)
3129
    oprot.writeMessageEnd()
3130
    oprot.trans.flush()
3131
 
3132
  def process_getItem(self, seqid, iprot, oprot):
3133
    args = getItem_args()
3134
    args.read(iprot)
3135
    iprot.readMessageEnd()
3136
    result = getItem_result()
3137
    try:
3138
      result.success = self._handler.getItem(args.item_id)
3139
    except CatalogServiceException, cex:
3140
      result.cex = cex
3141
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3142
    result.write(oprot)
3143
    oprot.writeMessageEnd()
3144
    oprot.trans.flush()
3145
 
3146
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3147
    args = getItemsByCatalogId_args()
3148
    args.read(iprot)
3149
    iprot.readMessageEnd()
3150
    result = getItemsByCatalogId_result()
3151
    try:
3152
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3153
    except CatalogServiceException, cex:
3154
      result.cex = cex
3155
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3156
    result.write(oprot)
3157
    oprot.writeMessageEnd()
3158
    oprot.trans.flush()
3159
 
3160
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3161
    args = getValidItemsByCatalogId_args()
3162
    args.read(iprot)
3163
    iprot.readMessageEnd()
3164
    result = getValidItemsByCatalogId_result()
3165
    try:
3166
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3167
    except CatalogServiceException, cex:
3168
      result.cex = cex
3169
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3170
    result.write(oprot)
3171
    oprot.writeMessageEnd()
3172
    oprot.trans.flush()
3173
 
3174
  def process_getAllItems(self, seqid, iprot, oprot):
3175
    args = getAllItems_args()
3176
    args.read(iprot)
3177
    iprot.readMessageEnd()
3178
    result = getAllItems_result()
3179
    try:
3180
      result.success = self._handler.getAllItems(args.isActive)
3181
    except CatalogServiceException, cex:
3182
      result.cex = cex
3183
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3184
    result.write(oprot)
3185
    oprot.writeMessageEnd()
3186
    oprot.trans.flush()
3187
 
3188
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3189
    args = getAllItemsByStatus_args()
3190
    args.read(iprot)
3191
    iprot.readMessageEnd()
3192
    result = getAllItemsByStatus_result()
3193
    try:
3194
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3195
    except CatalogServiceException, cex:
3196
      result.cex = cex
3197
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3198
    result.write(oprot)
3199
    oprot.writeMessageEnd()
3200
    oprot.trans.flush()
3201
 
3202
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3203
    args = markItemAsContentComplete_args()
3204
    args.read(iprot)
3205
    iprot.readMessageEnd()
3206
    result = markItemAsContentComplete_result()
3207
    try:
3208
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3209
    except CatalogServiceException, cex:
3210
      result.cex = cex
3211
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3212
    result.write(oprot)
3213
    oprot.writeMessageEnd()
3214
    oprot.trans.flush()
3215
 
3216
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3217
    args = getAllItemsInRange_args()
3218
    args.read(iprot)
3219
    iprot.readMessageEnd()
3220
    result = getAllItemsInRange_result()
3221
    try:
3222
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3223
    except CatalogServiceException, cex:
3224
      result.cex = cex
3225
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3226
    result.write(oprot)
3227
    oprot.writeMessageEnd()
3228
    oprot.trans.flush()
3229
 
3230
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3231
    args = getAllItemsByStatusInRange_args()
3232
    args.read(iprot)
3233
    iprot.readMessageEnd()
3234
    result = getAllItemsByStatusInRange_result()
3235
    try:
3236
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3237
    except CatalogServiceException, cex:
3238
      result.cex = cex
3239
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3240
    result.write(oprot)
3241
    oprot.writeMessageEnd()
3242
    oprot.trans.flush()
3243
 
3244
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3245
    args = getItemCountByStatus_args()
3246
    args.read(iprot)
3247
    iprot.readMessageEnd()
3248
    result = getItemCountByStatus_result()
3249
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3250
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3251
    result.write(oprot)
3252
    oprot.writeMessageEnd()
3253
    oprot.trans.flush()
3254
 
3255
  def process_getBestSellers(self, seqid, iprot, oprot):
3256
    args = getBestSellers_args()
3257
    args.read(iprot)
3258
    iprot.readMessageEnd()
3259
    result = getBestSellers_result()
3260
    try:
3261
      result.success = self._handler.getBestSellers()
3262
    except CatalogServiceException, isex:
3263
      result.isex = isex
3264
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3265
    result.write(oprot)
3266
    oprot.writeMessageEnd()
3267
    oprot.trans.flush()
3268
 
3269
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3270
    args = getBestSellersCatalogIds_args()
3271
    args.read(iprot)
3272
    iprot.readMessageEnd()
3273
    result = getBestSellersCatalogIds_result()
3274
    try:
3275
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3276
    except CatalogServiceException, cex:
3277
      result.cex = cex
3278
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3279
    result.write(oprot)
3280
    oprot.writeMessageEnd()
3281
    oprot.trans.flush()
3282
 
3283
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3284
    args = getBestSellersCount_args()
3285
    args.read(iprot)
3286
    iprot.readMessageEnd()
3287
    result = getBestSellersCount_result()
3288
    try:
3289
      result.success = self._handler.getBestSellersCount()
3290
    except CatalogServiceException, cex:
3291
      result.cex = cex
3292
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3293
    result.write(oprot)
3294
    oprot.writeMessageEnd()
3295
    oprot.trans.flush()
3296
 
3297
  def process_getBestDeals(self, seqid, iprot, oprot):
3298
    args = getBestDeals_args()
3299
    args.read(iprot)
3300
    iprot.readMessageEnd()
3301
    result = getBestDeals_result()
3302
    try:
3303
      result.success = self._handler.getBestDeals()
3304
    except CatalogServiceException, isex:
3305
      result.isex = isex
3306
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3307
    result.write(oprot)
3308
    oprot.writeMessageEnd()
3309
    oprot.trans.flush()
3310
 
3311
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3312
    args = getBestDealsCatalogIds_args()
3313
    args.read(iprot)
3314
    iprot.readMessageEnd()
3315
    result = getBestDealsCatalogIds_result()
3316
    try:
3317
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3318
    except CatalogServiceException, cex:
3319
      result.cex = cex
3320
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3321
    result.write(oprot)
3322
    oprot.writeMessageEnd()
3323
    oprot.trans.flush()
3324
 
3325
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3326
    args = getBestDealsCount_args()
3327
    args.read(iprot)
3328
    iprot.readMessageEnd()
3329
    result = getBestDealsCount_result()
3330
    try:
3331
      result.success = self._handler.getBestDealsCount()
3332
    except CatalogServiceException, cex:
3333
      result.cex = cex
3334
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3335
    result.write(oprot)
3336
    oprot.writeMessageEnd()
3337
    oprot.trans.flush()
3338
 
3339
  def process_getComingSoon(self, seqid, iprot, oprot):
3340
    args = getComingSoon_args()
3341
    args.read(iprot)
3342
    iprot.readMessageEnd()
3343
    result = getComingSoon_result()
3344
    try:
3345
      result.success = self._handler.getComingSoon()
3346
    except CatalogServiceException, isex:
3347
      result.isex = isex
3348
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3349
    result.write(oprot)
3350
    oprot.writeMessageEnd()
3351
    oprot.trans.flush()
3352
 
3353
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3354
    args = getComingSoonCatalogIds_args()
3355
    args.read(iprot)
3356
    iprot.readMessageEnd()
3357
    result = getComingSoonCatalogIds_result()
3358
    try:
3359
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3360
    except CatalogServiceException, cex:
3361
      result.cex = cex
3362
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3363
    result.write(oprot)
3364
    oprot.writeMessageEnd()
3365
    oprot.trans.flush()
3366
 
3367
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3368
    args = getComingSoonCount_args()
3369
    args.read(iprot)
3370
    iprot.readMessageEnd()
3371
    result = getComingSoonCount_result()
3372
    try:
3373
      result.success = self._handler.getComingSoonCount()
3374
    except CatalogServiceException, cex:
3375
      result.cex = cex
3376
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3377
    result.write(oprot)
3378
    oprot.writeMessageEnd()
3379
    oprot.trans.flush()
3380
 
3381
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3382
    args = getLatestArrivals_args()
3383
    args.read(iprot)
3384
    iprot.readMessageEnd()
3385
    result = getLatestArrivals_result()
3386
    try:
3387
      result.success = self._handler.getLatestArrivals()
3388
    except CatalogServiceException, isex:
3389
      result.isex = isex
3390
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3391
    result.write(oprot)
3392
    oprot.writeMessageEnd()
3393
    oprot.trans.flush()
3394
 
3395
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3396
    args = getLatestArrivalsCatalogIds_args()
3397
    args.read(iprot)
3398
    iprot.readMessageEnd()
3399
    result = getLatestArrivalsCatalogIds_result()
3400
    try:
3401
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3402
    except CatalogServiceException, cex:
3403
      result.cex = cex
3404
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3405
    result.write(oprot)
3406
    oprot.writeMessageEnd()
3407
    oprot.trans.flush()
3408
 
3409
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3410
    args = getLatestArrivalsCount_args()
3411
    args.read(iprot)
3412
    iprot.readMessageEnd()
3413
    result = getLatestArrivalsCount_result()
3414
    try:
3415
      result.success = self._handler.getLatestArrivalsCount()
3416
    except CatalogServiceException, cex:
3417
      result.cex = cex
3418
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3419
    result.write(oprot)
3420
    oprot.writeMessageEnd()
3421
    oprot.trans.flush()
3422
 
3423
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3424
    args = generateNewEntityID_args()
3425
    args.read(iprot)
3426
    iprot.readMessageEnd()
3427
    result = generateNewEntityID_result()
3428
    result.success = self._handler.generateNewEntityID()
3429
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3430
    result.write(oprot)
3431
    oprot.writeMessageEnd()
3432
    oprot.trans.flush()
3433
 
3434
  def process_addCategory(self, seqid, iprot, oprot):
3435
    args = addCategory_args()
3436
    args.read(iprot)
3437
    iprot.readMessageEnd()
3438
    result = addCategory_result()
3439
    result.success = self._handler.addCategory(args.category)
3440
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3441
    result.write(oprot)
3442
    oprot.writeMessageEnd()
3443
    oprot.trans.flush()
3444
 
3445
  def process_getCategory(self, seqid, iprot, oprot):
3446
    args = getCategory_args()
3447
    args.read(iprot)
3448
    iprot.readMessageEnd()
3449
    result = getCategory_result()
3450
    result.success = self._handler.getCategory(args.id)
3451
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3452
    result.write(oprot)
3453
    oprot.writeMessageEnd()
3454
    oprot.trans.flush()
3455
 
3456
  def process_getAllCategories(self, seqid, iprot, oprot):
3457
    args = getAllCategories_args()
3458
    args.read(iprot)
3459
    iprot.readMessageEnd()
3460
    result = getAllCategories_result()
3461
    result.success = self._handler.getAllCategories()
3462
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3463
    result.write(oprot)
3464
    oprot.writeMessageEnd()
3465
    oprot.trans.flush()
3466
 
3467
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3468
    args = getAllSimilarItems_args()
3469
    args.read(iprot)
3470
    iprot.readMessageEnd()
3471
    result = getAllSimilarItems_result()
3472
    result.success = self._handler.getAllSimilarItems(args.itemId)
3473
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3474
    result.write(oprot)
3475
    oprot.writeMessageEnd()
3476
    oprot.trans.flush()
3477
 
3478
  def process_addSimilarItem(self, seqid, iprot, oprot):
3479
    args = addSimilarItem_args()
3480
    args.read(iprot)
3481
    iprot.readMessageEnd()
3482
    result = addSimilarItem_result()
3483
    try:
3484
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3485
    except CatalogServiceException, cex:
3486
      result.cex = cex
3487
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3488
    result.write(oprot)
3489
    oprot.writeMessageEnd()
3490
    oprot.trans.flush()
3491
 
6512 kshitij.so 3492
  def process_addTag(self, seqid, iprot, oprot):
3493
    args = addTag_args()
3494
    args.read(iprot)
3495
    iprot.readMessageEnd()
3496
    result = addTag_result()
3497
    result.success = self._handler.addTag(args.displayName, args.itemId)
3498
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3499
    result.write(oprot)
3500
    oprot.writeMessageEnd()
3501
    oprot.trans.flush()
3502
 
3503
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3504
    args = deleteEntityTag_args()
3505
    args.read(iprot)
3506
    iprot.readMessageEnd()
3507
    result = deleteEntityTag_result()
3508
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3509
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3510
    result.write(oprot)
3511
    oprot.writeMessageEnd()
3512
    oprot.trans.flush()
3513
 
3514
  def process_deleteTag(self, seqid, iprot, oprot):
3515
    args = deleteTag_args()
3516
    args.read(iprot)
3517
    iprot.readMessageEnd()
3518
    result = deleteTag_result()
3519
    result.success = self._handler.deleteTag(args.displayName)
3520
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3521
    result.write(oprot)
3522
    oprot.writeMessageEnd()
3523
    oprot.trans.flush()
3524
 
3525
  def process_getAllTags(self, seqid, iprot, oprot):
3526
    args = getAllTags_args()
3527
    args.read(iprot)
3528
    iprot.readMessageEnd()
3529
    result = getAllTags_result()
3530
    result.success = self._handler.getAllTags()
3531
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3532
    result.write(oprot)
3533
    oprot.writeMessageEnd()
3534
    oprot.trans.flush()
3535
 
3536
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3537
    args = getAllEntitiesByTagName_args()
3538
    args.read(iprot)
3539
    iprot.readMessageEnd()
3540
    result = getAllEntitiesByTagName_result()
3541
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
3542
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
3543
    result.write(oprot)
3544
    oprot.writeMessageEnd()
3545
    oprot.trans.flush()
3546
 
5944 mandeep.dh 3547
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
3548
    args = deleteSimilarItem_args()
3549
    args.read(iprot)
3550
    iprot.readMessageEnd()
3551
    result = deleteSimilarItem_result()
3552
    try:
3553
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
3554
    except CatalogServiceException, cex:
3555
      result.cex = cex
3556
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
3557
    result.write(oprot)
3558
    oprot.writeMessageEnd()
3559
    oprot.trans.flush()
3560
 
3561
  def process_checkSimilarItem(self, seqid, iprot, oprot):
3562
    args = checkSimilarItem_args()
3563
    args.read(iprot)
3564
    iprot.readMessageEnd()
3565
    result = checkSimilarItem_result()
3566
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
3567
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
3568
    result.write(oprot)
3569
    oprot.writeMessageEnd()
3570
    oprot.trans.flush()
3571
 
3572
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
3573
    args = validateRiskyStatus_args()
3574
    args.read(iprot)
3575
    iprot.readMessageEnd()
3576
    result = validateRiskyStatus_result()
3577
    self._handler.validateRiskyStatus(args.itemId)
3578
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
3579
    result.write(oprot)
3580
    oprot.writeMessageEnd()
3581
    oprot.trans.flush()
3582
 
3583
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
3584
    args = changeItemRiskyFlag_args()
3585
    args.read(iprot)
3586
    iprot.readMessageEnd()
3587
    result = changeItemRiskyFlag_result()
3588
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
3589
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
3590
    result.write(oprot)
3591
    oprot.writeMessageEnd()
3592
    oprot.trans.flush()
3593
 
3594
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
3595
    args = getItemsByRiskyFlag_args()
3596
    args.read(iprot)
3597
    iprot.readMessageEnd()
3598
    result = getItemsByRiskyFlag_result()
3599
    result.success = self._handler.getItemsByRiskyFlag()
3600
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
3601
    result.write(oprot)
3602
    oprot.writeMessageEnd()
3603
    oprot.trans.flush()
3604
 
3605
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
3606
    args = getItemsForMasterSheet_args()
3607
    args.read(iprot)
3608
    iprot.readMessageEnd()
3609
    result = getItemsForMasterSheet_result()
3610
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
3611
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
3612
    result.write(oprot)
3613
    oprot.writeMessageEnd()
3614
    oprot.trans.flush()
3615
 
3616
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
3617
    args = getSimilarItemsCatalogIds_args()
3618
    args.read(iprot)
3619
    iprot.readMessageEnd()
3620
    result = getSimilarItemsCatalogIds_result()
3621
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
3622
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
3623
    result.write(oprot)
3624
    oprot.writeMessageEnd()
3625
    oprot.trans.flush()
3626
 
3627
  def process_addProductNotification(self, seqid, iprot, oprot):
3628
    args = addProductNotification_args()
3629
    args.read(iprot)
3630
    iprot.readMessageEnd()
3631
    result = addProductNotification_result()
3632
    result.success = self._handler.addProductNotification(args.itemId, args.email)
3633
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
3634
    result.write(oprot)
3635
    oprot.writeMessageEnd()
3636
    oprot.trans.flush()
3637
 
3638
  def process_sendProductNotifications(self, seqid, iprot, oprot):
3639
    args = sendProductNotifications_args()
3640
    args.read(iprot)
3641
    iprot.readMessageEnd()
3642
    result = sendProductNotifications_result()
3643
    result.success = self._handler.sendProductNotifications()
3644
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
3645
    result.write(oprot)
3646
    oprot.writeMessageEnd()
3647
    oprot.trans.flush()
3648
 
3649
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
3650
    args = getAllBrandsByCategory_args()
3651
    args.read(iprot)
3652
    iprot.readMessageEnd()
3653
    result = getAllBrandsByCategory_result()
3654
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
3655
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
3656
    result.write(oprot)
3657
    oprot.writeMessageEnd()
3658
    oprot.trans.flush()
3659
 
3660
  def process_getAllBrands(self, seqid, iprot, oprot):
3661
    args = getAllBrands_args()
3662
    args.read(iprot)
3663
    iprot.readMessageEnd()
3664
    result = getAllBrands_result()
3665
    result.success = self._handler.getAllBrands()
3666
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
3667
    result.write(oprot)
3668
    oprot.writeMessageEnd()
3669
    oprot.trans.flush()
3670
 
3671
  def process_getAllSources(self, seqid, iprot, oprot):
3672
    args = getAllSources_args()
3673
    args.read(iprot)
3674
    iprot.readMessageEnd()
3675
    result = getAllSources_result()
3676
    result.success = self._handler.getAllSources()
3677
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
3678
    result.write(oprot)
3679
    oprot.writeMessageEnd()
3680
    oprot.trans.flush()
3681
 
3682
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
3683
    args = getItemPricingBySource_args()
3684
    args.read(iprot)
3685
    iprot.readMessageEnd()
3686
    result = getItemPricingBySource_result()
3687
    try:
3688
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
3689
    except CatalogServiceException, cex:
3690
      result.cex = cex
3691
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
3692
    result.write(oprot)
3693
    oprot.writeMessageEnd()
3694
    oprot.trans.flush()
3695
 
3696
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
3697
    args = addSourceItemPricing_args()
3698
    args.read(iprot)
3699
    iprot.readMessageEnd()
3700
    result = addSourceItemPricing_result()
3701
    try:
3702
      self._handler.addSourceItemPricing(args.sourceItemPricing)
3703
    except CatalogServiceException, cex:
3704
      result.cex = cex
3705
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
3706
    result.write(oprot)
3707
    oprot.writeMessageEnd()
3708
    oprot.trans.flush()
3709
 
3710
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
3711
    args = getAllSourcePricing_args()
3712
    args.read(iprot)
3713
    iprot.readMessageEnd()
3714
    result = getAllSourcePricing_result()
3715
    try:
3716
      result.success = self._handler.getAllSourcePricing(args.itemId)
3717
    except CatalogServiceException, cex:
3718
      result.cex = cex
3719
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
3720
    result.write(oprot)
3721
    oprot.writeMessageEnd()
3722
    oprot.trans.flush()
3723
 
3724
  def process_getItemForSource(self, seqid, iprot, oprot):
3725
    args = getItemForSource_args()
3726
    args.read(iprot)
3727
    iprot.readMessageEnd()
3728
    result = getItemForSource_result()
3729
    try:
3730
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
3731
    except CatalogServiceException, cex:
3732
      result.cex = cex
3733
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
3734
    result.write(oprot)
3735
    oprot.writeMessageEnd()
3736
    oprot.trans.flush()
3737
 
3738
  def process_searchItemsInRange(self, seqid, iprot, oprot):
3739
    args = searchItemsInRange_args()
3740
    args.read(iprot)
3741
    iprot.readMessageEnd()
3742
    result = searchItemsInRange_result()
3743
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
3744
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
3745
    result.write(oprot)
3746
    oprot.writeMessageEnd()
3747
    oprot.trans.flush()
3748
 
3749
  def process_getSearchResultCount(self, seqid, iprot, oprot):
3750
    args = getSearchResultCount_args()
3751
    args.read(iprot)
3752
    iprot.readMessageEnd()
3753
    result = getSearchResultCount_result()
3754
    result.success = self._handler.getSearchResultCount(args.searchTerms)
3755
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
3756
    result.write(oprot)
3757
    oprot.writeMessageEnd()
3758
    oprot.trans.flush()
3759
 
3760
  def process_getProductNotifications(self, seqid, iprot, oprot):
3761
    args = getProductNotifications_args()
3762
    args.read(iprot)
3763
    iprot.readMessageEnd()
3764
    result = getProductNotifications_result()
3765
    result.success = self._handler.getProductNotifications(args.startDateTime)
3766
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
3767
    result.write(oprot)
3768
    oprot.writeMessageEnd()
3769
    oprot.trans.flush()
3770
 
3771
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
3772
    args = getProductNotificationRequestCount_args()
3773
    args.read(iprot)
3774
    iprot.readMessageEnd()
3775
    result = getProductNotificationRequestCount_result()
3776
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
3777
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
3778
    result.write(oprot)
3779
    oprot.writeMessageEnd()
3780
    oprot.trans.flush()
3781
 
3782
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
3783
    args = addAuthorizationLog_args()
3784
    args.read(iprot)
3785
    iprot.readMessageEnd()
3786
    result = addAuthorizationLog_result()
3787
    try:
3788
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
3789
    except CatalogServiceException, cex:
3790
      result.cex = cex
3791
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
3792
    result.write(oprot)
3793
    oprot.writeMessageEnd()
3794
    oprot.trans.flush()
3795
 
3796
  def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):
3797
    args = getClearanceSaleCatalogIds_args()
3798
    args.read(iprot)
3799
    iprot.readMessageEnd()
3800
    result = getClearanceSaleCatalogIds_result()
3801
    try:
3802
      result.success = self._handler.getClearanceSaleCatalogIds()
3803
    except CatalogServiceException, cex:
3804
      result.cex = cex
3805
    oprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)
3806
    result.write(oprot)
3807
    oprot.writeMessageEnd()
3808
    oprot.trans.flush()
3809
 
3810
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
3811
    args = addupdateVoucherForItem_args()
3812
    args.read(iprot)
3813
    iprot.readMessageEnd()
3814
    result = addupdateVoucherForItem_result()
3815
    try:
3816
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
3817
    except CatalogServiceException, cex:
3818
      result.cex = cex
3819
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
3820
    result.write(oprot)
3821
    oprot.writeMessageEnd()
3822
    oprot.trans.flush()
3823
 
3824
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
3825
    args = deleteVoucherForItem_args()
3826
    args.read(iprot)
3827
    iprot.readMessageEnd()
3828
    result = deleteVoucherForItem_result()
3829
    try:
3830
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
3831
    except CatalogServiceException, cex:
3832
      result.cex = cex
3833
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
3834
    result.write(oprot)
3835
    oprot.writeMessageEnd()
3836
    oprot.trans.flush()
3837
 
3838
  def process_getVoucherAmount(self, seqid, iprot, oprot):
3839
    args = getVoucherAmount_args()
3840
    args.read(iprot)
3841
    iprot.readMessageEnd()
3842
    result = getVoucherAmount_result()
3843
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
3844
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
3845
    result.write(oprot)
3846
    oprot.writeMessageEnd()
3847
    oprot.trans.flush()
3848
 
3849
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
3850
    args = getAllItemVouchers_args()
3851
    args.read(iprot)
3852
    iprot.readMessageEnd()
3853
    result = getAllItemVouchers_result()
3854
    result.success = self._handler.getAllItemVouchers(args.itemId)
3855
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
3856
    result.write(oprot)
3857
    oprot.writeMessageEnd()
3858
    oprot.trans.flush()
3859
 
3860
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
3861
    args = isValidCatalogItemId_args()
3862
    args.read(iprot)
3863
    iprot.readMessageEnd()
3864
    result = isValidCatalogItemId_result()
3865
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
3866
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
3867
    result.write(oprot)
3868
    oprot.writeMessageEnd()
3869
    oprot.trans.flush()
3870
 
6039 amit.gupta 3871
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
3872
    args = getVatPercentageForItem_args()
3873
    args.read(iprot)
3874
    iprot.readMessageEnd()
3875
    result = getVatPercentageForItem_result()
3876
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
3877
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
3878
    result.write(oprot)
3879
    oprot.writeMessageEnd()
3880
    oprot.trans.flush()
5944 mandeep.dh 3881
 
6039 amit.gupta 3882
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
3883
    args = getVatAmountForItem_args()
3884
    args.read(iprot)
3885
    iprot.readMessageEnd()
3886
    result = getVatAmountForItem_result()
3887
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
3888
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
3889
    result.write(oprot)
3890
    oprot.writeMessageEnd()
3891
    oprot.trans.flush()
3892
 
6531 vikram.rag 3893
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
3894
    args = getAllIgnoredInventoryUpdateItemsList_args()
3895
    args.read(iprot)
3896
    iprot.readMessageEnd()
3897
    result = getAllIgnoredInventoryUpdateItemsList_result()
3898
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
3899
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
3900
    result.write(oprot)
3901
    oprot.writeMessageEnd()
3902
    oprot.trans.flush()
6039 amit.gupta 3903
 
6821 amar.kumar 3904
  def process_getAllAliveItems(self, seqid, iprot, oprot):
3905
    args = getAllAliveItems_args()
3906
    args.read(iprot)
3907
    iprot.readMessageEnd()
3908
    result = getAllAliveItems_result()
3909
    result.success = self._handler.getAllAliveItems()
3910
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
3911
    result.write(oprot)
3912
    oprot.writeMessageEnd()
3913
    oprot.trans.flush()
3914
 
6805 anupam.sin 3915
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
3916
    args = getInsuranceAmount_args()
3917
    args.read(iprot)
3918
    iprot.readMessageEnd()
3919
    result = getInsuranceAmount_result()
3920
    result.success = self._handler.getInsuranceAmount(args.itemId, args.insurerId, args.quantity)
3921
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
3922
    result.write(oprot)
3923
    oprot.writeMessageEnd()
3924
    oprot.trans.flush()
6531 vikram.rag 3925
 
6805 anupam.sin 3926
  def process_getInsurer(self, seqid, iprot, oprot):
3927
    args = getInsurer_args()
3928
    args.read(iprot)
3929
    iprot.readMessageEnd()
3930
    result = getInsurer_result()
3931
    result.success = self._handler.getInsurer(args.insurerId)
3932
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
3933
    result.write(oprot)
3934
    oprot.writeMessageEnd()
3935
    oprot.trans.flush()
3936
 
6838 vikram.rag 3937
  def process_getAllInsurers(self, seqid, iprot, oprot):
3938
    args = getAllInsurers_args()
3939
    args.read(iprot)
3940
    iprot.readMessageEnd()
3941
    result = getAllInsurers_result()
3942
    result.success = self._handler.getAllInsurers()
3943
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
3944
    result.write(oprot)
3945
    oprot.writeMessageEnd()
3946
    oprot.trans.flush()
6805 anupam.sin 3947
 
6838 vikram.rag 3948
 
5944 mandeep.dh 3949
# HELPER FUNCTIONS AND STRUCTURES
3950
 
3951
class addItem_args:
3952
  """
3953
  Attributes:
3954
   - item
3955
  """
3956
 
3957
  thrift_spec = (
3958
    None, # 0
3959
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
3960
  )
3961
 
3962
  def __init__(self, item=None,):
3963
    self.item = item
3964
 
3965
  def read(self, iprot):
3966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3968
      return
3969
    iprot.readStructBegin()
3970
    while True:
3971
      (fname, ftype, fid) = iprot.readFieldBegin()
3972
      if ftype == TType.STOP:
3973
        break
3974
      if fid == 1:
3975
        if ftype == TType.STRUCT:
3976
          self.item = Item()
3977
          self.item.read(iprot)
3978
        else:
3979
          iprot.skip(ftype)
3980
      else:
3981
        iprot.skip(ftype)
3982
      iprot.readFieldEnd()
3983
    iprot.readStructEnd()
3984
 
3985
  def write(self, oprot):
3986
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3987
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3988
      return
3989
    oprot.writeStructBegin('addItem_args')
3990
    if self.item is not None:
3991
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
3992
      self.item.write(oprot)
3993
      oprot.writeFieldEnd()
3994
    oprot.writeFieldStop()
3995
    oprot.writeStructEnd()
3996
 
3997
  def validate(self):
3998
    return
3999
 
4000
 
4001
  def __repr__(self):
4002
    L = ['%s=%r' % (key, value)
4003
      for key, value in self.__dict__.iteritems()]
4004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4005
 
4006
  def __eq__(self, other):
4007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4008
 
4009
  def __ne__(self, other):
4010
    return not (self == other)
4011
 
4012
class addItem_result:
4013
  """
4014
  Attributes:
4015
   - success
4016
   - cex
4017
  """
4018
 
4019
  thrift_spec = (
4020
    (0, TType.I64, 'success', None, None, ), # 0
4021
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4022
  )
4023
 
4024
  def __init__(self, success=None, cex=None,):
4025
    self.success = success
4026
    self.cex = cex
4027
 
4028
  def read(self, iprot):
4029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4031
      return
4032
    iprot.readStructBegin()
4033
    while True:
4034
      (fname, ftype, fid) = iprot.readFieldBegin()
4035
      if ftype == TType.STOP:
4036
        break
4037
      if fid == 0:
4038
        if ftype == TType.I64:
4039
          self.success = iprot.readI64();
4040
        else:
4041
          iprot.skip(ftype)
4042
      elif fid == 1:
4043
        if ftype == TType.STRUCT:
4044
          self.cex = CatalogServiceException()
4045
          self.cex.read(iprot)
4046
        else:
4047
          iprot.skip(ftype)
4048
      else:
4049
        iprot.skip(ftype)
4050
      iprot.readFieldEnd()
4051
    iprot.readStructEnd()
4052
 
4053
  def write(self, oprot):
4054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4056
      return
4057
    oprot.writeStructBegin('addItem_result')
4058
    if self.success is not None:
4059
      oprot.writeFieldBegin('success', TType.I64, 0)
4060
      oprot.writeI64(self.success)
4061
      oprot.writeFieldEnd()
4062
    if self.cex is not None:
4063
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4064
      self.cex.write(oprot)
4065
      oprot.writeFieldEnd()
4066
    oprot.writeFieldStop()
4067
    oprot.writeStructEnd()
4068
 
4069
  def validate(self):
4070
    return
4071
 
4072
 
4073
  def __repr__(self):
4074
    L = ['%s=%r' % (key, value)
4075
      for key, value in self.__dict__.iteritems()]
4076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4077
 
4078
  def __eq__(self, other):
4079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4080
 
4081
  def __ne__(self, other):
4082
    return not (self == other)
4083
 
4084
class updateItem_args:
4085
  """
4086
  Attributes:
4087
   - item
4088
  """
4089
 
4090
  thrift_spec = (
4091
    None, # 0
4092
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4093
  )
4094
 
4095
  def __init__(self, item=None,):
4096
    self.item = item
4097
 
4098
  def read(self, iprot):
4099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4101
      return
4102
    iprot.readStructBegin()
4103
    while True:
4104
      (fname, ftype, fid) = iprot.readFieldBegin()
4105
      if ftype == TType.STOP:
4106
        break
4107
      if fid == 1:
4108
        if ftype == TType.STRUCT:
4109
          self.item = Item()
4110
          self.item.read(iprot)
4111
        else:
4112
          iprot.skip(ftype)
4113
      else:
4114
        iprot.skip(ftype)
4115
      iprot.readFieldEnd()
4116
    iprot.readStructEnd()
4117
 
4118
  def write(self, oprot):
4119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4121
      return
4122
    oprot.writeStructBegin('updateItem_args')
4123
    if self.item is not None:
4124
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4125
      self.item.write(oprot)
4126
      oprot.writeFieldEnd()
4127
    oprot.writeFieldStop()
4128
    oprot.writeStructEnd()
4129
 
4130
  def validate(self):
4131
    return
4132
 
4133
 
4134
  def __repr__(self):
4135
    L = ['%s=%r' % (key, value)
4136
      for key, value in self.__dict__.iteritems()]
4137
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4138
 
4139
  def __eq__(self, other):
4140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4141
 
4142
  def __ne__(self, other):
4143
    return not (self == other)
4144
 
4145
class updateItem_result:
4146
  """
4147
  Attributes:
4148
   - success
4149
   - cex
4150
  """
4151
 
4152
  thrift_spec = (
4153
    (0, TType.I64, 'success', None, None, ), # 0
4154
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4155
  )
4156
 
4157
  def __init__(self, success=None, cex=None,):
4158
    self.success = success
4159
    self.cex = cex
4160
 
4161
  def read(self, iprot):
4162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4164
      return
4165
    iprot.readStructBegin()
4166
    while True:
4167
      (fname, ftype, fid) = iprot.readFieldBegin()
4168
      if ftype == TType.STOP:
4169
        break
4170
      if fid == 0:
4171
        if ftype == TType.I64:
4172
          self.success = iprot.readI64();
4173
        else:
4174
          iprot.skip(ftype)
4175
      elif fid == 1:
4176
        if ftype == TType.STRUCT:
4177
          self.cex = CatalogServiceException()
4178
          self.cex.read(iprot)
4179
        else:
4180
          iprot.skip(ftype)
4181
      else:
4182
        iprot.skip(ftype)
4183
      iprot.readFieldEnd()
4184
    iprot.readStructEnd()
4185
 
4186
  def write(self, oprot):
4187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4189
      return
4190
    oprot.writeStructBegin('updateItem_result')
4191
    if self.success is not None:
4192
      oprot.writeFieldBegin('success', TType.I64, 0)
4193
      oprot.writeI64(self.success)
4194
      oprot.writeFieldEnd()
4195
    if self.cex is not None:
4196
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4197
      self.cex.write(oprot)
4198
      oprot.writeFieldEnd()
4199
    oprot.writeFieldStop()
4200
    oprot.writeStructEnd()
4201
 
4202
  def validate(self):
4203
    return
4204
 
4205
 
4206
  def __repr__(self):
4207
    L = ['%s=%r' % (key, value)
4208
      for key, value in self.__dict__.iteritems()]
4209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4210
 
4211
  def __eq__(self, other):
4212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4213
 
4214
  def __ne__(self, other):
4215
    return not (self == other)
4216
 
4217
class isActive_args:
4218
  """
4219
  Attributes:
4220
   - itemId
4221
  """
4222
 
4223
  thrift_spec = (
4224
    None, # 0
4225
    (1, TType.I64, 'itemId', None, None, ), # 1
4226
  )
4227
 
4228
  def __init__(self, itemId=None,):
4229
    self.itemId = itemId
4230
 
4231
  def read(self, iprot):
4232
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4233
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4234
      return
4235
    iprot.readStructBegin()
4236
    while True:
4237
      (fname, ftype, fid) = iprot.readFieldBegin()
4238
      if ftype == TType.STOP:
4239
        break
4240
      if fid == 1:
4241
        if ftype == TType.I64:
4242
          self.itemId = iprot.readI64();
4243
        else:
4244
          iprot.skip(ftype)
4245
      else:
4246
        iprot.skip(ftype)
4247
      iprot.readFieldEnd()
4248
    iprot.readStructEnd()
4249
 
4250
  def write(self, oprot):
4251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4253
      return
4254
    oprot.writeStructBegin('isActive_args')
4255
    if self.itemId is not None:
4256
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4257
      oprot.writeI64(self.itemId)
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 isActive_result:
4278
  """
4279
  Attributes:
4280
   - success
4281
   - isex
4282
  """
4283
 
4284
  thrift_spec = (
4285
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4286
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4287
  )
4288
 
4289
  def __init__(self, success=None, isex=None,):
4290
    self.success = success
4291
    self.isex = isex
4292
 
4293
  def read(self, iprot):
4294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4296
      return
4297
    iprot.readStructBegin()
4298
    while True:
4299
      (fname, ftype, fid) = iprot.readFieldBegin()
4300
      if ftype == TType.STOP:
4301
        break
4302
      if fid == 0:
4303
        if ftype == TType.STRUCT:
4304
          self.success = ItemShippingInfo()
4305
          self.success.read(iprot)
4306
        else:
4307
          iprot.skip(ftype)
4308
      elif fid == 1:
4309
        if ftype == TType.STRUCT:
4310
          self.isex = CatalogServiceException()
4311
          self.isex.read(iprot)
4312
        else:
4313
          iprot.skip(ftype)
4314
      else:
4315
        iprot.skip(ftype)
4316
      iprot.readFieldEnd()
4317
    iprot.readStructEnd()
4318
 
4319
  def write(self, oprot):
4320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4322
      return
4323
    oprot.writeStructBegin('isActive_result')
4324
    if self.success is not None:
4325
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4326
      self.success.write(oprot)
4327
      oprot.writeFieldEnd()
4328
    if self.isex is not None:
4329
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4330
      self.isex.write(oprot)
4331
      oprot.writeFieldEnd()
4332
    oprot.writeFieldStop()
4333
    oprot.writeStructEnd()
4334
 
4335
  def validate(self):
4336
    return
4337
 
4338
 
4339
  def __repr__(self):
4340
    L = ['%s=%r' % (key, value)
4341
      for key, value in self.__dict__.iteritems()]
4342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4343
 
4344
  def __eq__(self, other):
4345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4346
 
4347
  def __ne__(self, other):
4348
    return not (self == other)
4349
 
4350
class getItemStatusDescription_args:
4351
  """
4352
  Attributes:
4353
   - itemId
4354
  """
4355
 
4356
  thrift_spec = (
4357
    None, # 0
4358
    (1, TType.I64, 'itemId', None, None, ), # 1
4359
  )
4360
 
4361
  def __init__(self, itemId=None,):
4362
    self.itemId = itemId
4363
 
4364
  def read(self, iprot):
4365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4367
      return
4368
    iprot.readStructBegin()
4369
    while True:
4370
      (fname, ftype, fid) = iprot.readFieldBegin()
4371
      if ftype == TType.STOP:
4372
        break
4373
      if fid == 1:
4374
        if ftype == TType.I64:
4375
          self.itemId = iprot.readI64();
4376
        else:
4377
          iprot.skip(ftype)
4378
      else:
4379
        iprot.skip(ftype)
4380
      iprot.readFieldEnd()
4381
    iprot.readStructEnd()
4382
 
4383
  def write(self, oprot):
4384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4386
      return
4387
    oprot.writeStructBegin('getItemStatusDescription_args')
4388
    if self.itemId is not None:
4389
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4390
      oprot.writeI64(self.itemId)
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 getItemStatusDescription_result:
4411
  """
4412
  Attributes:
4413
   - success
4414
   - isex
4415
  """
4416
 
4417
  thrift_spec = (
4418
    (0, TType.STRING, 'success', None, None, ), # 0
4419
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4420
  )
4421
 
4422
  def __init__(self, success=None, isex=None,):
4423
    self.success = success
4424
    self.isex = isex
4425
 
4426
  def read(self, iprot):
4427
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4428
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4429
      return
4430
    iprot.readStructBegin()
4431
    while True:
4432
      (fname, ftype, fid) = iprot.readFieldBegin()
4433
      if ftype == TType.STOP:
4434
        break
4435
      if fid == 0:
4436
        if ftype == TType.STRING:
4437
          self.success = iprot.readString();
4438
        else:
4439
          iprot.skip(ftype)
4440
      elif fid == 1:
4441
        if ftype == TType.STRUCT:
4442
          self.isex = CatalogServiceException()
4443
          self.isex.read(iprot)
4444
        else:
4445
          iprot.skip(ftype)
4446
      else:
4447
        iprot.skip(ftype)
4448
      iprot.readFieldEnd()
4449
    iprot.readStructEnd()
4450
 
4451
  def write(self, oprot):
4452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4454
      return
4455
    oprot.writeStructBegin('getItemStatusDescription_result')
4456
    if self.success is not None:
4457
      oprot.writeFieldBegin('success', TType.STRING, 0)
4458
      oprot.writeString(self.success)
4459
      oprot.writeFieldEnd()
4460
    if self.isex is not None:
4461
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4462
      self.isex.write(oprot)
4463
      oprot.writeFieldEnd()
4464
    oprot.writeFieldStop()
4465
    oprot.writeStructEnd()
4466
 
4467
  def validate(self):
4468
    return
4469
 
4470
 
4471
  def __repr__(self):
4472
    L = ['%s=%r' % (key, value)
4473
      for key, value in self.__dict__.iteritems()]
4474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4475
 
4476
  def __eq__(self, other):
4477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4478
 
4479
  def __ne__(self, other):
4480
    return not (self == other)
4481
 
4482
class startItemOn_args:
4483
  """
4484
  Attributes:
4485
   - item_id
4486
   - timestamp
4487
  """
4488
 
4489
  thrift_spec = (
4490
    None, # 0
4491
    (1, TType.I64, 'item_id', None, None, ), # 1
4492
    (2, TType.I64, 'timestamp', None, None, ), # 2
4493
  )
4494
 
4495
  def __init__(self, item_id=None, timestamp=None,):
4496
    self.item_id = item_id
4497
    self.timestamp = timestamp
4498
 
4499
  def read(self, iprot):
4500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4502
      return
4503
    iprot.readStructBegin()
4504
    while True:
4505
      (fname, ftype, fid) = iprot.readFieldBegin()
4506
      if ftype == TType.STOP:
4507
        break
4508
      if fid == 1:
4509
        if ftype == TType.I64:
4510
          self.item_id = iprot.readI64();
4511
        else:
4512
          iprot.skip(ftype)
4513
      elif fid == 2:
4514
        if ftype == TType.I64:
4515
          self.timestamp = iprot.readI64();
4516
        else:
4517
          iprot.skip(ftype)
4518
      else:
4519
        iprot.skip(ftype)
4520
      iprot.readFieldEnd()
4521
    iprot.readStructEnd()
4522
 
4523
  def write(self, oprot):
4524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4526
      return
4527
    oprot.writeStructBegin('startItemOn_args')
4528
    if self.item_id is not None:
4529
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4530
      oprot.writeI64(self.item_id)
4531
      oprot.writeFieldEnd()
4532
    if self.timestamp is not None:
4533
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4534
      oprot.writeI64(self.timestamp)
4535
      oprot.writeFieldEnd()
4536
    oprot.writeFieldStop()
4537
    oprot.writeStructEnd()
4538
 
4539
  def validate(self):
4540
    return
4541
 
4542
 
4543
  def __repr__(self):
4544
    L = ['%s=%r' % (key, value)
4545
      for key, value in self.__dict__.iteritems()]
4546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4547
 
4548
  def __eq__(self, other):
4549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4550
 
4551
  def __ne__(self, other):
4552
    return not (self == other)
4553
 
4554
class startItemOn_result:
4555
  """
4556
  Attributes:
4557
   - cex
4558
  """
4559
 
4560
  thrift_spec = (
4561
    None, # 0
4562
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4563
  )
4564
 
4565
  def __init__(self, cex=None,):
4566
    self.cex = cex
4567
 
4568
  def read(self, iprot):
4569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4571
      return
4572
    iprot.readStructBegin()
4573
    while True:
4574
      (fname, ftype, fid) = iprot.readFieldBegin()
4575
      if ftype == TType.STOP:
4576
        break
4577
      if fid == 1:
4578
        if ftype == TType.STRUCT:
4579
          self.cex = CatalogServiceException()
4580
          self.cex.read(iprot)
4581
        else:
4582
          iprot.skip(ftype)
4583
      else:
4584
        iprot.skip(ftype)
4585
      iprot.readFieldEnd()
4586
    iprot.readStructEnd()
4587
 
4588
  def write(self, oprot):
4589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4591
      return
4592
    oprot.writeStructBegin('startItemOn_result')
4593
    if self.cex is not None:
4594
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4595
      self.cex.write(oprot)
4596
      oprot.writeFieldEnd()
4597
    oprot.writeFieldStop()
4598
    oprot.writeStructEnd()
4599
 
4600
  def validate(self):
4601
    return
4602
 
4603
 
4604
  def __repr__(self):
4605
    L = ['%s=%r' % (key, value)
4606
      for key, value in self.__dict__.iteritems()]
4607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4608
 
4609
  def __eq__(self, other):
4610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4611
 
4612
  def __ne__(self, other):
4613
    return not (self == other)
4614
 
4615
class retireItemOn_args:
4616
  """
4617
  Attributes:
4618
   - item_id
4619
   - timestamp
4620
  """
4621
 
4622
  thrift_spec = (
4623
    None, # 0
4624
    (1, TType.I64, 'item_id', None, None, ), # 1
4625
    (2, TType.I64, 'timestamp', None, None, ), # 2
4626
  )
4627
 
4628
  def __init__(self, item_id=None, timestamp=None,):
4629
    self.item_id = item_id
4630
    self.timestamp = timestamp
4631
 
4632
  def read(self, iprot):
4633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4635
      return
4636
    iprot.readStructBegin()
4637
    while True:
4638
      (fname, ftype, fid) = iprot.readFieldBegin()
4639
      if ftype == TType.STOP:
4640
        break
4641
      if fid == 1:
4642
        if ftype == TType.I64:
4643
          self.item_id = iprot.readI64();
4644
        else:
4645
          iprot.skip(ftype)
4646
      elif fid == 2:
4647
        if ftype == TType.I64:
4648
          self.timestamp = iprot.readI64();
4649
        else:
4650
          iprot.skip(ftype)
4651
      else:
4652
        iprot.skip(ftype)
4653
      iprot.readFieldEnd()
4654
    iprot.readStructEnd()
4655
 
4656
  def write(self, oprot):
4657
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4658
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4659
      return
4660
    oprot.writeStructBegin('retireItemOn_args')
4661
    if self.item_id is not None:
4662
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4663
      oprot.writeI64(self.item_id)
4664
      oprot.writeFieldEnd()
4665
    if self.timestamp is not None:
4666
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4667
      oprot.writeI64(self.timestamp)
4668
      oprot.writeFieldEnd()
4669
    oprot.writeFieldStop()
4670
    oprot.writeStructEnd()
4671
 
4672
  def validate(self):
4673
    return
4674
 
4675
 
4676
  def __repr__(self):
4677
    L = ['%s=%r' % (key, value)
4678
      for key, value in self.__dict__.iteritems()]
4679
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4680
 
4681
  def __eq__(self, other):
4682
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4683
 
4684
  def __ne__(self, other):
4685
    return not (self == other)
4686
 
4687
class retireItemOn_result:
4688
  """
4689
  Attributes:
4690
   - cex
4691
  """
4692
 
4693
  thrift_spec = (
4694
    None, # 0
4695
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4696
  )
4697
 
4698
  def __init__(self, cex=None,):
4699
    self.cex = cex
4700
 
4701
  def read(self, iprot):
4702
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4703
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4704
      return
4705
    iprot.readStructBegin()
4706
    while True:
4707
      (fname, ftype, fid) = iprot.readFieldBegin()
4708
      if ftype == TType.STOP:
4709
        break
4710
      if fid == 1:
4711
        if ftype == TType.STRUCT:
4712
          self.cex = CatalogServiceException()
4713
          self.cex.read(iprot)
4714
        else:
4715
          iprot.skip(ftype)
4716
      else:
4717
        iprot.skip(ftype)
4718
      iprot.readFieldEnd()
4719
    iprot.readStructEnd()
4720
 
4721
  def write(self, oprot):
4722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4724
      return
4725
    oprot.writeStructBegin('retireItemOn_result')
4726
    if self.cex is not None:
4727
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4728
      self.cex.write(oprot)
4729
      oprot.writeFieldEnd()
4730
    oprot.writeFieldStop()
4731
    oprot.writeStructEnd()
4732
 
4733
  def validate(self):
4734
    return
4735
 
4736
 
4737
  def __repr__(self):
4738
    L = ['%s=%r' % (key, value)
4739
      for key, value in self.__dict__.iteritems()]
4740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4741
 
4742
  def __eq__(self, other):
4743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4744
 
4745
  def __ne__(self, other):
4746
    return not (self == other)
4747
 
4748
class changeItemStatus_args:
4749
  """
4750
  Attributes:
4751
   - item_id
4752
   - timestamp
4753
   - newstatus
4754
  """
4755
 
4756
  thrift_spec = (
4757
    None, # 0
4758
    (1, TType.I64, 'item_id', None, None, ), # 1
4759
    (2, TType.I64, 'timestamp', None, None, ), # 2
4760
    (3, TType.I32, 'newstatus', None, None, ), # 3
4761
  )
4762
 
4763
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
4764
    self.item_id = item_id
4765
    self.timestamp = timestamp
4766
    self.newstatus = newstatus
4767
 
4768
  def read(self, iprot):
4769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4771
      return
4772
    iprot.readStructBegin()
4773
    while True:
4774
      (fname, ftype, fid) = iprot.readFieldBegin()
4775
      if ftype == TType.STOP:
4776
        break
4777
      if fid == 1:
4778
        if ftype == TType.I64:
4779
          self.item_id = iprot.readI64();
4780
        else:
4781
          iprot.skip(ftype)
4782
      elif fid == 2:
4783
        if ftype == TType.I64:
4784
          self.timestamp = iprot.readI64();
4785
        else:
4786
          iprot.skip(ftype)
4787
      elif fid == 3:
4788
        if ftype == TType.I32:
4789
          self.newstatus = iprot.readI32();
4790
        else:
4791
          iprot.skip(ftype)
4792
      else:
4793
        iprot.skip(ftype)
4794
      iprot.readFieldEnd()
4795
    iprot.readStructEnd()
4796
 
4797
  def write(self, oprot):
4798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4800
      return
4801
    oprot.writeStructBegin('changeItemStatus_args')
4802
    if self.item_id is not None:
4803
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4804
      oprot.writeI64(self.item_id)
4805
      oprot.writeFieldEnd()
4806
    if self.timestamp is not None:
4807
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4808
      oprot.writeI64(self.timestamp)
4809
      oprot.writeFieldEnd()
4810
    if self.newstatus is not None:
4811
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
4812
      oprot.writeI32(self.newstatus)
4813
      oprot.writeFieldEnd()
4814
    oprot.writeFieldStop()
4815
    oprot.writeStructEnd()
4816
 
4817
  def validate(self):
4818
    return
4819
 
4820
 
4821
  def __repr__(self):
4822
    L = ['%s=%r' % (key, value)
4823
      for key, value in self.__dict__.iteritems()]
4824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4825
 
4826
  def __eq__(self, other):
4827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4828
 
4829
  def __ne__(self, other):
4830
    return not (self == other)
4831
 
4832
class changeItemStatus_result:
4833
  """
4834
  Attributes:
4835
   - cex
4836
  """
4837
 
4838
  thrift_spec = (
4839
    None, # 0
4840
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4841
  )
4842
 
4843
  def __init__(self, cex=None,):
4844
    self.cex = cex
4845
 
4846
  def read(self, iprot):
4847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4849
      return
4850
    iprot.readStructBegin()
4851
    while True:
4852
      (fname, ftype, fid) = iprot.readFieldBegin()
4853
      if ftype == TType.STOP:
4854
        break
4855
      if fid == 1:
4856
        if ftype == TType.STRUCT:
4857
          self.cex = CatalogServiceException()
4858
          self.cex.read(iprot)
4859
        else:
4860
          iprot.skip(ftype)
4861
      else:
4862
        iprot.skip(ftype)
4863
      iprot.readFieldEnd()
4864
    iprot.readStructEnd()
4865
 
4866
  def write(self, oprot):
4867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4869
      return
4870
    oprot.writeStructBegin('changeItemStatus_result')
4871
    if self.cex is not None:
4872
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4873
      self.cex.write(oprot)
4874
      oprot.writeFieldEnd()
4875
    oprot.writeFieldStop()
4876
    oprot.writeStructEnd()
4877
 
4878
  def validate(self):
4879
    return
4880
 
4881
 
4882
  def __repr__(self):
4883
    L = ['%s=%r' % (key, value)
4884
      for key, value in self.__dict__.iteritems()]
4885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4886
 
4887
  def __eq__(self, other):
4888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4889
 
4890
  def __ne__(self, other):
4891
    return not (self == other)
4892
 
4893
class getItem_args:
4894
  """
4895
  Attributes:
4896
   - item_id
4897
  """
4898
 
4899
  thrift_spec = (
4900
    None, # 0
4901
    (1, TType.I64, 'item_id', None, None, ), # 1
4902
  )
4903
 
4904
  def __init__(self, item_id=None,):
4905
    self.item_id = item_id
4906
 
4907
  def read(self, iprot):
4908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4910
      return
4911
    iprot.readStructBegin()
4912
    while True:
4913
      (fname, ftype, fid) = iprot.readFieldBegin()
4914
      if ftype == TType.STOP:
4915
        break
4916
      if fid == 1:
4917
        if ftype == TType.I64:
4918
          self.item_id = iprot.readI64();
4919
        else:
4920
          iprot.skip(ftype)
4921
      else:
4922
        iprot.skip(ftype)
4923
      iprot.readFieldEnd()
4924
    iprot.readStructEnd()
4925
 
4926
  def write(self, oprot):
4927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4929
      return
4930
    oprot.writeStructBegin('getItem_args')
4931
    if self.item_id is not None:
4932
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4933
      oprot.writeI64(self.item_id)
4934
      oprot.writeFieldEnd()
4935
    oprot.writeFieldStop()
4936
    oprot.writeStructEnd()
4937
 
4938
  def validate(self):
4939
    return
4940
 
4941
 
4942
  def __repr__(self):
4943
    L = ['%s=%r' % (key, value)
4944
      for key, value in self.__dict__.iteritems()]
4945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4946
 
4947
  def __eq__(self, other):
4948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4949
 
4950
  def __ne__(self, other):
4951
    return not (self == other)
4952
 
4953
class getItem_result:
4954
  """
4955
  Attributes:
4956
   - success
4957
   - cex
4958
  """
4959
 
4960
  thrift_spec = (
4961
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
4962
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4963
  )
4964
 
4965
  def __init__(self, success=None, cex=None,):
4966
    self.success = success
4967
    self.cex = cex
4968
 
4969
  def read(self, iprot):
4970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4972
      return
4973
    iprot.readStructBegin()
4974
    while True:
4975
      (fname, ftype, fid) = iprot.readFieldBegin()
4976
      if ftype == TType.STOP:
4977
        break
4978
      if fid == 0:
4979
        if ftype == TType.STRUCT:
4980
          self.success = Item()
4981
          self.success.read(iprot)
4982
        else:
4983
          iprot.skip(ftype)
4984
      elif fid == 1:
4985
        if ftype == TType.STRUCT:
4986
          self.cex = CatalogServiceException()
4987
          self.cex.read(iprot)
4988
        else:
4989
          iprot.skip(ftype)
4990
      else:
4991
        iprot.skip(ftype)
4992
      iprot.readFieldEnd()
4993
    iprot.readStructEnd()
4994
 
4995
  def write(self, oprot):
4996
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4997
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4998
      return
4999
    oprot.writeStructBegin('getItem_result')
5000
    if self.success is not None:
5001
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5002
      self.success.write(oprot)
5003
      oprot.writeFieldEnd()
5004
    if self.cex is not None:
5005
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5006
      self.cex.write(oprot)
5007
      oprot.writeFieldEnd()
5008
    oprot.writeFieldStop()
5009
    oprot.writeStructEnd()
5010
 
5011
  def validate(self):
5012
    return
5013
 
5014
 
5015
  def __repr__(self):
5016
    L = ['%s=%r' % (key, value)
5017
      for key, value in self.__dict__.iteritems()]
5018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5019
 
5020
  def __eq__(self, other):
5021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5022
 
5023
  def __ne__(self, other):
5024
    return not (self == other)
5025
 
5026
class getItemsByCatalogId_args:
5027
  """
5028
  Attributes:
5029
   - catalog_item_id
5030
  """
5031
 
5032
  thrift_spec = (
5033
    None, # 0
5034
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5035
  )
5036
 
5037
  def __init__(self, catalog_item_id=None,):
5038
    self.catalog_item_id = catalog_item_id
5039
 
5040
  def read(self, iprot):
5041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5043
      return
5044
    iprot.readStructBegin()
5045
    while True:
5046
      (fname, ftype, fid) = iprot.readFieldBegin()
5047
      if ftype == TType.STOP:
5048
        break
5049
      if fid == 1:
5050
        if ftype == TType.I64:
5051
          self.catalog_item_id = iprot.readI64();
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('getItemsByCatalogId_args')
5064
    if self.catalog_item_id is not None:
5065
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5066
      oprot.writeI64(self.catalog_item_id)
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 getItemsByCatalogId_result:
5087
  """
5088
  Attributes:
5089
   - success
5090
   - cex
5091
  """
5092
 
5093
  thrift_spec = (
5094
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5095
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5096
  )
5097
 
5098
  def __init__(self, success=None, cex=None,):
5099
    self.success = success
5100
    self.cex = cex
5101
 
5102
  def read(self, iprot):
5103
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5104
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5105
      return
5106
    iprot.readStructBegin()
5107
    while True:
5108
      (fname, ftype, fid) = iprot.readFieldBegin()
5109
      if ftype == TType.STOP:
5110
        break
5111
      if fid == 0:
5112
        if ftype == TType.LIST:
5113
          self.success = []
5114
          (_etype19, _size16) = iprot.readListBegin()
5115
          for _i20 in xrange(_size16):
5116
            _elem21 = Item()
5117
            _elem21.read(iprot)
5118
            self.success.append(_elem21)
5119
          iprot.readListEnd()
5120
        else:
5121
          iprot.skip(ftype)
5122
      elif fid == 1:
5123
        if ftype == TType.STRUCT:
5124
          self.cex = CatalogServiceException()
5125
          self.cex.read(iprot)
5126
        else:
5127
          iprot.skip(ftype)
5128
      else:
5129
        iprot.skip(ftype)
5130
      iprot.readFieldEnd()
5131
    iprot.readStructEnd()
5132
 
5133
  def write(self, oprot):
5134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5136
      return
5137
    oprot.writeStructBegin('getItemsByCatalogId_result')
5138
    if self.success is not None:
5139
      oprot.writeFieldBegin('success', TType.LIST, 0)
5140
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5141
      for iter22 in self.success:
5142
        iter22.write(oprot)
5143
      oprot.writeListEnd()
5144
      oprot.writeFieldEnd()
5145
    if self.cex is not None:
5146
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5147
      self.cex.write(oprot)
5148
      oprot.writeFieldEnd()
5149
    oprot.writeFieldStop()
5150
    oprot.writeStructEnd()
5151
 
5152
  def validate(self):
5153
    return
5154
 
5155
 
5156
  def __repr__(self):
5157
    L = ['%s=%r' % (key, value)
5158
      for key, value in self.__dict__.iteritems()]
5159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5160
 
5161
  def __eq__(self, other):
5162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5163
 
5164
  def __ne__(self, other):
5165
    return not (self == other)
5166
 
5167
class getValidItemsByCatalogId_args:
5168
  """
5169
  Attributes:
5170
   - catalog_item_id
5171
  """
5172
 
5173
  thrift_spec = (
5174
    None, # 0
5175
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5176
  )
5177
 
5178
  def __init__(self, catalog_item_id=None,):
5179
    self.catalog_item_id = catalog_item_id
5180
 
5181
  def read(self, iprot):
5182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5184
      return
5185
    iprot.readStructBegin()
5186
    while True:
5187
      (fname, ftype, fid) = iprot.readFieldBegin()
5188
      if ftype == TType.STOP:
5189
        break
5190
      if fid == 1:
5191
        if ftype == TType.I64:
5192
          self.catalog_item_id = iprot.readI64();
5193
        else:
5194
          iprot.skip(ftype)
5195
      else:
5196
        iprot.skip(ftype)
5197
      iprot.readFieldEnd()
5198
    iprot.readStructEnd()
5199
 
5200
  def write(self, oprot):
5201
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5202
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5203
      return
5204
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5205
    if self.catalog_item_id is not None:
5206
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5207
      oprot.writeI64(self.catalog_item_id)
5208
      oprot.writeFieldEnd()
5209
    oprot.writeFieldStop()
5210
    oprot.writeStructEnd()
5211
 
5212
  def validate(self):
5213
    return
5214
 
5215
 
5216
  def __repr__(self):
5217
    L = ['%s=%r' % (key, value)
5218
      for key, value in self.__dict__.iteritems()]
5219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5220
 
5221
  def __eq__(self, other):
5222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5223
 
5224
  def __ne__(self, other):
5225
    return not (self == other)
5226
 
5227
class getValidItemsByCatalogId_result:
5228
  """
5229
  Attributes:
5230
   - success
5231
   - cex
5232
  """
5233
 
5234
  thrift_spec = (
5235
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5236
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5237
  )
5238
 
5239
  def __init__(self, success=None, cex=None,):
5240
    self.success = success
5241
    self.cex = cex
5242
 
5243
  def read(self, iprot):
5244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5246
      return
5247
    iprot.readStructBegin()
5248
    while True:
5249
      (fname, ftype, fid) = iprot.readFieldBegin()
5250
      if ftype == TType.STOP:
5251
        break
5252
      if fid == 0:
5253
        if ftype == TType.LIST:
5254
          self.success = []
5255
          (_etype26, _size23) = iprot.readListBegin()
5256
          for _i27 in xrange(_size23):
5257
            _elem28 = Item()
5258
            _elem28.read(iprot)
5259
            self.success.append(_elem28)
5260
          iprot.readListEnd()
5261
        else:
5262
          iprot.skip(ftype)
5263
      elif fid == 1:
5264
        if ftype == TType.STRUCT:
5265
          self.cex = CatalogServiceException()
5266
          self.cex.read(iprot)
5267
        else:
5268
          iprot.skip(ftype)
5269
      else:
5270
        iprot.skip(ftype)
5271
      iprot.readFieldEnd()
5272
    iprot.readStructEnd()
5273
 
5274
  def write(self, oprot):
5275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5277
      return
5278
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5279
    if self.success is not None:
5280
      oprot.writeFieldBegin('success', TType.LIST, 0)
5281
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5282
      for iter29 in self.success:
5283
        iter29.write(oprot)
5284
      oprot.writeListEnd()
5285
      oprot.writeFieldEnd()
5286
    if self.cex is not None:
5287
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5288
      self.cex.write(oprot)
5289
      oprot.writeFieldEnd()
5290
    oprot.writeFieldStop()
5291
    oprot.writeStructEnd()
5292
 
5293
  def validate(self):
5294
    return
5295
 
5296
 
5297
  def __repr__(self):
5298
    L = ['%s=%r' % (key, value)
5299
      for key, value in self.__dict__.iteritems()]
5300
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5301
 
5302
  def __eq__(self, other):
5303
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5304
 
5305
  def __ne__(self, other):
5306
    return not (self == other)
5307
 
5308
class getAllItems_args:
5309
  """
5310
  Attributes:
5311
   - isActive
5312
  """
5313
 
5314
  thrift_spec = (
5315
    None, # 0
5316
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5317
  )
5318
 
5319
  def __init__(self, isActive=None,):
5320
    self.isActive = isActive
5321
 
5322
  def read(self, iprot):
5323
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5324
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5325
      return
5326
    iprot.readStructBegin()
5327
    while True:
5328
      (fname, ftype, fid) = iprot.readFieldBegin()
5329
      if ftype == TType.STOP:
5330
        break
5331
      if fid == 1:
5332
        if ftype == TType.BOOL:
5333
          self.isActive = iprot.readBool();
5334
        else:
5335
          iprot.skip(ftype)
5336
      else:
5337
        iprot.skip(ftype)
5338
      iprot.readFieldEnd()
5339
    iprot.readStructEnd()
5340
 
5341
  def write(self, oprot):
5342
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5343
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5344
      return
5345
    oprot.writeStructBegin('getAllItems_args')
5346
    if self.isActive is not None:
5347
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5348
      oprot.writeBool(self.isActive)
5349
      oprot.writeFieldEnd()
5350
    oprot.writeFieldStop()
5351
    oprot.writeStructEnd()
5352
 
5353
  def validate(self):
5354
    return
5355
 
5356
 
5357
  def __repr__(self):
5358
    L = ['%s=%r' % (key, value)
5359
      for key, value in self.__dict__.iteritems()]
5360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5361
 
5362
  def __eq__(self, other):
5363
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5364
 
5365
  def __ne__(self, other):
5366
    return not (self == other)
5367
 
5368
class getAllItems_result:
5369
  """
5370
  Attributes:
5371
   - success
5372
   - cex
5373
  """
5374
 
5375
  thrift_spec = (
5376
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5377
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5378
  )
5379
 
5380
  def __init__(self, success=None, cex=None,):
5381
    self.success = success
5382
    self.cex = cex
5383
 
5384
  def read(self, iprot):
5385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5387
      return
5388
    iprot.readStructBegin()
5389
    while True:
5390
      (fname, ftype, fid) = iprot.readFieldBegin()
5391
      if ftype == TType.STOP:
5392
        break
5393
      if fid == 0:
5394
        if ftype == TType.LIST:
5395
          self.success = []
5396
          (_etype33, _size30) = iprot.readListBegin()
5397
          for _i34 in xrange(_size30):
5398
            _elem35 = Item()
5399
            _elem35.read(iprot)
5400
            self.success.append(_elem35)
5401
          iprot.readListEnd()
5402
        else:
5403
          iprot.skip(ftype)
5404
      elif fid == 1:
5405
        if ftype == TType.STRUCT:
5406
          self.cex = CatalogServiceException()
5407
          self.cex.read(iprot)
5408
        else:
5409
          iprot.skip(ftype)
5410
      else:
5411
        iprot.skip(ftype)
5412
      iprot.readFieldEnd()
5413
    iprot.readStructEnd()
5414
 
5415
  def write(self, oprot):
5416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5418
      return
5419
    oprot.writeStructBegin('getAllItems_result')
5420
    if self.success is not None:
5421
      oprot.writeFieldBegin('success', TType.LIST, 0)
5422
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5423
      for iter36 in self.success:
5424
        iter36.write(oprot)
5425
      oprot.writeListEnd()
5426
      oprot.writeFieldEnd()
5427
    if self.cex is not None:
5428
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5429
      self.cex.write(oprot)
5430
      oprot.writeFieldEnd()
5431
    oprot.writeFieldStop()
5432
    oprot.writeStructEnd()
5433
 
5434
  def validate(self):
5435
    return
5436
 
5437
 
5438
  def __repr__(self):
5439
    L = ['%s=%r' % (key, value)
5440
      for key, value in self.__dict__.iteritems()]
5441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5442
 
5443
  def __eq__(self, other):
5444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5445
 
5446
  def __ne__(self, other):
5447
    return not (self == other)
5448
 
5449
class getAllItemsByStatus_args:
5450
  """
5451
  Attributes:
5452
   - itemStatus
5453
  """
5454
 
5455
  thrift_spec = (
5456
    None, # 0
5457
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5458
  )
5459
 
5460
  def __init__(self, itemStatus=None,):
5461
    self.itemStatus = itemStatus
5462
 
5463
  def read(self, iprot):
5464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5466
      return
5467
    iprot.readStructBegin()
5468
    while True:
5469
      (fname, ftype, fid) = iprot.readFieldBegin()
5470
      if ftype == TType.STOP:
5471
        break
5472
      if fid == 1:
5473
        if ftype == TType.I32:
5474
          self.itemStatus = iprot.readI32();
5475
        else:
5476
          iprot.skip(ftype)
5477
      else:
5478
        iprot.skip(ftype)
5479
      iprot.readFieldEnd()
5480
    iprot.readStructEnd()
5481
 
5482
  def write(self, oprot):
5483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5485
      return
5486
    oprot.writeStructBegin('getAllItemsByStatus_args')
5487
    if self.itemStatus is not None:
5488
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5489
      oprot.writeI32(self.itemStatus)
5490
      oprot.writeFieldEnd()
5491
    oprot.writeFieldStop()
5492
    oprot.writeStructEnd()
5493
 
5494
  def validate(self):
5495
    return
5496
 
5497
 
5498
  def __repr__(self):
5499
    L = ['%s=%r' % (key, value)
5500
      for key, value in self.__dict__.iteritems()]
5501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5502
 
5503
  def __eq__(self, other):
5504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5505
 
5506
  def __ne__(self, other):
5507
    return not (self == other)
5508
 
5509
class getAllItemsByStatus_result:
5510
  """
5511
  Attributes:
5512
   - success
5513
   - cex
5514
  """
5515
 
5516
  thrift_spec = (
5517
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5518
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5519
  )
5520
 
5521
  def __init__(self, success=None, cex=None,):
5522
    self.success = success
5523
    self.cex = cex
5524
 
5525
  def read(self, iprot):
5526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5528
      return
5529
    iprot.readStructBegin()
5530
    while True:
5531
      (fname, ftype, fid) = iprot.readFieldBegin()
5532
      if ftype == TType.STOP:
5533
        break
5534
      if fid == 0:
5535
        if ftype == TType.LIST:
5536
          self.success = []
5537
          (_etype40, _size37) = iprot.readListBegin()
5538
          for _i41 in xrange(_size37):
5539
            _elem42 = Item()
5540
            _elem42.read(iprot)
5541
            self.success.append(_elem42)
5542
          iprot.readListEnd()
5543
        else:
5544
          iprot.skip(ftype)
5545
      elif fid == 1:
5546
        if ftype == TType.STRUCT:
5547
          self.cex = CatalogServiceException()
5548
          self.cex.read(iprot)
5549
        else:
5550
          iprot.skip(ftype)
5551
      else:
5552
        iprot.skip(ftype)
5553
      iprot.readFieldEnd()
5554
    iprot.readStructEnd()
5555
 
5556
  def write(self, oprot):
5557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5559
      return
5560
    oprot.writeStructBegin('getAllItemsByStatus_result')
5561
    if self.success is not None:
5562
      oprot.writeFieldBegin('success', TType.LIST, 0)
5563
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5564
      for iter43 in self.success:
5565
        iter43.write(oprot)
5566
      oprot.writeListEnd()
5567
      oprot.writeFieldEnd()
5568
    if self.cex is not None:
5569
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5570
      self.cex.write(oprot)
5571
      oprot.writeFieldEnd()
5572
    oprot.writeFieldStop()
5573
    oprot.writeStructEnd()
5574
 
5575
  def validate(self):
5576
    return
5577
 
5578
 
5579
  def __repr__(self):
5580
    L = ['%s=%r' % (key, value)
5581
      for key, value in self.__dict__.iteritems()]
5582
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5583
 
5584
  def __eq__(self, other):
5585
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5586
 
5587
  def __ne__(self, other):
5588
    return not (self == other)
5589
 
5590
class markItemAsContentComplete_args:
5591
  """
5592
  Attributes:
5593
   - entityId
5594
   - category
5595
   - brand
5596
   - modelName
5597
   - modelNumber
5598
  """
5599
 
5600
  thrift_spec = (
5601
    None, # 0
5602
    (1, TType.I64, 'entityId', None, None, ), # 1
5603
    (2, TType.I64, 'category', None, None, ), # 2
5604
    (3, TType.STRING, 'brand', None, None, ), # 3
5605
    (4, TType.STRING, 'modelName', None, None, ), # 4
5606
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
5607
  )
5608
 
5609
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
5610
    self.entityId = entityId
5611
    self.category = category
5612
    self.brand = brand
5613
    self.modelName = modelName
5614
    self.modelNumber = modelNumber
5615
 
5616
  def read(self, iprot):
5617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5619
      return
5620
    iprot.readStructBegin()
5621
    while True:
5622
      (fname, ftype, fid) = iprot.readFieldBegin()
5623
      if ftype == TType.STOP:
5624
        break
5625
      if fid == 1:
5626
        if ftype == TType.I64:
5627
          self.entityId = iprot.readI64();
5628
        else:
5629
          iprot.skip(ftype)
5630
      elif fid == 2:
5631
        if ftype == TType.I64:
5632
          self.category = iprot.readI64();
5633
        else:
5634
          iprot.skip(ftype)
5635
      elif fid == 3:
5636
        if ftype == TType.STRING:
5637
          self.brand = iprot.readString();
5638
        else:
5639
          iprot.skip(ftype)
5640
      elif fid == 4:
5641
        if ftype == TType.STRING:
5642
          self.modelName = iprot.readString();
5643
        else:
5644
          iprot.skip(ftype)
5645
      elif fid == 5:
5646
        if ftype == TType.STRING:
5647
          self.modelNumber = iprot.readString();
5648
        else:
5649
          iprot.skip(ftype)
5650
      else:
5651
        iprot.skip(ftype)
5652
      iprot.readFieldEnd()
5653
    iprot.readStructEnd()
5654
 
5655
  def write(self, oprot):
5656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5658
      return
5659
    oprot.writeStructBegin('markItemAsContentComplete_args')
5660
    if self.entityId is not None:
5661
      oprot.writeFieldBegin('entityId', TType.I64, 1)
5662
      oprot.writeI64(self.entityId)
5663
      oprot.writeFieldEnd()
5664
    if self.category is not None:
5665
      oprot.writeFieldBegin('category', TType.I64, 2)
5666
      oprot.writeI64(self.category)
5667
      oprot.writeFieldEnd()
5668
    if self.brand is not None:
5669
      oprot.writeFieldBegin('brand', TType.STRING, 3)
5670
      oprot.writeString(self.brand)
5671
      oprot.writeFieldEnd()
5672
    if self.modelName is not None:
5673
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
5674
      oprot.writeString(self.modelName)
5675
      oprot.writeFieldEnd()
5676
    if self.modelNumber is not None:
5677
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
5678
      oprot.writeString(self.modelNumber)
5679
      oprot.writeFieldEnd()
5680
    oprot.writeFieldStop()
5681
    oprot.writeStructEnd()
5682
 
5683
  def validate(self):
5684
    return
5685
 
5686
 
5687
  def __repr__(self):
5688
    L = ['%s=%r' % (key, value)
5689
      for key, value in self.__dict__.iteritems()]
5690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5691
 
5692
  def __eq__(self, other):
5693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5694
 
5695
  def __ne__(self, other):
5696
    return not (self == other)
5697
 
5698
class markItemAsContentComplete_result:
5699
  """
5700
  Attributes:
5701
   - success
5702
   - cex
5703
  """
5704
 
5705
  thrift_spec = (
5706
    (0, TType.BOOL, 'success', None, None, ), # 0
5707
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5708
  )
5709
 
5710
  def __init__(self, success=None, cex=None,):
5711
    self.success = success
5712
    self.cex = cex
5713
 
5714
  def read(self, iprot):
5715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5717
      return
5718
    iprot.readStructBegin()
5719
    while True:
5720
      (fname, ftype, fid) = iprot.readFieldBegin()
5721
      if ftype == TType.STOP:
5722
        break
5723
      if fid == 0:
5724
        if ftype == TType.BOOL:
5725
          self.success = iprot.readBool();
5726
        else:
5727
          iprot.skip(ftype)
5728
      elif fid == 1:
5729
        if ftype == TType.STRUCT:
5730
          self.cex = CatalogServiceException()
5731
          self.cex.read(iprot)
5732
        else:
5733
          iprot.skip(ftype)
5734
      else:
5735
        iprot.skip(ftype)
5736
      iprot.readFieldEnd()
5737
    iprot.readStructEnd()
5738
 
5739
  def write(self, oprot):
5740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5742
      return
5743
    oprot.writeStructBegin('markItemAsContentComplete_result')
5744
    if self.success is not None:
5745
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5746
      oprot.writeBool(self.success)
5747
      oprot.writeFieldEnd()
5748
    if self.cex is not None:
5749
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5750
      self.cex.write(oprot)
5751
      oprot.writeFieldEnd()
5752
    oprot.writeFieldStop()
5753
    oprot.writeStructEnd()
5754
 
5755
  def validate(self):
5756
    return
5757
 
5758
 
5759
  def __repr__(self):
5760
    L = ['%s=%r' % (key, value)
5761
      for key, value in self.__dict__.iteritems()]
5762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5763
 
5764
  def __eq__(self, other):
5765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5766
 
5767
  def __ne__(self, other):
5768
    return not (self == other)
5769
 
5770
class getAllItemsInRange_args:
5771
  """
5772
  Attributes:
5773
   - offset
5774
   - limit
5775
  """
5776
 
5777
  thrift_spec = (
5778
    None, # 0
5779
    (1, TType.I64, 'offset', None, None, ), # 1
5780
    (2, TType.I64, 'limit', None, None, ), # 2
5781
  )
5782
 
5783
  def __init__(self, offset=None, limit=None,):
5784
    self.offset = offset
5785
    self.limit = limit
5786
 
5787
  def read(self, iprot):
5788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5790
      return
5791
    iprot.readStructBegin()
5792
    while True:
5793
      (fname, ftype, fid) = iprot.readFieldBegin()
5794
      if ftype == TType.STOP:
5795
        break
5796
      if fid == 1:
5797
        if ftype == TType.I64:
5798
          self.offset = iprot.readI64();
5799
        else:
5800
          iprot.skip(ftype)
5801
      elif fid == 2:
5802
        if ftype == TType.I64:
5803
          self.limit = iprot.readI64();
5804
        else:
5805
          iprot.skip(ftype)
5806
      else:
5807
        iprot.skip(ftype)
5808
      iprot.readFieldEnd()
5809
    iprot.readStructEnd()
5810
 
5811
  def write(self, oprot):
5812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5814
      return
5815
    oprot.writeStructBegin('getAllItemsInRange_args')
5816
    if self.offset is not None:
5817
      oprot.writeFieldBegin('offset', TType.I64, 1)
5818
      oprot.writeI64(self.offset)
5819
      oprot.writeFieldEnd()
5820
    if self.limit is not None:
5821
      oprot.writeFieldBegin('limit', TType.I64, 2)
5822
      oprot.writeI64(self.limit)
5823
      oprot.writeFieldEnd()
5824
    oprot.writeFieldStop()
5825
    oprot.writeStructEnd()
5826
 
5827
  def validate(self):
5828
    return
5829
 
5830
 
5831
  def __repr__(self):
5832
    L = ['%s=%r' % (key, value)
5833
      for key, value in self.__dict__.iteritems()]
5834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5835
 
5836
  def __eq__(self, other):
5837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5838
 
5839
  def __ne__(self, other):
5840
    return not (self == other)
5841
 
5842
class getAllItemsInRange_result:
5843
  """
5844
  Attributes:
5845
   - success
5846
   - cex
5847
  """
5848
 
5849
  thrift_spec = (
5850
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5851
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5852
  )
5853
 
5854
  def __init__(self, success=None, cex=None,):
5855
    self.success = success
5856
    self.cex = cex
5857
 
5858
  def read(self, iprot):
5859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5861
      return
5862
    iprot.readStructBegin()
5863
    while True:
5864
      (fname, ftype, fid) = iprot.readFieldBegin()
5865
      if ftype == TType.STOP:
5866
        break
5867
      if fid == 0:
5868
        if ftype == TType.LIST:
5869
          self.success = []
5870
          (_etype47, _size44) = iprot.readListBegin()
5871
          for _i48 in xrange(_size44):
5872
            _elem49 = Item()
5873
            _elem49.read(iprot)
5874
            self.success.append(_elem49)
5875
          iprot.readListEnd()
5876
        else:
5877
          iprot.skip(ftype)
5878
      elif fid == 1:
5879
        if ftype == TType.STRUCT:
5880
          self.cex = CatalogServiceException()
5881
          self.cex.read(iprot)
5882
        else:
5883
          iprot.skip(ftype)
5884
      else:
5885
        iprot.skip(ftype)
5886
      iprot.readFieldEnd()
5887
    iprot.readStructEnd()
5888
 
5889
  def write(self, oprot):
5890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5891
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5892
      return
5893
    oprot.writeStructBegin('getAllItemsInRange_result')
5894
    if self.success is not None:
5895
      oprot.writeFieldBegin('success', TType.LIST, 0)
5896
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5897
      for iter50 in self.success:
5898
        iter50.write(oprot)
5899
      oprot.writeListEnd()
5900
      oprot.writeFieldEnd()
5901
    if self.cex is not None:
5902
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5903
      self.cex.write(oprot)
5904
      oprot.writeFieldEnd()
5905
    oprot.writeFieldStop()
5906
    oprot.writeStructEnd()
5907
 
5908
  def validate(self):
5909
    return
5910
 
5911
 
5912
  def __repr__(self):
5913
    L = ['%s=%r' % (key, value)
5914
      for key, value in self.__dict__.iteritems()]
5915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5916
 
5917
  def __eq__(self, other):
5918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5919
 
5920
  def __ne__(self, other):
5921
    return not (self == other)
5922
 
5923
class getAllItemsByStatusInRange_args:
5924
  """
5925
  Attributes:
5926
   - itemStatus
5927
   - offset
5928
   - limit
5929
  """
5930
 
5931
  thrift_spec = (
5932
    None, # 0
5933
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5934
    (2, TType.I64, 'offset', None, None, ), # 2
5935
    (3, TType.I64, 'limit', None, None, ), # 3
5936
  )
5937
 
5938
  def __init__(self, itemStatus=None, offset=None, limit=None,):
5939
    self.itemStatus = itemStatus
5940
    self.offset = offset
5941
    self.limit = limit
5942
 
5943
  def read(self, iprot):
5944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5946
      return
5947
    iprot.readStructBegin()
5948
    while True:
5949
      (fname, ftype, fid) = iprot.readFieldBegin()
5950
      if ftype == TType.STOP:
5951
        break
5952
      if fid == 1:
5953
        if ftype == TType.I32:
5954
          self.itemStatus = iprot.readI32();
5955
        else:
5956
          iprot.skip(ftype)
5957
      elif fid == 2:
5958
        if ftype == TType.I64:
5959
          self.offset = iprot.readI64();
5960
        else:
5961
          iprot.skip(ftype)
5962
      elif fid == 3:
5963
        if ftype == TType.I64:
5964
          self.limit = iprot.readI64();
5965
        else:
5966
          iprot.skip(ftype)
5967
      else:
5968
        iprot.skip(ftype)
5969
      iprot.readFieldEnd()
5970
    iprot.readStructEnd()
5971
 
5972
  def write(self, oprot):
5973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5975
      return
5976
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
5977
    if self.itemStatus is not None:
5978
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5979
      oprot.writeI32(self.itemStatus)
5980
      oprot.writeFieldEnd()
5981
    if self.offset is not None:
5982
      oprot.writeFieldBegin('offset', TType.I64, 2)
5983
      oprot.writeI64(self.offset)
5984
      oprot.writeFieldEnd()
5985
    if self.limit is not None:
5986
      oprot.writeFieldBegin('limit', TType.I64, 3)
5987
      oprot.writeI64(self.limit)
5988
      oprot.writeFieldEnd()
5989
    oprot.writeFieldStop()
5990
    oprot.writeStructEnd()
5991
 
5992
  def validate(self):
5993
    return
5994
 
5995
 
5996
  def __repr__(self):
5997
    L = ['%s=%r' % (key, value)
5998
      for key, value in self.__dict__.iteritems()]
5999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6000
 
6001
  def __eq__(self, other):
6002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6003
 
6004
  def __ne__(self, other):
6005
    return not (self == other)
6006
 
6007
class getAllItemsByStatusInRange_result:
6008
  """
6009
  Attributes:
6010
   - success
6011
   - cex
6012
  """
6013
 
6014
  thrift_spec = (
6015
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6016
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6017
  )
6018
 
6019
  def __init__(self, success=None, cex=None,):
6020
    self.success = success
6021
    self.cex = cex
6022
 
6023
  def read(self, iprot):
6024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6026
      return
6027
    iprot.readStructBegin()
6028
    while True:
6029
      (fname, ftype, fid) = iprot.readFieldBegin()
6030
      if ftype == TType.STOP:
6031
        break
6032
      if fid == 0:
6033
        if ftype == TType.LIST:
6034
          self.success = []
6035
          (_etype54, _size51) = iprot.readListBegin()
6036
          for _i55 in xrange(_size51):
6037
            _elem56 = Item()
6038
            _elem56.read(iprot)
6039
            self.success.append(_elem56)
6040
          iprot.readListEnd()
6041
        else:
6042
          iprot.skip(ftype)
6043
      elif fid == 1:
6044
        if ftype == TType.STRUCT:
6045
          self.cex = CatalogServiceException()
6046
          self.cex.read(iprot)
6047
        else:
6048
          iprot.skip(ftype)
6049
      else:
6050
        iprot.skip(ftype)
6051
      iprot.readFieldEnd()
6052
    iprot.readStructEnd()
6053
 
6054
  def write(self, oprot):
6055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6057
      return
6058
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
6059
    if self.success is not None:
6060
      oprot.writeFieldBegin('success', TType.LIST, 0)
6061
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6062
      for iter57 in self.success:
6063
        iter57.write(oprot)
6064
      oprot.writeListEnd()
6065
      oprot.writeFieldEnd()
6066
    if self.cex is not None:
6067
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6068
      self.cex.write(oprot)
6069
      oprot.writeFieldEnd()
6070
    oprot.writeFieldStop()
6071
    oprot.writeStructEnd()
6072
 
6073
  def validate(self):
6074
    return
6075
 
6076
 
6077
  def __repr__(self):
6078
    L = ['%s=%r' % (key, value)
6079
      for key, value in self.__dict__.iteritems()]
6080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6081
 
6082
  def __eq__(self, other):
6083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6084
 
6085
  def __ne__(self, other):
6086
    return not (self == other)
6087
 
6088
class getItemCountByStatus_args:
6089
  """
6090
  Attributes:
6091
   - useStatus
6092
   - itemStatus
6093
  """
6094
 
6095
  thrift_spec = (
6096
    None, # 0
6097
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6098
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6099
  )
6100
 
6101
  def __init__(self, useStatus=None, itemStatus=None,):
6102
    self.useStatus = useStatus
6103
    self.itemStatus = itemStatus
6104
 
6105
  def read(self, iprot):
6106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6108
      return
6109
    iprot.readStructBegin()
6110
    while True:
6111
      (fname, ftype, fid) = iprot.readFieldBegin()
6112
      if ftype == TType.STOP:
6113
        break
6114
      if fid == 1:
6115
        if ftype == TType.BOOL:
6116
          self.useStatus = iprot.readBool();
6117
        else:
6118
          iprot.skip(ftype)
6119
      elif fid == 2:
6120
        if ftype == TType.I32:
6121
          self.itemStatus = iprot.readI32();
6122
        else:
6123
          iprot.skip(ftype)
6124
      else:
6125
        iprot.skip(ftype)
6126
      iprot.readFieldEnd()
6127
    iprot.readStructEnd()
6128
 
6129
  def write(self, oprot):
6130
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6131
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6132
      return
6133
    oprot.writeStructBegin('getItemCountByStatus_args')
6134
    if self.useStatus is not None:
6135
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6136
      oprot.writeBool(self.useStatus)
6137
      oprot.writeFieldEnd()
6138
    if self.itemStatus is not None:
6139
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6140
      oprot.writeI32(self.itemStatus)
6141
      oprot.writeFieldEnd()
6142
    oprot.writeFieldStop()
6143
    oprot.writeStructEnd()
6144
 
6145
  def validate(self):
6146
    return
6147
 
6148
 
6149
  def __repr__(self):
6150
    L = ['%s=%r' % (key, value)
6151
      for key, value in self.__dict__.iteritems()]
6152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6153
 
6154
  def __eq__(self, other):
6155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6156
 
6157
  def __ne__(self, other):
6158
    return not (self == other)
6159
 
6160
class getItemCountByStatus_result:
6161
  """
6162
  Attributes:
6163
   - success
6164
  """
6165
 
6166
  thrift_spec = (
6167
    (0, TType.I32, 'success', None, None, ), # 0
6168
  )
6169
 
6170
  def __init__(self, success=None,):
6171
    self.success = success
6172
 
6173
  def read(self, iprot):
6174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6176
      return
6177
    iprot.readStructBegin()
6178
    while True:
6179
      (fname, ftype, fid) = iprot.readFieldBegin()
6180
      if ftype == TType.STOP:
6181
        break
6182
      if fid == 0:
6183
        if ftype == TType.I32:
6184
          self.success = iprot.readI32();
6185
        else:
6186
          iprot.skip(ftype)
6187
      else:
6188
        iprot.skip(ftype)
6189
      iprot.readFieldEnd()
6190
    iprot.readStructEnd()
6191
 
6192
  def write(self, oprot):
6193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6195
      return
6196
    oprot.writeStructBegin('getItemCountByStatus_result')
6197
    if self.success is not None:
6198
      oprot.writeFieldBegin('success', TType.I32, 0)
6199
      oprot.writeI32(self.success)
6200
      oprot.writeFieldEnd()
6201
    oprot.writeFieldStop()
6202
    oprot.writeStructEnd()
6203
 
6204
  def validate(self):
6205
    return
6206
 
6207
 
6208
  def __repr__(self):
6209
    L = ['%s=%r' % (key, value)
6210
      for key, value in self.__dict__.iteritems()]
6211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6212
 
6213
  def __eq__(self, other):
6214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6215
 
6216
  def __ne__(self, other):
6217
    return not (self == other)
6218
 
6219
class getBestSellers_args:
6220
 
6221
  thrift_spec = (
6222
  )
6223
 
6224
  def read(self, iprot):
6225
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6226
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6227
      return
6228
    iprot.readStructBegin()
6229
    while True:
6230
      (fname, ftype, fid) = iprot.readFieldBegin()
6231
      if ftype == TType.STOP:
6232
        break
6233
      else:
6234
        iprot.skip(ftype)
6235
      iprot.readFieldEnd()
6236
    iprot.readStructEnd()
6237
 
6238
  def write(self, oprot):
6239
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6240
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6241
      return
6242
    oprot.writeStructBegin('getBestSellers_args')
6243
    oprot.writeFieldStop()
6244
    oprot.writeStructEnd()
6245
 
6246
  def validate(self):
6247
    return
6248
 
6249
 
6250
  def __repr__(self):
6251
    L = ['%s=%r' % (key, value)
6252
      for key, value in self.__dict__.iteritems()]
6253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6254
 
6255
  def __eq__(self, other):
6256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6257
 
6258
  def __ne__(self, other):
6259
    return not (self == other)
6260
 
6261
class getBestSellers_result:
6262
  """
6263
  Attributes:
6264
   - success
6265
   - isex
6266
  """
6267
 
6268
  thrift_spec = (
6269
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6270
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6271
  )
6272
 
6273
  def __init__(self, success=None, isex=None,):
6274
    self.success = success
6275
    self.isex = isex
6276
 
6277
  def read(self, iprot):
6278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6280
      return
6281
    iprot.readStructBegin()
6282
    while True:
6283
      (fname, ftype, fid) = iprot.readFieldBegin()
6284
      if ftype == TType.STOP:
6285
        break
6286
      if fid == 0:
6287
        if ftype == TType.LIST:
6288
          self.success = []
6289
          (_etype61, _size58) = iprot.readListBegin()
6290
          for _i62 in xrange(_size58):
6291
            _elem63 = Item()
6292
            _elem63.read(iprot)
6293
            self.success.append(_elem63)
6294
          iprot.readListEnd()
6295
        else:
6296
          iprot.skip(ftype)
6297
      elif fid == 1:
6298
        if ftype == TType.STRUCT:
6299
          self.isex = CatalogServiceException()
6300
          self.isex.read(iprot)
6301
        else:
6302
          iprot.skip(ftype)
6303
      else:
6304
        iprot.skip(ftype)
6305
      iprot.readFieldEnd()
6306
    iprot.readStructEnd()
6307
 
6308
  def write(self, oprot):
6309
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6310
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6311
      return
6312
    oprot.writeStructBegin('getBestSellers_result')
6313
    if self.success is not None:
6314
      oprot.writeFieldBegin('success', TType.LIST, 0)
6315
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6316
      for iter64 in self.success:
6317
        iter64.write(oprot)
6318
      oprot.writeListEnd()
6319
      oprot.writeFieldEnd()
6320
    if self.isex is not None:
6321
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6322
      self.isex.write(oprot)
6323
      oprot.writeFieldEnd()
6324
    oprot.writeFieldStop()
6325
    oprot.writeStructEnd()
6326
 
6327
  def validate(self):
6328
    return
6329
 
6330
 
6331
  def __repr__(self):
6332
    L = ['%s=%r' % (key, value)
6333
      for key, value in self.__dict__.iteritems()]
6334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6335
 
6336
  def __eq__(self, other):
6337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6338
 
6339
  def __ne__(self, other):
6340
    return not (self == other)
6341
 
6342
class getBestSellersCatalogIds_args:
6343
  """
6344
  Attributes:
6345
   - beginIndex
6346
   - totalItems
6347
   - brand
6348
   - category
6349
  """
6350
 
6351
  thrift_spec = (
6352
    None, # 0
6353
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6354
    (2, TType.I64, 'totalItems', None, None, ), # 2
6355
    (3, TType.STRING, 'brand', None, None, ), # 3
6356
    (4, TType.I64, 'category', None, None, ), # 4
6357
  )
6358
 
6359
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6360
    self.beginIndex = beginIndex
6361
    self.totalItems = totalItems
6362
    self.brand = brand
6363
    self.category = category
6364
 
6365
  def read(self, iprot):
6366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6368
      return
6369
    iprot.readStructBegin()
6370
    while True:
6371
      (fname, ftype, fid) = iprot.readFieldBegin()
6372
      if ftype == TType.STOP:
6373
        break
6374
      if fid == 1:
6375
        if ftype == TType.I64:
6376
          self.beginIndex = iprot.readI64();
6377
        else:
6378
          iprot.skip(ftype)
6379
      elif fid == 2:
6380
        if ftype == TType.I64:
6381
          self.totalItems = iprot.readI64();
6382
        else:
6383
          iprot.skip(ftype)
6384
      elif fid == 3:
6385
        if ftype == TType.STRING:
6386
          self.brand = iprot.readString();
6387
        else:
6388
          iprot.skip(ftype)
6389
      elif fid == 4:
6390
        if ftype == TType.I64:
6391
          self.category = iprot.readI64();
6392
        else:
6393
          iprot.skip(ftype)
6394
      else:
6395
        iprot.skip(ftype)
6396
      iprot.readFieldEnd()
6397
    iprot.readStructEnd()
6398
 
6399
  def write(self, oprot):
6400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6402
      return
6403
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6404
    if self.beginIndex is not None:
6405
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6406
      oprot.writeI64(self.beginIndex)
6407
      oprot.writeFieldEnd()
6408
    if self.totalItems is not None:
6409
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6410
      oprot.writeI64(self.totalItems)
6411
      oprot.writeFieldEnd()
6412
    if self.brand is not None:
6413
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6414
      oprot.writeString(self.brand)
6415
      oprot.writeFieldEnd()
6416
    if self.category is not None:
6417
      oprot.writeFieldBegin('category', TType.I64, 4)
6418
      oprot.writeI64(self.category)
6419
      oprot.writeFieldEnd()
6420
    oprot.writeFieldStop()
6421
    oprot.writeStructEnd()
6422
 
6423
  def validate(self):
6424
    return
6425
 
6426
 
6427
  def __repr__(self):
6428
    L = ['%s=%r' % (key, value)
6429
      for key, value in self.__dict__.iteritems()]
6430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6431
 
6432
  def __eq__(self, other):
6433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6434
 
6435
  def __ne__(self, other):
6436
    return not (self == other)
6437
 
6438
class getBestSellersCatalogIds_result:
6439
  """
6440
  Attributes:
6441
   - success
6442
   - cex
6443
  """
6444
 
6445
  thrift_spec = (
6446
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6447
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6448
  )
6449
 
6450
  def __init__(self, success=None, cex=None,):
6451
    self.success = success
6452
    self.cex = cex
6453
 
6454
  def read(self, iprot):
6455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6457
      return
6458
    iprot.readStructBegin()
6459
    while True:
6460
      (fname, ftype, fid) = iprot.readFieldBegin()
6461
      if ftype == TType.STOP:
6462
        break
6463
      if fid == 0:
6464
        if ftype == TType.LIST:
6465
          self.success = []
6466
          (_etype68, _size65) = iprot.readListBegin()
6467
          for _i69 in xrange(_size65):
6468
            _elem70 = iprot.readI64();
6469
            self.success.append(_elem70)
6470
          iprot.readListEnd()
6471
        else:
6472
          iprot.skip(ftype)
6473
      elif fid == 1:
6474
        if ftype == TType.STRUCT:
6475
          self.cex = CatalogServiceException()
6476
          self.cex.read(iprot)
6477
        else:
6478
          iprot.skip(ftype)
6479
      else:
6480
        iprot.skip(ftype)
6481
      iprot.readFieldEnd()
6482
    iprot.readStructEnd()
6483
 
6484
  def write(self, oprot):
6485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6487
      return
6488
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
6489
    if self.success is not None:
6490
      oprot.writeFieldBegin('success', TType.LIST, 0)
6491
      oprot.writeListBegin(TType.I64, len(self.success))
6492
      for iter71 in self.success:
6493
        oprot.writeI64(iter71)
6494
      oprot.writeListEnd()
6495
      oprot.writeFieldEnd()
6496
    if self.cex is not None:
6497
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6498
      self.cex.write(oprot)
6499
      oprot.writeFieldEnd()
6500
    oprot.writeFieldStop()
6501
    oprot.writeStructEnd()
6502
 
6503
  def validate(self):
6504
    return
6505
 
6506
 
6507
  def __repr__(self):
6508
    L = ['%s=%r' % (key, value)
6509
      for key, value in self.__dict__.iteritems()]
6510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6511
 
6512
  def __eq__(self, other):
6513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6514
 
6515
  def __ne__(self, other):
6516
    return not (self == other)
6517
 
6518
class getBestSellersCount_args:
6519
 
6520
  thrift_spec = (
6521
  )
6522
 
6523
  def read(self, iprot):
6524
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6525
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6526
      return
6527
    iprot.readStructBegin()
6528
    while True:
6529
      (fname, ftype, fid) = iprot.readFieldBegin()
6530
      if ftype == TType.STOP:
6531
        break
6532
      else:
6533
        iprot.skip(ftype)
6534
      iprot.readFieldEnd()
6535
    iprot.readStructEnd()
6536
 
6537
  def write(self, oprot):
6538
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6539
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6540
      return
6541
    oprot.writeStructBegin('getBestSellersCount_args')
6542
    oprot.writeFieldStop()
6543
    oprot.writeStructEnd()
6544
 
6545
  def validate(self):
6546
    return
6547
 
6548
 
6549
  def __repr__(self):
6550
    L = ['%s=%r' % (key, value)
6551
      for key, value in self.__dict__.iteritems()]
6552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6553
 
6554
  def __eq__(self, other):
6555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6556
 
6557
  def __ne__(self, other):
6558
    return not (self == other)
6559
 
6560
class getBestSellersCount_result:
6561
  """
6562
  Attributes:
6563
   - success
6564
   - cex
6565
  """
6566
 
6567
  thrift_spec = (
6568
    (0, TType.I64, 'success', None, None, ), # 0
6569
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6570
  )
6571
 
6572
  def __init__(self, success=None, cex=None,):
6573
    self.success = success
6574
    self.cex = cex
6575
 
6576
  def read(self, iprot):
6577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6579
      return
6580
    iprot.readStructBegin()
6581
    while True:
6582
      (fname, ftype, fid) = iprot.readFieldBegin()
6583
      if ftype == TType.STOP:
6584
        break
6585
      if fid == 0:
6586
        if ftype == TType.I64:
6587
          self.success = iprot.readI64();
6588
        else:
6589
          iprot.skip(ftype)
6590
      elif fid == 1:
6591
        if ftype == TType.STRUCT:
6592
          self.cex = CatalogServiceException()
6593
          self.cex.read(iprot)
6594
        else:
6595
          iprot.skip(ftype)
6596
      else:
6597
        iprot.skip(ftype)
6598
      iprot.readFieldEnd()
6599
    iprot.readStructEnd()
6600
 
6601
  def write(self, oprot):
6602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6604
      return
6605
    oprot.writeStructBegin('getBestSellersCount_result')
6606
    if self.success is not None:
6607
      oprot.writeFieldBegin('success', TType.I64, 0)
6608
      oprot.writeI64(self.success)
6609
      oprot.writeFieldEnd()
6610
    if self.cex is not None:
6611
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6612
      self.cex.write(oprot)
6613
      oprot.writeFieldEnd()
6614
    oprot.writeFieldStop()
6615
    oprot.writeStructEnd()
6616
 
6617
  def validate(self):
6618
    return
6619
 
6620
 
6621
  def __repr__(self):
6622
    L = ['%s=%r' % (key, value)
6623
      for key, value in self.__dict__.iteritems()]
6624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6625
 
6626
  def __eq__(self, other):
6627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6628
 
6629
  def __ne__(self, other):
6630
    return not (self == other)
6631
 
6632
class getBestDeals_args:
6633
 
6634
  thrift_spec = (
6635
  )
6636
 
6637
  def read(self, iprot):
6638
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6639
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6640
      return
6641
    iprot.readStructBegin()
6642
    while True:
6643
      (fname, ftype, fid) = iprot.readFieldBegin()
6644
      if ftype == TType.STOP:
6645
        break
6646
      else:
6647
        iprot.skip(ftype)
6648
      iprot.readFieldEnd()
6649
    iprot.readStructEnd()
6650
 
6651
  def write(self, oprot):
6652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6654
      return
6655
    oprot.writeStructBegin('getBestDeals_args')
6656
    oprot.writeFieldStop()
6657
    oprot.writeStructEnd()
6658
 
6659
  def validate(self):
6660
    return
6661
 
6662
 
6663
  def __repr__(self):
6664
    L = ['%s=%r' % (key, value)
6665
      for key, value in self.__dict__.iteritems()]
6666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6667
 
6668
  def __eq__(self, other):
6669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6670
 
6671
  def __ne__(self, other):
6672
    return not (self == other)
6673
 
6674
class getBestDeals_result:
6675
  """
6676
  Attributes:
6677
   - success
6678
   - isex
6679
  """
6680
 
6681
  thrift_spec = (
6682
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6683
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6684
  )
6685
 
6686
  def __init__(self, success=None, isex=None,):
6687
    self.success = success
6688
    self.isex = isex
6689
 
6690
  def read(self, iprot):
6691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6693
      return
6694
    iprot.readStructBegin()
6695
    while True:
6696
      (fname, ftype, fid) = iprot.readFieldBegin()
6697
      if ftype == TType.STOP:
6698
        break
6699
      if fid == 0:
6700
        if ftype == TType.LIST:
6701
          self.success = []
6702
          (_etype75, _size72) = iprot.readListBegin()
6703
          for _i76 in xrange(_size72):
6704
            _elem77 = Item()
6705
            _elem77.read(iprot)
6706
            self.success.append(_elem77)
6707
          iprot.readListEnd()
6708
        else:
6709
          iprot.skip(ftype)
6710
      elif fid == 1:
6711
        if ftype == TType.STRUCT:
6712
          self.isex = CatalogServiceException()
6713
          self.isex.read(iprot)
6714
        else:
6715
          iprot.skip(ftype)
6716
      else:
6717
        iprot.skip(ftype)
6718
      iprot.readFieldEnd()
6719
    iprot.readStructEnd()
6720
 
6721
  def write(self, oprot):
6722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6724
      return
6725
    oprot.writeStructBegin('getBestDeals_result')
6726
    if self.success is not None:
6727
      oprot.writeFieldBegin('success', TType.LIST, 0)
6728
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6729
      for iter78 in self.success:
6730
        iter78.write(oprot)
6731
      oprot.writeListEnd()
6732
      oprot.writeFieldEnd()
6733
    if self.isex is not None:
6734
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6735
      self.isex.write(oprot)
6736
      oprot.writeFieldEnd()
6737
    oprot.writeFieldStop()
6738
    oprot.writeStructEnd()
6739
 
6740
  def validate(self):
6741
    return
6742
 
6743
 
6744
  def __repr__(self):
6745
    L = ['%s=%r' % (key, value)
6746
      for key, value in self.__dict__.iteritems()]
6747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6748
 
6749
  def __eq__(self, other):
6750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6751
 
6752
  def __ne__(self, other):
6753
    return not (self == other)
6754
 
6755
class getBestDealsCatalogIds_args:
6756
  """
6757
  Attributes:
6758
   - beginIndex
6759
   - totalItems
6760
   - brand
6761
   - category
6762
  """
6763
 
6764
  thrift_spec = (
6765
    None, # 0
6766
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6767
    (2, TType.I64, 'totalItems', None, None, ), # 2
6768
    (3, TType.STRING, 'brand', None, None, ), # 3
6769
    (4, TType.I64, 'category', None, None, ), # 4
6770
  )
6771
 
6772
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6773
    self.beginIndex = beginIndex
6774
    self.totalItems = totalItems
6775
    self.brand = brand
6776
    self.category = category
6777
 
6778
  def read(self, iprot):
6779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6781
      return
6782
    iprot.readStructBegin()
6783
    while True:
6784
      (fname, ftype, fid) = iprot.readFieldBegin()
6785
      if ftype == TType.STOP:
6786
        break
6787
      if fid == 1:
6788
        if ftype == TType.I64:
6789
          self.beginIndex = iprot.readI64();
6790
        else:
6791
          iprot.skip(ftype)
6792
      elif fid == 2:
6793
        if ftype == TType.I64:
6794
          self.totalItems = iprot.readI64();
6795
        else:
6796
          iprot.skip(ftype)
6797
      elif fid == 3:
6798
        if ftype == TType.STRING:
6799
          self.brand = iprot.readString();
6800
        else:
6801
          iprot.skip(ftype)
6802
      elif fid == 4:
6803
        if ftype == TType.I64:
6804
          self.category = iprot.readI64();
6805
        else:
6806
          iprot.skip(ftype)
6807
      else:
6808
        iprot.skip(ftype)
6809
      iprot.readFieldEnd()
6810
    iprot.readStructEnd()
6811
 
6812
  def write(self, oprot):
6813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6815
      return
6816
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
6817
    if self.beginIndex is not None:
6818
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6819
      oprot.writeI64(self.beginIndex)
6820
      oprot.writeFieldEnd()
6821
    if self.totalItems is not None:
6822
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6823
      oprot.writeI64(self.totalItems)
6824
      oprot.writeFieldEnd()
6825
    if self.brand is not None:
6826
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6827
      oprot.writeString(self.brand)
6828
      oprot.writeFieldEnd()
6829
    if self.category is not None:
6830
      oprot.writeFieldBegin('category', TType.I64, 4)
6831
      oprot.writeI64(self.category)
6832
      oprot.writeFieldEnd()
6833
    oprot.writeFieldStop()
6834
    oprot.writeStructEnd()
6835
 
6836
  def validate(self):
6837
    return
6838
 
6839
 
6840
  def __repr__(self):
6841
    L = ['%s=%r' % (key, value)
6842
      for key, value in self.__dict__.iteritems()]
6843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6844
 
6845
  def __eq__(self, other):
6846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6847
 
6848
  def __ne__(self, other):
6849
    return not (self == other)
6850
 
6851
class getBestDealsCatalogIds_result:
6852
  """
6853
  Attributes:
6854
   - success
6855
   - cex
6856
  """
6857
 
6858
  thrift_spec = (
6859
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6860
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6861
  )
6862
 
6863
  def __init__(self, success=None, cex=None,):
6864
    self.success = success
6865
    self.cex = cex
6866
 
6867
  def read(self, iprot):
6868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6870
      return
6871
    iprot.readStructBegin()
6872
    while True:
6873
      (fname, ftype, fid) = iprot.readFieldBegin()
6874
      if ftype == TType.STOP:
6875
        break
6876
      if fid == 0:
6877
        if ftype == TType.LIST:
6878
          self.success = []
6879
          (_etype82, _size79) = iprot.readListBegin()
6880
          for _i83 in xrange(_size79):
6881
            _elem84 = iprot.readI64();
6882
            self.success.append(_elem84)
6883
          iprot.readListEnd()
6884
        else:
6885
          iprot.skip(ftype)
6886
      elif fid == 1:
6887
        if ftype == TType.STRUCT:
6888
          self.cex = CatalogServiceException()
6889
          self.cex.read(iprot)
6890
        else:
6891
          iprot.skip(ftype)
6892
      else:
6893
        iprot.skip(ftype)
6894
      iprot.readFieldEnd()
6895
    iprot.readStructEnd()
6896
 
6897
  def write(self, oprot):
6898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6900
      return
6901
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
6902
    if self.success is not None:
6903
      oprot.writeFieldBegin('success', TType.LIST, 0)
6904
      oprot.writeListBegin(TType.I64, len(self.success))
6905
      for iter85 in self.success:
6906
        oprot.writeI64(iter85)
6907
      oprot.writeListEnd()
6908
      oprot.writeFieldEnd()
6909
    if self.cex is not None:
6910
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6911
      self.cex.write(oprot)
6912
      oprot.writeFieldEnd()
6913
    oprot.writeFieldStop()
6914
    oprot.writeStructEnd()
6915
 
6916
  def validate(self):
6917
    return
6918
 
6919
 
6920
  def __repr__(self):
6921
    L = ['%s=%r' % (key, value)
6922
      for key, value in self.__dict__.iteritems()]
6923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6924
 
6925
  def __eq__(self, other):
6926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6927
 
6928
  def __ne__(self, other):
6929
    return not (self == other)
6930
 
6931
class getBestDealsCount_args:
6932
 
6933
  thrift_spec = (
6934
  )
6935
 
6936
  def read(self, iprot):
6937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6939
      return
6940
    iprot.readStructBegin()
6941
    while True:
6942
      (fname, ftype, fid) = iprot.readFieldBegin()
6943
      if ftype == TType.STOP:
6944
        break
6945
      else:
6946
        iprot.skip(ftype)
6947
      iprot.readFieldEnd()
6948
    iprot.readStructEnd()
6949
 
6950
  def write(self, oprot):
6951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6953
      return
6954
    oprot.writeStructBegin('getBestDealsCount_args')
6955
    oprot.writeFieldStop()
6956
    oprot.writeStructEnd()
6957
 
6958
  def validate(self):
6959
    return
6960
 
6961
 
6962
  def __repr__(self):
6963
    L = ['%s=%r' % (key, value)
6964
      for key, value in self.__dict__.iteritems()]
6965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6966
 
6967
  def __eq__(self, other):
6968
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6969
 
6970
  def __ne__(self, other):
6971
    return not (self == other)
6972
 
6973
class getBestDealsCount_result:
6974
  """
6975
  Attributes:
6976
   - success
6977
   - cex
6978
  """
6979
 
6980
  thrift_spec = (
6981
    (0, TType.I64, 'success', None, None, ), # 0
6982
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6983
  )
6984
 
6985
  def __init__(self, success=None, cex=None,):
6986
    self.success = success
6987
    self.cex = cex
6988
 
6989
  def read(self, iprot):
6990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6992
      return
6993
    iprot.readStructBegin()
6994
    while True:
6995
      (fname, ftype, fid) = iprot.readFieldBegin()
6996
      if ftype == TType.STOP:
6997
        break
6998
      if fid == 0:
6999
        if ftype == TType.I64:
7000
          self.success = iprot.readI64();
7001
        else:
7002
          iprot.skip(ftype)
7003
      elif fid == 1:
7004
        if ftype == TType.STRUCT:
7005
          self.cex = CatalogServiceException()
7006
          self.cex.read(iprot)
7007
        else:
7008
          iprot.skip(ftype)
7009
      else:
7010
        iprot.skip(ftype)
7011
      iprot.readFieldEnd()
7012
    iprot.readStructEnd()
7013
 
7014
  def write(self, oprot):
7015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7017
      return
7018
    oprot.writeStructBegin('getBestDealsCount_result')
7019
    if self.success is not None:
7020
      oprot.writeFieldBegin('success', TType.I64, 0)
7021
      oprot.writeI64(self.success)
7022
      oprot.writeFieldEnd()
7023
    if self.cex is not None:
7024
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7025
      self.cex.write(oprot)
7026
      oprot.writeFieldEnd()
7027
    oprot.writeFieldStop()
7028
    oprot.writeStructEnd()
7029
 
7030
  def validate(self):
7031
    return
7032
 
7033
 
7034
  def __repr__(self):
7035
    L = ['%s=%r' % (key, value)
7036
      for key, value in self.__dict__.iteritems()]
7037
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7038
 
7039
  def __eq__(self, other):
7040
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7041
 
7042
  def __ne__(self, other):
7043
    return not (self == other)
7044
 
7045
class getComingSoon_args:
7046
 
7047
  thrift_spec = (
7048
  )
7049
 
7050
  def read(self, iprot):
7051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7053
      return
7054
    iprot.readStructBegin()
7055
    while True:
7056
      (fname, ftype, fid) = iprot.readFieldBegin()
7057
      if ftype == TType.STOP:
7058
        break
7059
      else:
7060
        iprot.skip(ftype)
7061
      iprot.readFieldEnd()
7062
    iprot.readStructEnd()
7063
 
7064
  def write(self, oprot):
7065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7067
      return
7068
    oprot.writeStructBegin('getComingSoon_args')
7069
    oprot.writeFieldStop()
7070
    oprot.writeStructEnd()
7071
 
7072
  def validate(self):
7073
    return
7074
 
7075
 
7076
  def __repr__(self):
7077
    L = ['%s=%r' % (key, value)
7078
      for key, value in self.__dict__.iteritems()]
7079
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7080
 
7081
  def __eq__(self, other):
7082
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7083
 
7084
  def __ne__(self, other):
7085
    return not (self == other)
7086
 
7087
class getComingSoon_result:
7088
  """
7089
  Attributes:
7090
   - success
7091
   - isex
7092
  """
7093
 
7094
  thrift_spec = (
7095
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7096
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7097
  )
7098
 
7099
  def __init__(self, success=None, isex=None,):
7100
    self.success = success
7101
    self.isex = isex
7102
 
7103
  def read(self, iprot):
7104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7106
      return
7107
    iprot.readStructBegin()
7108
    while True:
7109
      (fname, ftype, fid) = iprot.readFieldBegin()
7110
      if ftype == TType.STOP:
7111
        break
7112
      if fid == 0:
7113
        if ftype == TType.LIST:
7114
          self.success = []
7115
          (_etype89, _size86) = iprot.readListBegin()
7116
          for _i90 in xrange(_size86):
7117
            _elem91 = Item()
7118
            _elem91.read(iprot)
7119
            self.success.append(_elem91)
7120
          iprot.readListEnd()
7121
        else:
7122
          iprot.skip(ftype)
7123
      elif fid == 1:
7124
        if ftype == TType.STRUCT:
7125
          self.isex = CatalogServiceException()
7126
          self.isex.read(iprot)
7127
        else:
7128
          iprot.skip(ftype)
7129
      else:
7130
        iprot.skip(ftype)
7131
      iprot.readFieldEnd()
7132
    iprot.readStructEnd()
7133
 
7134
  def write(self, oprot):
7135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7137
      return
7138
    oprot.writeStructBegin('getComingSoon_result')
7139
    if self.success is not None:
7140
      oprot.writeFieldBegin('success', TType.LIST, 0)
7141
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7142
      for iter92 in self.success:
7143
        iter92.write(oprot)
7144
      oprot.writeListEnd()
7145
      oprot.writeFieldEnd()
7146
    if self.isex is not None:
7147
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7148
      self.isex.write(oprot)
7149
      oprot.writeFieldEnd()
7150
    oprot.writeFieldStop()
7151
    oprot.writeStructEnd()
7152
 
7153
  def validate(self):
7154
    return
7155
 
7156
 
7157
  def __repr__(self):
7158
    L = ['%s=%r' % (key, value)
7159
      for key, value in self.__dict__.iteritems()]
7160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7161
 
7162
  def __eq__(self, other):
7163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7164
 
7165
  def __ne__(self, other):
7166
    return not (self == other)
7167
 
7168
class getComingSoonCatalogIds_args:
7169
  """
7170
  Attributes:
7171
   - beginIndex
7172
   - totalItems
7173
   - brand
7174
   - category
7175
  """
7176
 
7177
  thrift_spec = (
7178
    None, # 0
7179
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7180
    (2, TType.I64, 'totalItems', None, None, ), # 2
7181
    (3, TType.STRING, 'brand', None, None, ), # 3
7182
    (4, TType.I64, 'category', None, None, ), # 4
7183
  )
7184
 
7185
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7186
    self.beginIndex = beginIndex
7187
    self.totalItems = totalItems
7188
    self.brand = brand
7189
    self.category = category
7190
 
7191
  def read(self, iprot):
7192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7194
      return
7195
    iprot.readStructBegin()
7196
    while True:
7197
      (fname, ftype, fid) = iprot.readFieldBegin()
7198
      if ftype == TType.STOP:
7199
        break
7200
      if fid == 1:
7201
        if ftype == TType.I64:
7202
          self.beginIndex = iprot.readI64();
7203
        else:
7204
          iprot.skip(ftype)
7205
      elif fid == 2:
7206
        if ftype == TType.I64:
7207
          self.totalItems = iprot.readI64();
7208
        else:
7209
          iprot.skip(ftype)
7210
      elif fid == 3:
7211
        if ftype == TType.STRING:
7212
          self.brand = iprot.readString();
7213
        else:
7214
          iprot.skip(ftype)
7215
      elif fid == 4:
7216
        if ftype == TType.I64:
7217
          self.category = iprot.readI64();
7218
        else:
7219
          iprot.skip(ftype)
7220
      else:
7221
        iprot.skip(ftype)
7222
      iprot.readFieldEnd()
7223
    iprot.readStructEnd()
7224
 
7225
  def write(self, oprot):
7226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7228
      return
7229
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7230
    if self.beginIndex is not None:
7231
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7232
      oprot.writeI64(self.beginIndex)
7233
      oprot.writeFieldEnd()
7234
    if self.totalItems is not None:
7235
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7236
      oprot.writeI64(self.totalItems)
7237
      oprot.writeFieldEnd()
7238
    if self.brand is not None:
7239
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7240
      oprot.writeString(self.brand)
7241
      oprot.writeFieldEnd()
7242
    if self.category is not None:
7243
      oprot.writeFieldBegin('category', TType.I64, 4)
7244
      oprot.writeI64(self.category)
7245
      oprot.writeFieldEnd()
7246
    oprot.writeFieldStop()
7247
    oprot.writeStructEnd()
7248
 
7249
  def validate(self):
7250
    return
7251
 
7252
 
7253
  def __repr__(self):
7254
    L = ['%s=%r' % (key, value)
7255
      for key, value in self.__dict__.iteritems()]
7256
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7257
 
7258
  def __eq__(self, other):
7259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7260
 
7261
  def __ne__(self, other):
7262
    return not (self == other)
7263
 
7264
class getComingSoonCatalogIds_result:
7265
  """
7266
  Attributes:
7267
   - success
7268
   - cex
7269
  """
7270
 
7271
  thrift_spec = (
7272
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7273
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7274
  )
7275
 
7276
  def __init__(self, success=None, cex=None,):
7277
    self.success = success
7278
    self.cex = cex
7279
 
7280
  def read(self, iprot):
7281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7283
      return
7284
    iprot.readStructBegin()
7285
    while True:
7286
      (fname, ftype, fid) = iprot.readFieldBegin()
7287
      if ftype == TType.STOP:
7288
        break
7289
      if fid == 0:
7290
        if ftype == TType.LIST:
7291
          self.success = []
7292
          (_etype96, _size93) = iprot.readListBegin()
7293
          for _i97 in xrange(_size93):
7294
            _elem98 = iprot.readI64();
7295
            self.success.append(_elem98)
7296
          iprot.readListEnd()
7297
        else:
7298
          iprot.skip(ftype)
7299
      elif fid == 1:
7300
        if ftype == TType.STRUCT:
7301
          self.cex = CatalogServiceException()
7302
          self.cex.read(iprot)
7303
        else:
7304
          iprot.skip(ftype)
7305
      else:
7306
        iprot.skip(ftype)
7307
      iprot.readFieldEnd()
7308
    iprot.readStructEnd()
7309
 
7310
  def write(self, oprot):
7311
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7312
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7313
      return
7314
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7315
    if self.success is not None:
7316
      oprot.writeFieldBegin('success', TType.LIST, 0)
7317
      oprot.writeListBegin(TType.I64, len(self.success))
7318
      for iter99 in self.success:
7319
        oprot.writeI64(iter99)
7320
      oprot.writeListEnd()
7321
      oprot.writeFieldEnd()
7322
    if self.cex is not None:
7323
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7324
      self.cex.write(oprot)
7325
      oprot.writeFieldEnd()
7326
    oprot.writeFieldStop()
7327
    oprot.writeStructEnd()
7328
 
7329
  def validate(self):
7330
    return
7331
 
7332
 
7333
  def __repr__(self):
7334
    L = ['%s=%r' % (key, value)
7335
      for key, value in self.__dict__.iteritems()]
7336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7337
 
7338
  def __eq__(self, other):
7339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7340
 
7341
  def __ne__(self, other):
7342
    return not (self == other)
7343
 
7344
class getComingSoonCount_args:
7345
 
7346
  thrift_spec = (
7347
  )
7348
 
7349
  def read(self, iprot):
7350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7352
      return
7353
    iprot.readStructBegin()
7354
    while True:
7355
      (fname, ftype, fid) = iprot.readFieldBegin()
7356
      if ftype == TType.STOP:
7357
        break
7358
      else:
7359
        iprot.skip(ftype)
7360
      iprot.readFieldEnd()
7361
    iprot.readStructEnd()
7362
 
7363
  def write(self, oprot):
7364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7366
      return
7367
    oprot.writeStructBegin('getComingSoonCount_args')
7368
    oprot.writeFieldStop()
7369
    oprot.writeStructEnd()
7370
 
7371
  def validate(self):
7372
    return
7373
 
7374
 
7375
  def __repr__(self):
7376
    L = ['%s=%r' % (key, value)
7377
      for key, value in self.__dict__.iteritems()]
7378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7379
 
7380
  def __eq__(self, other):
7381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7382
 
7383
  def __ne__(self, other):
7384
    return not (self == other)
7385
 
7386
class getComingSoonCount_result:
7387
  """
7388
  Attributes:
7389
   - success
7390
   - cex
7391
  """
7392
 
7393
  thrift_spec = (
7394
    (0, TType.I64, 'success', None, None, ), # 0
7395
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7396
  )
7397
 
7398
  def __init__(self, success=None, cex=None,):
7399
    self.success = success
7400
    self.cex = cex
7401
 
7402
  def read(self, iprot):
7403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7405
      return
7406
    iprot.readStructBegin()
7407
    while True:
7408
      (fname, ftype, fid) = iprot.readFieldBegin()
7409
      if ftype == TType.STOP:
7410
        break
7411
      if fid == 0:
7412
        if ftype == TType.I64:
7413
          self.success = iprot.readI64();
7414
        else:
7415
          iprot.skip(ftype)
7416
      elif fid == 1:
7417
        if ftype == TType.STRUCT:
7418
          self.cex = CatalogServiceException()
7419
          self.cex.read(iprot)
7420
        else:
7421
          iprot.skip(ftype)
7422
      else:
7423
        iprot.skip(ftype)
7424
      iprot.readFieldEnd()
7425
    iprot.readStructEnd()
7426
 
7427
  def write(self, oprot):
7428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7430
      return
7431
    oprot.writeStructBegin('getComingSoonCount_result')
7432
    if self.success is not None:
7433
      oprot.writeFieldBegin('success', TType.I64, 0)
7434
      oprot.writeI64(self.success)
7435
      oprot.writeFieldEnd()
7436
    if self.cex is not None:
7437
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7438
      self.cex.write(oprot)
7439
      oprot.writeFieldEnd()
7440
    oprot.writeFieldStop()
7441
    oprot.writeStructEnd()
7442
 
7443
  def validate(self):
7444
    return
7445
 
7446
 
7447
  def __repr__(self):
7448
    L = ['%s=%r' % (key, value)
7449
      for key, value in self.__dict__.iteritems()]
7450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7451
 
7452
  def __eq__(self, other):
7453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7454
 
7455
  def __ne__(self, other):
7456
    return not (self == other)
7457
 
7458
class getLatestArrivals_args:
7459
 
7460
  thrift_spec = (
7461
  )
7462
 
7463
  def read(self, iprot):
7464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7466
      return
7467
    iprot.readStructBegin()
7468
    while True:
7469
      (fname, ftype, fid) = iprot.readFieldBegin()
7470
      if ftype == TType.STOP:
7471
        break
7472
      else:
7473
        iprot.skip(ftype)
7474
      iprot.readFieldEnd()
7475
    iprot.readStructEnd()
7476
 
7477
  def write(self, oprot):
7478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7480
      return
7481
    oprot.writeStructBegin('getLatestArrivals_args')
7482
    oprot.writeFieldStop()
7483
    oprot.writeStructEnd()
7484
 
7485
  def validate(self):
7486
    return
7487
 
7488
 
7489
  def __repr__(self):
7490
    L = ['%s=%r' % (key, value)
7491
      for key, value in self.__dict__.iteritems()]
7492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7493
 
7494
  def __eq__(self, other):
7495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7496
 
7497
  def __ne__(self, other):
7498
    return not (self == other)
7499
 
7500
class getLatestArrivals_result:
7501
  """
7502
  Attributes:
7503
   - success
7504
   - isex
7505
  """
7506
 
7507
  thrift_spec = (
7508
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7509
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7510
  )
7511
 
7512
  def __init__(self, success=None, isex=None,):
7513
    self.success = success
7514
    self.isex = isex
7515
 
7516
  def read(self, iprot):
7517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7519
      return
7520
    iprot.readStructBegin()
7521
    while True:
7522
      (fname, ftype, fid) = iprot.readFieldBegin()
7523
      if ftype == TType.STOP:
7524
        break
7525
      if fid == 0:
7526
        if ftype == TType.LIST:
7527
          self.success = []
7528
          (_etype103, _size100) = iprot.readListBegin()
7529
          for _i104 in xrange(_size100):
7530
            _elem105 = Item()
7531
            _elem105.read(iprot)
7532
            self.success.append(_elem105)
7533
          iprot.readListEnd()
7534
        else:
7535
          iprot.skip(ftype)
7536
      elif fid == 1:
7537
        if ftype == TType.STRUCT:
7538
          self.isex = CatalogServiceException()
7539
          self.isex.read(iprot)
7540
        else:
7541
          iprot.skip(ftype)
7542
      else:
7543
        iprot.skip(ftype)
7544
      iprot.readFieldEnd()
7545
    iprot.readStructEnd()
7546
 
7547
  def write(self, oprot):
7548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7550
      return
7551
    oprot.writeStructBegin('getLatestArrivals_result')
7552
    if self.success is not None:
7553
      oprot.writeFieldBegin('success', TType.LIST, 0)
7554
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7555
      for iter106 in self.success:
7556
        iter106.write(oprot)
7557
      oprot.writeListEnd()
7558
      oprot.writeFieldEnd()
7559
    if self.isex is not None:
7560
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7561
      self.isex.write(oprot)
7562
      oprot.writeFieldEnd()
7563
    oprot.writeFieldStop()
7564
    oprot.writeStructEnd()
7565
 
7566
  def validate(self):
7567
    return
7568
 
7569
 
7570
  def __repr__(self):
7571
    L = ['%s=%r' % (key, value)
7572
      for key, value in self.__dict__.iteritems()]
7573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7574
 
7575
  def __eq__(self, other):
7576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7577
 
7578
  def __ne__(self, other):
7579
    return not (self == other)
7580
 
7581
class getLatestArrivalsCatalogIds_args:
7582
  """
7583
  Attributes:
7584
   - beginIndex
7585
   - totalItems
7586
   - brand
7587
   - categories
7588
  """
7589
 
7590
  thrift_spec = (
7591
    None, # 0
7592
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7593
    (2, TType.I64, 'totalItems', None, None, ), # 2
7594
    (3, TType.STRING, 'brand', None, None, ), # 3
7595
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
7596
  )
7597
 
7598
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
7599
    self.beginIndex = beginIndex
7600
    self.totalItems = totalItems
7601
    self.brand = brand
7602
    self.categories = categories
7603
 
7604
  def read(self, iprot):
7605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7607
      return
7608
    iprot.readStructBegin()
7609
    while True:
7610
      (fname, ftype, fid) = iprot.readFieldBegin()
7611
      if ftype == TType.STOP:
7612
        break
7613
      if fid == 1:
7614
        if ftype == TType.I64:
7615
          self.beginIndex = iprot.readI64();
7616
        else:
7617
          iprot.skip(ftype)
7618
      elif fid == 2:
7619
        if ftype == TType.I64:
7620
          self.totalItems = iprot.readI64();
7621
        else:
7622
          iprot.skip(ftype)
7623
      elif fid == 3:
7624
        if ftype == TType.STRING:
7625
          self.brand = iprot.readString();
7626
        else:
7627
          iprot.skip(ftype)
7628
      elif fid == 4:
7629
        if ftype == TType.LIST:
7630
          self.categories = []
7631
          (_etype110, _size107) = iprot.readListBegin()
7632
          for _i111 in xrange(_size107):
7633
            _elem112 = iprot.readI64();
7634
            self.categories.append(_elem112)
7635
          iprot.readListEnd()
7636
        else:
7637
          iprot.skip(ftype)
7638
      else:
7639
        iprot.skip(ftype)
7640
      iprot.readFieldEnd()
7641
    iprot.readStructEnd()
7642
 
7643
  def write(self, oprot):
7644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7646
      return
7647
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
7648
    if self.beginIndex is not None:
7649
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7650
      oprot.writeI64(self.beginIndex)
7651
      oprot.writeFieldEnd()
7652
    if self.totalItems is not None:
7653
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7654
      oprot.writeI64(self.totalItems)
7655
      oprot.writeFieldEnd()
7656
    if self.brand is not None:
7657
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7658
      oprot.writeString(self.brand)
7659
      oprot.writeFieldEnd()
7660
    if self.categories is not None:
7661
      oprot.writeFieldBegin('categories', TType.LIST, 4)
7662
      oprot.writeListBegin(TType.I64, len(self.categories))
7663
      for iter113 in self.categories:
7664
        oprot.writeI64(iter113)
7665
      oprot.writeListEnd()
7666
      oprot.writeFieldEnd()
7667
    oprot.writeFieldStop()
7668
    oprot.writeStructEnd()
7669
 
7670
  def validate(self):
7671
    return
7672
 
7673
 
7674
  def __repr__(self):
7675
    L = ['%s=%r' % (key, value)
7676
      for key, value in self.__dict__.iteritems()]
7677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7678
 
7679
  def __eq__(self, other):
7680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7681
 
7682
  def __ne__(self, other):
7683
    return not (self == other)
7684
 
7685
class getLatestArrivalsCatalogIds_result:
7686
  """
7687
  Attributes:
7688
   - success
7689
   - cex
7690
  """
7691
 
7692
  thrift_spec = (
7693
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7694
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7695
  )
7696
 
7697
  def __init__(self, success=None, cex=None,):
7698
    self.success = success
7699
    self.cex = cex
7700
 
7701
  def read(self, iprot):
7702
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7703
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7704
      return
7705
    iprot.readStructBegin()
7706
    while True:
7707
      (fname, ftype, fid) = iprot.readFieldBegin()
7708
      if ftype == TType.STOP:
7709
        break
7710
      if fid == 0:
7711
        if ftype == TType.LIST:
7712
          self.success = []
7713
          (_etype117, _size114) = iprot.readListBegin()
7714
          for _i118 in xrange(_size114):
7715
            _elem119 = iprot.readI64();
7716
            self.success.append(_elem119)
7717
          iprot.readListEnd()
7718
        else:
7719
          iprot.skip(ftype)
7720
      elif fid == 1:
7721
        if ftype == TType.STRUCT:
7722
          self.cex = CatalogServiceException()
7723
          self.cex.read(iprot)
7724
        else:
7725
          iprot.skip(ftype)
7726
      else:
7727
        iprot.skip(ftype)
7728
      iprot.readFieldEnd()
7729
    iprot.readStructEnd()
7730
 
7731
  def write(self, oprot):
7732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7734
      return
7735
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
7736
    if self.success is not None:
7737
      oprot.writeFieldBegin('success', TType.LIST, 0)
7738
      oprot.writeListBegin(TType.I64, len(self.success))
7739
      for iter120 in self.success:
7740
        oprot.writeI64(iter120)
7741
      oprot.writeListEnd()
7742
      oprot.writeFieldEnd()
7743
    if self.cex is not None:
7744
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7745
      self.cex.write(oprot)
7746
      oprot.writeFieldEnd()
7747
    oprot.writeFieldStop()
7748
    oprot.writeStructEnd()
7749
 
7750
  def validate(self):
7751
    return
7752
 
7753
 
7754
  def __repr__(self):
7755
    L = ['%s=%r' % (key, value)
7756
      for key, value in self.__dict__.iteritems()]
7757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7758
 
7759
  def __eq__(self, other):
7760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7761
 
7762
  def __ne__(self, other):
7763
    return not (self == other)
7764
 
7765
class getLatestArrivalsCount_args:
7766
 
7767
  thrift_spec = (
7768
  )
7769
 
7770
  def read(self, iprot):
7771
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7772
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7773
      return
7774
    iprot.readStructBegin()
7775
    while True:
7776
      (fname, ftype, fid) = iprot.readFieldBegin()
7777
      if ftype == TType.STOP:
7778
        break
7779
      else:
7780
        iprot.skip(ftype)
7781
      iprot.readFieldEnd()
7782
    iprot.readStructEnd()
7783
 
7784
  def write(self, oprot):
7785
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7786
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7787
      return
7788
    oprot.writeStructBegin('getLatestArrivalsCount_args')
7789
    oprot.writeFieldStop()
7790
    oprot.writeStructEnd()
7791
 
7792
  def validate(self):
7793
    return
7794
 
7795
 
7796
  def __repr__(self):
7797
    L = ['%s=%r' % (key, value)
7798
      for key, value in self.__dict__.iteritems()]
7799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7800
 
7801
  def __eq__(self, other):
7802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7803
 
7804
  def __ne__(self, other):
7805
    return not (self == other)
7806
 
7807
class getLatestArrivalsCount_result:
7808
  """
7809
  Attributes:
7810
   - success
7811
   - cex
7812
  """
7813
 
7814
  thrift_spec = (
7815
    (0, TType.I64, 'success', None, None, ), # 0
7816
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7817
  )
7818
 
7819
  def __init__(self, success=None, cex=None,):
7820
    self.success = success
7821
    self.cex = cex
7822
 
7823
  def read(self, iprot):
7824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7826
      return
7827
    iprot.readStructBegin()
7828
    while True:
7829
      (fname, ftype, fid) = iprot.readFieldBegin()
7830
      if ftype == TType.STOP:
7831
        break
7832
      if fid == 0:
7833
        if ftype == TType.I64:
7834
          self.success = iprot.readI64();
7835
        else:
7836
          iprot.skip(ftype)
7837
      elif fid == 1:
7838
        if ftype == TType.STRUCT:
7839
          self.cex = CatalogServiceException()
7840
          self.cex.read(iprot)
7841
        else:
7842
          iprot.skip(ftype)
7843
      else:
7844
        iprot.skip(ftype)
7845
      iprot.readFieldEnd()
7846
    iprot.readStructEnd()
7847
 
7848
  def write(self, oprot):
7849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7851
      return
7852
    oprot.writeStructBegin('getLatestArrivalsCount_result')
7853
    if self.success is not None:
7854
      oprot.writeFieldBegin('success', TType.I64, 0)
7855
      oprot.writeI64(self.success)
7856
      oprot.writeFieldEnd()
7857
    if self.cex is not None:
7858
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7859
      self.cex.write(oprot)
7860
      oprot.writeFieldEnd()
7861
    oprot.writeFieldStop()
7862
    oprot.writeStructEnd()
7863
 
7864
  def validate(self):
7865
    return
7866
 
7867
 
7868
  def __repr__(self):
7869
    L = ['%s=%r' % (key, value)
7870
      for key, value in self.__dict__.iteritems()]
7871
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7872
 
7873
  def __eq__(self, other):
7874
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7875
 
7876
  def __ne__(self, other):
7877
    return not (self == other)
7878
 
7879
class generateNewEntityID_args:
7880
 
7881
  thrift_spec = (
7882
  )
7883
 
7884
  def read(self, iprot):
7885
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7886
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7887
      return
7888
    iprot.readStructBegin()
7889
    while True:
7890
      (fname, ftype, fid) = iprot.readFieldBegin()
7891
      if ftype == TType.STOP:
7892
        break
7893
      else:
7894
        iprot.skip(ftype)
7895
      iprot.readFieldEnd()
7896
    iprot.readStructEnd()
7897
 
7898
  def write(self, oprot):
7899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7901
      return
7902
    oprot.writeStructBegin('generateNewEntityID_args')
7903
    oprot.writeFieldStop()
7904
    oprot.writeStructEnd()
7905
 
7906
  def validate(self):
7907
    return
7908
 
7909
 
7910
  def __repr__(self):
7911
    L = ['%s=%r' % (key, value)
7912
      for key, value in self.__dict__.iteritems()]
7913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7914
 
7915
  def __eq__(self, other):
7916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7917
 
7918
  def __ne__(self, other):
7919
    return not (self == other)
7920
 
7921
class generateNewEntityID_result:
7922
  """
7923
  Attributes:
7924
   - success
7925
  """
7926
 
7927
  thrift_spec = (
7928
    (0, TType.I64, 'success', None, None, ), # 0
7929
  )
7930
 
7931
  def __init__(self, success=None,):
7932
    self.success = success
7933
 
7934
  def read(self, iprot):
7935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7937
      return
7938
    iprot.readStructBegin()
7939
    while True:
7940
      (fname, ftype, fid) = iprot.readFieldBegin()
7941
      if ftype == TType.STOP:
7942
        break
7943
      if fid == 0:
7944
        if ftype == TType.I64:
7945
          self.success = iprot.readI64();
7946
        else:
7947
          iprot.skip(ftype)
7948
      else:
7949
        iprot.skip(ftype)
7950
      iprot.readFieldEnd()
7951
    iprot.readStructEnd()
7952
 
7953
  def write(self, oprot):
7954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7956
      return
7957
    oprot.writeStructBegin('generateNewEntityID_result')
7958
    if self.success is not None:
7959
      oprot.writeFieldBegin('success', TType.I64, 0)
7960
      oprot.writeI64(self.success)
7961
      oprot.writeFieldEnd()
7962
    oprot.writeFieldStop()
7963
    oprot.writeStructEnd()
7964
 
7965
  def validate(self):
7966
    return
7967
 
7968
 
7969
  def __repr__(self):
7970
    L = ['%s=%r' % (key, value)
7971
      for key, value in self.__dict__.iteritems()]
7972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7973
 
7974
  def __eq__(self, other):
7975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7976
 
7977
  def __ne__(self, other):
7978
    return not (self == other)
7979
 
7980
class addCategory_args:
7981
  """
7982
  Attributes:
7983
   - category
7984
  """
7985
 
7986
  thrift_spec = (
7987
    None, # 0
7988
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
7989
  )
7990
 
7991
  def __init__(self, category=None,):
7992
    self.category = category
7993
 
7994
  def read(self, iprot):
7995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7997
      return
7998
    iprot.readStructBegin()
7999
    while True:
8000
      (fname, ftype, fid) = iprot.readFieldBegin()
8001
      if ftype == TType.STOP:
8002
        break
8003
      if fid == 1:
8004
        if ftype == TType.STRUCT:
8005
          self.category = Category()
8006
          self.category.read(iprot)
8007
        else:
8008
          iprot.skip(ftype)
8009
      else:
8010
        iprot.skip(ftype)
8011
      iprot.readFieldEnd()
8012
    iprot.readStructEnd()
8013
 
8014
  def write(self, oprot):
8015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8017
      return
8018
    oprot.writeStructBegin('addCategory_args')
8019
    if self.category is not None:
8020
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
8021
      self.category.write(oprot)
8022
      oprot.writeFieldEnd()
8023
    oprot.writeFieldStop()
8024
    oprot.writeStructEnd()
8025
 
8026
  def validate(self):
8027
    return
8028
 
8029
 
8030
  def __repr__(self):
8031
    L = ['%s=%r' % (key, value)
8032
      for key, value in self.__dict__.iteritems()]
8033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8034
 
8035
  def __eq__(self, other):
8036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8037
 
8038
  def __ne__(self, other):
8039
    return not (self == other)
8040
 
8041
class addCategory_result:
8042
  """
8043
  Attributes:
8044
   - success
8045
  """
8046
 
8047
  thrift_spec = (
8048
    (0, TType.BOOL, 'success', None, None, ), # 0
8049
  )
8050
 
8051
  def __init__(self, success=None,):
8052
    self.success = success
8053
 
8054
  def read(self, iprot):
8055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8057
      return
8058
    iprot.readStructBegin()
8059
    while True:
8060
      (fname, ftype, fid) = iprot.readFieldBegin()
8061
      if ftype == TType.STOP:
8062
        break
8063
      if fid == 0:
8064
        if ftype == TType.BOOL:
8065
          self.success = iprot.readBool();
8066
        else:
8067
          iprot.skip(ftype)
8068
      else:
8069
        iprot.skip(ftype)
8070
      iprot.readFieldEnd()
8071
    iprot.readStructEnd()
8072
 
8073
  def write(self, oprot):
8074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8076
      return
8077
    oprot.writeStructBegin('addCategory_result')
8078
    if self.success is not None:
8079
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8080
      oprot.writeBool(self.success)
8081
      oprot.writeFieldEnd()
8082
    oprot.writeFieldStop()
8083
    oprot.writeStructEnd()
8084
 
8085
  def validate(self):
8086
    return
8087
 
8088
 
8089
  def __repr__(self):
8090
    L = ['%s=%r' % (key, value)
8091
      for key, value in self.__dict__.iteritems()]
8092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8093
 
8094
  def __eq__(self, other):
8095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8096
 
8097
  def __ne__(self, other):
8098
    return not (self == other)
8099
 
8100
class getCategory_args:
8101
  """
8102
  Attributes:
8103
   - id
8104
  """
8105
 
8106
  thrift_spec = (
8107
    None, # 0
8108
    (1, TType.I64, 'id', None, None, ), # 1
8109
  )
8110
 
8111
  def __init__(self, id=None,):
8112
    self.id = id
8113
 
8114
  def read(self, iprot):
8115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8117
      return
8118
    iprot.readStructBegin()
8119
    while True:
8120
      (fname, ftype, fid) = iprot.readFieldBegin()
8121
      if ftype == TType.STOP:
8122
        break
8123
      if fid == 1:
8124
        if ftype == TType.I64:
8125
          self.id = iprot.readI64();
8126
        else:
8127
          iprot.skip(ftype)
8128
      else:
8129
        iprot.skip(ftype)
8130
      iprot.readFieldEnd()
8131
    iprot.readStructEnd()
8132
 
8133
  def write(self, oprot):
8134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8136
      return
8137
    oprot.writeStructBegin('getCategory_args')
8138
    if self.id is not None:
8139
      oprot.writeFieldBegin('id', TType.I64, 1)
8140
      oprot.writeI64(self.id)
8141
      oprot.writeFieldEnd()
8142
    oprot.writeFieldStop()
8143
    oprot.writeStructEnd()
8144
 
8145
  def validate(self):
8146
    return
8147
 
8148
 
8149
  def __repr__(self):
8150
    L = ['%s=%r' % (key, value)
8151
      for key, value in self.__dict__.iteritems()]
8152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8153
 
8154
  def __eq__(self, other):
8155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8156
 
8157
  def __ne__(self, other):
8158
    return not (self == other)
8159
 
8160
class getCategory_result:
8161
  """
8162
  Attributes:
8163
   - success
8164
  """
8165
 
8166
  thrift_spec = (
8167
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8168
  )
8169
 
8170
  def __init__(self, success=None,):
8171
    self.success = success
8172
 
8173
  def read(self, iprot):
8174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8176
      return
8177
    iprot.readStructBegin()
8178
    while True:
8179
      (fname, ftype, fid) = iprot.readFieldBegin()
8180
      if ftype == TType.STOP:
8181
        break
8182
      if fid == 0:
8183
        if ftype == TType.STRUCT:
8184
          self.success = Category()
8185
          self.success.read(iprot)
8186
        else:
8187
          iprot.skip(ftype)
8188
      else:
8189
        iprot.skip(ftype)
8190
      iprot.readFieldEnd()
8191
    iprot.readStructEnd()
8192
 
8193
  def write(self, oprot):
8194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8196
      return
8197
    oprot.writeStructBegin('getCategory_result')
8198
    if self.success is not None:
8199
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8200
      self.success.write(oprot)
8201
      oprot.writeFieldEnd()
8202
    oprot.writeFieldStop()
8203
    oprot.writeStructEnd()
8204
 
8205
  def validate(self):
8206
    return
8207
 
8208
 
8209
  def __repr__(self):
8210
    L = ['%s=%r' % (key, value)
8211
      for key, value in self.__dict__.iteritems()]
8212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8213
 
8214
  def __eq__(self, other):
8215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8216
 
8217
  def __ne__(self, other):
8218
    return not (self == other)
8219
 
8220
class getAllCategories_args:
8221
 
8222
  thrift_spec = (
8223
  )
8224
 
8225
  def read(self, iprot):
8226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8228
      return
8229
    iprot.readStructBegin()
8230
    while True:
8231
      (fname, ftype, fid) = iprot.readFieldBegin()
8232
      if ftype == TType.STOP:
8233
        break
8234
      else:
8235
        iprot.skip(ftype)
8236
      iprot.readFieldEnd()
8237
    iprot.readStructEnd()
8238
 
8239
  def write(self, oprot):
8240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8242
      return
8243
    oprot.writeStructBegin('getAllCategories_args')
8244
    oprot.writeFieldStop()
8245
    oprot.writeStructEnd()
8246
 
8247
  def validate(self):
8248
    return
8249
 
8250
 
8251
  def __repr__(self):
8252
    L = ['%s=%r' % (key, value)
8253
      for key, value in self.__dict__.iteritems()]
8254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8255
 
8256
  def __eq__(self, other):
8257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8258
 
8259
  def __ne__(self, other):
8260
    return not (self == other)
8261
 
8262
class getAllCategories_result:
8263
  """
8264
  Attributes:
8265
   - success
8266
  """
8267
 
8268
  thrift_spec = (
8269
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8270
  )
8271
 
8272
  def __init__(self, success=None,):
8273
    self.success = success
8274
 
8275
  def read(self, iprot):
8276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8278
      return
8279
    iprot.readStructBegin()
8280
    while True:
8281
      (fname, ftype, fid) = iprot.readFieldBegin()
8282
      if ftype == TType.STOP:
8283
        break
8284
      if fid == 0:
8285
        if ftype == TType.LIST:
8286
          self.success = []
8287
          (_etype124, _size121) = iprot.readListBegin()
8288
          for _i125 in xrange(_size121):
8289
            _elem126 = Category()
8290
            _elem126.read(iprot)
8291
            self.success.append(_elem126)
8292
          iprot.readListEnd()
8293
        else:
8294
          iprot.skip(ftype)
8295
      else:
8296
        iprot.skip(ftype)
8297
      iprot.readFieldEnd()
8298
    iprot.readStructEnd()
8299
 
8300
  def write(self, oprot):
8301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8303
      return
8304
    oprot.writeStructBegin('getAllCategories_result')
8305
    if self.success is not None:
8306
      oprot.writeFieldBegin('success', TType.LIST, 0)
8307
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8308
      for iter127 in self.success:
8309
        iter127.write(oprot)
8310
      oprot.writeListEnd()
8311
      oprot.writeFieldEnd()
8312
    oprot.writeFieldStop()
8313
    oprot.writeStructEnd()
8314
 
8315
  def validate(self):
8316
    return
8317
 
8318
 
8319
  def __repr__(self):
8320
    L = ['%s=%r' % (key, value)
8321
      for key, value in self.__dict__.iteritems()]
8322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8323
 
8324
  def __eq__(self, other):
8325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8326
 
8327
  def __ne__(self, other):
8328
    return not (self == other)
8329
 
8330
class getAllSimilarItems_args:
8331
  """
8332
  Attributes:
8333
   - itemId
8334
  """
8335
 
8336
  thrift_spec = (
8337
    None, # 0
8338
    (1, TType.I64, 'itemId', None, None, ), # 1
8339
  )
8340
 
8341
  def __init__(self, itemId=None,):
8342
    self.itemId = itemId
8343
 
8344
  def read(self, iprot):
8345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8347
      return
8348
    iprot.readStructBegin()
8349
    while True:
8350
      (fname, ftype, fid) = iprot.readFieldBegin()
8351
      if ftype == TType.STOP:
8352
        break
8353
      if fid == 1:
8354
        if ftype == TType.I64:
8355
          self.itemId = iprot.readI64();
8356
        else:
8357
          iprot.skip(ftype)
8358
      else:
8359
        iprot.skip(ftype)
8360
      iprot.readFieldEnd()
8361
    iprot.readStructEnd()
8362
 
8363
  def write(self, oprot):
8364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8366
      return
8367
    oprot.writeStructBegin('getAllSimilarItems_args')
8368
    if self.itemId is not None:
8369
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8370
      oprot.writeI64(self.itemId)
8371
      oprot.writeFieldEnd()
8372
    oprot.writeFieldStop()
8373
    oprot.writeStructEnd()
8374
 
8375
  def validate(self):
8376
    return
8377
 
8378
 
8379
  def __repr__(self):
8380
    L = ['%s=%r' % (key, value)
8381
      for key, value in self.__dict__.iteritems()]
8382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8383
 
8384
  def __eq__(self, other):
8385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8386
 
8387
  def __ne__(self, other):
8388
    return not (self == other)
8389
 
8390
class getAllSimilarItems_result:
8391
  """
8392
  Attributes:
8393
   - success
8394
  """
8395
 
8396
  thrift_spec = (
8397
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8398
  )
8399
 
8400
  def __init__(self, success=None,):
8401
    self.success = success
8402
 
8403
  def read(self, iprot):
8404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8406
      return
8407
    iprot.readStructBegin()
8408
    while True:
8409
      (fname, ftype, fid) = iprot.readFieldBegin()
8410
      if ftype == TType.STOP:
8411
        break
8412
      if fid == 0:
8413
        if ftype == TType.LIST:
8414
          self.success = []
8415
          (_etype131, _size128) = iprot.readListBegin()
8416
          for _i132 in xrange(_size128):
8417
            _elem133 = Item()
8418
            _elem133.read(iprot)
8419
            self.success.append(_elem133)
8420
          iprot.readListEnd()
8421
        else:
8422
          iprot.skip(ftype)
8423
      else:
8424
        iprot.skip(ftype)
8425
      iprot.readFieldEnd()
8426
    iprot.readStructEnd()
8427
 
8428
  def write(self, oprot):
8429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8431
      return
8432
    oprot.writeStructBegin('getAllSimilarItems_result')
8433
    if self.success is not None:
8434
      oprot.writeFieldBegin('success', TType.LIST, 0)
8435
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8436
      for iter134 in self.success:
8437
        iter134.write(oprot)
8438
      oprot.writeListEnd()
8439
      oprot.writeFieldEnd()
8440
    oprot.writeFieldStop()
8441
    oprot.writeStructEnd()
8442
 
8443
  def validate(self):
8444
    return
8445
 
8446
 
8447
  def __repr__(self):
8448
    L = ['%s=%r' % (key, value)
8449
      for key, value in self.__dict__.iteritems()]
8450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8451
 
8452
  def __eq__(self, other):
8453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8454
 
8455
  def __ne__(self, other):
8456
    return not (self == other)
8457
 
8458
class addSimilarItem_args:
8459
  """
8460
  Attributes:
8461
   - itemId
8462
   - catalogItemId
8463
  """
8464
 
8465
  thrift_spec = (
8466
    None, # 0
8467
    (1, TType.I64, 'itemId', None, None, ), # 1
8468
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
8469
  )
8470
 
8471
  def __init__(self, itemId=None, catalogItemId=None,):
8472
    self.itemId = itemId
8473
    self.catalogItemId = catalogItemId
8474
 
8475
  def read(self, iprot):
8476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8478
      return
8479
    iprot.readStructBegin()
8480
    while True:
8481
      (fname, ftype, fid) = iprot.readFieldBegin()
8482
      if ftype == TType.STOP:
8483
        break
8484
      if fid == 1:
8485
        if ftype == TType.I64:
8486
          self.itemId = iprot.readI64();
8487
        else:
8488
          iprot.skip(ftype)
8489
      elif fid == 2:
8490
        if ftype == TType.I64:
8491
          self.catalogItemId = iprot.readI64();
8492
        else:
8493
          iprot.skip(ftype)
8494
      else:
8495
        iprot.skip(ftype)
8496
      iprot.readFieldEnd()
8497
    iprot.readStructEnd()
8498
 
8499
  def write(self, oprot):
8500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8502
      return
8503
    oprot.writeStructBegin('addSimilarItem_args')
8504
    if self.itemId is not None:
8505
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8506
      oprot.writeI64(self.itemId)
8507
      oprot.writeFieldEnd()
8508
    if self.catalogItemId is not None:
8509
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
8510
      oprot.writeI64(self.catalogItemId)
8511
      oprot.writeFieldEnd()
8512
    oprot.writeFieldStop()
8513
    oprot.writeStructEnd()
8514
 
8515
  def validate(self):
8516
    return
8517
 
8518
 
8519
  def __repr__(self):
8520
    L = ['%s=%r' % (key, value)
8521
      for key, value in self.__dict__.iteritems()]
8522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8523
 
8524
  def __eq__(self, other):
8525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8526
 
8527
  def __ne__(self, other):
8528
    return not (self == other)
8529
 
8530
class addSimilarItem_result:
8531
  """
8532
  Attributes:
8533
   - success
8534
   - cex
8535
  """
8536
 
8537
  thrift_spec = (
8538
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8539
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8540
  )
8541
 
8542
  def __init__(self, success=None, cex=None,):
8543
    self.success = success
8544
    self.cex = cex
8545
 
8546
  def read(self, iprot):
8547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8549
      return
8550
    iprot.readStructBegin()
8551
    while True:
8552
      (fname, ftype, fid) = iprot.readFieldBegin()
8553
      if ftype == TType.STOP:
8554
        break
8555
      if fid == 0:
8556
        if ftype == TType.STRUCT:
8557
          self.success = Item()
8558
          self.success.read(iprot)
8559
        else:
8560
          iprot.skip(ftype)
8561
      elif fid == 1:
8562
        if ftype == TType.STRUCT:
8563
          self.cex = CatalogServiceException()
8564
          self.cex.read(iprot)
8565
        else:
8566
          iprot.skip(ftype)
8567
      else:
8568
        iprot.skip(ftype)
8569
      iprot.readFieldEnd()
8570
    iprot.readStructEnd()
8571
 
8572
  def write(self, oprot):
8573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8575
      return
8576
    oprot.writeStructBegin('addSimilarItem_result')
8577
    if self.success is not None:
8578
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8579
      self.success.write(oprot)
8580
      oprot.writeFieldEnd()
8581
    if self.cex is not None:
8582
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8583
      self.cex.write(oprot)
8584
      oprot.writeFieldEnd()
8585
    oprot.writeFieldStop()
8586
    oprot.writeStructEnd()
8587
 
8588
  def validate(self):
8589
    return
8590
 
8591
 
8592
  def __repr__(self):
8593
    L = ['%s=%r' % (key, value)
8594
      for key, value in self.__dict__.iteritems()]
8595
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8596
 
8597
  def __eq__(self, other):
8598
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8599
 
8600
  def __ne__(self, other):
8601
    return not (self == other)
8602
 
6512 kshitij.so 8603
class addTag_args:
8604
  """
8605
  Attributes:
8606
   - displayName
8607
   - itemId
8608
  """
8609
 
8610
  thrift_spec = (
8611
    None, # 0
8612
    (1, TType.STRING, 'displayName', None, None, ), # 1
8613
    (2, TType.I64, 'itemId', None, None, ), # 2
8614
  )
8615
 
8616
  def __init__(self, displayName=None, itemId=None,):
8617
    self.displayName = displayName
8618
    self.itemId = itemId
8619
 
8620
  def read(self, iprot):
8621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8623
      return
8624
    iprot.readStructBegin()
8625
    while True:
8626
      (fname, ftype, fid) = iprot.readFieldBegin()
8627
      if ftype == TType.STOP:
8628
        break
8629
      if fid == 1:
8630
        if ftype == TType.STRING:
8631
          self.displayName = iprot.readString();
8632
        else:
8633
          iprot.skip(ftype)
8634
      elif fid == 2:
8635
        if ftype == TType.I64:
8636
          self.itemId = iprot.readI64();
8637
        else:
8638
          iprot.skip(ftype)
8639
      else:
8640
        iprot.skip(ftype)
8641
      iprot.readFieldEnd()
8642
    iprot.readStructEnd()
8643
 
8644
  def write(self, oprot):
8645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8647
      return
8648
    oprot.writeStructBegin('addTag_args')
8649
    if self.displayName is not None:
8650
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8651
      oprot.writeString(self.displayName)
8652
      oprot.writeFieldEnd()
8653
    if self.itemId is not None:
8654
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8655
      oprot.writeI64(self.itemId)
8656
      oprot.writeFieldEnd()
8657
    oprot.writeFieldStop()
8658
    oprot.writeStructEnd()
8659
 
8660
  def validate(self):
8661
    return
8662
 
8663
 
8664
  def __repr__(self):
8665
    L = ['%s=%r' % (key, value)
8666
      for key, value in self.__dict__.iteritems()]
8667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8668
 
8669
  def __eq__(self, other):
8670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8671
 
8672
  def __ne__(self, other):
8673
    return not (self == other)
8674
 
8675
class addTag_result:
8676
  """
8677
  Attributes:
8678
   - success
8679
  """
8680
 
8681
  thrift_spec = (
8682
    (0, TType.BOOL, 'success', None, None, ), # 0
8683
  )
8684
 
8685
  def __init__(self, success=None,):
8686
    self.success = success
8687
 
8688
  def read(self, iprot):
8689
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8690
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8691
      return
8692
    iprot.readStructBegin()
8693
    while True:
8694
      (fname, ftype, fid) = iprot.readFieldBegin()
8695
      if ftype == TType.STOP:
8696
        break
8697
      if fid == 0:
8698
        if ftype == TType.BOOL:
8699
          self.success = iprot.readBool();
8700
        else:
8701
          iprot.skip(ftype)
8702
      else:
8703
        iprot.skip(ftype)
8704
      iprot.readFieldEnd()
8705
    iprot.readStructEnd()
8706
 
8707
  def write(self, oprot):
8708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8710
      return
8711
    oprot.writeStructBegin('addTag_result')
8712
    if self.success is not None:
8713
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8714
      oprot.writeBool(self.success)
8715
      oprot.writeFieldEnd()
8716
    oprot.writeFieldStop()
8717
    oprot.writeStructEnd()
8718
 
8719
  def validate(self):
8720
    return
8721
 
8722
 
8723
  def __repr__(self):
8724
    L = ['%s=%r' % (key, value)
8725
      for key, value in self.__dict__.iteritems()]
8726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8727
 
8728
  def __eq__(self, other):
8729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8730
 
8731
  def __ne__(self, other):
8732
    return not (self == other)
8733
 
8734
class deleteEntityTag_args:
8735
  """
8736
  Attributes:
8737
   - displayName
8738
   - itemId
8739
  """
8740
 
8741
  thrift_spec = (
8742
    None, # 0
8743
    (1, TType.STRING, 'displayName', None, None, ), # 1
8744
    (2, TType.I64, 'itemId', None, None, ), # 2
8745
  )
8746
 
8747
  def __init__(self, displayName=None, itemId=None,):
8748
    self.displayName = displayName
8749
    self.itemId = itemId
8750
 
8751
  def read(self, iprot):
8752
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8753
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8754
      return
8755
    iprot.readStructBegin()
8756
    while True:
8757
      (fname, ftype, fid) = iprot.readFieldBegin()
8758
      if ftype == TType.STOP:
8759
        break
8760
      if fid == 1:
8761
        if ftype == TType.STRING:
8762
          self.displayName = iprot.readString();
8763
        else:
8764
          iprot.skip(ftype)
8765
      elif fid == 2:
8766
        if ftype == TType.I64:
8767
          self.itemId = iprot.readI64();
8768
        else:
8769
          iprot.skip(ftype)
8770
      else:
8771
        iprot.skip(ftype)
8772
      iprot.readFieldEnd()
8773
    iprot.readStructEnd()
8774
 
8775
  def write(self, oprot):
8776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8778
      return
8779
    oprot.writeStructBegin('deleteEntityTag_args')
8780
    if self.displayName is not None:
8781
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8782
      oprot.writeString(self.displayName)
8783
      oprot.writeFieldEnd()
8784
    if self.itemId is not None:
8785
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8786
      oprot.writeI64(self.itemId)
8787
      oprot.writeFieldEnd()
8788
    oprot.writeFieldStop()
8789
    oprot.writeStructEnd()
8790
 
8791
  def validate(self):
8792
    return
8793
 
8794
 
8795
  def __repr__(self):
8796
    L = ['%s=%r' % (key, value)
8797
      for key, value in self.__dict__.iteritems()]
8798
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8799
 
8800
  def __eq__(self, other):
8801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8802
 
8803
  def __ne__(self, other):
8804
    return not (self == other)
8805
 
8806
class deleteEntityTag_result:
8807
  """
8808
  Attributes:
8809
   - success
8810
  """
8811
 
8812
  thrift_spec = (
8813
    (0, TType.BOOL, 'success', None, None, ), # 0
8814
  )
8815
 
8816
  def __init__(self, success=None,):
8817
    self.success = success
8818
 
8819
  def read(self, iprot):
8820
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8821
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8822
      return
8823
    iprot.readStructBegin()
8824
    while True:
8825
      (fname, ftype, fid) = iprot.readFieldBegin()
8826
      if ftype == TType.STOP:
8827
        break
8828
      if fid == 0:
8829
        if ftype == TType.BOOL:
8830
          self.success = iprot.readBool();
8831
        else:
8832
          iprot.skip(ftype)
8833
      else:
8834
        iprot.skip(ftype)
8835
      iprot.readFieldEnd()
8836
    iprot.readStructEnd()
8837
 
8838
  def write(self, oprot):
8839
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8840
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8841
      return
8842
    oprot.writeStructBegin('deleteEntityTag_result')
8843
    if self.success is not None:
8844
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8845
      oprot.writeBool(self.success)
8846
      oprot.writeFieldEnd()
8847
    oprot.writeFieldStop()
8848
    oprot.writeStructEnd()
8849
 
8850
  def validate(self):
8851
    return
8852
 
8853
 
8854
  def __repr__(self):
8855
    L = ['%s=%r' % (key, value)
8856
      for key, value in self.__dict__.iteritems()]
8857
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8858
 
8859
  def __eq__(self, other):
8860
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8861
 
8862
  def __ne__(self, other):
8863
    return not (self == other)
8864
 
8865
class deleteTag_args:
8866
  """
8867
  Attributes:
8868
   - displayName
8869
  """
8870
 
8871
  thrift_spec = (
8872
    None, # 0
8873
    (1, TType.STRING, 'displayName', None, None, ), # 1
8874
  )
8875
 
8876
  def __init__(self, displayName=None,):
8877
    self.displayName = displayName
8878
 
8879
  def read(self, iprot):
8880
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8881
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8882
      return
8883
    iprot.readStructBegin()
8884
    while True:
8885
      (fname, ftype, fid) = iprot.readFieldBegin()
8886
      if ftype == TType.STOP:
8887
        break
8888
      if fid == 1:
8889
        if ftype == TType.STRING:
8890
          self.displayName = iprot.readString();
8891
        else:
8892
          iprot.skip(ftype)
8893
      else:
8894
        iprot.skip(ftype)
8895
      iprot.readFieldEnd()
8896
    iprot.readStructEnd()
8897
 
8898
  def write(self, oprot):
8899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8901
      return
8902
    oprot.writeStructBegin('deleteTag_args')
8903
    if self.displayName is not None:
8904
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8905
      oprot.writeString(self.displayName)
8906
      oprot.writeFieldEnd()
8907
    oprot.writeFieldStop()
8908
    oprot.writeStructEnd()
8909
 
8910
  def validate(self):
8911
    return
8912
 
8913
 
8914
  def __repr__(self):
8915
    L = ['%s=%r' % (key, value)
8916
      for key, value in self.__dict__.iteritems()]
8917
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8918
 
8919
  def __eq__(self, other):
8920
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8921
 
8922
  def __ne__(self, other):
8923
    return not (self == other)
8924
 
8925
class deleteTag_result:
8926
  """
8927
  Attributes:
8928
   - success
8929
  """
8930
 
8931
  thrift_spec = (
8932
    (0, TType.BOOL, 'success', None, None, ), # 0
8933
  )
8934
 
8935
  def __init__(self, success=None,):
8936
    self.success = success
8937
 
8938
  def read(self, iprot):
8939
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8940
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8941
      return
8942
    iprot.readStructBegin()
8943
    while True:
8944
      (fname, ftype, fid) = iprot.readFieldBegin()
8945
      if ftype == TType.STOP:
8946
        break
8947
      if fid == 0:
8948
        if ftype == TType.BOOL:
8949
          self.success = iprot.readBool();
8950
        else:
8951
          iprot.skip(ftype)
8952
      else:
8953
        iprot.skip(ftype)
8954
      iprot.readFieldEnd()
8955
    iprot.readStructEnd()
8956
 
8957
  def write(self, oprot):
8958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8960
      return
8961
    oprot.writeStructBegin('deleteTag_result')
8962
    if self.success is not None:
8963
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8964
      oprot.writeBool(self.success)
8965
      oprot.writeFieldEnd()
8966
    oprot.writeFieldStop()
8967
    oprot.writeStructEnd()
8968
 
8969
  def validate(self):
8970
    return
8971
 
8972
 
8973
  def __repr__(self):
8974
    L = ['%s=%r' % (key, value)
8975
      for key, value in self.__dict__.iteritems()]
8976
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8977
 
8978
  def __eq__(self, other):
8979
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8980
 
8981
  def __ne__(self, other):
8982
    return not (self == other)
8983
 
8984
class getAllTags_args:
8985
 
8986
  thrift_spec = (
8987
  )
8988
 
8989
  def read(self, iprot):
8990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8992
      return
8993
    iprot.readStructBegin()
8994
    while True:
8995
      (fname, ftype, fid) = iprot.readFieldBegin()
8996
      if ftype == TType.STOP:
8997
        break
8998
      else:
8999
        iprot.skip(ftype)
9000
      iprot.readFieldEnd()
9001
    iprot.readStructEnd()
9002
 
9003
  def write(self, oprot):
9004
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9005
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9006
      return
9007
    oprot.writeStructBegin('getAllTags_args')
9008
    oprot.writeFieldStop()
9009
    oprot.writeStructEnd()
9010
 
9011
  def validate(self):
9012
    return
9013
 
9014
 
9015
  def __repr__(self):
9016
    L = ['%s=%r' % (key, value)
9017
      for key, value in self.__dict__.iteritems()]
9018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9019
 
9020
  def __eq__(self, other):
9021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9022
 
9023
  def __ne__(self, other):
9024
    return not (self == other)
9025
 
9026
class getAllTags_result:
9027
  """
9028
  Attributes:
9029
   - success
9030
  """
9031
 
9032
  thrift_spec = (
9033
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
9034
  )
9035
 
9036
  def __init__(self, success=None,):
9037
    self.success = success
9038
 
9039
  def read(self, iprot):
9040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9042
      return
9043
    iprot.readStructBegin()
9044
    while True:
9045
      (fname, ftype, fid) = iprot.readFieldBegin()
9046
      if ftype == TType.STOP:
9047
        break
9048
      if fid == 0:
9049
        if ftype == TType.LIST:
9050
          self.success = []
9051
          (_etype138, _size135) = iprot.readListBegin()
9052
          for _i139 in xrange(_size135):
9053
            _elem140 = iprot.readString();
9054
            self.success.append(_elem140)
9055
          iprot.readListEnd()
9056
        else:
9057
          iprot.skip(ftype)
9058
      else:
9059
        iprot.skip(ftype)
9060
      iprot.readFieldEnd()
9061
    iprot.readStructEnd()
9062
 
9063
  def write(self, oprot):
9064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9066
      return
9067
    oprot.writeStructBegin('getAllTags_result')
9068
    if self.success is not None:
9069
      oprot.writeFieldBegin('success', TType.LIST, 0)
9070
      oprot.writeListBegin(TType.STRING, len(self.success))
9071
      for iter141 in self.success:
9072
        oprot.writeString(iter141)
9073
      oprot.writeListEnd()
9074
      oprot.writeFieldEnd()
9075
    oprot.writeFieldStop()
9076
    oprot.writeStructEnd()
9077
 
9078
  def validate(self):
9079
    return
9080
 
9081
 
9082
  def __repr__(self):
9083
    L = ['%s=%r' % (key, value)
9084
      for key, value in self.__dict__.iteritems()]
9085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9086
 
9087
  def __eq__(self, other):
9088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9089
 
9090
  def __ne__(self, other):
9091
    return not (self == other)
9092
 
9093
class getAllEntitiesByTagName_args:
9094
  """
9095
  Attributes:
9096
   - displayName
9097
  """
9098
 
9099
  thrift_spec = (
9100
    None, # 0
9101
    (1, TType.STRING, 'displayName', None, None, ), # 1
9102
  )
9103
 
9104
  def __init__(self, displayName=None,):
9105
    self.displayName = displayName
9106
 
9107
  def read(self, iprot):
9108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9110
      return
9111
    iprot.readStructBegin()
9112
    while True:
9113
      (fname, ftype, fid) = iprot.readFieldBegin()
9114
      if ftype == TType.STOP:
9115
        break
9116
      if fid == 1:
9117
        if ftype == TType.STRING:
9118
          self.displayName = iprot.readString();
9119
        else:
9120
          iprot.skip(ftype)
9121
      else:
9122
        iprot.skip(ftype)
9123
      iprot.readFieldEnd()
9124
    iprot.readStructEnd()
9125
 
9126
  def write(self, oprot):
9127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9129
      return
9130
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9131
    if self.displayName is not None:
9132
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9133
      oprot.writeString(self.displayName)
9134
      oprot.writeFieldEnd()
9135
    oprot.writeFieldStop()
9136
    oprot.writeStructEnd()
9137
 
9138
  def validate(self):
9139
    return
9140
 
9141
 
9142
  def __repr__(self):
9143
    L = ['%s=%r' % (key, value)
9144
      for key, value in self.__dict__.iteritems()]
9145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9146
 
9147
  def __eq__(self, other):
9148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9149
 
9150
  def __ne__(self, other):
9151
    return not (self == other)
9152
 
9153
class getAllEntitiesByTagName_result:
9154
  """
9155
  Attributes:
9156
   - success
9157
  """
9158
 
9159
  thrift_spec = (
9160
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9161
  )
9162
 
9163
  def __init__(self, success=None,):
9164
    self.success = success
9165
 
9166
  def read(self, iprot):
9167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9169
      return
9170
    iprot.readStructBegin()
9171
    while True:
9172
      (fname, ftype, fid) = iprot.readFieldBegin()
9173
      if ftype == TType.STOP:
9174
        break
9175
      if fid == 0:
9176
        if ftype == TType.LIST:
9177
          self.success = []
9178
          (_etype145, _size142) = iprot.readListBegin()
9179
          for _i146 in xrange(_size142):
9180
            _elem147 = iprot.readI64();
9181
            self.success.append(_elem147)
9182
          iprot.readListEnd()
9183
        else:
9184
          iprot.skip(ftype)
9185
      else:
9186
        iprot.skip(ftype)
9187
      iprot.readFieldEnd()
9188
    iprot.readStructEnd()
9189
 
9190
  def write(self, oprot):
9191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9193
      return
9194
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9195
    if self.success is not None:
9196
      oprot.writeFieldBegin('success', TType.LIST, 0)
9197
      oprot.writeListBegin(TType.I64, len(self.success))
9198
      for iter148 in self.success:
9199
        oprot.writeI64(iter148)
9200
      oprot.writeListEnd()
9201
      oprot.writeFieldEnd()
9202
    oprot.writeFieldStop()
9203
    oprot.writeStructEnd()
9204
 
9205
  def validate(self):
9206
    return
9207
 
9208
 
9209
  def __repr__(self):
9210
    L = ['%s=%r' % (key, value)
9211
      for key, value in self.__dict__.iteritems()]
9212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9213
 
9214
  def __eq__(self, other):
9215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9216
 
9217
  def __ne__(self, other):
9218
    return not (self == other)
9219
 
5944 mandeep.dh 9220
class deleteSimilarItem_args:
9221
  """
9222
  Attributes:
9223
   - itemId
9224
   - catalogItemId
9225
  """
9226
 
9227
  thrift_spec = (
9228
    None, # 0
9229
    (1, TType.I64, 'itemId', None, None, ), # 1
9230
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
9231
  )
9232
 
9233
  def __init__(self, itemId=None, catalogItemId=None,):
9234
    self.itemId = itemId
9235
    self.catalogItemId = catalogItemId
9236
 
9237
  def read(self, iprot):
9238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9240
      return
9241
    iprot.readStructBegin()
9242
    while True:
9243
      (fname, ftype, fid) = iprot.readFieldBegin()
9244
      if ftype == TType.STOP:
9245
        break
9246
      if fid == 1:
9247
        if ftype == TType.I64:
9248
          self.itemId = iprot.readI64();
9249
        else:
9250
          iprot.skip(ftype)
9251
      elif fid == 2:
9252
        if ftype == TType.I64:
9253
          self.catalogItemId = iprot.readI64();
9254
        else:
9255
          iprot.skip(ftype)
9256
      else:
9257
        iprot.skip(ftype)
9258
      iprot.readFieldEnd()
9259
    iprot.readStructEnd()
9260
 
9261
  def write(self, oprot):
9262
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9263
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9264
      return
9265
    oprot.writeStructBegin('deleteSimilarItem_args')
9266
    if self.itemId is not None:
9267
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9268
      oprot.writeI64(self.itemId)
9269
      oprot.writeFieldEnd()
9270
    if self.catalogItemId is not None:
9271
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
9272
      oprot.writeI64(self.catalogItemId)
9273
      oprot.writeFieldEnd()
9274
    oprot.writeFieldStop()
9275
    oprot.writeStructEnd()
9276
 
9277
  def validate(self):
9278
    return
9279
 
9280
 
9281
  def __repr__(self):
9282
    L = ['%s=%r' % (key, value)
9283
      for key, value in self.__dict__.iteritems()]
9284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9285
 
9286
  def __eq__(self, other):
9287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9288
 
9289
  def __ne__(self, other):
9290
    return not (self == other)
9291
 
9292
class deleteSimilarItem_result:
9293
  """
9294
  Attributes:
9295
   - success
9296
   - cex
9297
  """
9298
 
9299
  thrift_spec = (
9300
    (0, TType.BOOL, 'success', None, None, ), # 0
9301
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9302
  )
9303
 
9304
  def __init__(self, success=None, cex=None,):
9305
    self.success = success
9306
    self.cex = cex
9307
 
9308
  def read(self, iprot):
9309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9311
      return
9312
    iprot.readStructBegin()
9313
    while True:
9314
      (fname, ftype, fid) = iprot.readFieldBegin()
9315
      if ftype == TType.STOP:
9316
        break
9317
      if fid == 0:
9318
        if ftype == TType.BOOL:
9319
          self.success = iprot.readBool();
9320
        else:
9321
          iprot.skip(ftype)
9322
      elif fid == 1:
9323
        if ftype == TType.STRUCT:
9324
          self.cex = CatalogServiceException()
9325
          self.cex.read(iprot)
9326
        else:
9327
          iprot.skip(ftype)
9328
      else:
9329
        iprot.skip(ftype)
9330
      iprot.readFieldEnd()
9331
    iprot.readStructEnd()
9332
 
9333
  def write(self, oprot):
9334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9336
      return
9337
    oprot.writeStructBegin('deleteSimilarItem_result')
9338
    if self.success is not None:
9339
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9340
      oprot.writeBool(self.success)
9341
      oprot.writeFieldEnd()
9342
    if self.cex is not None:
9343
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9344
      self.cex.write(oprot)
9345
      oprot.writeFieldEnd()
9346
    oprot.writeFieldStop()
9347
    oprot.writeStructEnd()
9348
 
9349
  def validate(self):
9350
    return
9351
 
9352
 
9353
  def __repr__(self):
9354
    L = ['%s=%r' % (key, value)
9355
      for key, value in self.__dict__.iteritems()]
9356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9357
 
9358
  def __eq__(self, other):
9359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9360
 
9361
  def __ne__(self, other):
9362
    return not (self == other)
9363
 
9364
class checkSimilarItem_args:
9365
  """
9366
  Attributes:
9367
   - brand
9368
   - modelNumber
9369
   - modelName
9370
   - color
9371
  """
9372
 
9373
  thrift_spec = (
9374
    None, # 0
9375
    (1, TType.STRING, 'brand', None, None, ), # 1
9376
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
9377
    (3, TType.STRING, 'modelName', None, None, ), # 3
9378
    (4, TType.STRING, 'color', None, None, ), # 4
9379
  )
9380
 
9381
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
9382
    self.brand = brand
9383
    self.modelNumber = modelNumber
9384
    self.modelName = modelName
9385
    self.color = color
9386
 
9387
  def read(self, iprot):
9388
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9389
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9390
      return
9391
    iprot.readStructBegin()
9392
    while True:
9393
      (fname, ftype, fid) = iprot.readFieldBegin()
9394
      if ftype == TType.STOP:
9395
        break
9396
      if fid == 1:
9397
        if ftype == TType.STRING:
9398
          self.brand = iprot.readString();
9399
        else:
9400
          iprot.skip(ftype)
9401
      elif fid == 2:
9402
        if ftype == TType.STRING:
9403
          self.modelNumber = iprot.readString();
9404
        else:
9405
          iprot.skip(ftype)
9406
      elif fid == 3:
9407
        if ftype == TType.STRING:
9408
          self.modelName = iprot.readString();
9409
        else:
9410
          iprot.skip(ftype)
9411
      elif fid == 4:
9412
        if ftype == TType.STRING:
9413
          self.color = iprot.readString();
9414
        else:
9415
          iprot.skip(ftype)
9416
      else:
9417
        iprot.skip(ftype)
9418
      iprot.readFieldEnd()
9419
    iprot.readStructEnd()
9420
 
9421
  def write(self, oprot):
9422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9424
      return
9425
    oprot.writeStructBegin('checkSimilarItem_args')
9426
    if self.brand is not None:
9427
      oprot.writeFieldBegin('brand', TType.STRING, 1)
9428
      oprot.writeString(self.brand)
9429
      oprot.writeFieldEnd()
9430
    if self.modelNumber is not None:
9431
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
9432
      oprot.writeString(self.modelNumber)
9433
      oprot.writeFieldEnd()
9434
    if self.modelName is not None:
9435
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
9436
      oprot.writeString(self.modelName)
9437
      oprot.writeFieldEnd()
9438
    if self.color is not None:
9439
      oprot.writeFieldBegin('color', TType.STRING, 4)
9440
      oprot.writeString(self.color)
9441
      oprot.writeFieldEnd()
9442
    oprot.writeFieldStop()
9443
    oprot.writeStructEnd()
9444
 
9445
  def validate(self):
9446
    return
9447
 
9448
 
9449
  def __repr__(self):
9450
    L = ['%s=%r' % (key, value)
9451
      for key, value in self.__dict__.iteritems()]
9452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9453
 
9454
  def __eq__(self, other):
9455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9456
 
9457
  def __ne__(self, other):
9458
    return not (self == other)
9459
 
9460
class checkSimilarItem_result:
9461
  """
9462
  Attributes:
9463
   - success
9464
  """
9465
 
9466
  thrift_spec = (
9467
    (0, TType.I64, 'success', None, None, ), # 0
9468
  )
9469
 
9470
  def __init__(self, success=None,):
9471
    self.success = success
9472
 
9473
  def read(self, iprot):
9474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9476
      return
9477
    iprot.readStructBegin()
9478
    while True:
9479
      (fname, ftype, fid) = iprot.readFieldBegin()
9480
      if ftype == TType.STOP:
9481
        break
9482
      if fid == 0:
9483
        if ftype == TType.I64:
9484
          self.success = iprot.readI64();
9485
        else:
9486
          iprot.skip(ftype)
9487
      else:
9488
        iprot.skip(ftype)
9489
      iprot.readFieldEnd()
9490
    iprot.readStructEnd()
9491
 
9492
  def write(self, oprot):
9493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9495
      return
9496
    oprot.writeStructBegin('checkSimilarItem_result')
9497
    if self.success is not None:
9498
      oprot.writeFieldBegin('success', TType.I64, 0)
9499
      oprot.writeI64(self.success)
9500
      oprot.writeFieldEnd()
9501
    oprot.writeFieldStop()
9502
    oprot.writeStructEnd()
9503
 
9504
  def validate(self):
9505
    return
9506
 
9507
 
9508
  def __repr__(self):
9509
    L = ['%s=%r' % (key, value)
9510
      for key, value in self.__dict__.iteritems()]
9511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9512
 
9513
  def __eq__(self, other):
9514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9515
 
9516
  def __ne__(self, other):
9517
    return not (self == other)
9518
 
9519
class validateRiskyStatus_args:
9520
  """
9521
  Attributes:
9522
   - itemId
9523
  """
9524
 
9525
  thrift_spec = (
9526
    None, # 0
9527
    (1, TType.I64, 'itemId', None, None, ), # 1
9528
  )
9529
 
9530
  def __init__(self, itemId=None,):
9531
    self.itemId = itemId
9532
 
9533
  def read(self, iprot):
9534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9536
      return
9537
    iprot.readStructBegin()
9538
    while True:
9539
      (fname, ftype, fid) = iprot.readFieldBegin()
9540
      if ftype == TType.STOP:
9541
        break
9542
      if fid == 1:
9543
        if ftype == TType.I64:
9544
          self.itemId = iprot.readI64();
9545
        else:
9546
          iprot.skip(ftype)
9547
      else:
9548
        iprot.skip(ftype)
9549
      iprot.readFieldEnd()
9550
    iprot.readStructEnd()
9551
 
9552
  def write(self, oprot):
9553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9555
      return
9556
    oprot.writeStructBegin('validateRiskyStatus_args')
9557
    if self.itemId is not None:
9558
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9559
      oprot.writeI64(self.itemId)
9560
      oprot.writeFieldEnd()
9561
    oprot.writeFieldStop()
9562
    oprot.writeStructEnd()
9563
 
9564
  def validate(self):
9565
    return
9566
 
9567
 
9568
  def __repr__(self):
9569
    L = ['%s=%r' % (key, value)
9570
      for key, value in self.__dict__.iteritems()]
9571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9572
 
9573
  def __eq__(self, other):
9574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9575
 
9576
  def __ne__(self, other):
9577
    return not (self == other)
9578
 
9579
class validateRiskyStatus_result:
9580
 
9581
  thrift_spec = (
9582
  )
9583
 
9584
  def read(self, iprot):
9585
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9586
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9587
      return
9588
    iprot.readStructBegin()
9589
    while True:
9590
      (fname, ftype, fid) = iprot.readFieldBegin()
9591
      if ftype == TType.STOP:
9592
        break
9593
      else:
9594
        iprot.skip(ftype)
9595
      iprot.readFieldEnd()
9596
    iprot.readStructEnd()
9597
 
9598
  def write(self, oprot):
9599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9601
      return
9602
    oprot.writeStructBegin('validateRiskyStatus_result')
9603
    oprot.writeFieldStop()
9604
    oprot.writeStructEnd()
9605
 
9606
  def validate(self):
9607
    return
9608
 
9609
 
9610
  def __repr__(self):
9611
    L = ['%s=%r' % (key, value)
9612
      for key, value in self.__dict__.iteritems()]
9613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9614
 
9615
  def __eq__(self, other):
9616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9617
 
9618
  def __ne__(self, other):
9619
    return not (self == other)
9620
 
9621
class changeItemRiskyFlag_args:
9622
  """
9623
  Attributes:
9624
   - itemId
9625
   - risky
9626
  """
9627
 
9628
  thrift_spec = (
9629
    None, # 0
9630
    (1, TType.I64, 'itemId', None, None, ), # 1
9631
    (2, TType.BOOL, 'risky', None, None, ), # 2
9632
  )
9633
 
9634
  def __init__(self, itemId=None, risky=None,):
9635
    self.itemId = itemId
9636
    self.risky = risky
9637
 
9638
  def read(self, iprot):
9639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9641
      return
9642
    iprot.readStructBegin()
9643
    while True:
9644
      (fname, ftype, fid) = iprot.readFieldBegin()
9645
      if ftype == TType.STOP:
9646
        break
9647
      if fid == 1:
9648
        if ftype == TType.I64:
9649
          self.itemId = iprot.readI64();
9650
        else:
9651
          iprot.skip(ftype)
9652
      elif fid == 2:
9653
        if ftype == TType.BOOL:
9654
          self.risky = iprot.readBool();
9655
        else:
9656
          iprot.skip(ftype)
9657
      else:
9658
        iprot.skip(ftype)
9659
      iprot.readFieldEnd()
9660
    iprot.readStructEnd()
9661
 
9662
  def write(self, oprot):
9663
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9664
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9665
      return
9666
    oprot.writeStructBegin('changeItemRiskyFlag_args')
9667
    if self.itemId is not None:
9668
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9669
      oprot.writeI64(self.itemId)
9670
      oprot.writeFieldEnd()
9671
    if self.risky is not None:
9672
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
9673
      oprot.writeBool(self.risky)
9674
      oprot.writeFieldEnd()
9675
    oprot.writeFieldStop()
9676
    oprot.writeStructEnd()
9677
 
9678
  def validate(self):
9679
    return
9680
 
9681
 
9682
  def __repr__(self):
9683
    L = ['%s=%r' % (key, value)
9684
      for key, value in self.__dict__.iteritems()]
9685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9686
 
9687
  def __eq__(self, other):
9688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9689
 
9690
  def __ne__(self, other):
9691
    return not (self == other)
9692
 
9693
class changeItemRiskyFlag_result:
9694
 
9695
  thrift_spec = (
9696
  )
9697
 
9698
  def read(self, iprot):
9699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9701
      return
9702
    iprot.readStructBegin()
9703
    while True:
9704
      (fname, ftype, fid) = iprot.readFieldBegin()
9705
      if ftype == TType.STOP:
9706
        break
9707
      else:
9708
        iprot.skip(ftype)
9709
      iprot.readFieldEnd()
9710
    iprot.readStructEnd()
9711
 
9712
  def write(self, oprot):
9713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9715
      return
9716
    oprot.writeStructBegin('changeItemRiskyFlag_result')
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 getItemsByRiskyFlag_args:
9736
 
9737
  thrift_spec = (
9738
  )
9739
 
9740
  def read(self, iprot):
9741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9743
      return
9744
    iprot.readStructBegin()
9745
    while True:
9746
      (fname, ftype, fid) = iprot.readFieldBegin()
9747
      if ftype == TType.STOP:
9748
        break
9749
      else:
9750
        iprot.skip(ftype)
9751
      iprot.readFieldEnd()
9752
    iprot.readStructEnd()
9753
 
9754
  def write(self, oprot):
9755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9757
      return
9758
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
9759
    oprot.writeFieldStop()
9760
    oprot.writeStructEnd()
9761
 
9762
  def validate(self):
9763
    return
9764
 
9765
 
9766
  def __repr__(self):
9767
    L = ['%s=%r' % (key, value)
9768
      for key, value in self.__dict__.iteritems()]
9769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9770
 
9771
  def __eq__(self, other):
9772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9773
 
9774
  def __ne__(self, other):
9775
    return not (self == other)
9776
 
9777
class getItemsByRiskyFlag_result:
9778
  """
9779
  Attributes:
9780
   - success
9781
  """
9782
 
9783
  thrift_spec = (
9784
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9785
  )
9786
 
9787
  def __init__(self, success=None,):
9788
    self.success = success
9789
 
9790
  def read(self, iprot):
9791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9793
      return
9794
    iprot.readStructBegin()
9795
    while True:
9796
      (fname, ftype, fid) = iprot.readFieldBegin()
9797
      if ftype == TType.STOP:
9798
        break
9799
      if fid == 0:
9800
        if ftype == TType.LIST:
9801
          self.success = []
6512 kshitij.so 9802
          (_etype152, _size149) = iprot.readListBegin()
9803
          for _i153 in xrange(_size149):
9804
            _elem154 = Item()
9805
            _elem154.read(iprot)
9806
            self.success.append(_elem154)
5944 mandeep.dh 9807
          iprot.readListEnd()
9808
        else:
9809
          iprot.skip(ftype)
9810
      else:
9811
        iprot.skip(ftype)
9812
      iprot.readFieldEnd()
9813
    iprot.readStructEnd()
9814
 
9815
  def write(self, oprot):
9816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9818
      return
9819
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
9820
    if self.success is not None:
9821
      oprot.writeFieldBegin('success', TType.LIST, 0)
9822
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 9823
      for iter155 in self.success:
9824
        iter155.write(oprot)
5944 mandeep.dh 9825
      oprot.writeListEnd()
9826
      oprot.writeFieldEnd()
9827
    oprot.writeFieldStop()
9828
    oprot.writeStructEnd()
9829
 
9830
  def validate(self):
9831
    return
9832
 
9833
 
9834
  def __repr__(self):
9835
    L = ['%s=%r' % (key, value)
9836
      for key, value in self.__dict__.iteritems()]
9837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9838
 
9839
  def __eq__(self, other):
9840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9841
 
9842
  def __ne__(self, other):
9843
    return not (self == other)
9844
 
9845
class getItemsForMasterSheet_args:
9846
  """
9847
  Attributes:
9848
   - category
9849
   - brand
9850
  """
9851
 
9852
  thrift_spec = (
9853
    None, # 0
9854
    (1, TType.STRING, 'category', None, None, ), # 1
9855
    (2, TType.STRING, 'brand', None, None, ), # 2
9856
  )
9857
 
9858
  def __init__(self, category=None, brand=None,):
9859
    self.category = category
9860
    self.brand = brand
9861
 
9862
  def read(self, iprot):
9863
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9864
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9865
      return
9866
    iprot.readStructBegin()
9867
    while True:
9868
      (fname, ftype, fid) = iprot.readFieldBegin()
9869
      if ftype == TType.STOP:
9870
        break
9871
      if fid == 1:
9872
        if ftype == TType.STRING:
9873
          self.category = iprot.readString();
9874
        else:
9875
          iprot.skip(ftype)
9876
      elif fid == 2:
9877
        if ftype == TType.STRING:
9878
          self.brand = iprot.readString();
9879
        else:
9880
          iprot.skip(ftype)
9881
      else:
9882
        iprot.skip(ftype)
9883
      iprot.readFieldEnd()
9884
    iprot.readStructEnd()
9885
 
9886
  def write(self, oprot):
9887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9889
      return
9890
    oprot.writeStructBegin('getItemsForMasterSheet_args')
9891
    if self.category is not None:
9892
      oprot.writeFieldBegin('category', TType.STRING, 1)
9893
      oprot.writeString(self.category)
9894
      oprot.writeFieldEnd()
9895
    if self.brand is not None:
9896
      oprot.writeFieldBegin('brand', TType.STRING, 2)
9897
      oprot.writeString(self.brand)
9898
      oprot.writeFieldEnd()
9899
    oprot.writeFieldStop()
9900
    oprot.writeStructEnd()
9901
 
9902
  def validate(self):
9903
    return
9904
 
9905
 
9906
  def __repr__(self):
9907
    L = ['%s=%r' % (key, value)
9908
      for key, value in self.__dict__.iteritems()]
9909
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9910
 
9911
  def __eq__(self, other):
9912
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9913
 
9914
  def __ne__(self, other):
9915
    return not (self == other)
9916
 
9917
class getItemsForMasterSheet_result:
9918
  """
9919
  Attributes:
9920
   - success
9921
  """
9922
 
9923
  thrift_spec = (
9924
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9925
  )
9926
 
9927
  def __init__(self, success=None,):
9928
    self.success = success
9929
 
9930
  def read(self, iprot):
9931
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9932
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9933
      return
9934
    iprot.readStructBegin()
9935
    while True:
9936
      (fname, ftype, fid) = iprot.readFieldBegin()
9937
      if ftype == TType.STOP:
9938
        break
9939
      if fid == 0:
9940
        if ftype == TType.LIST:
9941
          self.success = []
6512 kshitij.so 9942
          (_etype159, _size156) = iprot.readListBegin()
9943
          for _i160 in xrange(_size156):
9944
            _elem161 = Item()
9945
            _elem161.read(iprot)
9946
            self.success.append(_elem161)
5944 mandeep.dh 9947
          iprot.readListEnd()
9948
        else:
9949
          iprot.skip(ftype)
9950
      else:
9951
        iprot.skip(ftype)
9952
      iprot.readFieldEnd()
9953
    iprot.readStructEnd()
9954
 
9955
  def write(self, oprot):
9956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9958
      return
9959
    oprot.writeStructBegin('getItemsForMasterSheet_result')
9960
    if self.success is not None:
9961
      oprot.writeFieldBegin('success', TType.LIST, 0)
9962
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 9963
      for iter162 in self.success:
9964
        iter162.write(oprot)
5944 mandeep.dh 9965
      oprot.writeListEnd()
9966
      oprot.writeFieldEnd()
9967
    oprot.writeFieldStop()
9968
    oprot.writeStructEnd()
9969
 
9970
  def validate(self):
9971
    return
9972
 
9973
 
9974
  def __repr__(self):
9975
    L = ['%s=%r' % (key, value)
9976
      for key, value in self.__dict__.iteritems()]
9977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9978
 
9979
  def __eq__(self, other):
9980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9981
 
9982
  def __ne__(self, other):
9983
    return not (self == other)
9984
 
9985
class getSimilarItemsCatalogIds_args:
9986
  """
9987
  Attributes:
9988
   - beginIndex
9989
   - totalItems
9990
   - itemId
9991
  """
9992
 
9993
  thrift_spec = (
9994
    None, # 0
9995
    (1, TType.I64, 'beginIndex', None, None, ), # 1
9996
    (2, TType.I64, 'totalItems', None, None, ), # 2
9997
    (3, TType.I64, 'itemId', None, None, ), # 3
9998
  )
9999
 
10000
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
10001
    self.beginIndex = beginIndex
10002
    self.totalItems = totalItems
10003
    self.itemId = itemId
10004
 
10005
  def read(self, iprot):
10006
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10007
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10008
      return
10009
    iprot.readStructBegin()
10010
    while True:
10011
      (fname, ftype, fid) = iprot.readFieldBegin()
10012
      if ftype == TType.STOP:
10013
        break
10014
      if fid == 1:
10015
        if ftype == TType.I64:
10016
          self.beginIndex = iprot.readI64();
10017
        else:
10018
          iprot.skip(ftype)
10019
      elif fid == 2:
10020
        if ftype == TType.I64:
10021
          self.totalItems = iprot.readI64();
10022
        else:
10023
          iprot.skip(ftype)
10024
      elif fid == 3:
10025
        if ftype == TType.I64:
10026
          self.itemId = iprot.readI64();
10027
        else:
10028
          iprot.skip(ftype)
10029
      else:
10030
        iprot.skip(ftype)
10031
      iprot.readFieldEnd()
10032
    iprot.readStructEnd()
10033
 
10034
  def write(self, oprot):
10035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10037
      return
10038
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
10039
    if self.beginIndex is not None:
10040
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10041
      oprot.writeI64(self.beginIndex)
10042
      oprot.writeFieldEnd()
10043
    if self.totalItems is not None:
10044
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10045
      oprot.writeI64(self.totalItems)
10046
      oprot.writeFieldEnd()
10047
    if self.itemId is not None:
10048
      oprot.writeFieldBegin('itemId', TType.I64, 3)
10049
      oprot.writeI64(self.itemId)
10050
      oprot.writeFieldEnd()
10051
    oprot.writeFieldStop()
10052
    oprot.writeStructEnd()
10053
 
10054
  def validate(self):
10055
    return
10056
 
10057
 
10058
  def __repr__(self):
10059
    L = ['%s=%r' % (key, value)
10060
      for key, value in self.__dict__.iteritems()]
10061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10062
 
10063
  def __eq__(self, other):
10064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10065
 
10066
  def __ne__(self, other):
10067
    return not (self == other)
10068
 
10069
class getSimilarItemsCatalogIds_result:
10070
  """
10071
  Attributes:
10072
   - success
10073
  """
10074
 
10075
  thrift_spec = (
10076
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10077
  )
10078
 
10079
  def __init__(self, success=None,):
10080
    self.success = success
10081
 
10082
  def read(self, iprot):
10083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10085
      return
10086
    iprot.readStructBegin()
10087
    while True:
10088
      (fname, ftype, fid) = iprot.readFieldBegin()
10089
      if ftype == TType.STOP:
10090
        break
10091
      if fid == 0:
10092
        if ftype == TType.LIST:
10093
          self.success = []
6512 kshitij.so 10094
          (_etype166, _size163) = iprot.readListBegin()
10095
          for _i167 in xrange(_size163):
10096
            _elem168 = iprot.readI64();
10097
            self.success.append(_elem168)
5944 mandeep.dh 10098
          iprot.readListEnd()
10099
        else:
10100
          iprot.skip(ftype)
10101
      else:
10102
        iprot.skip(ftype)
10103
      iprot.readFieldEnd()
10104
    iprot.readStructEnd()
10105
 
10106
  def write(self, oprot):
10107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10109
      return
10110
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
10111
    if self.success is not None:
10112
      oprot.writeFieldBegin('success', TType.LIST, 0)
10113
      oprot.writeListBegin(TType.I64, len(self.success))
6512 kshitij.so 10114
      for iter169 in self.success:
10115
        oprot.writeI64(iter169)
5944 mandeep.dh 10116
      oprot.writeListEnd()
10117
      oprot.writeFieldEnd()
10118
    oprot.writeFieldStop()
10119
    oprot.writeStructEnd()
10120
 
10121
  def validate(self):
10122
    return
10123
 
10124
 
10125
  def __repr__(self):
10126
    L = ['%s=%r' % (key, value)
10127
      for key, value in self.__dict__.iteritems()]
10128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10129
 
10130
  def __eq__(self, other):
10131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10132
 
10133
  def __ne__(self, other):
10134
    return not (self == other)
10135
 
10136
class addProductNotification_args:
10137
  """
10138
  Attributes:
10139
   - itemId
10140
   - email
10141
  """
10142
 
10143
  thrift_spec = None
10144
  def __init__(self, itemId=None, email=None,):
10145
    self.itemId = itemId
10146
    self.email = email
10147
 
10148
  def read(self, iprot):
10149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10151
      return
10152
    iprot.readStructBegin()
10153
    while True:
10154
      (fname, ftype, fid) = iprot.readFieldBegin()
10155
      if ftype == TType.STOP:
10156
        break
10157
      if fid == -1:
10158
        if ftype == TType.I64:
10159
          self.itemId = iprot.readI64();
10160
        else:
10161
          iprot.skip(ftype)
10162
      elif fid == -2:
10163
        if ftype == TType.STRING:
10164
          self.email = iprot.readString();
10165
        else:
10166
          iprot.skip(ftype)
10167
      else:
10168
        iprot.skip(ftype)
10169
      iprot.readFieldEnd()
10170
    iprot.readStructEnd()
10171
 
10172
  def write(self, oprot):
10173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10175
      return
10176
    oprot.writeStructBegin('addProductNotification_args')
10177
    if self.email is not None:
10178
      oprot.writeFieldBegin('email', TType.STRING, -2)
10179
      oprot.writeString(self.email)
10180
      oprot.writeFieldEnd()
10181
    if self.itemId is not None:
10182
      oprot.writeFieldBegin('itemId', TType.I64, -1)
10183
      oprot.writeI64(self.itemId)
10184
      oprot.writeFieldEnd()
10185
    oprot.writeFieldStop()
10186
    oprot.writeStructEnd()
10187
 
10188
  def validate(self):
10189
    return
10190
 
10191
 
10192
  def __repr__(self):
10193
    L = ['%s=%r' % (key, value)
10194
      for key, value in self.__dict__.iteritems()]
10195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10196
 
10197
  def __eq__(self, other):
10198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10199
 
10200
  def __ne__(self, other):
10201
    return not (self == other)
10202
 
10203
class addProductNotification_result:
10204
  """
10205
  Attributes:
10206
   - success
10207
  """
10208
 
10209
  thrift_spec = (
10210
    (0, TType.BOOL, 'success', None, None, ), # 0
10211
  )
10212
 
10213
  def __init__(self, success=None,):
10214
    self.success = success
10215
 
10216
  def read(self, iprot):
10217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10219
      return
10220
    iprot.readStructBegin()
10221
    while True:
10222
      (fname, ftype, fid) = iprot.readFieldBegin()
10223
      if ftype == TType.STOP:
10224
        break
10225
      if fid == 0:
10226
        if ftype == TType.BOOL:
10227
          self.success = iprot.readBool();
10228
        else:
10229
          iprot.skip(ftype)
10230
      else:
10231
        iprot.skip(ftype)
10232
      iprot.readFieldEnd()
10233
    iprot.readStructEnd()
10234
 
10235
  def write(self, oprot):
10236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10238
      return
10239
    oprot.writeStructBegin('addProductNotification_result')
10240
    if self.success is not None:
10241
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10242
      oprot.writeBool(self.success)
10243
      oprot.writeFieldEnd()
10244
    oprot.writeFieldStop()
10245
    oprot.writeStructEnd()
10246
 
10247
  def validate(self):
10248
    return
10249
 
10250
 
10251
  def __repr__(self):
10252
    L = ['%s=%r' % (key, value)
10253
      for key, value in self.__dict__.iteritems()]
10254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10255
 
10256
  def __eq__(self, other):
10257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10258
 
10259
  def __ne__(self, other):
10260
    return not (self == other)
10261
 
10262
class sendProductNotifications_args:
10263
 
10264
  thrift_spec = (
10265
  )
10266
 
10267
  def read(self, iprot):
10268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10270
      return
10271
    iprot.readStructBegin()
10272
    while True:
10273
      (fname, ftype, fid) = iprot.readFieldBegin()
10274
      if ftype == TType.STOP:
10275
        break
10276
      else:
10277
        iprot.skip(ftype)
10278
      iprot.readFieldEnd()
10279
    iprot.readStructEnd()
10280
 
10281
  def write(self, oprot):
10282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10284
      return
10285
    oprot.writeStructBegin('sendProductNotifications_args')
10286
    oprot.writeFieldStop()
10287
    oprot.writeStructEnd()
10288
 
10289
  def validate(self):
10290
    return
10291
 
10292
 
10293
  def __repr__(self):
10294
    L = ['%s=%r' % (key, value)
10295
      for key, value in self.__dict__.iteritems()]
10296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10297
 
10298
  def __eq__(self, other):
10299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10300
 
10301
  def __ne__(self, other):
10302
    return not (self == other)
10303
 
10304
class sendProductNotifications_result:
10305
  """
10306
  Attributes:
10307
   - success
10308
  """
10309
 
10310
  thrift_spec = (
10311
    (0, TType.BOOL, 'success', None, None, ), # 0
10312
  )
10313
 
10314
  def __init__(self, success=None,):
10315
    self.success = success
10316
 
10317
  def read(self, iprot):
10318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10320
      return
10321
    iprot.readStructBegin()
10322
    while True:
10323
      (fname, ftype, fid) = iprot.readFieldBegin()
10324
      if ftype == TType.STOP:
10325
        break
10326
      if fid == 0:
10327
        if ftype == TType.BOOL:
10328
          self.success = iprot.readBool();
10329
        else:
10330
          iprot.skip(ftype)
10331
      else:
10332
        iprot.skip(ftype)
10333
      iprot.readFieldEnd()
10334
    iprot.readStructEnd()
10335
 
10336
  def write(self, oprot):
10337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10339
      return
10340
    oprot.writeStructBegin('sendProductNotifications_result')
10341
    if self.success is not None:
10342
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10343
      oprot.writeBool(self.success)
10344
      oprot.writeFieldEnd()
10345
    oprot.writeFieldStop()
10346
    oprot.writeStructEnd()
10347
 
10348
  def validate(self):
10349
    return
10350
 
10351
 
10352
  def __repr__(self):
10353
    L = ['%s=%r' % (key, value)
10354
      for key, value in self.__dict__.iteritems()]
10355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10356
 
10357
  def __eq__(self, other):
10358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10359
 
10360
  def __ne__(self, other):
10361
    return not (self == other)
10362
 
10363
class getAllBrandsByCategory_args:
10364
  """
10365
  Attributes:
10366
   - categoryId
10367
  """
10368
 
10369
  thrift_spec = (
10370
    None, # 0
10371
    (1, TType.I64, 'categoryId', None, None, ), # 1
10372
  )
10373
 
10374
  def __init__(self, categoryId=None,):
10375
    self.categoryId = categoryId
10376
 
10377
  def read(self, iprot):
10378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10380
      return
10381
    iprot.readStructBegin()
10382
    while True:
10383
      (fname, ftype, fid) = iprot.readFieldBegin()
10384
      if ftype == TType.STOP:
10385
        break
10386
      if fid == 1:
10387
        if ftype == TType.I64:
10388
          self.categoryId = iprot.readI64();
10389
        else:
10390
          iprot.skip(ftype)
10391
      else:
10392
        iprot.skip(ftype)
10393
      iprot.readFieldEnd()
10394
    iprot.readStructEnd()
10395
 
10396
  def write(self, oprot):
10397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10399
      return
10400
    oprot.writeStructBegin('getAllBrandsByCategory_args')
10401
    if self.categoryId is not None:
10402
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
10403
      oprot.writeI64(self.categoryId)
10404
      oprot.writeFieldEnd()
10405
    oprot.writeFieldStop()
10406
    oprot.writeStructEnd()
10407
 
10408
  def validate(self):
10409
    return
10410
 
10411
 
10412
  def __repr__(self):
10413
    L = ['%s=%r' % (key, value)
10414
      for key, value in self.__dict__.iteritems()]
10415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10416
 
10417
  def __eq__(self, other):
10418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10419
 
10420
  def __ne__(self, other):
10421
    return not (self == other)
10422
 
10423
class getAllBrandsByCategory_result:
10424
  """
10425
  Attributes:
10426
   - success
10427
  """
10428
 
10429
  thrift_spec = (
10430
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10431
  )
10432
 
10433
  def __init__(self, success=None,):
10434
    self.success = success
10435
 
10436
  def read(self, iprot):
10437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10439
      return
10440
    iprot.readStructBegin()
10441
    while True:
10442
      (fname, ftype, fid) = iprot.readFieldBegin()
10443
      if ftype == TType.STOP:
10444
        break
10445
      if fid == 0:
10446
        if ftype == TType.LIST:
10447
          self.success = []
6512 kshitij.so 10448
          (_etype173, _size170) = iprot.readListBegin()
10449
          for _i174 in xrange(_size170):
10450
            _elem175 = iprot.readString();
10451
            self.success.append(_elem175)
5944 mandeep.dh 10452
          iprot.readListEnd()
10453
        else:
10454
          iprot.skip(ftype)
10455
      else:
10456
        iprot.skip(ftype)
10457
      iprot.readFieldEnd()
10458
    iprot.readStructEnd()
10459
 
10460
  def write(self, oprot):
10461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10463
      return
10464
    oprot.writeStructBegin('getAllBrandsByCategory_result')
10465
    if self.success is not None:
10466
      oprot.writeFieldBegin('success', TType.LIST, 0)
10467
      oprot.writeListBegin(TType.STRING, len(self.success))
6512 kshitij.so 10468
      for iter176 in self.success:
10469
        oprot.writeString(iter176)
5944 mandeep.dh 10470
      oprot.writeListEnd()
10471
      oprot.writeFieldEnd()
10472
    oprot.writeFieldStop()
10473
    oprot.writeStructEnd()
10474
 
10475
  def validate(self):
10476
    return
10477
 
10478
 
10479
  def __repr__(self):
10480
    L = ['%s=%r' % (key, value)
10481
      for key, value in self.__dict__.iteritems()]
10482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10483
 
10484
  def __eq__(self, other):
10485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10486
 
10487
  def __ne__(self, other):
10488
    return not (self == other)
10489
 
10490
class getAllBrands_args:
10491
 
10492
  thrift_spec = (
10493
  )
10494
 
10495
  def read(self, iprot):
10496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10498
      return
10499
    iprot.readStructBegin()
10500
    while True:
10501
      (fname, ftype, fid) = iprot.readFieldBegin()
10502
      if ftype == TType.STOP:
10503
        break
10504
      else:
10505
        iprot.skip(ftype)
10506
      iprot.readFieldEnd()
10507
    iprot.readStructEnd()
10508
 
10509
  def write(self, oprot):
10510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10512
      return
10513
    oprot.writeStructBegin('getAllBrands_args')
10514
    oprot.writeFieldStop()
10515
    oprot.writeStructEnd()
10516
 
10517
  def validate(self):
10518
    return
10519
 
10520
 
10521
  def __repr__(self):
10522
    L = ['%s=%r' % (key, value)
10523
      for key, value in self.__dict__.iteritems()]
10524
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10525
 
10526
  def __eq__(self, other):
10527
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10528
 
10529
  def __ne__(self, other):
10530
    return not (self == other)
10531
 
10532
class getAllBrands_result:
10533
  """
10534
  Attributes:
10535
   - success
10536
  """
10537
 
10538
  thrift_spec = (
10539
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10540
  )
10541
 
10542
  def __init__(self, success=None,):
10543
    self.success = success
10544
 
10545
  def read(self, iprot):
10546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10548
      return
10549
    iprot.readStructBegin()
10550
    while True:
10551
      (fname, ftype, fid) = iprot.readFieldBegin()
10552
      if ftype == TType.STOP:
10553
        break
10554
      if fid == 0:
10555
        if ftype == TType.LIST:
10556
          self.success = []
6512 kshitij.so 10557
          (_etype180, _size177) = iprot.readListBegin()
10558
          for _i181 in xrange(_size177):
10559
            _elem182 = iprot.readString();
10560
            self.success.append(_elem182)
5944 mandeep.dh 10561
          iprot.readListEnd()
10562
        else:
10563
          iprot.skip(ftype)
10564
      else:
10565
        iprot.skip(ftype)
10566
      iprot.readFieldEnd()
10567
    iprot.readStructEnd()
10568
 
10569
  def write(self, oprot):
10570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10572
      return
10573
    oprot.writeStructBegin('getAllBrands_result')
10574
    if self.success is not None:
10575
      oprot.writeFieldBegin('success', TType.LIST, 0)
10576
      oprot.writeListBegin(TType.STRING, len(self.success))
6512 kshitij.so 10577
      for iter183 in self.success:
10578
        oprot.writeString(iter183)
5944 mandeep.dh 10579
      oprot.writeListEnd()
10580
      oprot.writeFieldEnd()
10581
    oprot.writeFieldStop()
10582
    oprot.writeStructEnd()
10583
 
10584
  def validate(self):
10585
    return
10586
 
10587
 
10588
  def __repr__(self):
10589
    L = ['%s=%r' % (key, value)
10590
      for key, value in self.__dict__.iteritems()]
10591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10592
 
10593
  def __eq__(self, other):
10594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10595
 
10596
  def __ne__(self, other):
10597
    return not (self == other)
10598
 
10599
class getAllSources_args:
10600
 
10601
  thrift_spec = (
10602
  )
10603
 
10604
  def read(self, iprot):
10605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10607
      return
10608
    iprot.readStructBegin()
10609
    while True:
10610
      (fname, ftype, fid) = iprot.readFieldBegin()
10611
      if ftype == TType.STOP:
10612
        break
10613
      else:
10614
        iprot.skip(ftype)
10615
      iprot.readFieldEnd()
10616
    iprot.readStructEnd()
10617
 
10618
  def write(self, oprot):
10619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10621
      return
10622
    oprot.writeStructBegin('getAllSources_args')
10623
    oprot.writeFieldStop()
10624
    oprot.writeStructEnd()
10625
 
10626
  def validate(self):
10627
    return
10628
 
10629
 
10630
  def __repr__(self):
10631
    L = ['%s=%r' % (key, value)
10632
      for key, value in self.__dict__.iteritems()]
10633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10634
 
10635
  def __eq__(self, other):
10636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10637
 
10638
  def __ne__(self, other):
10639
    return not (self == other)
10640
 
10641
class getAllSources_result:
10642
  """
10643
  Attributes:
10644
   - success
10645
  """
10646
 
10647
  thrift_spec = (
10648
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
10649
  )
10650
 
10651
  def __init__(self, success=None,):
10652
    self.success = success
10653
 
10654
  def read(self, iprot):
10655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10657
      return
10658
    iprot.readStructBegin()
10659
    while True:
10660
      (fname, ftype, fid) = iprot.readFieldBegin()
10661
      if ftype == TType.STOP:
10662
        break
10663
      if fid == 0:
10664
        if ftype == TType.LIST:
10665
          self.success = []
6512 kshitij.so 10666
          (_etype187, _size184) = iprot.readListBegin()
10667
          for _i188 in xrange(_size184):
10668
            _elem189 = Source()
10669
            _elem189.read(iprot)
10670
            self.success.append(_elem189)
5944 mandeep.dh 10671
          iprot.readListEnd()
10672
        else:
10673
          iprot.skip(ftype)
10674
      else:
10675
        iprot.skip(ftype)
10676
      iprot.readFieldEnd()
10677
    iprot.readStructEnd()
10678
 
10679
  def write(self, oprot):
10680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10682
      return
10683
    oprot.writeStructBegin('getAllSources_result')
10684
    if self.success is not None:
10685
      oprot.writeFieldBegin('success', TType.LIST, 0)
10686
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 10687
      for iter190 in self.success:
10688
        iter190.write(oprot)
5944 mandeep.dh 10689
      oprot.writeListEnd()
10690
      oprot.writeFieldEnd()
10691
    oprot.writeFieldStop()
10692
    oprot.writeStructEnd()
10693
 
10694
  def validate(self):
10695
    return
10696
 
10697
 
10698
  def __repr__(self):
10699
    L = ['%s=%r' % (key, value)
10700
      for key, value in self.__dict__.iteritems()]
10701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10702
 
10703
  def __eq__(self, other):
10704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10705
 
10706
  def __ne__(self, other):
10707
    return not (self == other)
10708
 
10709
class getItemPricingBySource_args:
10710
  """
10711
  Attributes:
10712
   - itemId
10713
   - sourceId
10714
  """
10715
 
10716
  thrift_spec = (
10717
    None, # 0
10718
    (1, TType.I64, 'itemId', None, None, ), # 1
10719
    (2, TType.I64, 'sourceId', None, None, ), # 2
10720
  )
10721
 
10722
  def __init__(self, itemId=None, sourceId=None,):
10723
    self.itemId = itemId
10724
    self.sourceId = sourceId
10725
 
10726
  def read(self, iprot):
10727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10729
      return
10730
    iprot.readStructBegin()
10731
    while True:
10732
      (fname, ftype, fid) = iprot.readFieldBegin()
10733
      if ftype == TType.STOP:
10734
        break
10735
      if fid == 1:
10736
        if ftype == TType.I64:
10737
          self.itemId = iprot.readI64();
10738
        else:
10739
          iprot.skip(ftype)
10740
      elif fid == 2:
10741
        if ftype == TType.I64:
10742
          self.sourceId = iprot.readI64();
10743
        else:
10744
          iprot.skip(ftype)
10745
      else:
10746
        iprot.skip(ftype)
10747
      iprot.readFieldEnd()
10748
    iprot.readStructEnd()
10749
 
10750
  def write(self, oprot):
10751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10753
      return
10754
    oprot.writeStructBegin('getItemPricingBySource_args')
10755
    if self.itemId is not None:
10756
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10757
      oprot.writeI64(self.itemId)
10758
      oprot.writeFieldEnd()
10759
    if self.sourceId is not None:
10760
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
10761
      oprot.writeI64(self.sourceId)
10762
      oprot.writeFieldEnd()
10763
    oprot.writeFieldStop()
10764
    oprot.writeStructEnd()
10765
 
10766
  def validate(self):
10767
    return
10768
 
10769
 
10770
  def __repr__(self):
10771
    L = ['%s=%r' % (key, value)
10772
      for key, value in self.__dict__.iteritems()]
10773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10774
 
10775
  def __eq__(self, other):
10776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10777
 
10778
  def __ne__(self, other):
10779
    return not (self == other)
10780
 
10781
class getItemPricingBySource_result:
10782
  """
10783
  Attributes:
10784
   - success
10785
   - cex
10786
  """
10787
 
10788
  thrift_spec = (
10789
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
10790
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10791
  )
10792
 
10793
  def __init__(self, success=None, cex=None,):
10794
    self.success = success
10795
    self.cex = cex
10796
 
10797
  def read(self, iprot):
10798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10800
      return
10801
    iprot.readStructBegin()
10802
    while True:
10803
      (fname, ftype, fid) = iprot.readFieldBegin()
10804
      if ftype == TType.STOP:
10805
        break
10806
      if fid == 0:
10807
        if ftype == TType.STRUCT:
10808
          self.success = SourceItemPricing()
10809
          self.success.read(iprot)
10810
        else:
10811
          iprot.skip(ftype)
10812
      elif fid == 1:
10813
        if ftype == TType.STRUCT:
10814
          self.cex = CatalogServiceException()
10815
          self.cex.read(iprot)
10816
        else:
10817
          iprot.skip(ftype)
10818
      else:
10819
        iprot.skip(ftype)
10820
      iprot.readFieldEnd()
10821
    iprot.readStructEnd()
10822
 
10823
  def write(self, oprot):
10824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10826
      return
10827
    oprot.writeStructBegin('getItemPricingBySource_result')
10828
    if self.success is not None:
10829
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10830
      self.success.write(oprot)
10831
      oprot.writeFieldEnd()
10832
    if self.cex is not None:
10833
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10834
      self.cex.write(oprot)
10835
      oprot.writeFieldEnd()
10836
    oprot.writeFieldStop()
10837
    oprot.writeStructEnd()
10838
 
10839
  def validate(self):
10840
    return
10841
 
10842
 
10843
  def __repr__(self):
10844
    L = ['%s=%r' % (key, value)
10845
      for key, value in self.__dict__.iteritems()]
10846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10847
 
10848
  def __eq__(self, other):
10849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10850
 
10851
  def __ne__(self, other):
10852
    return not (self == other)
10853
 
10854
class addSourceItemPricing_args:
10855
  """
10856
  Attributes:
10857
   - sourceItemPricing
10858
  """
10859
 
10860
  thrift_spec = (
10861
    None, # 0
10862
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
10863
  )
10864
 
10865
  def __init__(self, sourceItemPricing=None,):
10866
    self.sourceItemPricing = sourceItemPricing
10867
 
10868
  def read(self, iprot):
10869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10871
      return
10872
    iprot.readStructBegin()
10873
    while True:
10874
      (fname, ftype, fid) = iprot.readFieldBegin()
10875
      if ftype == TType.STOP:
10876
        break
10877
      if fid == 1:
10878
        if ftype == TType.STRUCT:
10879
          self.sourceItemPricing = SourceItemPricing()
10880
          self.sourceItemPricing.read(iprot)
10881
        else:
10882
          iprot.skip(ftype)
10883
      else:
10884
        iprot.skip(ftype)
10885
      iprot.readFieldEnd()
10886
    iprot.readStructEnd()
10887
 
10888
  def write(self, oprot):
10889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10891
      return
10892
    oprot.writeStructBegin('addSourceItemPricing_args')
10893
    if self.sourceItemPricing is not None:
10894
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
10895
      self.sourceItemPricing.write(oprot)
10896
      oprot.writeFieldEnd()
10897
    oprot.writeFieldStop()
10898
    oprot.writeStructEnd()
10899
 
10900
  def validate(self):
10901
    return
10902
 
10903
 
10904
  def __repr__(self):
10905
    L = ['%s=%r' % (key, value)
10906
      for key, value in self.__dict__.iteritems()]
10907
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10908
 
10909
  def __eq__(self, other):
10910
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10911
 
10912
  def __ne__(self, other):
10913
    return not (self == other)
10914
 
10915
class addSourceItemPricing_result:
10916
  """
10917
  Attributes:
10918
   - cex
10919
  """
10920
 
10921
  thrift_spec = (
10922
    None, # 0
10923
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10924
  )
10925
 
10926
  def __init__(self, cex=None,):
10927
    self.cex = cex
10928
 
10929
  def read(self, iprot):
10930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10932
      return
10933
    iprot.readStructBegin()
10934
    while True:
10935
      (fname, ftype, fid) = iprot.readFieldBegin()
10936
      if ftype == TType.STOP:
10937
        break
10938
      if fid == 1:
10939
        if ftype == TType.STRUCT:
10940
          self.cex = CatalogServiceException()
10941
          self.cex.read(iprot)
10942
        else:
10943
          iprot.skip(ftype)
10944
      else:
10945
        iprot.skip(ftype)
10946
      iprot.readFieldEnd()
10947
    iprot.readStructEnd()
10948
 
10949
  def write(self, oprot):
10950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10952
      return
10953
    oprot.writeStructBegin('addSourceItemPricing_result')
10954
    if self.cex is not None:
10955
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10956
      self.cex.write(oprot)
10957
      oprot.writeFieldEnd()
10958
    oprot.writeFieldStop()
10959
    oprot.writeStructEnd()
10960
 
10961
  def validate(self):
10962
    return
10963
 
10964
 
10965
  def __repr__(self):
10966
    L = ['%s=%r' % (key, value)
10967
      for key, value in self.__dict__.iteritems()]
10968
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10969
 
10970
  def __eq__(self, other):
10971
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10972
 
10973
  def __ne__(self, other):
10974
    return not (self == other)
10975
 
10976
class getAllSourcePricing_args:
10977
  """
10978
  Attributes:
10979
   - itemId
10980
  """
10981
 
10982
  thrift_spec = (
10983
    None, # 0
10984
    (1, TType.I64, 'itemId', None, None, ), # 1
10985
  )
10986
 
10987
  def __init__(self, itemId=None,):
10988
    self.itemId = itemId
10989
 
10990
  def read(self, iprot):
10991
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10992
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10993
      return
10994
    iprot.readStructBegin()
10995
    while True:
10996
      (fname, ftype, fid) = iprot.readFieldBegin()
10997
      if ftype == TType.STOP:
10998
        break
10999
      if fid == 1:
11000
        if ftype == TType.I64:
11001
          self.itemId = iprot.readI64();
11002
        else:
11003
          iprot.skip(ftype)
11004
      else:
11005
        iprot.skip(ftype)
11006
      iprot.readFieldEnd()
11007
    iprot.readStructEnd()
11008
 
11009
  def write(self, oprot):
11010
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11011
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11012
      return
11013
    oprot.writeStructBegin('getAllSourcePricing_args')
11014
    if self.itemId is not None:
11015
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11016
      oprot.writeI64(self.itemId)
11017
      oprot.writeFieldEnd()
11018
    oprot.writeFieldStop()
11019
    oprot.writeStructEnd()
11020
 
11021
  def validate(self):
11022
    return
11023
 
11024
 
11025
  def __repr__(self):
11026
    L = ['%s=%r' % (key, value)
11027
      for key, value in self.__dict__.iteritems()]
11028
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11029
 
11030
  def __eq__(self, other):
11031
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11032
 
11033
  def __ne__(self, other):
11034
    return not (self == other)
11035
 
11036
class getAllSourcePricing_result:
11037
  """
11038
  Attributes:
11039
   - success
11040
   - cex
11041
  """
11042
 
11043
  thrift_spec = (
11044
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
11045
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11046
  )
11047
 
11048
  def __init__(self, success=None, cex=None,):
11049
    self.success = success
11050
    self.cex = cex
11051
 
11052
  def read(self, iprot):
11053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11055
      return
11056
    iprot.readStructBegin()
11057
    while True:
11058
      (fname, ftype, fid) = iprot.readFieldBegin()
11059
      if ftype == TType.STOP:
11060
        break
11061
      if fid == 0:
11062
        if ftype == TType.LIST:
11063
          self.success = []
6512 kshitij.so 11064
          (_etype194, _size191) = iprot.readListBegin()
11065
          for _i195 in xrange(_size191):
11066
            _elem196 = SourceItemPricing()
11067
            _elem196.read(iprot)
11068
            self.success.append(_elem196)
5944 mandeep.dh 11069
          iprot.readListEnd()
11070
        else:
11071
          iprot.skip(ftype)
11072
      elif fid == 1:
11073
        if ftype == TType.STRUCT:
11074
          self.cex = CatalogServiceException()
11075
          self.cex.read(iprot)
11076
        else:
11077
          iprot.skip(ftype)
11078
      else:
11079
        iprot.skip(ftype)
11080
      iprot.readFieldEnd()
11081
    iprot.readStructEnd()
11082
 
11083
  def write(self, oprot):
11084
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11085
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11086
      return
11087
    oprot.writeStructBegin('getAllSourcePricing_result')
11088
    if self.success is not None:
11089
      oprot.writeFieldBegin('success', TType.LIST, 0)
11090
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11091
      for iter197 in self.success:
11092
        iter197.write(oprot)
5944 mandeep.dh 11093
      oprot.writeListEnd()
11094
      oprot.writeFieldEnd()
11095
    if self.cex is not None:
11096
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11097
      self.cex.write(oprot)
11098
      oprot.writeFieldEnd()
11099
    oprot.writeFieldStop()
11100
    oprot.writeStructEnd()
11101
 
11102
  def validate(self):
11103
    return
11104
 
11105
 
11106
  def __repr__(self):
11107
    L = ['%s=%r' % (key, value)
11108
      for key, value in self.__dict__.iteritems()]
11109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11110
 
11111
  def __eq__(self, other):
11112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11113
 
11114
  def __ne__(self, other):
11115
    return not (self == other)
11116
 
11117
class getItemForSource_args:
11118
  """
11119
  Attributes:
11120
   - item_id
11121
   - sourceId
11122
  """
11123
 
11124
  thrift_spec = (
11125
    None, # 0
11126
    (1, TType.I64, 'item_id', None, None, ), # 1
11127
    (2, TType.I64, 'sourceId', None, None, ), # 2
11128
  )
11129
 
11130
  def __init__(self, item_id=None, sourceId=None,):
11131
    self.item_id = item_id
11132
    self.sourceId = sourceId
11133
 
11134
  def read(self, iprot):
11135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11137
      return
11138
    iprot.readStructBegin()
11139
    while True:
11140
      (fname, ftype, fid) = iprot.readFieldBegin()
11141
      if ftype == TType.STOP:
11142
        break
11143
      if fid == 1:
11144
        if ftype == TType.I64:
11145
          self.item_id = iprot.readI64();
11146
        else:
11147
          iprot.skip(ftype)
11148
      elif fid == 2:
11149
        if ftype == TType.I64:
11150
          self.sourceId = iprot.readI64();
11151
        else:
11152
          iprot.skip(ftype)
11153
      else:
11154
        iprot.skip(ftype)
11155
      iprot.readFieldEnd()
11156
    iprot.readStructEnd()
11157
 
11158
  def write(self, oprot):
11159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11161
      return
11162
    oprot.writeStructBegin('getItemForSource_args')
11163
    if self.item_id is not None:
11164
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11165
      oprot.writeI64(self.item_id)
11166
      oprot.writeFieldEnd()
11167
    if self.sourceId is not None:
11168
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11169
      oprot.writeI64(self.sourceId)
11170
      oprot.writeFieldEnd()
11171
    oprot.writeFieldStop()
11172
    oprot.writeStructEnd()
11173
 
11174
  def validate(self):
11175
    return
11176
 
11177
 
11178
  def __repr__(self):
11179
    L = ['%s=%r' % (key, value)
11180
      for key, value in self.__dict__.iteritems()]
11181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11182
 
11183
  def __eq__(self, other):
11184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11185
 
11186
  def __ne__(self, other):
11187
    return not (self == other)
11188
 
11189
class getItemForSource_result:
11190
  """
11191
  Attributes:
11192
   - success
11193
   - cex
11194
  """
11195
 
11196
  thrift_spec = (
11197
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
11198
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11199
  )
11200
 
11201
  def __init__(self, success=None, cex=None,):
11202
    self.success = success
11203
    self.cex = cex
11204
 
11205
  def read(self, iprot):
11206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11208
      return
11209
    iprot.readStructBegin()
11210
    while True:
11211
      (fname, ftype, fid) = iprot.readFieldBegin()
11212
      if ftype == TType.STOP:
11213
        break
11214
      if fid == 0:
11215
        if ftype == TType.STRUCT:
11216
          self.success = Item()
11217
          self.success.read(iprot)
11218
        else:
11219
          iprot.skip(ftype)
11220
      elif fid == 1:
11221
        if ftype == TType.STRUCT:
11222
          self.cex = CatalogServiceException()
11223
          self.cex.read(iprot)
11224
        else:
11225
          iprot.skip(ftype)
11226
      else:
11227
        iprot.skip(ftype)
11228
      iprot.readFieldEnd()
11229
    iprot.readStructEnd()
11230
 
11231
  def write(self, oprot):
11232
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11233
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11234
      return
11235
    oprot.writeStructBegin('getItemForSource_result')
11236
    if self.success is not None:
11237
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11238
      self.success.write(oprot)
11239
      oprot.writeFieldEnd()
11240
    if self.cex is not None:
11241
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11242
      self.cex.write(oprot)
11243
      oprot.writeFieldEnd()
11244
    oprot.writeFieldStop()
11245
    oprot.writeStructEnd()
11246
 
11247
  def validate(self):
11248
    return
11249
 
11250
 
11251
  def __repr__(self):
11252
    L = ['%s=%r' % (key, value)
11253
      for key, value in self.__dict__.iteritems()]
11254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11255
 
11256
  def __eq__(self, other):
11257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11258
 
11259
  def __ne__(self, other):
11260
    return not (self == other)
11261
 
11262
class searchItemsInRange_args:
11263
  """
11264
  Attributes:
11265
   - searchTerms
11266
   - offset
11267
   - limit
11268
  """
11269
 
11270
  thrift_spec = (
11271
    None, # 0
11272
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11273
    (2, TType.I64, 'offset', None, None, ), # 2
11274
    (3, TType.I64, 'limit', None, None, ), # 3
11275
  )
11276
 
11277
  def __init__(self, searchTerms=None, offset=None, limit=None,):
11278
    self.searchTerms = searchTerms
11279
    self.offset = offset
11280
    self.limit = limit
11281
 
11282
  def read(self, iprot):
11283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11285
      return
11286
    iprot.readStructBegin()
11287
    while True:
11288
      (fname, ftype, fid) = iprot.readFieldBegin()
11289
      if ftype == TType.STOP:
11290
        break
11291
      if fid == 1:
11292
        if ftype == TType.LIST:
11293
          self.searchTerms = []
6512 kshitij.so 11294
          (_etype201, _size198) = iprot.readListBegin()
11295
          for _i202 in xrange(_size198):
11296
            _elem203 = iprot.readString();
11297
            self.searchTerms.append(_elem203)
5944 mandeep.dh 11298
          iprot.readListEnd()
11299
        else:
11300
          iprot.skip(ftype)
11301
      elif fid == 2:
11302
        if ftype == TType.I64:
11303
          self.offset = iprot.readI64();
11304
        else:
11305
          iprot.skip(ftype)
11306
      elif fid == 3:
11307
        if ftype == TType.I64:
11308
          self.limit = iprot.readI64();
11309
        else:
11310
          iprot.skip(ftype)
11311
      else:
11312
        iprot.skip(ftype)
11313
      iprot.readFieldEnd()
11314
    iprot.readStructEnd()
11315
 
11316
  def write(self, oprot):
11317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11319
      return
11320
    oprot.writeStructBegin('searchItemsInRange_args')
11321
    if self.searchTerms is not None:
11322
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11323
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6512 kshitij.so 11324
      for iter204 in self.searchTerms:
11325
        oprot.writeString(iter204)
5944 mandeep.dh 11326
      oprot.writeListEnd()
11327
      oprot.writeFieldEnd()
11328
    if self.offset is not None:
11329
      oprot.writeFieldBegin('offset', TType.I64, 2)
11330
      oprot.writeI64(self.offset)
11331
      oprot.writeFieldEnd()
11332
    if self.limit is not None:
11333
      oprot.writeFieldBegin('limit', TType.I64, 3)
11334
      oprot.writeI64(self.limit)
11335
      oprot.writeFieldEnd()
11336
    oprot.writeFieldStop()
11337
    oprot.writeStructEnd()
11338
 
11339
  def validate(self):
11340
    return
11341
 
11342
 
11343
  def __repr__(self):
11344
    L = ['%s=%r' % (key, value)
11345
      for key, value in self.__dict__.iteritems()]
11346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11347
 
11348
  def __eq__(self, other):
11349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11350
 
11351
  def __ne__(self, other):
11352
    return not (self == other)
11353
 
11354
class searchItemsInRange_result:
11355
  """
11356
  Attributes:
11357
   - success
11358
  """
11359
 
11360
  thrift_spec = (
11361
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11362
  )
11363
 
11364
  def __init__(self, success=None,):
11365
    self.success = success
11366
 
11367
  def read(self, iprot):
11368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11370
      return
11371
    iprot.readStructBegin()
11372
    while True:
11373
      (fname, ftype, fid) = iprot.readFieldBegin()
11374
      if ftype == TType.STOP:
11375
        break
11376
      if fid == 0:
11377
        if ftype == TType.LIST:
11378
          self.success = []
6512 kshitij.so 11379
          (_etype208, _size205) = iprot.readListBegin()
11380
          for _i209 in xrange(_size205):
11381
            _elem210 = Item()
11382
            _elem210.read(iprot)
11383
            self.success.append(_elem210)
5944 mandeep.dh 11384
          iprot.readListEnd()
11385
        else:
11386
          iprot.skip(ftype)
11387
      else:
11388
        iprot.skip(ftype)
11389
      iprot.readFieldEnd()
11390
    iprot.readStructEnd()
11391
 
11392
  def write(self, oprot):
11393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11395
      return
11396
    oprot.writeStructBegin('searchItemsInRange_result')
11397
    if self.success is not None:
11398
      oprot.writeFieldBegin('success', TType.LIST, 0)
11399
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11400
      for iter211 in self.success:
11401
        iter211.write(oprot)
5944 mandeep.dh 11402
      oprot.writeListEnd()
11403
      oprot.writeFieldEnd()
11404
    oprot.writeFieldStop()
11405
    oprot.writeStructEnd()
11406
 
11407
  def validate(self):
11408
    return
11409
 
11410
 
11411
  def __repr__(self):
11412
    L = ['%s=%r' % (key, value)
11413
      for key, value in self.__dict__.iteritems()]
11414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11415
 
11416
  def __eq__(self, other):
11417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11418
 
11419
  def __ne__(self, other):
11420
    return not (self == other)
11421
 
11422
class getSearchResultCount_args:
11423
  """
11424
  Attributes:
11425
   - searchTerms
11426
  """
11427
 
11428
  thrift_spec = (
11429
    None, # 0
11430
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11431
  )
11432
 
11433
  def __init__(self, searchTerms=None,):
11434
    self.searchTerms = searchTerms
11435
 
11436
  def read(self, iprot):
11437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11439
      return
11440
    iprot.readStructBegin()
11441
    while True:
11442
      (fname, ftype, fid) = iprot.readFieldBegin()
11443
      if ftype == TType.STOP:
11444
        break
11445
      if fid == 1:
11446
        if ftype == TType.LIST:
11447
          self.searchTerms = []
6512 kshitij.so 11448
          (_etype215, _size212) = iprot.readListBegin()
11449
          for _i216 in xrange(_size212):
11450
            _elem217 = iprot.readString();
11451
            self.searchTerms.append(_elem217)
5944 mandeep.dh 11452
          iprot.readListEnd()
11453
        else:
11454
          iprot.skip(ftype)
11455
      else:
11456
        iprot.skip(ftype)
11457
      iprot.readFieldEnd()
11458
    iprot.readStructEnd()
11459
 
11460
  def write(self, oprot):
11461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11463
      return
11464
    oprot.writeStructBegin('getSearchResultCount_args')
11465
    if self.searchTerms is not None:
11466
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11467
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6512 kshitij.so 11468
      for iter218 in self.searchTerms:
11469
        oprot.writeString(iter218)
5944 mandeep.dh 11470
      oprot.writeListEnd()
11471
      oprot.writeFieldEnd()
11472
    oprot.writeFieldStop()
11473
    oprot.writeStructEnd()
11474
 
11475
  def validate(self):
11476
    return
11477
 
11478
 
11479
  def __repr__(self):
11480
    L = ['%s=%r' % (key, value)
11481
      for key, value in self.__dict__.iteritems()]
11482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11483
 
11484
  def __eq__(self, other):
11485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11486
 
11487
  def __ne__(self, other):
11488
    return not (self == other)
11489
 
11490
class getSearchResultCount_result:
11491
  """
11492
  Attributes:
11493
   - success
11494
  """
11495
 
11496
  thrift_spec = (
11497
    (0, TType.I32, 'success', None, None, ), # 0
11498
  )
11499
 
11500
  def __init__(self, success=None,):
11501
    self.success = success
11502
 
11503
  def read(self, iprot):
11504
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11505
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11506
      return
11507
    iprot.readStructBegin()
11508
    while True:
11509
      (fname, ftype, fid) = iprot.readFieldBegin()
11510
      if ftype == TType.STOP:
11511
        break
11512
      if fid == 0:
11513
        if ftype == TType.I32:
11514
          self.success = iprot.readI32();
11515
        else:
11516
          iprot.skip(ftype)
11517
      else:
11518
        iprot.skip(ftype)
11519
      iprot.readFieldEnd()
11520
    iprot.readStructEnd()
11521
 
11522
  def write(self, oprot):
11523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11525
      return
11526
    oprot.writeStructBegin('getSearchResultCount_result')
11527
    if self.success is not None:
11528
      oprot.writeFieldBegin('success', TType.I32, 0)
11529
      oprot.writeI32(self.success)
11530
      oprot.writeFieldEnd()
11531
    oprot.writeFieldStop()
11532
    oprot.writeStructEnd()
11533
 
11534
  def validate(self):
11535
    return
11536
 
11537
 
11538
  def __repr__(self):
11539
    L = ['%s=%r' % (key, value)
11540
      for key, value in self.__dict__.iteritems()]
11541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11542
 
11543
  def __eq__(self, other):
11544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11545
 
11546
  def __ne__(self, other):
11547
    return not (self == other)
11548
 
11549
class getProductNotifications_args:
11550
  """
11551
  Attributes:
11552
   - startDateTime
11553
  """
11554
 
11555
  thrift_spec = (
11556
    None, # 0
11557
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11558
  )
11559
 
11560
  def __init__(self, startDateTime=None,):
11561
    self.startDateTime = startDateTime
11562
 
11563
  def read(self, iprot):
11564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11566
      return
11567
    iprot.readStructBegin()
11568
    while True:
11569
      (fname, ftype, fid) = iprot.readFieldBegin()
11570
      if ftype == TType.STOP:
11571
        break
11572
      if fid == 1:
11573
        if ftype == TType.I64:
11574
          self.startDateTime = iprot.readI64();
11575
        else:
11576
          iprot.skip(ftype)
11577
      else:
11578
        iprot.skip(ftype)
11579
      iprot.readFieldEnd()
11580
    iprot.readStructEnd()
11581
 
11582
  def write(self, oprot):
11583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11585
      return
11586
    oprot.writeStructBegin('getProductNotifications_args')
11587
    if self.startDateTime is not None:
11588
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11589
      oprot.writeI64(self.startDateTime)
11590
      oprot.writeFieldEnd()
11591
    oprot.writeFieldStop()
11592
    oprot.writeStructEnd()
11593
 
11594
  def validate(self):
11595
    return
11596
 
11597
 
11598
  def __repr__(self):
11599
    L = ['%s=%r' % (key, value)
11600
      for key, value in self.__dict__.iteritems()]
11601
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11602
 
11603
  def __eq__(self, other):
11604
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11605
 
11606
  def __ne__(self, other):
11607
    return not (self == other)
11608
 
11609
class getProductNotifications_result:
11610
  """
11611
  Attributes:
11612
   - success
11613
  """
11614
 
11615
  thrift_spec = (
11616
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
11617
  )
11618
 
11619
  def __init__(self, success=None,):
11620
    self.success = success
11621
 
11622
  def read(self, iprot):
11623
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11624
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11625
      return
11626
    iprot.readStructBegin()
11627
    while True:
11628
      (fname, ftype, fid) = iprot.readFieldBegin()
11629
      if ftype == TType.STOP:
11630
        break
11631
      if fid == 0:
11632
        if ftype == TType.LIST:
11633
          self.success = []
6512 kshitij.so 11634
          (_etype222, _size219) = iprot.readListBegin()
11635
          for _i223 in xrange(_size219):
11636
            _elem224 = ProductNotificationRequest()
11637
            _elem224.read(iprot)
11638
            self.success.append(_elem224)
5944 mandeep.dh 11639
          iprot.readListEnd()
11640
        else:
11641
          iprot.skip(ftype)
11642
      else:
11643
        iprot.skip(ftype)
11644
      iprot.readFieldEnd()
11645
    iprot.readStructEnd()
11646
 
11647
  def write(self, oprot):
11648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11650
      return
11651
    oprot.writeStructBegin('getProductNotifications_result')
11652
    if self.success is not None:
11653
      oprot.writeFieldBegin('success', TType.LIST, 0)
11654
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11655
      for iter225 in self.success:
11656
        iter225.write(oprot)
5944 mandeep.dh 11657
      oprot.writeListEnd()
11658
      oprot.writeFieldEnd()
11659
    oprot.writeFieldStop()
11660
    oprot.writeStructEnd()
11661
 
11662
  def validate(self):
11663
    return
11664
 
11665
 
11666
  def __repr__(self):
11667
    L = ['%s=%r' % (key, value)
11668
      for key, value in self.__dict__.iteritems()]
11669
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11670
 
11671
  def __eq__(self, other):
11672
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11673
 
11674
  def __ne__(self, other):
11675
    return not (self == other)
11676
 
11677
class getProductNotificationRequestCount_args:
11678
  """
11679
  Attributes:
11680
   - startDateTime
11681
  """
11682
 
11683
  thrift_spec = (
11684
    None, # 0
11685
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11686
  )
11687
 
11688
  def __init__(self, startDateTime=None,):
11689
    self.startDateTime = startDateTime
11690
 
11691
  def read(self, iprot):
11692
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11693
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11694
      return
11695
    iprot.readStructBegin()
11696
    while True:
11697
      (fname, ftype, fid) = iprot.readFieldBegin()
11698
      if ftype == TType.STOP:
11699
        break
11700
      if fid == 1:
11701
        if ftype == TType.I64:
11702
          self.startDateTime = iprot.readI64();
11703
        else:
11704
          iprot.skip(ftype)
11705
      else:
11706
        iprot.skip(ftype)
11707
      iprot.readFieldEnd()
11708
    iprot.readStructEnd()
11709
 
11710
  def write(self, oprot):
11711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11713
      return
11714
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
11715
    if self.startDateTime is not None:
11716
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11717
      oprot.writeI64(self.startDateTime)
11718
      oprot.writeFieldEnd()
11719
    oprot.writeFieldStop()
11720
    oprot.writeStructEnd()
11721
 
11722
  def validate(self):
11723
    return
11724
 
11725
 
11726
  def __repr__(self):
11727
    L = ['%s=%r' % (key, value)
11728
      for key, value in self.__dict__.iteritems()]
11729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11730
 
11731
  def __eq__(self, other):
11732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11733
 
11734
  def __ne__(self, other):
11735
    return not (self == other)
11736
 
11737
class getProductNotificationRequestCount_result:
11738
  """
11739
  Attributes:
11740
   - success
11741
  """
11742
 
11743
  thrift_spec = (
11744
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
11745
  )
11746
 
11747
  def __init__(self, success=None,):
11748
    self.success = success
11749
 
11750
  def read(self, iprot):
11751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11753
      return
11754
    iprot.readStructBegin()
11755
    while True:
11756
      (fname, ftype, fid) = iprot.readFieldBegin()
11757
      if ftype == TType.STOP:
11758
        break
11759
      if fid == 0:
11760
        if ftype == TType.LIST:
11761
          self.success = []
6512 kshitij.so 11762
          (_etype229, _size226) = iprot.readListBegin()
11763
          for _i230 in xrange(_size226):
11764
            _elem231 = ProductNotificationRequestCount()
11765
            _elem231.read(iprot)
11766
            self.success.append(_elem231)
5944 mandeep.dh 11767
          iprot.readListEnd()
11768
        else:
11769
          iprot.skip(ftype)
11770
      else:
11771
        iprot.skip(ftype)
11772
      iprot.readFieldEnd()
11773
    iprot.readStructEnd()
11774
 
11775
  def write(self, oprot):
11776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11778
      return
11779
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
11780
    if self.success is not None:
11781
      oprot.writeFieldBegin('success', TType.LIST, 0)
11782
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11783
      for iter232 in self.success:
11784
        iter232.write(oprot)
5944 mandeep.dh 11785
      oprot.writeListEnd()
11786
      oprot.writeFieldEnd()
11787
    oprot.writeFieldStop()
11788
    oprot.writeStructEnd()
11789
 
11790
  def validate(self):
11791
    return
11792
 
11793
 
11794
  def __repr__(self):
11795
    L = ['%s=%r' % (key, value)
11796
      for key, value in self.__dict__.iteritems()]
11797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11798
 
11799
  def __eq__(self, other):
11800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11801
 
11802
  def __ne__(self, other):
11803
    return not (self == other)
11804
 
11805
class addAuthorizationLog_args:
11806
  """
11807
  Attributes:
11808
   - itemId
11809
   - username
11810
   - reason
11811
  """
11812
 
11813
  thrift_spec = (
11814
    None, # 0
11815
    (1, TType.I64, 'itemId', None, None, ), # 1
11816
    (2, TType.STRING, 'username', None, None, ), # 2
11817
    (3, TType.STRING, 'reason', None, None, ), # 3
11818
  )
11819
 
11820
  def __init__(self, itemId=None, username=None, reason=None,):
11821
    self.itemId = itemId
11822
    self.username = username
11823
    self.reason = reason
11824
 
11825
  def read(self, iprot):
11826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11828
      return
11829
    iprot.readStructBegin()
11830
    while True:
11831
      (fname, ftype, fid) = iprot.readFieldBegin()
11832
      if ftype == TType.STOP:
11833
        break
11834
      if fid == 1:
11835
        if ftype == TType.I64:
11836
          self.itemId = iprot.readI64();
11837
        else:
11838
          iprot.skip(ftype)
11839
      elif fid == 2:
11840
        if ftype == TType.STRING:
11841
          self.username = iprot.readString();
11842
        else:
11843
          iprot.skip(ftype)
11844
      elif fid == 3:
11845
        if ftype == TType.STRING:
11846
          self.reason = iprot.readString();
11847
        else:
11848
          iprot.skip(ftype)
11849
      else:
11850
        iprot.skip(ftype)
11851
      iprot.readFieldEnd()
11852
    iprot.readStructEnd()
11853
 
11854
  def write(self, oprot):
11855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11857
      return
11858
    oprot.writeStructBegin('addAuthorizationLog_args')
11859
    if self.itemId is not None:
11860
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11861
      oprot.writeI64(self.itemId)
11862
      oprot.writeFieldEnd()
11863
    if self.username is not None:
11864
      oprot.writeFieldBegin('username', TType.STRING, 2)
11865
      oprot.writeString(self.username)
11866
      oprot.writeFieldEnd()
11867
    if self.reason is not None:
11868
      oprot.writeFieldBegin('reason', TType.STRING, 3)
11869
      oprot.writeString(self.reason)
11870
      oprot.writeFieldEnd()
11871
    oprot.writeFieldStop()
11872
    oprot.writeStructEnd()
11873
 
11874
  def validate(self):
11875
    return
11876
 
11877
 
11878
  def __repr__(self):
11879
    L = ['%s=%r' % (key, value)
11880
      for key, value in self.__dict__.iteritems()]
11881
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11882
 
11883
  def __eq__(self, other):
11884
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11885
 
11886
  def __ne__(self, other):
11887
    return not (self == other)
11888
 
11889
class addAuthorizationLog_result:
11890
  """
11891
  Attributes:
11892
   - success
11893
   - cex
11894
  """
11895
 
11896
  thrift_spec = (
11897
    (0, TType.BOOL, 'success', None, None, ), # 0
11898
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11899
  )
11900
 
11901
  def __init__(self, success=None, cex=None,):
11902
    self.success = success
11903
    self.cex = cex
11904
 
11905
  def read(self, iprot):
11906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11908
      return
11909
    iprot.readStructBegin()
11910
    while True:
11911
      (fname, ftype, fid) = iprot.readFieldBegin()
11912
      if ftype == TType.STOP:
11913
        break
11914
      if fid == 0:
11915
        if ftype == TType.BOOL:
11916
          self.success = iprot.readBool();
11917
        else:
11918
          iprot.skip(ftype)
11919
      elif fid == 1:
11920
        if ftype == TType.STRUCT:
11921
          self.cex = CatalogServiceException()
11922
          self.cex.read(iprot)
11923
        else:
11924
          iprot.skip(ftype)
11925
      else:
11926
        iprot.skip(ftype)
11927
      iprot.readFieldEnd()
11928
    iprot.readStructEnd()
11929
 
11930
  def write(self, oprot):
11931
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11932
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11933
      return
11934
    oprot.writeStructBegin('addAuthorizationLog_result')
11935
    if self.success is not None:
11936
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11937
      oprot.writeBool(self.success)
11938
      oprot.writeFieldEnd()
11939
    if self.cex is not None:
11940
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11941
      self.cex.write(oprot)
11942
      oprot.writeFieldEnd()
11943
    oprot.writeFieldStop()
11944
    oprot.writeStructEnd()
11945
 
11946
  def validate(self):
11947
    return
11948
 
11949
 
11950
  def __repr__(self):
11951
    L = ['%s=%r' % (key, value)
11952
      for key, value in self.__dict__.iteritems()]
11953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11954
 
11955
  def __eq__(self, other):
11956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11957
 
11958
  def __ne__(self, other):
11959
    return not (self == other)
11960
 
11961
class getClearanceSaleCatalogIds_args:
11962
 
11963
  thrift_spec = (
11964
  )
11965
 
11966
  def read(self, iprot):
11967
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11968
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11969
      return
11970
    iprot.readStructBegin()
11971
    while True:
11972
      (fname, ftype, fid) = iprot.readFieldBegin()
11973
      if ftype == TType.STOP:
11974
        break
11975
      else:
11976
        iprot.skip(ftype)
11977
      iprot.readFieldEnd()
11978
    iprot.readStructEnd()
11979
 
11980
  def write(self, oprot):
11981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11983
      return
11984
    oprot.writeStructBegin('getClearanceSaleCatalogIds_args')
11985
    oprot.writeFieldStop()
11986
    oprot.writeStructEnd()
11987
 
11988
  def validate(self):
11989
    return
11990
 
11991
 
11992
  def __repr__(self):
11993
    L = ['%s=%r' % (key, value)
11994
      for key, value in self.__dict__.iteritems()]
11995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11996
 
11997
  def __eq__(self, other):
11998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11999
 
12000
  def __ne__(self, other):
12001
    return not (self == other)
12002
 
12003
class getClearanceSaleCatalogIds_result:
12004
  """
12005
  Attributes:
12006
   - success
12007
   - cex
12008
  """
12009
 
12010
  thrift_spec = (
12011
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12012
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12013
  )
12014
 
12015
  def __init__(self, success=None, cex=None,):
12016
    self.success = success
12017
    self.cex = cex
12018
 
12019
  def read(self, iprot):
12020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12022
      return
12023
    iprot.readStructBegin()
12024
    while True:
12025
      (fname, ftype, fid) = iprot.readFieldBegin()
12026
      if ftype == TType.STOP:
12027
        break
12028
      if fid == 0:
12029
        if ftype == TType.LIST:
12030
          self.success = []
6512 kshitij.so 12031
          (_etype236, _size233) = iprot.readListBegin()
12032
          for _i237 in xrange(_size233):
12033
            _elem238 = iprot.readI64();
12034
            self.success.append(_elem238)
5944 mandeep.dh 12035
          iprot.readListEnd()
12036
        else:
12037
          iprot.skip(ftype)
12038
      elif fid == 1:
12039
        if ftype == TType.STRUCT:
12040
          self.cex = CatalogServiceException()
12041
          self.cex.read(iprot)
12042
        else:
12043
          iprot.skip(ftype)
12044
      else:
12045
        iprot.skip(ftype)
12046
      iprot.readFieldEnd()
12047
    iprot.readStructEnd()
12048
 
12049
  def write(self, oprot):
12050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12052
      return
12053
    oprot.writeStructBegin('getClearanceSaleCatalogIds_result')
12054
    if self.success is not None:
12055
      oprot.writeFieldBegin('success', TType.LIST, 0)
12056
      oprot.writeListBegin(TType.I64, len(self.success))
6512 kshitij.so 12057
      for iter239 in self.success:
12058
        oprot.writeI64(iter239)
5944 mandeep.dh 12059
      oprot.writeListEnd()
12060
      oprot.writeFieldEnd()
12061
    if self.cex is not None:
12062
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12063
      self.cex.write(oprot)
12064
      oprot.writeFieldEnd()
12065
    oprot.writeFieldStop()
12066
    oprot.writeStructEnd()
12067
 
12068
  def validate(self):
12069
    return
12070
 
12071
 
12072
  def __repr__(self):
12073
    L = ['%s=%r' % (key, value)
12074
      for key, value in self.__dict__.iteritems()]
12075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12076
 
12077
  def __eq__(self, other):
12078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12079
 
12080
  def __ne__(self, other):
12081
    return not (self == other)
12082
 
12083
class addupdateVoucherForItem_args:
12084
  """
12085
  Attributes:
12086
   - catalog_item_id
12087
   - voucherType
12088
   - voucherAmount
12089
  """
12090
 
12091
  thrift_spec = (
12092
    None, # 0
12093
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12094
    (2, TType.I64, 'voucherType', None, None, ), # 2
12095
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
12096
  )
12097
 
12098
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
12099
    self.catalog_item_id = catalog_item_id
12100
    self.voucherType = voucherType
12101
    self.voucherAmount = voucherAmount
12102
 
12103
  def read(self, iprot):
12104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12106
      return
12107
    iprot.readStructBegin()
12108
    while True:
12109
      (fname, ftype, fid) = iprot.readFieldBegin()
12110
      if ftype == TType.STOP:
12111
        break
12112
      if fid == 1:
12113
        if ftype == TType.I64:
12114
          self.catalog_item_id = iprot.readI64();
12115
        else:
12116
          iprot.skip(ftype)
12117
      elif fid == 2:
12118
        if ftype == TType.I64:
12119
          self.voucherType = iprot.readI64();
12120
        else:
12121
          iprot.skip(ftype)
12122
      elif fid == 3:
12123
        if ftype == TType.I64:
12124
          self.voucherAmount = iprot.readI64();
12125
        else:
12126
          iprot.skip(ftype)
12127
      else:
12128
        iprot.skip(ftype)
12129
      iprot.readFieldEnd()
12130
    iprot.readStructEnd()
12131
 
12132
  def write(self, oprot):
12133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12135
      return
12136
    oprot.writeStructBegin('addupdateVoucherForItem_args')
12137
    if self.catalog_item_id is not None:
12138
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12139
      oprot.writeI64(self.catalog_item_id)
12140
      oprot.writeFieldEnd()
12141
    if self.voucherType is not None:
12142
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12143
      oprot.writeI64(self.voucherType)
12144
      oprot.writeFieldEnd()
12145
    if self.voucherAmount is not None:
12146
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
12147
      oprot.writeI64(self.voucherAmount)
12148
      oprot.writeFieldEnd()
12149
    oprot.writeFieldStop()
12150
    oprot.writeStructEnd()
12151
 
12152
  def validate(self):
12153
    return
12154
 
12155
 
12156
  def __repr__(self):
12157
    L = ['%s=%r' % (key, value)
12158
      for key, value in self.__dict__.iteritems()]
12159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12160
 
12161
  def __eq__(self, other):
12162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12163
 
12164
  def __ne__(self, other):
12165
    return not (self == other)
12166
 
12167
class addupdateVoucherForItem_result:
12168
  """
12169
  Attributes:
12170
   - success
12171
   - cex
12172
  """
12173
 
12174
  thrift_spec = (
12175
    (0, TType.BOOL, 'success', None, None, ), # 0
12176
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12177
  )
12178
 
12179
  def __init__(self, success=None, cex=None,):
12180
    self.success = success
12181
    self.cex = cex
12182
 
12183
  def read(self, iprot):
12184
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12185
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12186
      return
12187
    iprot.readStructBegin()
12188
    while True:
12189
      (fname, ftype, fid) = iprot.readFieldBegin()
12190
      if ftype == TType.STOP:
12191
        break
12192
      if fid == 0:
12193
        if ftype == TType.BOOL:
12194
          self.success = iprot.readBool();
12195
        else:
12196
          iprot.skip(ftype)
12197
      elif fid == 1:
12198
        if ftype == TType.STRUCT:
12199
          self.cex = CatalogServiceException()
12200
          self.cex.read(iprot)
12201
        else:
12202
          iprot.skip(ftype)
12203
      else:
12204
        iprot.skip(ftype)
12205
      iprot.readFieldEnd()
12206
    iprot.readStructEnd()
12207
 
12208
  def write(self, oprot):
12209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12211
      return
12212
    oprot.writeStructBegin('addupdateVoucherForItem_result')
12213
    if self.success is not None:
12214
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12215
      oprot.writeBool(self.success)
12216
      oprot.writeFieldEnd()
12217
    if self.cex is not None:
12218
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12219
      self.cex.write(oprot)
12220
      oprot.writeFieldEnd()
12221
    oprot.writeFieldStop()
12222
    oprot.writeStructEnd()
12223
 
12224
  def validate(self):
12225
    return
12226
 
12227
 
12228
  def __repr__(self):
12229
    L = ['%s=%r' % (key, value)
12230
      for key, value in self.__dict__.iteritems()]
12231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12232
 
12233
  def __eq__(self, other):
12234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12235
 
12236
  def __ne__(self, other):
12237
    return not (self == other)
12238
 
12239
class deleteVoucherForItem_args:
12240
  """
12241
  Attributes:
12242
   - catalog_item_id
12243
   - voucherType
12244
  """
12245
 
12246
  thrift_spec = (
12247
    None, # 0
12248
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12249
    (2, TType.I64, 'voucherType', None, None, ), # 2
12250
  )
12251
 
12252
  def __init__(self, catalog_item_id=None, voucherType=None,):
12253
    self.catalog_item_id = catalog_item_id
12254
    self.voucherType = voucherType
12255
 
12256
  def read(self, iprot):
12257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12259
      return
12260
    iprot.readStructBegin()
12261
    while True:
12262
      (fname, ftype, fid) = iprot.readFieldBegin()
12263
      if ftype == TType.STOP:
12264
        break
12265
      if fid == 1:
12266
        if ftype == TType.I64:
12267
          self.catalog_item_id = iprot.readI64();
12268
        else:
12269
          iprot.skip(ftype)
12270
      elif fid == 2:
12271
        if ftype == TType.I64:
12272
          self.voucherType = iprot.readI64();
12273
        else:
12274
          iprot.skip(ftype)
12275
      else:
12276
        iprot.skip(ftype)
12277
      iprot.readFieldEnd()
12278
    iprot.readStructEnd()
12279
 
12280
  def write(self, oprot):
12281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12283
      return
12284
    oprot.writeStructBegin('deleteVoucherForItem_args')
12285
    if self.catalog_item_id is not None:
12286
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12287
      oprot.writeI64(self.catalog_item_id)
12288
      oprot.writeFieldEnd()
12289
    if self.voucherType is not None:
12290
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12291
      oprot.writeI64(self.voucherType)
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 deleteVoucherForItem_result:
12312
  """
12313
  Attributes:
12314
   - success
12315
   - cex
12316
  """
12317
 
12318
  thrift_spec = (
12319
    (0, TType.BOOL, 'success', None, None, ), # 0
12320
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12321
  )
12322
 
12323
  def __init__(self, success=None, cex=None,):
12324
    self.success = success
12325
    self.cex = cex
12326
 
12327
  def read(self, iprot):
12328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12330
      return
12331
    iprot.readStructBegin()
12332
    while True:
12333
      (fname, ftype, fid) = iprot.readFieldBegin()
12334
      if ftype == TType.STOP:
12335
        break
12336
      if fid == 0:
12337
        if ftype == TType.BOOL:
12338
          self.success = iprot.readBool();
12339
        else:
12340
          iprot.skip(ftype)
12341
      elif fid == 1:
12342
        if ftype == TType.STRUCT:
12343
          self.cex = CatalogServiceException()
12344
          self.cex.read(iprot)
12345
        else:
12346
          iprot.skip(ftype)
12347
      else:
12348
        iprot.skip(ftype)
12349
      iprot.readFieldEnd()
12350
    iprot.readStructEnd()
12351
 
12352
  def write(self, oprot):
12353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12355
      return
12356
    oprot.writeStructBegin('deleteVoucherForItem_result')
12357
    if self.success is not None:
12358
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12359
      oprot.writeBool(self.success)
12360
      oprot.writeFieldEnd()
12361
    if self.cex is not None:
12362
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12363
      self.cex.write(oprot)
12364
      oprot.writeFieldEnd()
12365
    oprot.writeFieldStop()
12366
    oprot.writeStructEnd()
12367
 
12368
  def validate(self):
12369
    return
12370
 
12371
 
12372
  def __repr__(self):
12373
    L = ['%s=%r' % (key, value)
12374
      for key, value in self.__dict__.iteritems()]
12375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12376
 
12377
  def __eq__(self, other):
12378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12379
 
12380
  def __ne__(self, other):
12381
    return not (self == other)
12382
 
12383
class getVoucherAmount_args:
12384
  """
12385
  Attributes:
12386
   - itemId
12387
   - voucherType
12388
  """
12389
 
12390
  thrift_spec = (
12391
    None, # 0
12392
    (1, TType.I64, 'itemId', None, None, ), # 1
12393
    (2, TType.I64, 'voucherType', None, None, ), # 2
12394
  )
12395
 
12396
  def __init__(self, itemId=None, voucherType=None,):
12397
    self.itemId = itemId
12398
    self.voucherType = voucherType
12399
 
12400
  def read(self, iprot):
12401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12403
      return
12404
    iprot.readStructBegin()
12405
    while True:
12406
      (fname, ftype, fid) = iprot.readFieldBegin()
12407
      if ftype == TType.STOP:
12408
        break
12409
      if fid == 1:
12410
        if ftype == TType.I64:
12411
          self.itemId = iprot.readI64();
12412
        else:
12413
          iprot.skip(ftype)
12414
      elif fid == 2:
12415
        if ftype == TType.I64:
12416
          self.voucherType = iprot.readI64();
12417
        else:
12418
          iprot.skip(ftype)
12419
      else:
12420
        iprot.skip(ftype)
12421
      iprot.readFieldEnd()
12422
    iprot.readStructEnd()
12423
 
12424
  def write(self, oprot):
12425
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12426
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12427
      return
12428
    oprot.writeStructBegin('getVoucherAmount_args')
12429
    if self.itemId is not None:
12430
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12431
      oprot.writeI64(self.itemId)
12432
      oprot.writeFieldEnd()
12433
    if self.voucherType is not None:
12434
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12435
      oprot.writeI64(self.voucherType)
12436
      oprot.writeFieldEnd()
12437
    oprot.writeFieldStop()
12438
    oprot.writeStructEnd()
12439
 
12440
  def validate(self):
12441
    return
12442
 
12443
 
12444
  def __repr__(self):
12445
    L = ['%s=%r' % (key, value)
12446
      for key, value in self.__dict__.iteritems()]
12447
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12448
 
12449
  def __eq__(self, other):
12450
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12451
 
12452
  def __ne__(self, other):
12453
    return not (self == other)
12454
 
12455
class getVoucherAmount_result:
12456
  """
12457
  Attributes:
12458
   - success
12459
  """
12460
 
12461
  thrift_spec = (
12462
    (0, TType.I64, 'success', None, None, ), # 0
12463
  )
12464
 
12465
  def __init__(self, success=None,):
12466
    self.success = success
12467
 
12468
  def read(self, iprot):
12469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12471
      return
12472
    iprot.readStructBegin()
12473
    while True:
12474
      (fname, ftype, fid) = iprot.readFieldBegin()
12475
      if ftype == TType.STOP:
12476
        break
12477
      if fid == 0:
12478
        if ftype == TType.I64:
12479
          self.success = iprot.readI64();
12480
        else:
12481
          iprot.skip(ftype)
12482
      else:
12483
        iprot.skip(ftype)
12484
      iprot.readFieldEnd()
12485
    iprot.readStructEnd()
12486
 
12487
  def write(self, oprot):
12488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12490
      return
12491
    oprot.writeStructBegin('getVoucherAmount_result')
12492
    if self.success is not None:
12493
      oprot.writeFieldBegin('success', TType.I64, 0)
12494
      oprot.writeI64(self.success)
12495
      oprot.writeFieldEnd()
12496
    oprot.writeFieldStop()
12497
    oprot.writeStructEnd()
12498
 
12499
  def validate(self):
12500
    return
12501
 
12502
 
12503
  def __repr__(self):
12504
    L = ['%s=%r' % (key, value)
12505
      for key, value in self.__dict__.iteritems()]
12506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12507
 
12508
  def __eq__(self, other):
12509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12510
 
12511
  def __ne__(self, other):
12512
    return not (self == other)
12513
 
12514
class getAllItemVouchers_args:
12515
  """
12516
  Attributes:
12517
   - itemId
12518
  """
12519
 
12520
  thrift_spec = (
12521
    None, # 0
12522
    (1, TType.I64, 'itemId', None, None, ), # 1
12523
  )
12524
 
12525
  def __init__(self, itemId=None,):
12526
    self.itemId = itemId
12527
 
12528
  def read(self, iprot):
12529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12531
      return
12532
    iprot.readStructBegin()
12533
    while True:
12534
      (fname, ftype, fid) = iprot.readFieldBegin()
12535
      if ftype == TType.STOP:
12536
        break
12537
      if fid == 1:
12538
        if ftype == TType.I64:
12539
          self.itemId = iprot.readI64();
12540
        else:
12541
          iprot.skip(ftype)
12542
      else:
12543
        iprot.skip(ftype)
12544
      iprot.readFieldEnd()
12545
    iprot.readStructEnd()
12546
 
12547
  def write(self, oprot):
12548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12550
      return
12551
    oprot.writeStructBegin('getAllItemVouchers_args')
12552
    if self.itemId is not None:
12553
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12554
      oprot.writeI64(self.itemId)
12555
      oprot.writeFieldEnd()
12556
    oprot.writeFieldStop()
12557
    oprot.writeStructEnd()
12558
 
12559
  def validate(self):
12560
    return
12561
 
12562
 
12563
  def __repr__(self):
12564
    L = ['%s=%r' % (key, value)
12565
      for key, value in self.__dict__.iteritems()]
12566
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12567
 
12568
  def __eq__(self, other):
12569
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12570
 
12571
  def __ne__(self, other):
12572
    return not (self == other)
12573
 
12574
class getAllItemVouchers_result:
12575
  """
12576
  Attributes:
12577
   - success
12578
  """
12579
 
12580
  thrift_spec = (
12581
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
12582
  )
12583
 
12584
  def __init__(self, success=None,):
12585
    self.success = success
12586
 
12587
  def read(self, iprot):
12588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12590
      return
12591
    iprot.readStructBegin()
12592
    while True:
12593
      (fname, ftype, fid) = iprot.readFieldBegin()
12594
      if ftype == TType.STOP:
12595
        break
12596
      if fid == 0:
12597
        if ftype == TType.LIST:
12598
          self.success = []
6512 kshitij.so 12599
          (_etype243, _size240) = iprot.readListBegin()
12600
          for _i244 in xrange(_size240):
12601
            _elem245 = VoucherItemMapping()
12602
            _elem245.read(iprot)
12603
            self.success.append(_elem245)
5944 mandeep.dh 12604
          iprot.readListEnd()
12605
        else:
12606
          iprot.skip(ftype)
12607
      else:
12608
        iprot.skip(ftype)
12609
      iprot.readFieldEnd()
12610
    iprot.readStructEnd()
12611
 
12612
  def write(self, oprot):
12613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12615
      return
12616
    oprot.writeStructBegin('getAllItemVouchers_result')
12617
    if self.success is not None:
12618
      oprot.writeFieldBegin('success', TType.LIST, 0)
12619
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 12620
      for iter246 in self.success:
12621
        iter246.write(oprot)
5944 mandeep.dh 12622
      oprot.writeListEnd()
12623
      oprot.writeFieldEnd()
12624
    oprot.writeFieldStop()
12625
    oprot.writeStructEnd()
12626
 
12627
  def validate(self):
12628
    return
12629
 
12630
 
12631
  def __repr__(self):
12632
    L = ['%s=%r' % (key, value)
12633
      for key, value in self.__dict__.iteritems()]
12634
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12635
 
12636
  def __eq__(self, other):
12637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12638
 
12639
  def __ne__(self, other):
12640
    return not (self == other)
12641
 
12642
class isValidCatalogItemId_args:
12643
  """
12644
  Attributes:
12645
   - catalog_item_id
12646
  """
12647
 
12648
  thrift_spec = (
12649
    None, # 0
12650
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12651
  )
12652
 
12653
  def __init__(self, catalog_item_id=None,):
12654
    self.catalog_item_id = catalog_item_id
12655
 
12656
  def read(self, iprot):
12657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12659
      return
12660
    iprot.readStructBegin()
12661
    while True:
12662
      (fname, ftype, fid) = iprot.readFieldBegin()
12663
      if ftype == TType.STOP:
12664
        break
12665
      if fid == 1:
12666
        if ftype == TType.I64:
12667
          self.catalog_item_id = iprot.readI64();
12668
        else:
12669
          iprot.skip(ftype)
12670
      else:
12671
        iprot.skip(ftype)
12672
      iprot.readFieldEnd()
12673
    iprot.readStructEnd()
12674
 
12675
  def write(self, oprot):
12676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12678
      return
12679
    oprot.writeStructBegin('isValidCatalogItemId_args')
12680
    if self.catalog_item_id is not None:
12681
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12682
      oprot.writeI64(self.catalog_item_id)
12683
      oprot.writeFieldEnd()
12684
    oprot.writeFieldStop()
12685
    oprot.writeStructEnd()
12686
 
12687
  def validate(self):
12688
    return
12689
 
12690
 
12691
  def __repr__(self):
12692
    L = ['%s=%r' % (key, value)
12693
      for key, value in self.__dict__.iteritems()]
12694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12695
 
12696
  def __eq__(self, other):
12697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12698
 
12699
  def __ne__(self, other):
12700
    return not (self == other)
12701
 
12702
class isValidCatalogItemId_result:
12703
  """
12704
  Attributes:
12705
   - success
12706
  """
12707
 
12708
  thrift_spec = (
12709
    (0, TType.BOOL, 'success', None, None, ), # 0
12710
  )
12711
 
12712
  def __init__(self, success=None,):
12713
    self.success = success
12714
 
12715
  def read(self, iprot):
12716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12718
      return
12719
    iprot.readStructBegin()
12720
    while True:
12721
      (fname, ftype, fid) = iprot.readFieldBegin()
12722
      if ftype == TType.STOP:
12723
        break
12724
      if fid == 0:
12725
        if ftype == TType.BOOL:
12726
          self.success = iprot.readBool();
12727
        else:
12728
          iprot.skip(ftype)
12729
      else:
12730
        iprot.skip(ftype)
12731
      iprot.readFieldEnd()
12732
    iprot.readStructEnd()
12733
 
12734
  def write(self, oprot):
12735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12737
      return
12738
    oprot.writeStructBegin('isValidCatalogItemId_result')
12739
    if self.success is not None:
12740
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12741
      oprot.writeBool(self.success)
12742
      oprot.writeFieldEnd()
12743
    oprot.writeFieldStop()
12744
    oprot.writeStructEnd()
12745
 
12746
  def validate(self):
12747
    return
12748
 
12749
 
12750
  def __repr__(self):
12751
    L = ['%s=%r' % (key, value)
12752
      for key, value in self.__dict__.iteritems()]
12753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12754
 
12755
  def __eq__(self, other):
12756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12757
 
12758
  def __ne__(self, other):
12759
    return not (self == other)
6039 amit.gupta 12760
 
12761
class getVatPercentageForItem_args:
12762
  """
12763
  Attributes:
12764
   - itemId
12765
   - price
12766
  """
12767
 
12768
  thrift_spec = (
12769
    None, # 0
12770
    (1, TType.I64, 'itemId', None, None, ), # 1
12771
    (2, TType.DOUBLE, 'price', None, None, ), # 2
12772
  )
12773
 
12774
  def __init__(self, itemId=None, price=None,):
12775
    self.itemId = itemId
12776
    self.price = price
12777
 
12778
  def read(self, iprot):
12779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12781
      return
12782
    iprot.readStructBegin()
12783
    while True:
12784
      (fname, ftype, fid) = iprot.readFieldBegin()
12785
      if ftype == TType.STOP:
12786
        break
12787
      if fid == 1:
12788
        if ftype == TType.I64:
12789
          self.itemId = iprot.readI64();
12790
        else:
12791
          iprot.skip(ftype)
12792
      elif fid == 2:
12793
        if ftype == TType.DOUBLE:
12794
          self.price = iprot.readDouble();
12795
        else:
12796
          iprot.skip(ftype)
12797
      else:
12798
        iprot.skip(ftype)
12799
      iprot.readFieldEnd()
12800
    iprot.readStructEnd()
12801
 
12802
  def write(self, oprot):
12803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12805
      return
12806
    oprot.writeStructBegin('getVatPercentageForItem_args')
12807
    if self.itemId is not None:
12808
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12809
      oprot.writeI64(self.itemId)
12810
      oprot.writeFieldEnd()
12811
    if self.price is not None:
12812
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
12813
      oprot.writeDouble(self.price)
12814
      oprot.writeFieldEnd()
12815
    oprot.writeFieldStop()
12816
    oprot.writeStructEnd()
12817
 
12818
  def validate(self):
12819
    return
12820
 
12821
 
12822
  def __repr__(self):
12823
    L = ['%s=%r' % (key, value)
12824
      for key, value in self.__dict__.iteritems()]
12825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12826
 
12827
  def __eq__(self, other):
12828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12829
 
12830
  def __ne__(self, other):
12831
    return not (self == other)
12832
 
12833
class getVatPercentageForItem_result:
12834
  """
12835
  Attributes:
12836
   - success
12837
  """
12838
 
12839
  thrift_spec = (
12840
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12841
  )
12842
 
12843
  def __init__(self, success=None,):
12844
    self.success = success
12845
 
12846
  def read(self, iprot):
12847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12849
      return
12850
    iprot.readStructBegin()
12851
    while True:
12852
      (fname, ftype, fid) = iprot.readFieldBegin()
12853
      if ftype == TType.STOP:
12854
        break
12855
      if fid == 0:
12856
        if ftype == TType.DOUBLE:
12857
          self.success = iprot.readDouble();
12858
        else:
12859
          iprot.skip(ftype)
12860
      else:
12861
        iprot.skip(ftype)
12862
      iprot.readFieldEnd()
12863
    iprot.readStructEnd()
12864
 
12865
  def write(self, oprot):
12866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12868
      return
12869
    oprot.writeStructBegin('getVatPercentageForItem_result')
12870
    if self.success is not None:
12871
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12872
      oprot.writeDouble(self.success)
12873
      oprot.writeFieldEnd()
12874
    oprot.writeFieldStop()
12875
    oprot.writeStructEnd()
12876
 
12877
  def validate(self):
12878
    return
12879
 
12880
 
12881
  def __repr__(self):
12882
    L = ['%s=%r' % (key, value)
12883
      for key, value in self.__dict__.iteritems()]
12884
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12885
 
12886
  def __eq__(self, other):
12887
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12888
 
12889
  def __ne__(self, other):
12890
    return not (self == other)
12891
 
12892
class getVatAmountForItem_args:
12893
  """
12894
  Attributes:
12895
   - itemId
12896
   - price
12897
  """
12898
 
12899
  thrift_spec = (
12900
    None, # 0
12901
    (1, TType.I64, 'itemId', None, None, ), # 1
12902
    (2, TType.DOUBLE, 'price', None, None, ), # 2
12903
  )
12904
 
12905
  def __init__(self, itemId=None, price=None,):
12906
    self.itemId = itemId
12907
    self.price = price
12908
 
12909
  def read(self, iprot):
12910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12912
      return
12913
    iprot.readStructBegin()
12914
    while True:
12915
      (fname, ftype, fid) = iprot.readFieldBegin()
12916
      if ftype == TType.STOP:
12917
        break
12918
      if fid == 1:
12919
        if ftype == TType.I64:
12920
          self.itemId = iprot.readI64();
12921
        else:
12922
          iprot.skip(ftype)
12923
      elif fid == 2:
12924
        if ftype == TType.DOUBLE:
12925
          self.price = iprot.readDouble();
12926
        else:
12927
          iprot.skip(ftype)
12928
      else:
12929
        iprot.skip(ftype)
12930
      iprot.readFieldEnd()
12931
    iprot.readStructEnd()
12932
 
12933
  def write(self, oprot):
12934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12936
      return
12937
    oprot.writeStructBegin('getVatAmountForItem_args')
12938
    if self.itemId is not None:
12939
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12940
      oprot.writeI64(self.itemId)
12941
      oprot.writeFieldEnd()
12942
    if self.price is not None:
12943
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
12944
      oprot.writeDouble(self.price)
12945
      oprot.writeFieldEnd()
12946
    oprot.writeFieldStop()
12947
    oprot.writeStructEnd()
12948
 
12949
  def validate(self):
12950
    return
12951
 
12952
 
12953
  def __repr__(self):
12954
    L = ['%s=%r' % (key, value)
12955
      for key, value in self.__dict__.iteritems()]
12956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12957
 
12958
  def __eq__(self, other):
12959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12960
 
12961
  def __ne__(self, other):
12962
    return not (self == other)
12963
 
12964
class getVatAmountForItem_result:
12965
  """
12966
  Attributes:
12967
   - success
12968
  """
12969
 
12970
  thrift_spec = (
12971
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12972
  )
12973
 
12974
  def __init__(self, success=None,):
12975
    self.success = success
12976
 
12977
  def read(self, iprot):
12978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12980
      return
12981
    iprot.readStructBegin()
12982
    while True:
12983
      (fname, ftype, fid) = iprot.readFieldBegin()
12984
      if ftype == TType.STOP:
12985
        break
12986
      if fid == 0:
12987
        if ftype == TType.DOUBLE:
12988
          self.success = iprot.readDouble();
12989
        else:
12990
          iprot.skip(ftype)
12991
      else:
12992
        iprot.skip(ftype)
12993
      iprot.readFieldEnd()
12994
    iprot.readStructEnd()
12995
 
12996
  def write(self, oprot):
12997
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12998
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12999
      return
13000
    oprot.writeStructBegin('getVatAmountForItem_result')
13001
    if self.success is not None:
13002
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13003
      oprot.writeDouble(self.success)
13004
      oprot.writeFieldEnd()
13005
    oprot.writeFieldStop()
13006
    oprot.writeStructEnd()
13007
 
13008
  def validate(self):
13009
    return
13010
 
13011
 
13012
  def __repr__(self):
13013
    L = ['%s=%r' % (key, value)
13014
      for key, value in self.__dict__.iteritems()]
13015
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13016
 
13017
  def __eq__(self, other):
13018
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13019
 
13020
  def __ne__(self, other):
13021
    return not (self == other)
6531 vikram.rag 13022
 
13023
class getAllIgnoredInventoryUpdateItemsList_args:
13024
  """
13025
  Attributes:
13026
   - offset
13027
   - limit
13028
  """
13029
 
13030
  thrift_spec = (
13031
    None, # 0
13032
    (1, TType.I32, 'offset', None, None, ), # 1
13033
    (2, TType.I32, 'limit', None, None, ), # 2
13034
  )
13035
 
13036
  def __init__(self, offset=None, limit=None,):
13037
    self.offset = offset
13038
    self.limit = limit
13039
 
13040
  def read(self, iprot):
13041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13043
      return
13044
    iprot.readStructBegin()
13045
    while True:
13046
      (fname, ftype, fid) = iprot.readFieldBegin()
13047
      if ftype == TType.STOP:
13048
        break
13049
      if fid == 1:
13050
        if ftype == TType.I32:
13051
          self.offset = iprot.readI32();
13052
        else:
13053
          iprot.skip(ftype)
13054
      elif fid == 2:
13055
        if ftype == TType.I32:
13056
          self.limit = iprot.readI32();
13057
        else:
13058
          iprot.skip(ftype)
13059
      else:
13060
        iprot.skip(ftype)
13061
      iprot.readFieldEnd()
13062
    iprot.readStructEnd()
13063
 
13064
  def write(self, oprot):
13065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13067
      return
13068
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
13069
    if self.offset is not None:
13070
      oprot.writeFieldBegin('offset', TType.I32, 1)
13071
      oprot.writeI32(self.offset)
13072
      oprot.writeFieldEnd()
13073
    if self.limit is not None:
13074
      oprot.writeFieldBegin('limit', TType.I32, 2)
13075
      oprot.writeI32(self.limit)
13076
      oprot.writeFieldEnd()
13077
    oprot.writeFieldStop()
13078
    oprot.writeStructEnd()
13079
 
13080
  def validate(self):
13081
    return
13082
 
13083
 
13084
  def __repr__(self):
13085
    L = ['%s=%r' % (key, value)
13086
      for key, value in self.__dict__.iteritems()]
13087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13088
 
13089
  def __eq__(self, other):
13090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13091
 
13092
  def __ne__(self, other):
13093
    return not (self == other)
13094
 
13095
class getAllIgnoredInventoryUpdateItemsList_result:
13096
  """
13097
  Attributes:
13098
   - success
13099
  """
13100
 
13101
  thrift_spec = (
13102
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13103
  )
13104
 
13105
  def __init__(self, success=None,):
13106
    self.success = success
13107
 
13108
  def read(self, iprot):
13109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13111
      return
13112
    iprot.readStructBegin()
13113
    while True:
13114
      (fname, ftype, fid) = iprot.readFieldBegin()
13115
      if ftype == TType.STOP:
13116
        break
13117
      if fid == 0:
13118
        if ftype == TType.LIST:
13119
          self.success = []
13120
          (_etype250, _size247) = iprot.readListBegin()
13121
          for _i251 in xrange(_size247):
13122
            _elem252 = Item()
13123
            _elem252.read(iprot)
13124
            self.success.append(_elem252)
13125
          iprot.readListEnd()
13126
        else:
13127
          iprot.skip(ftype)
13128
      else:
13129
        iprot.skip(ftype)
13130
      iprot.readFieldEnd()
13131
    iprot.readStructEnd()
13132
 
13133
  def write(self, oprot):
13134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13136
      return
13137
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
13138
    if self.success is not None:
13139
      oprot.writeFieldBegin('success', TType.LIST, 0)
13140
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13141
      for iter253 in self.success:
13142
        iter253.write(oprot)
13143
      oprot.writeListEnd()
13144
      oprot.writeFieldEnd()
13145
    oprot.writeFieldStop()
13146
    oprot.writeStructEnd()
13147
 
13148
  def validate(self):
13149
    return
13150
 
13151
 
13152
  def __repr__(self):
13153
    L = ['%s=%r' % (key, value)
13154
      for key, value in self.__dict__.iteritems()]
13155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13156
 
13157
  def __eq__(self, other):
13158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13159
 
13160
  def __ne__(self, other):
13161
    return not (self == other)
6805 anupam.sin 13162
 
6821 amar.kumar 13163
class getAllAliveItems_args:
13164
 
13165
  thrift_spec = (
13166
  )
13167
 
13168
  def read(self, iprot):
13169
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13170
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13171
      return
13172
    iprot.readStructBegin()
13173
    while True:
13174
      (fname, ftype, fid) = iprot.readFieldBegin()
13175
      if ftype == TType.STOP:
13176
        break
13177
      else:
13178
        iprot.skip(ftype)
13179
      iprot.readFieldEnd()
13180
    iprot.readStructEnd()
13181
 
13182
  def write(self, oprot):
13183
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13184
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13185
      return
13186
    oprot.writeStructBegin('getAllAliveItems_args')
13187
    oprot.writeFieldStop()
13188
    oprot.writeStructEnd()
13189
 
13190
  def validate(self):
13191
    return
13192
 
13193
 
13194
  def __repr__(self):
13195
    L = ['%s=%r' % (key, value)
13196
      for key, value in self.__dict__.iteritems()]
13197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13198
 
13199
  def __eq__(self, other):
13200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13201
 
13202
  def __ne__(self, other):
13203
    return not (self == other)
13204
 
13205
class getAllAliveItems_result:
13206
  """
13207
  Attributes:
13208
   - success
13209
  """
13210
 
13211
  thrift_spec = (
13212
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13213
  )
13214
 
13215
  def __init__(self, success=None,):
13216
    self.success = success
13217
 
13218
  def read(self, iprot):
13219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13221
      return
13222
    iprot.readStructBegin()
13223
    while True:
13224
      (fname, ftype, fid) = iprot.readFieldBegin()
13225
      if ftype == TType.STOP:
13226
        break
13227
      if fid == 0:
13228
        if ftype == TType.LIST:
13229
          self.success = []
13230
          (_etype257, _size254) = iprot.readListBegin()
13231
          for _i258 in xrange(_size254):
13232
            _elem259 = Item()
13233
            _elem259.read(iprot)
13234
            self.success.append(_elem259)
13235
          iprot.readListEnd()
13236
        else:
13237
          iprot.skip(ftype)
13238
      else:
13239
        iprot.skip(ftype)
13240
      iprot.readFieldEnd()
13241
    iprot.readStructEnd()
13242
 
13243
  def write(self, oprot):
13244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13246
      return
13247
    oprot.writeStructBegin('getAllAliveItems_result')
13248
    if self.success is not None:
13249
      oprot.writeFieldBegin('success', TType.LIST, 0)
13250
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13251
      for iter260 in self.success:
13252
        iter260.write(oprot)
13253
      oprot.writeListEnd()
13254
      oprot.writeFieldEnd()
13255
    oprot.writeFieldStop()
13256
    oprot.writeStructEnd()
13257
 
13258
  def validate(self):
13259
    return
13260
 
13261
 
13262
  def __repr__(self):
13263
    L = ['%s=%r' % (key, value)
13264
      for key, value in self.__dict__.iteritems()]
13265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13266
 
13267
  def __eq__(self, other):
13268
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13269
 
13270
  def __ne__(self, other):
13271
    return not (self == other)
13272
 
6805 anupam.sin 13273
class getInsuranceAmount_args:
13274
  """
13275
  Attributes:
13276
   - itemId
13277
   - insurerId
13278
   - quantity
13279
  """
13280
 
13281
  thrift_spec = (
13282
    None, # 0
13283
    (1, TType.I64, 'itemId', None, None, ), # 1
13284
    (2, TType.I64, 'insurerId', None, None, ), # 2
13285
    (3, TType.I64, 'quantity', None, None, ), # 3
13286
  )
13287
 
13288
  def __init__(self, itemId=None, insurerId=None, quantity=None,):
13289
    self.itemId = itemId
13290
    self.insurerId = insurerId
13291
    self.quantity = quantity
13292
 
13293
  def read(self, iprot):
13294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13296
      return
13297
    iprot.readStructBegin()
13298
    while True:
13299
      (fname, ftype, fid) = iprot.readFieldBegin()
13300
      if ftype == TType.STOP:
13301
        break
13302
      if fid == 1:
13303
        if ftype == TType.I64:
13304
          self.itemId = iprot.readI64();
13305
        else:
13306
          iprot.skip(ftype)
13307
      elif fid == 2:
13308
        if ftype == TType.I64:
13309
          self.insurerId = iprot.readI64();
13310
        else:
13311
          iprot.skip(ftype)
13312
      elif fid == 3:
13313
        if ftype == TType.I64:
13314
          self.quantity = iprot.readI64();
13315
        else:
13316
          iprot.skip(ftype)
13317
      else:
13318
        iprot.skip(ftype)
13319
      iprot.readFieldEnd()
13320
    iprot.readStructEnd()
13321
 
13322
  def write(self, oprot):
13323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13325
      return
13326
    oprot.writeStructBegin('getInsuranceAmount_args')
13327
    if self.itemId is not None:
13328
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13329
      oprot.writeI64(self.itemId)
13330
      oprot.writeFieldEnd()
13331
    if self.insurerId is not None:
13332
      oprot.writeFieldBegin('insurerId', TType.I64, 2)
13333
      oprot.writeI64(self.insurerId)
13334
      oprot.writeFieldEnd()
13335
    if self.quantity is not None:
13336
      oprot.writeFieldBegin('quantity', TType.I64, 3)
13337
      oprot.writeI64(self.quantity)
13338
      oprot.writeFieldEnd()
13339
    oprot.writeFieldStop()
13340
    oprot.writeStructEnd()
13341
 
13342
  def validate(self):
13343
    return
13344
 
13345
 
13346
  def __repr__(self):
13347
    L = ['%s=%r' % (key, value)
13348
      for key, value in self.__dict__.iteritems()]
13349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13350
 
13351
  def __eq__(self, other):
13352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13353
 
13354
  def __ne__(self, other):
13355
    return not (self == other)
13356
 
13357
class getInsuranceAmount_result:
13358
  """
13359
  Attributes:
13360
   - success
13361
  """
13362
 
13363
  thrift_spec = (
13364
    (0, TType.I64, 'success', None, None, ), # 0
13365
  )
13366
 
13367
  def __init__(self, success=None,):
13368
    self.success = success
13369
 
13370
  def read(self, iprot):
13371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13373
      return
13374
    iprot.readStructBegin()
13375
    while True:
13376
      (fname, ftype, fid) = iprot.readFieldBegin()
13377
      if ftype == TType.STOP:
13378
        break
13379
      if fid == 0:
13380
        if ftype == TType.I64:
13381
          self.success = iprot.readI64();
13382
        else:
13383
          iprot.skip(ftype)
13384
      else:
13385
        iprot.skip(ftype)
13386
      iprot.readFieldEnd()
13387
    iprot.readStructEnd()
13388
 
13389
  def write(self, oprot):
13390
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13391
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13392
      return
13393
    oprot.writeStructBegin('getInsuranceAmount_result')
13394
    if self.success is not None:
13395
      oprot.writeFieldBegin('success', TType.I64, 0)
13396
      oprot.writeI64(self.success)
13397
      oprot.writeFieldEnd()
13398
    oprot.writeFieldStop()
13399
    oprot.writeStructEnd()
13400
 
13401
  def validate(self):
13402
    return
13403
 
13404
 
13405
  def __repr__(self):
13406
    L = ['%s=%r' % (key, value)
13407
      for key, value in self.__dict__.iteritems()]
13408
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13409
 
13410
  def __eq__(self, other):
13411
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13412
 
13413
  def __ne__(self, other):
13414
    return not (self == other)
13415
 
13416
class getInsurer_args:
13417
  """
13418
  Attributes:
13419
   - insurerId
13420
  """
13421
 
13422
  thrift_spec = (
13423
    None, # 0
13424
    (1, TType.I64, 'insurerId', None, None, ), # 1
13425
  )
13426
 
13427
  def __init__(self, insurerId=None,):
13428
    self.insurerId = insurerId
13429
 
13430
  def read(self, iprot):
13431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13433
      return
13434
    iprot.readStructBegin()
13435
    while True:
13436
      (fname, ftype, fid) = iprot.readFieldBegin()
13437
      if ftype == TType.STOP:
13438
        break
13439
      if fid == 1:
13440
        if ftype == TType.I64:
13441
          self.insurerId = iprot.readI64();
13442
        else:
13443
          iprot.skip(ftype)
13444
      else:
13445
        iprot.skip(ftype)
13446
      iprot.readFieldEnd()
13447
    iprot.readStructEnd()
13448
 
13449
  def write(self, oprot):
13450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13452
      return
13453
    oprot.writeStructBegin('getInsurer_args')
13454
    if self.insurerId is not None:
13455
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
13456
      oprot.writeI64(self.insurerId)
13457
      oprot.writeFieldEnd()
13458
    oprot.writeFieldStop()
13459
    oprot.writeStructEnd()
13460
 
13461
  def validate(self):
13462
    return
13463
 
13464
 
13465
  def __repr__(self):
13466
    L = ['%s=%r' % (key, value)
13467
      for key, value in self.__dict__.iteritems()]
13468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13469
 
13470
  def __eq__(self, other):
13471
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13472
 
13473
  def __ne__(self, other):
13474
    return not (self == other)
13475
 
13476
class getInsurer_result:
13477
  """
13478
  Attributes:
13479
   - success
13480
  """
13481
 
13482
  thrift_spec = (
13483
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
13484
  )
13485
 
13486
  def __init__(self, success=None,):
13487
    self.success = success
13488
 
13489
  def read(self, iprot):
13490
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13491
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13492
      return
13493
    iprot.readStructBegin()
13494
    while True:
13495
      (fname, ftype, fid) = iprot.readFieldBegin()
13496
      if ftype == TType.STOP:
13497
        break
13498
      if fid == 0:
13499
        if ftype == TType.STRUCT:
13500
          self.success = Insurer()
13501
          self.success.read(iprot)
13502
        else:
13503
          iprot.skip(ftype)
13504
      else:
13505
        iprot.skip(ftype)
13506
      iprot.readFieldEnd()
13507
    iprot.readStructEnd()
13508
 
13509
  def write(self, oprot):
13510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13512
      return
13513
    oprot.writeStructBegin('getInsurer_result')
13514
    if self.success is not None:
13515
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13516
      self.success.write(oprot)
13517
      oprot.writeFieldEnd()
13518
    oprot.writeFieldStop()
13519
    oprot.writeStructEnd()
13520
 
13521
  def validate(self):
13522
    return
13523
 
13524
 
13525
  def __repr__(self):
13526
    L = ['%s=%r' % (key, value)
13527
      for key, value in self.__dict__.iteritems()]
13528
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13529
 
13530
  def __eq__(self, other):
13531
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13532
 
13533
  def __ne__(self, other):
13534
    return not (self == other)
6838 vikram.rag 13535
 
13536
class getAllInsurers_args:
13537
 
13538
  thrift_spec = (
13539
  )
13540
 
13541
  def read(self, iprot):
13542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13544
      return
13545
    iprot.readStructBegin()
13546
    while True:
13547
      (fname, ftype, fid) = iprot.readFieldBegin()
13548
      if ftype == TType.STOP:
13549
        break
13550
      else:
13551
        iprot.skip(ftype)
13552
      iprot.readFieldEnd()
13553
    iprot.readStructEnd()
13554
 
13555
  def write(self, oprot):
13556
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13557
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13558
      return
13559
    oprot.writeStructBegin('getAllInsurers_args')
13560
    oprot.writeFieldStop()
13561
    oprot.writeStructEnd()
13562
 
13563
  def validate(self):
13564
    return
13565
 
13566
 
13567
  def __repr__(self):
13568
    L = ['%s=%r' % (key, value)
13569
      for key, value in self.__dict__.iteritems()]
13570
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13571
 
13572
  def __eq__(self, other):
13573
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13574
 
13575
  def __ne__(self, other):
13576
    return not (self == other)
13577
 
13578
class getAllInsurers_result:
13579
  """
13580
  Attributes:
13581
   - success
13582
  """
13583
 
13584
  thrift_spec = (
13585
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
13586
  )
13587
 
13588
  def __init__(self, success=None,):
13589
    self.success = success
13590
 
13591
  def read(self, iprot):
13592
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13593
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13594
      return
13595
    iprot.readStructBegin()
13596
    while True:
13597
      (fname, ftype, fid) = iprot.readFieldBegin()
13598
      if ftype == TType.STOP:
13599
        break
13600
      if fid == 0:
13601
        if ftype == TType.LIST:
13602
          self.success = []
13603
          (_etype264, _size261) = iprot.readListBegin()
13604
          for _i265 in xrange(_size261):
13605
            _elem266 = Insurer()
13606
            _elem266.read(iprot)
13607
            self.success.append(_elem266)
13608
          iprot.readListEnd()
13609
        else:
13610
          iprot.skip(ftype)
13611
      else:
13612
        iprot.skip(ftype)
13613
      iprot.readFieldEnd()
13614
    iprot.readStructEnd()
13615
 
13616
  def write(self, oprot):
13617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13619
      return
13620
    oprot.writeStructBegin('getAllInsurers_result')
13621
    if self.success is not None:
13622
      oprot.writeFieldBegin('success', TType.LIST, 0)
13623
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13624
      for iter267 in self.success:
13625
        iter267.write(oprot)
13626
      oprot.writeListEnd()
13627
      oprot.writeFieldEnd()
13628
    oprot.writeFieldStop()
13629
    oprot.writeStructEnd()
13630
 
13631
  def validate(self):
13632
    return
13633
 
13634
 
13635
  def __repr__(self):
13636
    L = ['%s=%r' % (key, value)
13637
      for key, value in self.__dict__.iteritems()]
13638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13639
 
13640
  def __eq__(self, other):
13641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13642
 
13643
  def __ne__(self, other):
13644
    return not (self == other)