Subversion Repositories SmartDukaan

Rev

Rev 6512 | Rev 6805 | 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
 
6531 vikram.rag 567
 
5944 mandeep.dh 568
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
569
  def __init__(self, iprot, oprot=None):
570
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
571
 
572
  def addItem(self, item):
573
    """
574
    Availability and inventory attributes
575
 
576
    Parameters:
577
     - item
578
    """
579
    self.send_addItem(item)
580
    return self.recv_addItem()
581
 
582
  def send_addItem(self, item):
583
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
584
    args = addItem_args()
585
    args.item = item
586
    args.write(self._oprot)
587
    self._oprot.writeMessageEnd()
588
    self._oprot.trans.flush()
589
 
590
  def recv_addItem(self, ):
591
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
592
    if mtype == TMessageType.EXCEPTION:
593
      x = TApplicationException()
594
      x.read(self._iprot)
595
      self._iprot.readMessageEnd()
596
      raise x
597
    result = addItem_result()
598
    result.read(self._iprot)
599
    self._iprot.readMessageEnd()
600
    if result.success is not None:
601
      return result.success
602
    if result.cex is not None:
603
      raise result.cex
604
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
605
 
606
  def updateItem(self, item):
607
    """
608
    Parameters:
609
     - item
610
    """
611
    self.send_updateItem(item)
612
    return self.recv_updateItem()
613
 
614
  def send_updateItem(self, item):
615
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
616
    args = updateItem_args()
617
    args.item = item
618
    args.write(self._oprot)
619
    self._oprot.writeMessageEnd()
620
    self._oprot.trans.flush()
621
 
622
  def recv_updateItem(self, ):
623
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
624
    if mtype == TMessageType.EXCEPTION:
625
      x = TApplicationException()
626
      x.read(self._iprot)
627
      self._iprot.readMessageEnd()
628
      raise x
629
    result = updateItem_result()
630
    result.read(self._iprot)
631
    self._iprot.readMessageEnd()
632
    if result.success is not None:
633
      return result.success
634
    if result.cex is not None:
635
      raise result.cex
636
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
637
 
638
  def isActive(self, itemId):
639
    """
640
    Checks if the item given to the corresponding itemId is active. If it's active,
641
    whether it's risky and if it's risky, its inventory position.
642
 
643
    Parameters:
644
     - itemId
645
    """
646
    self.send_isActive(itemId)
647
    return self.recv_isActive()
648
 
649
  def send_isActive(self, itemId):
650
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
651
    args = isActive_args()
652
    args.itemId = itemId
653
    args.write(self._oprot)
654
    self._oprot.writeMessageEnd()
655
    self._oprot.trans.flush()
656
 
657
  def recv_isActive(self, ):
658
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
659
    if mtype == TMessageType.EXCEPTION:
660
      x = TApplicationException()
661
      x.read(self._iprot)
662
      self._iprot.readMessageEnd()
663
      raise x
664
    result = isActive_result()
665
    result.read(self._iprot)
666
    self._iprot.readMessageEnd()
667
    if result.success is not None:
668
      return result.success
669
    if result.isex is not None:
670
      raise result.isex
671
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
672
 
673
  def getItemStatusDescription(self, itemId):
674
    """
675
    Parameters:
676
     - itemId
677
    """
678
    self.send_getItemStatusDescription(itemId)
679
    return self.recv_getItemStatusDescription()
680
 
681
  def send_getItemStatusDescription(self, itemId):
682
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
683
    args = getItemStatusDescription_args()
684
    args.itemId = itemId
685
    args.write(self._oprot)
686
    self._oprot.writeMessageEnd()
687
    self._oprot.trans.flush()
688
 
689
  def recv_getItemStatusDescription(self, ):
690
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
691
    if mtype == TMessageType.EXCEPTION:
692
      x = TApplicationException()
693
      x.read(self._iprot)
694
      self._iprot.readMessageEnd()
695
      raise x
696
    result = getItemStatusDescription_result()
697
    result.read(self._iprot)
698
    self._iprot.readMessageEnd()
699
    if result.success is not None:
700
      return result.success
701
    if result.isex is not None:
702
      raise result.isex
703
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
704
 
705
  def startItemOn(self, item_id, timestamp):
706
    """
707
    Parameters:
708
     - item_id
709
     - timestamp
710
    """
711
    self.send_startItemOn(item_id, timestamp)
712
    self.recv_startItemOn()
713
 
714
  def send_startItemOn(self, item_id, timestamp):
715
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
716
    args = startItemOn_args()
717
    args.item_id = item_id
718
    args.timestamp = timestamp
719
    args.write(self._oprot)
720
    self._oprot.writeMessageEnd()
721
    self._oprot.trans.flush()
722
 
723
  def recv_startItemOn(self, ):
724
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
725
    if mtype == TMessageType.EXCEPTION:
726
      x = TApplicationException()
727
      x.read(self._iprot)
728
      self._iprot.readMessageEnd()
729
      raise x
730
    result = startItemOn_result()
731
    result.read(self._iprot)
732
    self._iprot.readMessageEnd()
733
    if result.cex is not None:
734
      raise result.cex
735
    return
736
 
737
  def retireItemOn(self, item_id, timestamp):
738
    """
739
    Parameters:
740
     - item_id
741
     - timestamp
742
    """
743
    self.send_retireItemOn(item_id, timestamp)
744
    self.recv_retireItemOn()
745
 
746
  def send_retireItemOn(self, item_id, timestamp):
747
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
748
    args = retireItemOn_args()
749
    args.item_id = item_id
750
    args.timestamp = timestamp
751
    args.write(self._oprot)
752
    self._oprot.writeMessageEnd()
753
    self._oprot.trans.flush()
754
 
755
  def recv_retireItemOn(self, ):
756
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
757
    if mtype == TMessageType.EXCEPTION:
758
      x = TApplicationException()
759
      x.read(self._iprot)
760
      self._iprot.readMessageEnd()
761
      raise x
762
    result = retireItemOn_result()
763
    result.read(self._iprot)
764
    self._iprot.readMessageEnd()
765
    if result.cex is not None:
766
      raise result.cex
767
    return
768
 
769
  def changeItemStatus(self, item_id, timestamp, newstatus):
770
    """
771
    Parameters:
772
     - item_id
773
     - timestamp
774
     - newstatus
775
    """
776
    self.send_changeItemStatus(item_id, timestamp, newstatus)
777
    self.recv_changeItemStatus()
778
 
779
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
780
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
781
    args = changeItemStatus_args()
782
    args.item_id = item_id
783
    args.timestamp = timestamp
784
    args.newstatus = newstatus
785
    args.write(self._oprot)
786
    self._oprot.writeMessageEnd()
787
    self._oprot.trans.flush()
788
 
789
  def recv_changeItemStatus(self, ):
790
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
791
    if mtype == TMessageType.EXCEPTION:
792
      x = TApplicationException()
793
      x.read(self._iprot)
794
      self._iprot.readMessageEnd()
795
      raise x
796
    result = changeItemStatus_result()
797
    result.read(self._iprot)
798
    self._iprot.readMessageEnd()
799
    if result.cex is not None:
800
      raise result.cex
801
    return
802
 
803
  def getItem(self, item_id):
804
    """
805
    Parameters:
806
     - item_id
807
    """
808
    self.send_getItem(item_id)
809
    return self.recv_getItem()
810
 
811
  def send_getItem(self, item_id):
812
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
813
    args = getItem_args()
814
    args.item_id = item_id
815
    args.write(self._oprot)
816
    self._oprot.writeMessageEnd()
817
    self._oprot.trans.flush()
818
 
819
  def recv_getItem(self, ):
820
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
821
    if mtype == TMessageType.EXCEPTION:
822
      x = TApplicationException()
823
      x.read(self._iprot)
824
      self._iprot.readMessageEnd()
825
      raise x
826
    result = getItem_result()
827
    result.read(self._iprot)
828
    self._iprot.readMessageEnd()
829
    if result.success is not None:
830
      return result.success
831
    if result.cex is not None:
832
      raise result.cex
833
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
834
 
835
  def getItemsByCatalogId(self, catalog_item_id):
836
    """
837
    Parameters:
838
     - catalog_item_id
839
    """
840
    self.send_getItemsByCatalogId(catalog_item_id)
841
    return self.recv_getItemsByCatalogId()
842
 
843
  def send_getItemsByCatalogId(self, catalog_item_id):
844
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
845
    args = getItemsByCatalogId_args()
846
    args.catalog_item_id = catalog_item_id
847
    args.write(self._oprot)
848
    self._oprot.writeMessageEnd()
849
    self._oprot.trans.flush()
850
 
851
  def recv_getItemsByCatalogId(self, ):
852
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
853
    if mtype == TMessageType.EXCEPTION:
854
      x = TApplicationException()
855
      x.read(self._iprot)
856
      self._iprot.readMessageEnd()
857
      raise x
858
    result = getItemsByCatalogId_result()
859
    result.read(self._iprot)
860
    self._iprot.readMessageEnd()
861
    if result.success is not None:
862
      return result.success
863
    if result.cex is not None:
864
      raise result.cex
865
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
866
 
867
  def getValidItemsByCatalogId(self, catalog_item_id):
868
    """
869
    Parameters:
870
     - catalog_item_id
871
    """
872
    self.send_getValidItemsByCatalogId(catalog_item_id)
873
    return self.recv_getValidItemsByCatalogId()
874
 
875
  def send_getValidItemsByCatalogId(self, catalog_item_id):
876
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
877
    args = getValidItemsByCatalogId_args()
878
    args.catalog_item_id = catalog_item_id
879
    args.write(self._oprot)
880
    self._oprot.writeMessageEnd()
881
    self._oprot.trans.flush()
882
 
883
  def recv_getValidItemsByCatalogId(self, ):
884
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
885
    if mtype == TMessageType.EXCEPTION:
886
      x = TApplicationException()
887
      x.read(self._iprot)
888
      self._iprot.readMessageEnd()
889
      raise x
890
    result = getValidItemsByCatalogId_result()
891
    result.read(self._iprot)
892
    self._iprot.readMessageEnd()
893
    if result.success is not None:
894
      return result.success
895
    if result.cex is not None:
896
      raise result.cex
897
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
898
 
899
  def getAllItems(self, isActive):
900
    """
901
    Parameters:
902
     - isActive
903
    """
904
    self.send_getAllItems(isActive)
905
    return self.recv_getAllItems()
906
 
907
  def send_getAllItems(self, isActive):
908
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
909
    args = getAllItems_args()
910
    args.isActive = isActive
911
    args.write(self._oprot)
912
    self._oprot.writeMessageEnd()
913
    self._oprot.trans.flush()
914
 
915
  def recv_getAllItems(self, ):
916
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
917
    if mtype == TMessageType.EXCEPTION:
918
      x = TApplicationException()
919
      x.read(self._iprot)
920
      self._iprot.readMessageEnd()
921
      raise x
922
    result = getAllItems_result()
923
    result.read(self._iprot)
924
    self._iprot.readMessageEnd()
925
    if result.success is not None:
926
      return result.success
927
    if result.cex is not None:
928
      raise result.cex
929
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
930
 
931
  def getAllItemsByStatus(self, itemStatus):
932
    """
933
    Parameters:
934
     - itemStatus
935
    """
936
    self.send_getAllItemsByStatus(itemStatus)
937
    return self.recv_getAllItemsByStatus()
938
 
939
  def send_getAllItemsByStatus(self, itemStatus):
940
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
941
    args = getAllItemsByStatus_args()
942
    args.itemStatus = itemStatus
943
    args.write(self._oprot)
944
    self._oprot.writeMessageEnd()
945
    self._oprot.trans.flush()
946
 
947
  def recv_getAllItemsByStatus(self, ):
948
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
949
    if mtype == TMessageType.EXCEPTION:
950
      x = TApplicationException()
951
      x.read(self._iprot)
952
      self._iprot.readMessageEnd()
953
      raise x
954
    result = getAllItemsByStatus_result()
955
    result.read(self._iprot)
956
    self._iprot.readMessageEnd()
957
    if result.success is not None:
958
      return result.success
959
    if result.cex is not None:
960
      raise result.cex
961
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
962
 
963
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
964
    """
965
    Parameters:
966
     - entityId
967
     - category
968
     - brand
969
     - modelName
970
     - modelNumber
971
    """
972
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
973
    return self.recv_markItemAsContentComplete()
974
 
975
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
976
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
977
    args = markItemAsContentComplete_args()
978
    args.entityId = entityId
979
    args.category = category
980
    args.brand = brand
981
    args.modelName = modelName
982
    args.modelNumber = modelNumber
983
    args.write(self._oprot)
984
    self._oprot.writeMessageEnd()
985
    self._oprot.trans.flush()
986
 
987
  def recv_markItemAsContentComplete(self, ):
988
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
989
    if mtype == TMessageType.EXCEPTION:
990
      x = TApplicationException()
991
      x.read(self._iprot)
992
      self._iprot.readMessageEnd()
993
      raise x
994
    result = markItemAsContentComplete_result()
995
    result.read(self._iprot)
996
    self._iprot.readMessageEnd()
997
    if result.success is not None:
998
      return result.success
999
    if result.cex is not None:
1000
      raise result.cex
1001
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1002
 
1003
  def getAllItemsInRange(self, offset, limit):
1004
    """
1005
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1006
 
1007
    Parameters:
1008
     - offset
1009
     - limit
1010
    """
1011
    self.send_getAllItemsInRange(offset, limit)
1012
    return self.recv_getAllItemsInRange()
1013
 
1014
  def send_getAllItemsInRange(self, offset, limit):
1015
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1016
    args = getAllItemsInRange_args()
1017
    args.offset = offset
1018
    args.limit = limit
1019
    args.write(self._oprot)
1020
    self._oprot.writeMessageEnd()
1021
    self._oprot.trans.flush()
1022
 
1023
  def recv_getAllItemsInRange(self, ):
1024
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1025
    if mtype == TMessageType.EXCEPTION:
1026
      x = TApplicationException()
1027
      x.read(self._iprot)
1028
      self._iprot.readMessageEnd()
1029
      raise x
1030
    result = getAllItemsInRange_result()
1031
    result.read(self._iprot)
1032
    self._iprot.readMessageEnd()
1033
    if result.success is not None:
1034
      return result.success
1035
    if result.cex is not None:
1036
      raise result.cex
1037
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1038
 
1039
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1040
    """
1041
    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.
1042
 
1043
    Parameters:
1044
     - itemStatus
1045
     - offset
1046
     - limit
1047
    """
1048
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1049
    return self.recv_getAllItemsByStatusInRange()
1050
 
1051
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1052
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1053
    args = getAllItemsByStatusInRange_args()
1054
    args.itemStatus = itemStatus
1055
    args.offset = offset
1056
    args.limit = limit
1057
    args.write(self._oprot)
1058
    self._oprot.writeMessageEnd()
1059
    self._oprot.trans.flush()
1060
 
1061
  def recv_getAllItemsByStatusInRange(self, ):
1062
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1063
    if mtype == TMessageType.EXCEPTION:
1064
      x = TApplicationException()
1065
      x.read(self._iprot)
1066
      self._iprot.readMessageEnd()
1067
      raise x
1068
    result = getAllItemsByStatusInRange_result()
1069
    result.read(self._iprot)
1070
    self._iprot.readMessageEnd()
1071
    if result.success is not None:
1072
      return result.success
1073
    if result.cex is not None:
1074
      raise result.cex
1075
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1076
 
1077
  def getItemCountByStatus(self, useStatus, itemStatus):
1078
    """
1079
    Gets a count of all items by status
1080
 
1081
    Parameters:
1082
     - useStatus
1083
     - itemStatus
1084
    """
1085
    self.send_getItemCountByStatus(useStatus, itemStatus)
1086
    return self.recv_getItemCountByStatus()
1087
 
1088
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1089
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1090
    args = getItemCountByStatus_args()
1091
    args.useStatus = useStatus
1092
    args.itemStatus = itemStatus
1093
    args.write(self._oprot)
1094
    self._oprot.writeMessageEnd()
1095
    self._oprot.trans.flush()
1096
 
1097
  def recv_getItemCountByStatus(self, ):
1098
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1099
    if mtype == TMessageType.EXCEPTION:
1100
      x = TApplicationException()
1101
      x.read(self._iprot)
1102
      self._iprot.readMessageEnd()
1103
      raise x
1104
    result = getItemCountByStatus_result()
1105
    result.read(self._iprot)
1106
    self._iprot.readMessageEnd()
1107
    if result.success is not None:
1108
      return result.success
1109
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1110
 
1111
  def getBestSellers(self, ):
1112
    self.send_getBestSellers()
1113
    return self.recv_getBestSellers()
1114
 
1115
  def send_getBestSellers(self, ):
1116
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1117
    args = getBestSellers_args()
1118
    args.write(self._oprot)
1119
    self._oprot.writeMessageEnd()
1120
    self._oprot.trans.flush()
1121
 
1122
  def recv_getBestSellers(self, ):
1123
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1124
    if mtype == TMessageType.EXCEPTION:
1125
      x = TApplicationException()
1126
      x.read(self._iprot)
1127
      self._iprot.readMessageEnd()
1128
      raise x
1129
    result = getBestSellers_result()
1130
    result.read(self._iprot)
1131
    self._iprot.readMessageEnd()
1132
    if result.success is not None:
1133
      return result.success
1134
    if result.isex is not None:
1135
      raise result.isex
1136
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1137
 
1138
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1139
    """
1140
    Parameters:
1141
     - beginIndex
1142
     - totalItems
1143
     - brand
1144
     - category
1145
    """
1146
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1147
    return self.recv_getBestSellersCatalogIds()
1148
 
1149
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1150
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1151
    args = getBestSellersCatalogIds_args()
1152
    args.beginIndex = beginIndex
1153
    args.totalItems = totalItems
1154
    args.brand = brand
1155
    args.category = category
1156
    args.write(self._oprot)
1157
    self._oprot.writeMessageEnd()
1158
    self._oprot.trans.flush()
1159
 
1160
  def recv_getBestSellersCatalogIds(self, ):
1161
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1162
    if mtype == TMessageType.EXCEPTION:
1163
      x = TApplicationException()
1164
      x.read(self._iprot)
1165
      self._iprot.readMessageEnd()
1166
      raise x
1167
    result = getBestSellersCatalogIds_result()
1168
    result.read(self._iprot)
1169
    self._iprot.readMessageEnd()
1170
    if result.success is not None:
1171
      return result.success
1172
    if result.cex is not None:
1173
      raise result.cex
1174
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1175
 
1176
  def getBestSellersCount(self, ):
1177
    self.send_getBestSellersCount()
1178
    return self.recv_getBestSellersCount()
1179
 
1180
  def send_getBestSellersCount(self, ):
1181
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1182
    args = getBestSellersCount_args()
1183
    args.write(self._oprot)
1184
    self._oprot.writeMessageEnd()
1185
    self._oprot.trans.flush()
1186
 
1187
  def recv_getBestSellersCount(self, ):
1188
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1189
    if mtype == TMessageType.EXCEPTION:
1190
      x = TApplicationException()
1191
      x.read(self._iprot)
1192
      self._iprot.readMessageEnd()
1193
      raise x
1194
    result = getBestSellersCount_result()
1195
    result.read(self._iprot)
1196
    self._iprot.readMessageEnd()
1197
    if result.success is not None:
1198
      return result.success
1199
    if result.cex is not None:
1200
      raise result.cex
1201
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1202
 
1203
  def getBestDeals(self, ):
1204
    self.send_getBestDeals()
1205
    return self.recv_getBestDeals()
1206
 
1207
  def send_getBestDeals(self, ):
1208
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1209
    args = getBestDeals_args()
1210
    args.write(self._oprot)
1211
    self._oprot.writeMessageEnd()
1212
    self._oprot.trans.flush()
1213
 
1214
  def recv_getBestDeals(self, ):
1215
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1216
    if mtype == TMessageType.EXCEPTION:
1217
      x = TApplicationException()
1218
      x.read(self._iprot)
1219
      self._iprot.readMessageEnd()
1220
      raise x
1221
    result = getBestDeals_result()
1222
    result.read(self._iprot)
1223
    self._iprot.readMessageEnd()
1224
    if result.success is not None:
1225
      return result.success
1226
    if result.isex is not None:
1227
      raise result.isex
1228
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1229
 
1230
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1231
    """
1232
    Parameters:
1233
     - beginIndex
1234
     - totalItems
1235
     - brand
1236
     - category
1237
    """
1238
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1239
    return self.recv_getBestDealsCatalogIds()
1240
 
1241
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1242
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1243
    args = getBestDealsCatalogIds_args()
1244
    args.beginIndex = beginIndex
1245
    args.totalItems = totalItems
1246
    args.brand = brand
1247
    args.category = category
1248
    args.write(self._oprot)
1249
    self._oprot.writeMessageEnd()
1250
    self._oprot.trans.flush()
1251
 
1252
  def recv_getBestDealsCatalogIds(self, ):
1253
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1254
    if mtype == TMessageType.EXCEPTION:
1255
      x = TApplicationException()
1256
      x.read(self._iprot)
1257
      self._iprot.readMessageEnd()
1258
      raise x
1259
    result = getBestDealsCatalogIds_result()
1260
    result.read(self._iprot)
1261
    self._iprot.readMessageEnd()
1262
    if result.success is not None:
1263
      return result.success
1264
    if result.cex is not None:
1265
      raise result.cex
1266
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1267
 
1268
  def getBestDealsCount(self, ):
1269
    self.send_getBestDealsCount()
1270
    return self.recv_getBestDealsCount()
1271
 
1272
  def send_getBestDealsCount(self, ):
1273
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1274
    args = getBestDealsCount_args()
1275
    args.write(self._oprot)
1276
    self._oprot.writeMessageEnd()
1277
    self._oprot.trans.flush()
1278
 
1279
  def recv_getBestDealsCount(self, ):
1280
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1281
    if mtype == TMessageType.EXCEPTION:
1282
      x = TApplicationException()
1283
      x.read(self._iprot)
1284
      self._iprot.readMessageEnd()
1285
      raise x
1286
    result = getBestDealsCount_result()
1287
    result.read(self._iprot)
1288
    self._iprot.readMessageEnd()
1289
    if result.success is not None:
1290
      return result.success
1291
    if result.cex is not None:
1292
      raise result.cex
1293
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1294
 
1295
  def getComingSoon(self, ):
1296
    self.send_getComingSoon()
1297
    return self.recv_getComingSoon()
1298
 
1299
  def send_getComingSoon(self, ):
1300
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1301
    args = getComingSoon_args()
1302
    args.write(self._oprot)
1303
    self._oprot.writeMessageEnd()
1304
    self._oprot.trans.flush()
1305
 
1306
  def recv_getComingSoon(self, ):
1307
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1308
    if mtype == TMessageType.EXCEPTION:
1309
      x = TApplicationException()
1310
      x.read(self._iprot)
1311
      self._iprot.readMessageEnd()
1312
      raise x
1313
    result = getComingSoon_result()
1314
    result.read(self._iprot)
1315
    self._iprot.readMessageEnd()
1316
    if result.success is not None:
1317
      return result.success
1318
    if result.isex is not None:
1319
      raise result.isex
1320
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1321
 
1322
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1323
    """
1324
    Parameters:
1325
     - beginIndex
1326
     - totalItems
1327
     - brand
1328
     - category
1329
    """
1330
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1331
    return self.recv_getComingSoonCatalogIds()
1332
 
1333
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1334
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1335
    args = getComingSoonCatalogIds_args()
1336
    args.beginIndex = beginIndex
1337
    args.totalItems = totalItems
1338
    args.brand = brand
1339
    args.category = category
1340
    args.write(self._oprot)
1341
    self._oprot.writeMessageEnd()
1342
    self._oprot.trans.flush()
1343
 
1344
  def recv_getComingSoonCatalogIds(self, ):
1345
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1346
    if mtype == TMessageType.EXCEPTION:
1347
      x = TApplicationException()
1348
      x.read(self._iprot)
1349
      self._iprot.readMessageEnd()
1350
      raise x
1351
    result = getComingSoonCatalogIds_result()
1352
    result.read(self._iprot)
1353
    self._iprot.readMessageEnd()
1354
    if result.success is not None:
1355
      return result.success
1356
    if result.cex is not None:
1357
      raise result.cex
1358
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1359
 
1360
  def getComingSoonCount(self, ):
1361
    self.send_getComingSoonCount()
1362
    return self.recv_getComingSoonCount()
1363
 
1364
  def send_getComingSoonCount(self, ):
1365
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1366
    args = getComingSoonCount_args()
1367
    args.write(self._oprot)
1368
    self._oprot.writeMessageEnd()
1369
    self._oprot.trans.flush()
1370
 
1371
  def recv_getComingSoonCount(self, ):
1372
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1373
    if mtype == TMessageType.EXCEPTION:
1374
      x = TApplicationException()
1375
      x.read(self._iprot)
1376
      self._iprot.readMessageEnd()
1377
      raise x
1378
    result = getComingSoonCount_result()
1379
    result.read(self._iprot)
1380
    self._iprot.readMessageEnd()
1381
    if result.success is not None:
1382
      return result.success
1383
    if result.cex is not None:
1384
      raise result.cex
1385
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1386
 
1387
  def getLatestArrivals(self, ):
1388
    """
1389
    Returns a list of items sorted in the descending order by start date.
1390
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1391
    """
1392
    self.send_getLatestArrivals()
1393
    return self.recv_getLatestArrivals()
1394
 
1395
  def send_getLatestArrivals(self, ):
1396
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1397
    args = getLatestArrivals_args()
1398
    args.write(self._oprot)
1399
    self._oprot.writeMessageEnd()
1400
    self._oprot.trans.flush()
1401
 
1402
  def recv_getLatestArrivals(self, ):
1403
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1404
    if mtype == TMessageType.EXCEPTION:
1405
      x = TApplicationException()
1406
      x.read(self._iprot)
1407
      self._iprot.readMessageEnd()
1408
      raise x
1409
    result = getLatestArrivals_result()
1410
    result.read(self._iprot)
1411
    self._iprot.readMessageEnd()
1412
    if result.success is not None:
1413
      return result.success
1414
    if result.isex is not None:
1415
      raise result.isex
1416
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1417
 
1418
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1419
    """
1420
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1421
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1422
 
1423
    Parameters:
1424
     - beginIndex
1425
     - totalItems
1426
     - brand
1427
     - categories
1428
    """
1429
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1430
    return self.recv_getLatestArrivalsCatalogIds()
1431
 
1432
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1433
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1434
    args = getLatestArrivalsCatalogIds_args()
1435
    args.beginIndex = beginIndex
1436
    args.totalItems = totalItems
1437
    args.brand = brand
1438
    args.categories = categories
1439
    args.write(self._oprot)
1440
    self._oprot.writeMessageEnd()
1441
    self._oprot.trans.flush()
1442
 
1443
  def recv_getLatestArrivalsCatalogIds(self, ):
1444
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1445
    if mtype == TMessageType.EXCEPTION:
1446
      x = TApplicationException()
1447
      x.read(self._iprot)
1448
      self._iprot.readMessageEnd()
1449
      raise x
1450
    result = getLatestArrivalsCatalogIds_result()
1451
    result.read(self._iprot)
1452
    self._iprot.readMessageEnd()
1453
    if result.success is not None:
1454
      return result.success
1455
    if result.cex is not None:
1456
      raise result.cex
1457
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1458
 
1459
  def getLatestArrivalsCount(self, ):
1460
    """
1461
    Get the total number of latest arrivals we are willing to show.
1462
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1463
    """
1464
    self.send_getLatestArrivalsCount()
1465
    return self.recv_getLatestArrivalsCount()
1466
 
1467
  def send_getLatestArrivalsCount(self, ):
1468
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1469
    args = getLatestArrivalsCount_args()
1470
    args.write(self._oprot)
1471
    self._oprot.writeMessageEnd()
1472
    self._oprot.trans.flush()
1473
 
1474
  def recv_getLatestArrivalsCount(self, ):
1475
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1476
    if mtype == TMessageType.EXCEPTION:
1477
      x = TApplicationException()
1478
      x.read(self._iprot)
1479
      self._iprot.readMessageEnd()
1480
      raise x
1481
    result = getLatestArrivalsCount_result()
1482
    result.read(self._iprot)
1483
    self._iprot.readMessageEnd()
1484
    if result.success is not None:
1485
      return result.success
1486
    if result.cex is not None:
1487
      raise result.cex
1488
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1489
 
1490
  def generateNewEntityID(self, ):
1491
    self.send_generateNewEntityID()
1492
    return self.recv_generateNewEntityID()
1493
 
1494
  def send_generateNewEntityID(self, ):
1495
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1496
    args = generateNewEntityID_args()
1497
    args.write(self._oprot)
1498
    self._oprot.writeMessageEnd()
1499
    self._oprot.trans.flush()
1500
 
1501
  def recv_generateNewEntityID(self, ):
1502
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1503
    if mtype == TMessageType.EXCEPTION:
1504
      x = TApplicationException()
1505
      x.read(self._iprot)
1506
      self._iprot.readMessageEnd()
1507
      raise x
1508
    result = generateNewEntityID_result()
1509
    result.read(self._iprot)
1510
    self._iprot.readMessageEnd()
1511
    if result.success is not None:
1512
      return result.success
1513
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1514
 
1515
  def addCategory(self, category):
1516
    """
1517
    All category related functions
1518
 
1519
    Parameters:
1520
     - category
1521
    """
1522
    self.send_addCategory(category)
1523
    return self.recv_addCategory()
1524
 
1525
  def send_addCategory(self, category):
1526
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1527
    args = addCategory_args()
1528
    args.category = category
1529
    args.write(self._oprot)
1530
    self._oprot.writeMessageEnd()
1531
    self._oprot.trans.flush()
1532
 
1533
  def recv_addCategory(self, ):
1534
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1535
    if mtype == TMessageType.EXCEPTION:
1536
      x = TApplicationException()
1537
      x.read(self._iprot)
1538
      self._iprot.readMessageEnd()
1539
      raise x
1540
    result = addCategory_result()
1541
    result.read(self._iprot)
1542
    self._iprot.readMessageEnd()
1543
    if result.success is not None:
1544
      return result.success
1545
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1546
 
1547
  def getCategory(self, id):
1548
    """
1549
    Parameters:
1550
     - id
1551
    """
1552
    self.send_getCategory(id)
1553
    return self.recv_getCategory()
1554
 
1555
  def send_getCategory(self, id):
1556
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1557
    args = getCategory_args()
1558
    args.id = id
1559
    args.write(self._oprot)
1560
    self._oprot.writeMessageEnd()
1561
    self._oprot.trans.flush()
1562
 
1563
  def recv_getCategory(self, ):
1564
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1565
    if mtype == TMessageType.EXCEPTION:
1566
      x = TApplicationException()
1567
      x.read(self._iprot)
1568
      self._iprot.readMessageEnd()
1569
      raise x
1570
    result = getCategory_result()
1571
    result.read(self._iprot)
1572
    self._iprot.readMessageEnd()
1573
    if result.success is not None:
1574
      return result.success
1575
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1576
 
1577
  def getAllCategories(self, ):
1578
    self.send_getAllCategories()
1579
    return self.recv_getAllCategories()
1580
 
1581
  def send_getAllCategories(self, ):
1582
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1583
    args = getAllCategories_args()
1584
    args.write(self._oprot)
1585
    self._oprot.writeMessageEnd()
1586
    self._oprot.trans.flush()
1587
 
1588
  def recv_getAllCategories(self, ):
1589
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1590
    if mtype == TMessageType.EXCEPTION:
1591
      x = TApplicationException()
1592
      x.read(self._iprot)
1593
      self._iprot.readMessageEnd()
1594
      raise x
1595
    result = getAllCategories_result()
1596
    result.read(self._iprot)
1597
    self._iprot.readMessageEnd()
1598
    if result.success is not None:
1599
      return result.success
1600
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1601
 
1602
  def getAllSimilarItems(self, itemId):
1603
    """
1604
    Returns the list of similar items.
1605
 
1606
    Parameters:
1607
     - itemId
1608
    """
1609
    self.send_getAllSimilarItems(itemId)
1610
    return self.recv_getAllSimilarItems()
1611
 
1612
  def send_getAllSimilarItems(self, itemId):
1613
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1614
    args = getAllSimilarItems_args()
1615
    args.itemId = itemId
1616
    args.write(self._oprot)
1617
    self._oprot.writeMessageEnd()
1618
    self._oprot.trans.flush()
1619
 
1620
  def recv_getAllSimilarItems(self, ):
1621
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1622
    if mtype == TMessageType.EXCEPTION:
1623
      x = TApplicationException()
1624
      x.read(self._iprot)
1625
      self._iprot.readMessageEnd()
1626
      raise x
1627
    result = getAllSimilarItems_result()
1628
    result.read(self._iprot)
1629
    self._iprot.readMessageEnd()
1630
    if result.success is not None:
1631
      return result.success
1632
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1633
 
1634
  def addSimilarItem(self, itemId, catalogItemId):
1635
    """
1636
    Adds similar item.
1637
 
1638
    Parameters:
1639
     - itemId
1640
     - catalogItemId
1641
    """
1642
    self.send_addSimilarItem(itemId, catalogItemId)
1643
    return self.recv_addSimilarItem()
1644
 
1645
  def send_addSimilarItem(self, itemId, catalogItemId):
1646
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1647
    args = addSimilarItem_args()
1648
    args.itemId = itemId
1649
    args.catalogItemId = catalogItemId
1650
    args.write(self._oprot)
1651
    self._oprot.writeMessageEnd()
1652
    self._oprot.trans.flush()
1653
 
1654
  def recv_addSimilarItem(self, ):
1655
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1656
    if mtype == TMessageType.EXCEPTION:
1657
      x = TApplicationException()
1658
      x.read(self._iprot)
1659
      self._iprot.readMessageEnd()
1660
      raise x
1661
    result = addSimilarItem_result()
1662
    result.read(self._iprot)
1663
    self._iprot.readMessageEnd()
1664
    if result.success is not None:
1665
      return result.success
1666
    if result.cex is not None:
1667
      raise result.cex
1668
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1669
 
6512 kshitij.so 1670
  def addTag(self, displayName, itemId):
1671
    """
1672
    Tag Related
1673
 
1674
    Parameters:
1675
     - displayName
1676
     - itemId
1677
    """
1678
    self.send_addTag(displayName, itemId)
1679
    return self.recv_addTag()
1680
 
1681
  def send_addTag(self, displayName, itemId):
1682
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1683
    args = addTag_args()
1684
    args.displayName = displayName
1685
    args.itemId = itemId
1686
    args.write(self._oprot)
1687
    self._oprot.writeMessageEnd()
1688
    self._oprot.trans.flush()
1689
 
1690
  def recv_addTag(self, ):
1691
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1692
    if mtype == TMessageType.EXCEPTION:
1693
      x = TApplicationException()
1694
      x.read(self._iprot)
1695
      self._iprot.readMessageEnd()
1696
      raise x
1697
    result = addTag_result()
1698
    result.read(self._iprot)
1699
    self._iprot.readMessageEnd()
1700
    if result.success is not None:
1701
      return result.success
1702
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1703
 
1704
  def deleteEntityTag(self, displayName, itemId):
1705
    """
1706
    Parameters:
1707
     - displayName
1708
     - itemId
1709
    """
1710
    self.send_deleteEntityTag(displayName, itemId)
1711
    return self.recv_deleteEntityTag()
1712
 
1713
  def send_deleteEntityTag(self, displayName, itemId):
1714
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1715
    args = deleteEntityTag_args()
1716
    args.displayName = displayName
1717
    args.itemId = itemId
1718
    args.write(self._oprot)
1719
    self._oprot.writeMessageEnd()
1720
    self._oprot.trans.flush()
1721
 
1722
  def recv_deleteEntityTag(self, ):
1723
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1724
    if mtype == TMessageType.EXCEPTION:
1725
      x = TApplicationException()
1726
      x.read(self._iprot)
1727
      self._iprot.readMessageEnd()
1728
      raise x
1729
    result = deleteEntityTag_result()
1730
    result.read(self._iprot)
1731
    self._iprot.readMessageEnd()
1732
    if result.success is not None:
1733
      return result.success
1734
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1735
 
1736
  def deleteTag(self, displayName):
1737
    """
1738
    Parameters:
1739
     - displayName
1740
    """
1741
    self.send_deleteTag(displayName)
1742
    return self.recv_deleteTag()
1743
 
1744
  def send_deleteTag(self, displayName):
1745
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1746
    args = deleteTag_args()
1747
    args.displayName = displayName
1748
    args.write(self._oprot)
1749
    self._oprot.writeMessageEnd()
1750
    self._oprot.trans.flush()
1751
 
1752
  def recv_deleteTag(self, ):
1753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1754
    if mtype == TMessageType.EXCEPTION:
1755
      x = TApplicationException()
1756
      x.read(self._iprot)
1757
      self._iprot.readMessageEnd()
1758
      raise x
1759
    result = deleteTag_result()
1760
    result.read(self._iprot)
1761
    self._iprot.readMessageEnd()
1762
    if result.success is not None:
1763
      return result.success
1764
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1765
 
1766
  def getAllTags(self, ):
1767
    self.send_getAllTags()
1768
    return self.recv_getAllTags()
1769
 
1770
  def send_getAllTags(self, ):
1771
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1772
    args = getAllTags_args()
1773
    args.write(self._oprot)
1774
    self._oprot.writeMessageEnd()
1775
    self._oprot.trans.flush()
1776
 
1777
  def recv_getAllTags(self, ):
1778
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1779
    if mtype == TMessageType.EXCEPTION:
1780
      x = TApplicationException()
1781
      x.read(self._iprot)
1782
      self._iprot.readMessageEnd()
1783
      raise x
1784
    result = getAllTags_result()
1785
    result.read(self._iprot)
1786
    self._iprot.readMessageEnd()
1787
    if result.success is not None:
1788
      return result.success
1789
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1790
 
1791
  def getAllEntitiesByTagName(self, displayName):
1792
    """
1793
    Parameters:
1794
     - displayName
1795
    """
1796
    self.send_getAllEntitiesByTagName(displayName)
1797
    return self.recv_getAllEntitiesByTagName()
1798
 
1799
  def send_getAllEntitiesByTagName(self, displayName):
1800
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1801
    args = getAllEntitiesByTagName_args()
1802
    args.displayName = displayName
1803
    args.write(self._oprot)
1804
    self._oprot.writeMessageEnd()
1805
    self._oprot.trans.flush()
1806
 
1807
  def recv_getAllEntitiesByTagName(self, ):
1808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1809
    if mtype == TMessageType.EXCEPTION:
1810
      x = TApplicationException()
1811
      x.read(self._iprot)
1812
      self._iprot.readMessageEnd()
1813
      raise x
1814
    result = getAllEntitiesByTagName_result()
1815
    result.read(self._iprot)
1816
    self._iprot.readMessageEnd()
1817
    if result.success is not None:
1818
      return result.success
1819
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1820
 
5944 mandeep.dh 1821
  def deleteSimilarItem(self, itemId, catalogItemId):
1822
    """
1823
    Delete similar item.
1824
 
1825
    Parameters:
1826
     - itemId
1827
     - catalogItemId
1828
    """
1829
    self.send_deleteSimilarItem(itemId, catalogItemId)
1830
    return self.recv_deleteSimilarItem()
1831
 
1832
  def send_deleteSimilarItem(self, itemId, catalogItemId):
1833
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
1834
    args = deleteSimilarItem_args()
1835
    args.itemId = itemId
1836
    args.catalogItemId = catalogItemId
1837
    args.write(self._oprot)
1838
    self._oprot.writeMessageEnd()
1839
    self._oprot.trans.flush()
1840
 
1841
  def recv_deleteSimilarItem(self, ):
1842
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1843
    if mtype == TMessageType.EXCEPTION:
1844
      x = TApplicationException()
1845
      x.read(self._iprot)
1846
      self._iprot.readMessageEnd()
1847
      raise x
1848
    result = deleteSimilarItem_result()
1849
    result.read(self._iprot)
1850
    self._iprot.readMessageEnd()
1851
    if result.success is not None:
1852
      return result.success
1853
    if result.cex is not None:
1854
      raise result.cex
1855
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
1856
 
1857
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
1858
    """
1859
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
1860
    If yes, returns the itemId else returns 0
1861
 
1862
    Parameters:
1863
     - brand
1864
     - modelNumber
1865
     - modelName
1866
     - color
1867
    """
1868
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
1869
    return self.recv_checkSimilarItem()
1870
 
1871
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
1872
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
1873
    args = checkSimilarItem_args()
1874
    args.brand = brand
1875
    args.modelNumber = modelNumber
1876
    args.modelName = modelName
1877
    args.color = color
1878
    args.write(self._oprot)
1879
    self._oprot.writeMessageEnd()
1880
    self._oprot.trans.flush()
1881
 
1882
  def recv_checkSimilarItem(self, ):
1883
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1884
    if mtype == TMessageType.EXCEPTION:
1885
      x = TApplicationException()
1886
      x.read(self._iprot)
1887
      self._iprot.readMessageEnd()
1888
      raise x
1889
    result = checkSimilarItem_result()
1890
    result.read(self._iprot)
1891
    self._iprot.readMessageEnd()
1892
    if result.success is not None:
1893
      return result.success
1894
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
1895
 
1896
  def validateRiskyStatus(self, itemId):
1897
    """
1898
    Check wether item is risky and change status if inventory is not available for risky items
1899
 
1900
    Parameters:
1901
     - itemId
1902
    """
1903
    self.send_validateRiskyStatus(itemId)
1904
    self.recv_validateRiskyStatus()
1905
 
1906
  def send_validateRiskyStatus(self, itemId):
1907
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
1908
    args = validateRiskyStatus_args()
1909
    args.itemId = itemId
1910
    args.write(self._oprot)
1911
    self._oprot.writeMessageEnd()
1912
    self._oprot.trans.flush()
1913
 
1914
  def recv_validateRiskyStatus(self, ):
1915
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1916
    if mtype == TMessageType.EXCEPTION:
1917
      x = TApplicationException()
1918
      x.read(self._iprot)
1919
      self._iprot.readMessageEnd()
1920
      raise x
1921
    result = validateRiskyStatus_result()
1922
    result.read(self._iprot)
1923
    self._iprot.readMessageEnd()
1924
    return
1925
 
1926
  def changeItemRiskyFlag(self, itemId, risky):
1927
    """
1928
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
1929
 
1930
    Parameters:
1931
     - itemId
1932
     - risky
1933
    """
1934
    self.send_changeItemRiskyFlag(itemId, risky)
1935
    self.recv_changeItemRiskyFlag()
1936
 
1937
  def send_changeItemRiskyFlag(self, itemId, risky):
1938
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
1939
    args = changeItemRiskyFlag_args()
1940
    args.itemId = itemId
1941
    args.risky = risky
1942
    args.write(self._oprot)
1943
    self._oprot.writeMessageEnd()
1944
    self._oprot.trans.flush()
1945
 
1946
  def recv_changeItemRiskyFlag(self, ):
1947
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1948
    if mtype == TMessageType.EXCEPTION:
1949
      x = TApplicationException()
1950
      x.read(self._iprot)
1951
      self._iprot.readMessageEnd()
1952
      raise x
1953
    result = changeItemRiskyFlag_result()
1954
    result.read(self._iprot)
1955
    self._iprot.readMessageEnd()
1956
    return
1957
 
1958
  def getItemsByRiskyFlag(self, ):
1959
    """
1960
    Returns list of items marked as risky.
1961
    """
1962
    self.send_getItemsByRiskyFlag()
1963
    return self.recv_getItemsByRiskyFlag()
1964
 
1965
  def send_getItemsByRiskyFlag(self, ):
1966
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
1967
    args = getItemsByRiskyFlag_args()
1968
    args.write(self._oprot)
1969
    self._oprot.writeMessageEnd()
1970
    self._oprot.trans.flush()
1971
 
1972
  def recv_getItemsByRiskyFlag(self, ):
1973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1974
    if mtype == TMessageType.EXCEPTION:
1975
      x = TApplicationException()
1976
      x.read(self._iprot)
1977
      self._iprot.readMessageEnd()
1978
      raise x
1979
    result = getItemsByRiskyFlag_result()
1980
    result.read(self._iprot)
1981
    self._iprot.readMessageEnd()
1982
    if result.success is not None:
1983
      return result.success
1984
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
1985
 
1986
  def getItemsForMasterSheet(self, category, brand):
1987
    """
1988
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
1989
 
1990
    Parameters:
1991
     - category
1992
     - brand
1993
    """
1994
    self.send_getItemsForMasterSheet(category, brand)
1995
    return self.recv_getItemsForMasterSheet()
1996
 
1997
  def send_getItemsForMasterSheet(self, category, brand):
1998
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
1999
    args = getItemsForMasterSheet_args()
2000
    args.category = category
2001
    args.brand = brand
2002
    args.write(self._oprot)
2003
    self._oprot.writeMessageEnd()
2004
    self._oprot.trans.flush()
2005
 
2006
  def recv_getItemsForMasterSheet(self, ):
2007
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2008
    if mtype == TMessageType.EXCEPTION:
2009
      x = TApplicationException()
2010
      x.read(self._iprot)
2011
      self._iprot.readMessageEnd()
2012
      raise x
2013
    result = getItemsForMasterSheet_result()
2014
    result.read(self._iprot)
2015
    self._iprot.readMessageEnd()
2016
    if result.success is not None:
2017
      return result.success
2018
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2019
 
2020
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2021
    """
2022
    Returns list of catalog ids of items with same similarity index as of the given itemId
2023
 
2024
    Parameters:
2025
     - beginIndex
2026
     - totalItems
2027
     - itemId
2028
    """
2029
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2030
    return self.recv_getSimilarItemsCatalogIds()
2031
 
2032
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2033
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2034
    args = getSimilarItemsCatalogIds_args()
2035
    args.beginIndex = beginIndex
2036
    args.totalItems = totalItems
2037
    args.itemId = itemId
2038
    args.write(self._oprot)
2039
    self._oprot.writeMessageEnd()
2040
    self._oprot.trans.flush()
2041
 
2042
  def recv_getSimilarItemsCatalogIds(self, ):
2043
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2044
    if mtype == TMessageType.EXCEPTION:
2045
      x = TApplicationException()
2046
      x.read(self._iprot)
2047
      self._iprot.readMessageEnd()
2048
      raise x
2049
    result = getSimilarItemsCatalogIds_result()
2050
    result.read(self._iprot)
2051
    self._iprot.readMessageEnd()
2052
    if result.success is not None:
2053
      return result.success
2054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2055
 
2056
  def addProductNotification(self, itemId, email):
2057
    """
2058
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2059
 
2060
    Parameters:
2061
     - itemId
2062
     - email
2063
    """
2064
    self.send_addProductNotification(itemId, email)
2065
    return self.recv_addProductNotification()
2066
 
2067
  def send_addProductNotification(self, itemId, email):
2068
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2069
    args = addProductNotification_args()
2070
    args.itemId = itemId
2071
    args.email = email
2072
    args.write(self._oprot)
2073
    self._oprot.writeMessageEnd()
2074
    self._oprot.trans.flush()
2075
 
2076
  def recv_addProductNotification(self, ):
2077
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2078
    if mtype == TMessageType.EXCEPTION:
2079
      x = TApplicationException()
2080
      x.read(self._iprot)
2081
      self._iprot.readMessageEnd()
2082
      raise x
2083
    result = addProductNotification_result()
2084
    result.read(self._iprot)
2085
    self._iprot.readMessageEnd()
2086
    if result.success is not None:
2087
      return result.success
2088
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2089
 
2090
  def sendProductNotifications(self, ):
2091
    """
2092
    Send the product notifications to the users for items which has stock.
2093
    """
2094
    self.send_sendProductNotifications()
2095
    return self.recv_sendProductNotifications()
2096
 
2097
  def send_sendProductNotifications(self, ):
2098
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2099
    args = sendProductNotifications_args()
2100
    args.write(self._oprot)
2101
    self._oprot.writeMessageEnd()
2102
    self._oprot.trans.flush()
2103
 
2104
  def recv_sendProductNotifications(self, ):
2105
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2106
    if mtype == TMessageType.EXCEPTION:
2107
      x = TApplicationException()
2108
      x.read(self._iprot)
2109
      self._iprot.readMessageEnd()
2110
      raise x
2111
    result = sendProductNotifications_result()
2112
    result.read(self._iprot)
2113
    self._iprot.readMessageEnd()
2114
    if result.success is not None:
2115
      return result.success
2116
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2117
 
2118
  def getAllBrandsByCategory(self, categoryId):
2119
    """
2120
    Returns list of brand names for a given category Id
2121
 
2122
    Parameters:
2123
     - categoryId
2124
    """
2125
    self.send_getAllBrandsByCategory(categoryId)
2126
    return self.recv_getAllBrandsByCategory()
2127
 
2128
  def send_getAllBrandsByCategory(self, categoryId):
2129
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2130
    args = getAllBrandsByCategory_args()
2131
    args.categoryId = categoryId
2132
    args.write(self._oprot)
2133
    self._oprot.writeMessageEnd()
2134
    self._oprot.trans.flush()
2135
 
2136
  def recv_getAllBrandsByCategory(self, ):
2137
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2138
    if mtype == TMessageType.EXCEPTION:
2139
      x = TApplicationException()
2140
      x.read(self._iprot)
2141
      self._iprot.readMessageEnd()
2142
      raise x
2143
    result = getAllBrandsByCategory_result()
2144
    result.read(self._iprot)
2145
    self._iprot.readMessageEnd()
2146
    if result.success is not None:
2147
      return result.success
2148
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2149
 
2150
  def getAllBrands(self, ):
2151
    """
2152
    Returns list of brand names
2153
    """
2154
    self.send_getAllBrands()
2155
    return self.recv_getAllBrands()
2156
 
2157
  def send_getAllBrands(self, ):
2158
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2159
    args = getAllBrands_args()
2160
    args.write(self._oprot)
2161
    self._oprot.writeMessageEnd()
2162
    self._oprot.trans.flush()
2163
 
2164
  def recv_getAllBrands(self, ):
2165
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2166
    if mtype == TMessageType.EXCEPTION:
2167
      x = TApplicationException()
2168
      x.read(self._iprot)
2169
      self._iprot.readMessageEnd()
2170
      raise x
2171
    result = getAllBrands_result()
2172
    result.read(self._iprot)
2173
    self._iprot.readMessageEnd()
2174
    if result.success is not None:
2175
      return result.success
2176
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2177
 
2178
  def getAllSources(self, ):
2179
    """
2180
    Return list of all sources
2181
    """
2182
    self.send_getAllSources()
2183
    return self.recv_getAllSources()
2184
 
2185
  def send_getAllSources(self, ):
2186
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2187
    args = getAllSources_args()
2188
    args.write(self._oprot)
2189
    self._oprot.writeMessageEnd()
2190
    self._oprot.trans.flush()
2191
 
2192
  def recv_getAllSources(self, ):
2193
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2194
    if mtype == TMessageType.EXCEPTION:
2195
      x = TApplicationException()
2196
      x.read(self._iprot)
2197
      self._iprot.readMessageEnd()
2198
      raise x
2199
    result = getAllSources_result()
2200
    result.read(self._iprot)
2201
    self._iprot.readMessageEnd()
2202
    if result.success is not None:
2203
      return result.success
2204
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2205
 
2206
  def getItemPricingBySource(self, itemId, sourceId):
2207
    """
2208
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2209
 
2210
    Parameters:
2211
     - itemId
2212
     - sourceId
2213
    """
2214
    self.send_getItemPricingBySource(itemId, sourceId)
2215
    return self.recv_getItemPricingBySource()
2216
 
2217
  def send_getItemPricingBySource(self, itemId, sourceId):
2218
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2219
    args = getItemPricingBySource_args()
2220
    args.itemId = itemId
2221
    args.sourceId = sourceId
2222
    args.write(self._oprot)
2223
    self._oprot.writeMessageEnd()
2224
    self._oprot.trans.flush()
2225
 
2226
  def recv_getItemPricingBySource(self, ):
2227
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2228
    if mtype == TMessageType.EXCEPTION:
2229
      x = TApplicationException()
2230
      x.read(self._iprot)
2231
      self._iprot.readMessageEnd()
2232
      raise x
2233
    result = getItemPricingBySource_result()
2234
    result.read(self._iprot)
2235
    self._iprot.readMessageEnd()
2236
    if result.success is not None:
2237
      return result.success
2238
    if result.cex is not None:
2239
      raise result.cex
2240
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2241
 
2242
  def addSourceItemPricing(self, sourceItemPricing):
2243
    """
2244
    Adds prices to be displayed corresponding to the item if user comes from a source.
2245
    If item is not found or source is not found, it will throw exception.
2246
 
2247
    Parameters:
2248
     - sourceItemPricing
2249
    """
2250
    self.send_addSourceItemPricing(sourceItemPricing)
2251
    self.recv_addSourceItemPricing()
2252
 
2253
  def send_addSourceItemPricing(self, sourceItemPricing):
2254
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2255
    args = addSourceItemPricing_args()
2256
    args.sourceItemPricing = sourceItemPricing
2257
    args.write(self._oprot)
2258
    self._oprot.writeMessageEnd()
2259
    self._oprot.trans.flush()
2260
 
2261
  def recv_addSourceItemPricing(self, ):
2262
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2263
    if mtype == TMessageType.EXCEPTION:
2264
      x = TApplicationException()
2265
      x.read(self._iprot)
2266
      self._iprot.readMessageEnd()
2267
      raise x
2268
    result = addSourceItemPricing_result()
2269
    result.read(self._iprot)
2270
    self._iprot.readMessageEnd()
2271
    if result.cex is not None:
2272
      raise result.cex
2273
    return
2274
 
2275
  def getAllSourcePricing(self, itemId):
2276
    """
2277
    Returns the list of source pricing information of an item.
2278
    Raises an exception if item not found corresponding to itemId
2279
 
2280
    Parameters:
2281
     - itemId
2282
    """
2283
    self.send_getAllSourcePricing(itemId)
2284
    return self.recv_getAllSourcePricing()
2285
 
2286
  def send_getAllSourcePricing(self, itemId):
2287
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2288
    args = getAllSourcePricing_args()
2289
    args.itemId = itemId
2290
    args.write(self._oprot)
2291
    self._oprot.writeMessageEnd()
2292
    self._oprot.trans.flush()
2293
 
2294
  def recv_getAllSourcePricing(self, ):
2295
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2296
    if mtype == TMessageType.EXCEPTION:
2297
      x = TApplicationException()
2298
      x.read(self._iprot)
2299
      self._iprot.readMessageEnd()
2300
      raise x
2301
    result = getAllSourcePricing_result()
2302
    result.read(self._iprot)
2303
    self._iprot.readMessageEnd()
2304
    if result.success is not None:
2305
      return result.success
2306
    if result.cex is not None:
2307
      raise result.cex
2308
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2309
 
2310
  def getItemForSource(self, item_id, sourceId):
2311
    """
2312
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2313
 
2314
    Parameters:
2315
     - item_id
2316
     - sourceId
2317
    """
2318
    self.send_getItemForSource(item_id, sourceId)
2319
    return self.recv_getItemForSource()
2320
 
2321
  def send_getItemForSource(self, item_id, sourceId):
2322
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2323
    args = getItemForSource_args()
2324
    args.item_id = item_id
2325
    args.sourceId = sourceId
2326
    args.write(self._oprot)
2327
    self._oprot.writeMessageEnd()
2328
    self._oprot.trans.flush()
2329
 
2330
  def recv_getItemForSource(self, ):
2331
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2332
    if mtype == TMessageType.EXCEPTION:
2333
      x = TApplicationException()
2334
      x.read(self._iprot)
2335
      self._iprot.readMessageEnd()
2336
      raise x
2337
    result = getItemForSource_result()
2338
    result.read(self._iprot)
2339
    self._iprot.readMessageEnd()
2340
    if result.success is not None:
2341
      return result.success
2342
    if result.cex is not None:
2343
      raise result.cex
2344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2345
 
2346
  def searchItemsInRange(self, searchTerms, offset, limit):
2347
    """
2348
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2349
 
2350
    Parameters:
2351
     - searchTerms
2352
     - offset
2353
     - limit
2354
    """
2355
    self.send_searchItemsInRange(searchTerms, offset, limit)
2356
    return self.recv_searchItemsInRange()
2357
 
2358
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2359
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2360
    args = searchItemsInRange_args()
2361
    args.searchTerms = searchTerms
2362
    args.offset = offset
2363
    args.limit = limit
2364
    args.write(self._oprot)
2365
    self._oprot.writeMessageEnd()
2366
    self._oprot.trans.flush()
2367
 
2368
  def recv_searchItemsInRange(self, ):
2369
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2370
    if mtype == TMessageType.EXCEPTION:
2371
      x = TApplicationException()
2372
      x.read(self._iprot)
2373
      self._iprot.readMessageEnd()
2374
      raise x
2375
    result = searchItemsInRange_result()
2376
    result.read(self._iprot)
2377
    self._iprot.readMessageEnd()
2378
    if result.success is not None:
2379
      return result.success
2380
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2381
 
2382
  def getSearchResultCount(self, searchTerms):
2383
    """
2384
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2385
 
2386
    Parameters:
2387
     - searchTerms
2388
    """
2389
    self.send_getSearchResultCount(searchTerms)
2390
    return self.recv_getSearchResultCount()
2391
 
2392
  def send_getSearchResultCount(self, searchTerms):
2393
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2394
    args = getSearchResultCount_args()
2395
    args.searchTerms = searchTerms
2396
    args.write(self._oprot)
2397
    self._oprot.writeMessageEnd()
2398
    self._oprot.trans.flush()
2399
 
2400
  def recv_getSearchResultCount(self, ):
2401
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2402
    if mtype == TMessageType.EXCEPTION:
2403
      x = TApplicationException()
2404
      x.read(self._iprot)
2405
      self._iprot.readMessageEnd()
2406
      raise x
2407
    result = getSearchResultCount_result()
2408
    result.read(self._iprot)
2409
    self._iprot.readMessageEnd()
2410
    if result.success is not None:
2411
      return result.success
2412
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2413
 
2414
  def getProductNotifications(self, startDateTime):
2415
    """
2416
    Returns a list of product notifications added after a supplied datetime
2417
 
2418
    Parameters:
2419
     - startDateTime
2420
    """
2421
    self.send_getProductNotifications(startDateTime)
2422
    return self.recv_getProductNotifications()
2423
 
2424
  def send_getProductNotifications(self, startDateTime):
2425
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2426
    args = getProductNotifications_args()
2427
    args.startDateTime = startDateTime
2428
    args.write(self._oprot)
2429
    self._oprot.writeMessageEnd()
2430
    self._oprot.trans.flush()
2431
 
2432
  def recv_getProductNotifications(self, ):
2433
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2434
    if mtype == TMessageType.EXCEPTION:
2435
      x = TApplicationException()
2436
      x.read(self._iprot)
2437
      self._iprot.readMessageEnd()
2438
      raise x
2439
    result = getProductNotifications_result()
2440
    result.read(self._iprot)
2441
    self._iprot.readMessageEnd()
2442
    if result.success is not None:
2443
      return result.success
2444
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2445
 
2446
  def getProductNotificationRequestCount(self, startDateTime):
2447
    """
2448
    Returns a list of count of requests for product notification against each item
2449
 
2450
    Parameters:
2451
     - startDateTime
2452
    """
2453
    self.send_getProductNotificationRequestCount(startDateTime)
2454
    return self.recv_getProductNotificationRequestCount()
2455
 
2456
  def send_getProductNotificationRequestCount(self, startDateTime):
2457
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2458
    args = getProductNotificationRequestCount_args()
2459
    args.startDateTime = startDateTime
2460
    args.write(self._oprot)
2461
    self._oprot.writeMessageEnd()
2462
    self._oprot.trans.flush()
2463
 
2464
  def recv_getProductNotificationRequestCount(self, ):
2465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2466
    if mtype == TMessageType.EXCEPTION:
2467
      x = TApplicationException()
2468
      x.read(self._iprot)
2469
      self._iprot.readMessageEnd()
2470
      raise x
2471
    result = getProductNotificationRequestCount_result()
2472
    result.read(self._iprot)
2473
    self._iprot.readMessageEnd()
2474
    if result.success is not None:
2475
      return result.success
2476
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2477
 
2478
  def addAuthorizationLog(self, itemId, username, reason):
2479
    """
2480
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2481
 
2482
    Parameters:
2483
     - itemId
2484
     - username
2485
     - reason
2486
    """
2487
    self.send_addAuthorizationLog(itemId, username, reason)
2488
    return self.recv_addAuthorizationLog()
2489
 
2490
  def send_addAuthorizationLog(self, itemId, username, reason):
2491
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2492
    args = addAuthorizationLog_args()
2493
    args.itemId = itemId
2494
    args.username = username
2495
    args.reason = reason
2496
    args.write(self._oprot)
2497
    self._oprot.writeMessageEnd()
2498
    self._oprot.trans.flush()
2499
 
2500
  def recv_addAuthorizationLog(self, ):
2501
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2502
    if mtype == TMessageType.EXCEPTION:
2503
      x = TApplicationException()
2504
      x.read(self._iprot)
2505
      self._iprot.readMessageEnd()
2506
      raise x
2507
    result = addAuthorizationLog_result()
2508
    result.read(self._iprot)
2509
    self._iprot.readMessageEnd()
2510
    if result.success is not None:
2511
      return result.success
2512
    if result.cex is not None:
2513
      raise result.cex
2514
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2515
 
2516
  def getClearanceSaleCatalogIds(self, ):
2517
    self.send_getClearanceSaleCatalogIds()
2518
    return self.recv_getClearanceSaleCatalogIds()
2519
 
2520
  def send_getClearanceSaleCatalogIds(self, ):
2521
    self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)
2522
    args = getClearanceSaleCatalogIds_args()
2523
    args.write(self._oprot)
2524
    self._oprot.writeMessageEnd()
2525
    self._oprot.trans.flush()
2526
 
2527
  def recv_getClearanceSaleCatalogIds(self, ):
2528
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2529
    if mtype == TMessageType.EXCEPTION:
2530
      x = TApplicationException()
2531
      x.read(self._iprot)
2532
      self._iprot.readMessageEnd()
2533
      raise x
2534
    result = getClearanceSaleCatalogIds_result()
2535
    result.read(self._iprot)
2536
    self._iprot.readMessageEnd()
2537
    if result.success is not None:
2538
      return result.success
2539
    if result.cex is not None:
2540
      raise result.cex
2541
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2542
 
2543
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2544
    """
2545
    Parameters:
2546
     - catalog_item_id
2547
     - voucherType
2548
     - voucherAmount
2549
    """
2550
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2551
    return self.recv_addupdateVoucherForItem()
2552
 
2553
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2554
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2555
    args = addupdateVoucherForItem_args()
2556
    args.catalog_item_id = catalog_item_id
2557
    args.voucherType = voucherType
2558
    args.voucherAmount = voucherAmount
2559
    args.write(self._oprot)
2560
    self._oprot.writeMessageEnd()
2561
    self._oprot.trans.flush()
2562
 
2563
  def recv_addupdateVoucherForItem(self, ):
2564
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2565
    if mtype == TMessageType.EXCEPTION:
2566
      x = TApplicationException()
2567
      x.read(self._iprot)
2568
      self._iprot.readMessageEnd()
2569
      raise x
2570
    result = addupdateVoucherForItem_result()
2571
    result.read(self._iprot)
2572
    self._iprot.readMessageEnd()
2573
    if result.success is not None:
2574
      return result.success
2575
    if result.cex is not None:
2576
      raise result.cex
2577
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2578
 
2579
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2580
    """
2581
    Parameters:
2582
     - catalog_item_id
2583
     - voucherType
2584
    """
2585
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2586
    return self.recv_deleteVoucherForItem()
2587
 
2588
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2589
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2590
    args = deleteVoucherForItem_args()
2591
    args.catalog_item_id = catalog_item_id
2592
    args.voucherType = voucherType
2593
    args.write(self._oprot)
2594
    self._oprot.writeMessageEnd()
2595
    self._oprot.trans.flush()
2596
 
2597
  def recv_deleteVoucherForItem(self, ):
2598
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2599
    if mtype == TMessageType.EXCEPTION:
2600
      x = TApplicationException()
2601
      x.read(self._iprot)
2602
      self._iprot.readMessageEnd()
2603
      raise x
2604
    result = deleteVoucherForItem_result()
2605
    result.read(self._iprot)
2606
    self._iprot.readMessageEnd()
2607
    if result.success is not None:
2608
      return result.success
2609
    if result.cex is not None:
2610
      raise result.cex
2611
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2612
 
2613
  def getVoucherAmount(self, itemId, voucherType):
2614
    """
2615
    Parameters:
2616
     - itemId
2617
     - voucherType
2618
    """
2619
    self.send_getVoucherAmount(itemId, voucherType)
2620
    return self.recv_getVoucherAmount()
2621
 
2622
  def send_getVoucherAmount(self, itemId, voucherType):
2623
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2624
    args = getVoucherAmount_args()
2625
    args.itemId = itemId
2626
    args.voucherType = voucherType
2627
    args.write(self._oprot)
2628
    self._oprot.writeMessageEnd()
2629
    self._oprot.trans.flush()
2630
 
2631
  def recv_getVoucherAmount(self, ):
2632
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2633
    if mtype == TMessageType.EXCEPTION:
2634
      x = TApplicationException()
2635
      x.read(self._iprot)
2636
      self._iprot.readMessageEnd()
2637
      raise x
2638
    result = getVoucherAmount_result()
2639
    result.read(self._iprot)
2640
    self._iprot.readMessageEnd()
2641
    if result.success is not None:
2642
      return result.success
2643
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
2644
 
2645
  def getAllItemVouchers(self, itemId):
2646
    """
2647
    Parameters:
2648
     - itemId
2649
    """
2650
    self.send_getAllItemVouchers(itemId)
2651
    return self.recv_getAllItemVouchers()
2652
 
2653
  def send_getAllItemVouchers(self, itemId):
2654
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
2655
    args = getAllItemVouchers_args()
2656
    args.itemId = itemId
2657
    args.write(self._oprot)
2658
    self._oprot.writeMessageEnd()
2659
    self._oprot.trans.flush()
2660
 
2661
  def recv_getAllItemVouchers(self, ):
2662
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2663
    if mtype == TMessageType.EXCEPTION:
2664
      x = TApplicationException()
2665
      x.read(self._iprot)
2666
      self._iprot.readMessageEnd()
2667
      raise x
2668
    result = getAllItemVouchers_result()
2669
    result.read(self._iprot)
2670
    self._iprot.readMessageEnd()
2671
    if result.success is not None:
2672
      return result.success
2673
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
2674
 
2675
  def isValidCatalogItemId(self, catalog_item_id):
2676
    """
2677
    Parameters:
2678
     - catalog_item_id
2679
    """
2680
    self.send_isValidCatalogItemId(catalog_item_id)
2681
    return self.recv_isValidCatalogItemId()
2682
 
2683
  def send_isValidCatalogItemId(self, catalog_item_id):
2684
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
2685
    args = isValidCatalogItemId_args()
2686
    args.catalog_item_id = catalog_item_id
2687
    args.write(self._oprot)
2688
    self._oprot.writeMessageEnd()
2689
    self._oprot.trans.flush()
2690
 
2691
  def recv_isValidCatalogItemId(self, ):
2692
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2693
    if mtype == TMessageType.EXCEPTION:
2694
      x = TApplicationException()
2695
      x.read(self._iprot)
2696
      self._iprot.readMessageEnd()
2697
      raise x
2698
    result = isValidCatalogItemId_result()
2699
    result.read(self._iprot)
2700
    self._iprot.readMessageEnd()
2701
    if result.success is not None:
2702
      return result.success
2703
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
2704
 
6039 amit.gupta 2705
  def getVatPercentageForItem(self, itemId, price):
2706
    """
2707
    Parameters:
2708
     - itemId
2709
     - price
2710
    """
2711
    self.send_getVatPercentageForItem(itemId, price)
2712
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 2713
 
6039 amit.gupta 2714
  def send_getVatPercentageForItem(self, itemId, price):
2715
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
2716
    args = getVatPercentageForItem_args()
2717
    args.itemId = itemId
2718
    args.price = price
2719
    args.write(self._oprot)
2720
    self._oprot.writeMessageEnd()
2721
    self._oprot.trans.flush()
2722
 
2723
  def recv_getVatPercentageForItem(self, ):
2724
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2725
    if mtype == TMessageType.EXCEPTION:
2726
      x = TApplicationException()
2727
      x.read(self._iprot)
2728
      self._iprot.readMessageEnd()
2729
      raise x
2730
    result = getVatPercentageForItem_result()
2731
    result.read(self._iprot)
2732
    self._iprot.readMessageEnd()
2733
    if result.success is not None:
2734
      return result.success
2735
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
2736
 
2737
  def getVatAmountForItem(self, itemId, price):
2738
    """
2739
    Parameters:
2740
     - itemId
2741
     - price
2742
    """
2743
    self.send_getVatAmountForItem(itemId, price)
2744
    return self.recv_getVatAmountForItem()
2745
 
2746
  def send_getVatAmountForItem(self, itemId, price):
2747
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
2748
    args = getVatAmountForItem_args()
2749
    args.itemId = itemId
2750
    args.price = price
2751
    args.write(self._oprot)
2752
    self._oprot.writeMessageEnd()
2753
    self._oprot.trans.flush()
2754
 
2755
  def recv_getVatAmountForItem(self, ):
2756
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2757
    if mtype == TMessageType.EXCEPTION:
2758
      x = TApplicationException()
2759
      x.read(self._iprot)
2760
      self._iprot.readMessageEnd()
2761
      raise x
2762
    result = getVatAmountForItem_result()
2763
    result.read(self._iprot)
2764
    self._iprot.readMessageEnd()
2765
    if result.success is not None:
2766
      return result.success
2767
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
2768
 
6531 vikram.rag 2769
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2770
    """
2771
    Parameters:
2772
     - offset
2773
     - limit
2774
    """
2775
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
2776
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 2777
 
6531 vikram.rag 2778
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2779
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
2780
    args = getAllIgnoredInventoryUpdateItemsList_args()
2781
    args.offset = offset
2782
    args.limit = limit
2783
    args.write(self._oprot)
2784
    self._oprot.writeMessageEnd()
2785
    self._oprot.trans.flush()
2786
 
2787
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
2788
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2789
    if mtype == TMessageType.EXCEPTION:
2790
      x = TApplicationException()
2791
      x.read(self._iprot)
2792
      self._iprot.readMessageEnd()
2793
      raise x
2794
    result = getAllIgnoredInventoryUpdateItemsList_result()
2795
    result.read(self._iprot)
2796
    self._iprot.readMessageEnd()
2797
    if result.success is not None:
2798
      return result.success
2799
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
2800
 
2801
 
5944 mandeep.dh 2802
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2803
  def __init__(self, handler):
2804
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2805
    self._processMap["addItem"] = Processor.process_addItem
2806
    self._processMap["updateItem"] = Processor.process_updateItem
2807
    self._processMap["isActive"] = Processor.process_isActive
2808
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
2809
    self._processMap["startItemOn"] = Processor.process_startItemOn
2810
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
2811
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2812
    self._processMap["getItem"] = Processor.process_getItem
2813
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
2814
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
2815
    self._processMap["getAllItems"] = Processor.process_getAllItems
2816
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
2817
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
2818
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
2819
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
2820
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
2821
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
2822
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
2823
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
2824
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
2825
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
2826
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
2827
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
2828
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
2829
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
2830
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
2831
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
2832
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
2833
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
2834
    self._processMap["addCategory"] = Processor.process_addCategory
2835
    self._processMap["getCategory"] = Processor.process_getCategory
2836
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
2837
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
2838
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 2839
    self._processMap["addTag"] = Processor.process_addTag
2840
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
2841
    self._processMap["deleteTag"] = Processor.process_deleteTag
2842
    self._processMap["getAllTags"] = Processor.process_getAllTags
2843
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
5944 mandeep.dh 2844
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
2845
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
2846
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
2847
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
2848
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
2849
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
2850
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
2851
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
2852
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
2853
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
2854
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
2855
    self._processMap["getAllSources"] = Processor.process_getAllSources
2856
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
2857
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
2858
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
2859
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
2860
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
2861
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
2862
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
2863
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
2864
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
2865
    self._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIds
2866
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
2867
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
2868
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
2869
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
2870
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 2871
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
2872
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 2873
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
5944 mandeep.dh 2874
 
2875
  def process(self, iprot, oprot):
2876
    (name, type, seqid) = iprot.readMessageBegin()
2877
    if name not in self._processMap:
2878
      iprot.skip(TType.STRUCT)
2879
      iprot.readMessageEnd()
2880
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2881
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2882
      x.write(oprot)
2883
      oprot.writeMessageEnd()
2884
      oprot.trans.flush()
2885
      return
2886
    else:
2887
      self._processMap[name](self, seqid, iprot, oprot)
2888
    return True
2889
 
2890
  def process_addItem(self, seqid, iprot, oprot):
2891
    args = addItem_args()
2892
    args.read(iprot)
2893
    iprot.readMessageEnd()
2894
    result = addItem_result()
2895
    try:
2896
      result.success = self._handler.addItem(args.item)
2897
    except CatalogServiceException, cex:
2898
      result.cex = cex
2899
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
2900
    result.write(oprot)
2901
    oprot.writeMessageEnd()
2902
    oprot.trans.flush()
2903
 
2904
  def process_updateItem(self, seqid, iprot, oprot):
2905
    args = updateItem_args()
2906
    args.read(iprot)
2907
    iprot.readMessageEnd()
2908
    result = updateItem_result()
2909
    try:
2910
      result.success = self._handler.updateItem(args.item)
2911
    except CatalogServiceException, cex:
2912
      result.cex = cex
2913
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
2914
    result.write(oprot)
2915
    oprot.writeMessageEnd()
2916
    oprot.trans.flush()
2917
 
2918
  def process_isActive(self, seqid, iprot, oprot):
2919
    args = isActive_args()
2920
    args.read(iprot)
2921
    iprot.readMessageEnd()
2922
    result = isActive_result()
2923
    try:
2924
      result.success = self._handler.isActive(args.itemId)
2925
    except CatalogServiceException, isex:
2926
      result.isex = isex
2927
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
2928
    result.write(oprot)
2929
    oprot.writeMessageEnd()
2930
    oprot.trans.flush()
2931
 
2932
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
2933
    args = getItemStatusDescription_args()
2934
    args.read(iprot)
2935
    iprot.readMessageEnd()
2936
    result = getItemStatusDescription_result()
2937
    try:
2938
      result.success = self._handler.getItemStatusDescription(args.itemId)
2939
    except CatalogServiceException, isex:
2940
      result.isex = isex
2941
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
2942
    result.write(oprot)
2943
    oprot.writeMessageEnd()
2944
    oprot.trans.flush()
2945
 
2946
  def process_startItemOn(self, seqid, iprot, oprot):
2947
    args = startItemOn_args()
2948
    args.read(iprot)
2949
    iprot.readMessageEnd()
2950
    result = startItemOn_result()
2951
    try:
2952
      self._handler.startItemOn(args.item_id, args.timestamp)
2953
    except CatalogServiceException, cex:
2954
      result.cex = cex
2955
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
2956
    result.write(oprot)
2957
    oprot.writeMessageEnd()
2958
    oprot.trans.flush()
2959
 
2960
  def process_retireItemOn(self, seqid, iprot, oprot):
2961
    args = retireItemOn_args()
2962
    args.read(iprot)
2963
    iprot.readMessageEnd()
2964
    result = retireItemOn_result()
2965
    try:
2966
      self._handler.retireItemOn(args.item_id, args.timestamp)
2967
    except CatalogServiceException, cex:
2968
      result.cex = cex
2969
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
2970
    result.write(oprot)
2971
    oprot.writeMessageEnd()
2972
    oprot.trans.flush()
2973
 
2974
  def process_changeItemStatus(self, seqid, iprot, oprot):
2975
    args = changeItemStatus_args()
2976
    args.read(iprot)
2977
    iprot.readMessageEnd()
2978
    result = changeItemStatus_result()
2979
    try:
2980
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
2981
    except CatalogServiceException, cex:
2982
      result.cex = cex
2983
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
2984
    result.write(oprot)
2985
    oprot.writeMessageEnd()
2986
    oprot.trans.flush()
2987
 
2988
  def process_getItem(self, seqid, iprot, oprot):
2989
    args = getItem_args()
2990
    args.read(iprot)
2991
    iprot.readMessageEnd()
2992
    result = getItem_result()
2993
    try:
2994
      result.success = self._handler.getItem(args.item_id)
2995
    except CatalogServiceException, cex:
2996
      result.cex = cex
2997
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
2998
    result.write(oprot)
2999
    oprot.writeMessageEnd()
3000
    oprot.trans.flush()
3001
 
3002
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3003
    args = getItemsByCatalogId_args()
3004
    args.read(iprot)
3005
    iprot.readMessageEnd()
3006
    result = getItemsByCatalogId_result()
3007
    try:
3008
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3009
    except CatalogServiceException, cex:
3010
      result.cex = cex
3011
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3012
    result.write(oprot)
3013
    oprot.writeMessageEnd()
3014
    oprot.trans.flush()
3015
 
3016
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3017
    args = getValidItemsByCatalogId_args()
3018
    args.read(iprot)
3019
    iprot.readMessageEnd()
3020
    result = getValidItemsByCatalogId_result()
3021
    try:
3022
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3023
    except CatalogServiceException, cex:
3024
      result.cex = cex
3025
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3026
    result.write(oprot)
3027
    oprot.writeMessageEnd()
3028
    oprot.trans.flush()
3029
 
3030
  def process_getAllItems(self, seqid, iprot, oprot):
3031
    args = getAllItems_args()
3032
    args.read(iprot)
3033
    iprot.readMessageEnd()
3034
    result = getAllItems_result()
3035
    try:
3036
      result.success = self._handler.getAllItems(args.isActive)
3037
    except CatalogServiceException, cex:
3038
      result.cex = cex
3039
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3040
    result.write(oprot)
3041
    oprot.writeMessageEnd()
3042
    oprot.trans.flush()
3043
 
3044
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3045
    args = getAllItemsByStatus_args()
3046
    args.read(iprot)
3047
    iprot.readMessageEnd()
3048
    result = getAllItemsByStatus_result()
3049
    try:
3050
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3051
    except CatalogServiceException, cex:
3052
      result.cex = cex
3053
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3054
    result.write(oprot)
3055
    oprot.writeMessageEnd()
3056
    oprot.trans.flush()
3057
 
3058
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3059
    args = markItemAsContentComplete_args()
3060
    args.read(iprot)
3061
    iprot.readMessageEnd()
3062
    result = markItemAsContentComplete_result()
3063
    try:
3064
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3065
    except CatalogServiceException, cex:
3066
      result.cex = cex
3067
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3068
    result.write(oprot)
3069
    oprot.writeMessageEnd()
3070
    oprot.trans.flush()
3071
 
3072
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3073
    args = getAllItemsInRange_args()
3074
    args.read(iprot)
3075
    iprot.readMessageEnd()
3076
    result = getAllItemsInRange_result()
3077
    try:
3078
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3079
    except CatalogServiceException, cex:
3080
      result.cex = cex
3081
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3082
    result.write(oprot)
3083
    oprot.writeMessageEnd()
3084
    oprot.trans.flush()
3085
 
3086
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3087
    args = getAllItemsByStatusInRange_args()
3088
    args.read(iprot)
3089
    iprot.readMessageEnd()
3090
    result = getAllItemsByStatusInRange_result()
3091
    try:
3092
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3093
    except CatalogServiceException, cex:
3094
      result.cex = cex
3095
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3096
    result.write(oprot)
3097
    oprot.writeMessageEnd()
3098
    oprot.trans.flush()
3099
 
3100
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3101
    args = getItemCountByStatus_args()
3102
    args.read(iprot)
3103
    iprot.readMessageEnd()
3104
    result = getItemCountByStatus_result()
3105
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3106
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3107
    result.write(oprot)
3108
    oprot.writeMessageEnd()
3109
    oprot.trans.flush()
3110
 
3111
  def process_getBestSellers(self, seqid, iprot, oprot):
3112
    args = getBestSellers_args()
3113
    args.read(iprot)
3114
    iprot.readMessageEnd()
3115
    result = getBestSellers_result()
3116
    try:
3117
      result.success = self._handler.getBestSellers()
3118
    except CatalogServiceException, isex:
3119
      result.isex = isex
3120
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3121
    result.write(oprot)
3122
    oprot.writeMessageEnd()
3123
    oprot.trans.flush()
3124
 
3125
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3126
    args = getBestSellersCatalogIds_args()
3127
    args.read(iprot)
3128
    iprot.readMessageEnd()
3129
    result = getBestSellersCatalogIds_result()
3130
    try:
3131
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3132
    except CatalogServiceException, cex:
3133
      result.cex = cex
3134
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3135
    result.write(oprot)
3136
    oprot.writeMessageEnd()
3137
    oprot.trans.flush()
3138
 
3139
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3140
    args = getBestSellersCount_args()
3141
    args.read(iprot)
3142
    iprot.readMessageEnd()
3143
    result = getBestSellersCount_result()
3144
    try:
3145
      result.success = self._handler.getBestSellersCount()
3146
    except CatalogServiceException, cex:
3147
      result.cex = cex
3148
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3149
    result.write(oprot)
3150
    oprot.writeMessageEnd()
3151
    oprot.trans.flush()
3152
 
3153
  def process_getBestDeals(self, seqid, iprot, oprot):
3154
    args = getBestDeals_args()
3155
    args.read(iprot)
3156
    iprot.readMessageEnd()
3157
    result = getBestDeals_result()
3158
    try:
3159
      result.success = self._handler.getBestDeals()
3160
    except CatalogServiceException, isex:
3161
      result.isex = isex
3162
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3163
    result.write(oprot)
3164
    oprot.writeMessageEnd()
3165
    oprot.trans.flush()
3166
 
3167
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3168
    args = getBestDealsCatalogIds_args()
3169
    args.read(iprot)
3170
    iprot.readMessageEnd()
3171
    result = getBestDealsCatalogIds_result()
3172
    try:
3173
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3174
    except CatalogServiceException, cex:
3175
      result.cex = cex
3176
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3177
    result.write(oprot)
3178
    oprot.writeMessageEnd()
3179
    oprot.trans.flush()
3180
 
3181
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3182
    args = getBestDealsCount_args()
3183
    args.read(iprot)
3184
    iprot.readMessageEnd()
3185
    result = getBestDealsCount_result()
3186
    try:
3187
      result.success = self._handler.getBestDealsCount()
3188
    except CatalogServiceException, cex:
3189
      result.cex = cex
3190
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3191
    result.write(oprot)
3192
    oprot.writeMessageEnd()
3193
    oprot.trans.flush()
3194
 
3195
  def process_getComingSoon(self, seqid, iprot, oprot):
3196
    args = getComingSoon_args()
3197
    args.read(iprot)
3198
    iprot.readMessageEnd()
3199
    result = getComingSoon_result()
3200
    try:
3201
      result.success = self._handler.getComingSoon()
3202
    except CatalogServiceException, isex:
3203
      result.isex = isex
3204
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3205
    result.write(oprot)
3206
    oprot.writeMessageEnd()
3207
    oprot.trans.flush()
3208
 
3209
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3210
    args = getComingSoonCatalogIds_args()
3211
    args.read(iprot)
3212
    iprot.readMessageEnd()
3213
    result = getComingSoonCatalogIds_result()
3214
    try:
3215
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3216
    except CatalogServiceException, cex:
3217
      result.cex = cex
3218
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3219
    result.write(oprot)
3220
    oprot.writeMessageEnd()
3221
    oprot.trans.flush()
3222
 
3223
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3224
    args = getComingSoonCount_args()
3225
    args.read(iprot)
3226
    iprot.readMessageEnd()
3227
    result = getComingSoonCount_result()
3228
    try:
3229
      result.success = self._handler.getComingSoonCount()
3230
    except CatalogServiceException, cex:
3231
      result.cex = cex
3232
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3233
    result.write(oprot)
3234
    oprot.writeMessageEnd()
3235
    oprot.trans.flush()
3236
 
3237
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3238
    args = getLatestArrivals_args()
3239
    args.read(iprot)
3240
    iprot.readMessageEnd()
3241
    result = getLatestArrivals_result()
3242
    try:
3243
      result.success = self._handler.getLatestArrivals()
3244
    except CatalogServiceException, isex:
3245
      result.isex = isex
3246
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3247
    result.write(oprot)
3248
    oprot.writeMessageEnd()
3249
    oprot.trans.flush()
3250
 
3251
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3252
    args = getLatestArrivalsCatalogIds_args()
3253
    args.read(iprot)
3254
    iprot.readMessageEnd()
3255
    result = getLatestArrivalsCatalogIds_result()
3256
    try:
3257
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3258
    except CatalogServiceException, cex:
3259
      result.cex = cex
3260
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3261
    result.write(oprot)
3262
    oprot.writeMessageEnd()
3263
    oprot.trans.flush()
3264
 
3265
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3266
    args = getLatestArrivalsCount_args()
3267
    args.read(iprot)
3268
    iprot.readMessageEnd()
3269
    result = getLatestArrivalsCount_result()
3270
    try:
3271
      result.success = self._handler.getLatestArrivalsCount()
3272
    except CatalogServiceException, cex:
3273
      result.cex = cex
3274
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3275
    result.write(oprot)
3276
    oprot.writeMessageEnd()
3277
    oprot.trans.flush()
3278
 
3279
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3280
    args = generateNewEntityID_args()
3281
    args.read(iprot)
3282
    iprot.readMessageEnd()
3283
    result = generateNewEntityID_result()
3284
    result.success = self._handler.generateNewEntityID()
3285
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3286
    result.write(oprot)
3287
    oprot.writeMessageEnd()
3288
    oprot.trans.flush()
3289
 
3290
  def process_addCategory(self, seqid, iprot, oprot):
3291
    args = addCategory_args()
3292
    args.read(iprot)
3293
    iprot.readMessageEnd()
3294
    result = addCategory_result()
3295
    result.success = self._handler.addCategory(args.category)
3296
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3297
    result.write(oprot)
3298
    oprot.writeMessageEnd()
3299
    oprot.trans.flush()
3300
 
3301
  def process_getCategory(self, seqid, iprot, oprot):
3302
    args = getCategory_args()
3303
    args.read(iprot)
3304
    iprot.readMessageEnd()
3305
    result = getCategory_result()
3306
    result.success = self._handler.getCategory(args.id)
3307
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3308
    result.write(oprot)
3309
    oprot.writeMessageEnd()
3310
    oprot.trans.flush()
3311
 
3312
  def process_getAllCategories(self, seqid, iprot, oprot):
3313
    args = getAllCategories_args()
3314
    args.read(iprot)
3315
    iprot.readMessageEnd()
3316
    result = getAllCategories_result()
3317
    result.success = self._handler.getAllCategories()
3318
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3319
    result.write(oprot)
3320
    oprot.writeMessageEnd()
3321
    oprot.trans.flush()
3322
 
3323
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3324
    args = getAllSimilarItems_args()
3325
    args.read(iprot)
3326
    iprot.readMessageEnd()
3327
    result = getAllSimilarItems_result()
3328
    result.success = self._handler.getAllSimilarItems(args.itemId)
3329
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3330
    result.write(oprot)
3331
    oprot.writeMessageEnd()
3332
    oprot.trans.flush()
3333
 
3334
  def process_addSimilarItem(self, seqid, iprot, oprot):
3335
    args = addSimilarItem_args()
3336
    args.read(iprot)
3337
    iprot.readMessageEnd()
3338
    result = addSimilarItem_result()
3339
    try:
3340
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3341
    except CatalogServiceException, cex:
3342
      result.cex = cex
3343
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3344
    result.write(oprot)
3345
    oprot.writeMessageEnd()
3346
    oprot.trans.flush()
3347
 
6512 kshitij.so 3348
  def process_addTag(self, seqid, iprot, oprot):
3349
    args = addTag_args()
3350
    args.read(iprot)
3351
    iprot.readMessageEnd()
3352
    result = addTag_result()
3353
    result.success = self._handler.addTag(args.displayName, args.itemId)
3354
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3355
    result.write(oprot)
3356
    oprot.writeMessageEnd()
3357
    oprot.trans.flush()
3358
 
3359
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3360
    args = deleteEntityTag_args()
3361
    args.read(iprot)
3362
    iprot.readMessageEnd()
3363
    result = deleteEntityTag_result()
3364
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3365
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3366
    result.write(oprot)
3367
    oprot.writeMessageEnd()
3368
    oprot.trans.flush()
3369
 
3370
  def process_deleteTag(self, seqid, iprot, oprot):
3371
    args = deleteTag_args()
3372
    args.read(iprot)
3373
    iprot.readMessageEnd()
3374
    result = deleteTag_result()
3375
    result.success = self._handler.deleteTag(args.displayName)
3376
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3377
    result.write(oprot)
3378
    oprot.writeMessageEnd()
3379
    oprot.trans.flush()
3380
 
3381
  def process_getAllTags(self, seqid, iprot, oprot):
3382
    args = getAllTags_args()
3383
    args.read(iprot)
3384
    iprot.readMessageEnd()
3385
    result = getAllTags_result()
3386
    result.success = self._handler.getAllTags()
3387
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3388
    result.write(oprot)
3389
    oprot.writeMessageEnd()
3390
    oprot.trans.flush()
3391
 
3392
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3393
    args = getAllEntitiesByTagName_args()
3394
    args.read(iprot)
3395
    iprot.readMessageEnd()
3396
    result = getAllEntitiesByTagName_result()
3397
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
3398
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
3399
    result.write(oprot)
3400
    oprot.writeMessageEnd()
3401
    oprot.trans.flush()
3402
 
5944 mandeep.dh 3403
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
3404
    args = deleteSimilarItem_args()
3405
    args.read(iprot)
3406
    iprot.readMessageEnd()
3407
    result = deleteSimilarItem_result()
3408
    try:
3409
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
3410
    except CatalogServiceException, cex:
3411
      result.cex = cex
3412
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
3413
    result.write(oprot)
3414
    oprot.writeMessageEnd()
3415
    oprot.trans.flush()
3416
 
3417
  def process_checkSimilarItem(self, seqid, iprot, oprot):
3418
    args = checkSimilarItem_args()
3419
    args.read(iprot)
3420
    iprot.readMessageEnd()
3421
    result = checkSimilarItem_result()
3422
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
3423
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
3424
    result.write(oprot)
3425
    oprot.writeMessageEnd()
3426
    oprot.trans.flush()
3427
 
3428
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
3429
    args = validateRiskyStatus_args()
3430
    args.read(iprot)
3431
    iprot.readMessageEnd()
3432
    result = validateRiskyStatus_result()
3433
    self._handler.validateRiskyStatus(args.itemId)
3434
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
3435
    result.write(oprot)
3436
    oprot.writeMessageEnd()
3437
    oprot.trans.flush()
3438
 
3439
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
3440
    args = changeItemRiskyFlag_args()
3441
    args.read(iprot)
3442
    iprot.readMessageEnd()
3443
    result = changeItemRiskyFlag_result()
3444
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
3445
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
3446
    result.write(oprot)
3447
    oprot.writeMessageEnd()
3448
    oprot.trans.flush()
3449
 
3450
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
3451
    args = getItemsByRiskyFlag_args()
3452
    args.read(iprot)
3453
    iprot.readMessageEnd()
3454
    result = getItemsByRiskyFlag_result()
3455
    result.success = self._handler.getItemsByRiskyFlag()
3456
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
3457
    result.write(oprot)
3458
    oprot.writeMessageEnd()
3459
    oprot.trans.flush()
3460
 
3461
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
3462
    args = getItemsForMasterSheet_args()
3463
    args.read(iprot)
3464
    iprot.readMessageEnd()
3465
    result = getItemsForMasterSheet_result()
3466
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
3467
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
3468
    result.write(oprot)
3469
    oprot.writeMessageEnd()
3470
    oprot.trans.flush()
3471
 
3472
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
3473
    args = getSimilarItemsCatalogIds_args()
3474
    args.read(iprot)
3475
    iprot.readMessageEnd()
3476
    result = getSimilarItemsCatalogIds_result()
3477
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
3478
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
3479
    result.write(oprot)
3480
    oprot.writeMessageEnd()
3481
    oprot.trans.flush()
3482
 
3483
  def process_addProductNotification(self, seqid, iprot, oprot):
3484
    args = addProductNotification_args()
3485
    args.read(iprot)
3486
    iprot.readMessageEnd()
3487
    result = addProductNotification_result()
3488
    result.success = self._handler.addProductNotification(args.itemId, args.email)
3489
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
3490
    result.write(oprot)
3491
    oprot.writeMessageEnd()
3492
    oprot.trans.flush()
3493
 
3494
  def process_sendProductNotifications(self, seqid, iprot, oprot):
3495
    args = sendProductNotifications_args()
3496
    args.read(iprot)
3497
    iprot.readMessageEnd()
3498
    result = sendProductNotifications_result()
3499
    result.success = self._handler.sendProductNotifications()
3500
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
3501
    result.write(oprot)
3502
    oprot.writeMessageEnd()
3503
    oprot.trans.flush()
3504
 
3505
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
3506
    args = getAllBrandsByCategory_args()
3507
    args.read(iprot)
3508
    iprot.readMessageEnd()
3509
    result = getAllBrandsByCategory_result()
3510
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
3511
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
3512
    result.write(oprot)
3513
    oprot.writeMessageEnd()
3514
    oprot.trans.flush()
3515
 
3516
  def process_getAllBrands(self, seqid, iprot, oprot):
3517
    args = getAllBrands_args()
3518
    args.read(iprot)
3519
    iprot.readMessageEnd()
3520
    result = getAllBrands_result()
3521
    result.success = self._handler.getAllBrands()
3522
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
3523
    result.write(oprot)
3524
    oprot.writeMessageEnd()
3525
    oprot.trans.flush()
3526
 
3527
  def process_getAllSources(self, seqid, iprot, oprot):
3528
    args = getAllSources_args()
3529
    args.read(iprot)
3530
    iprot.readMessageEnd()
3531
    result = getAllSources_result()
3532
    result.success = self._handler.getAllSources()
3533
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
3534
    result.write(oprot)
3535
    oprot.writeMessageEnd()
3536
    oprot.trans.flush()
3537
 
3538
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
3539
    args = getItemPricingBySource_args()
3540
    args.read(iprot)
3541
    iprot.readMessageEnd()
3542
    result = getItemPricingBySource_result()
3543
    try:
3544
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
3545
    except CatalogServiceException, cex:
3546
      result.cex = cex
3547
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
3548
    result.write(oprot)
3549
    oprot.writeMessageEnd()
3550
    oprot.trans.flush()
3551
 
3552
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
3553
    args = addSourceItemPricing_args()
3554
    args.read(iprot)
3555
    iprot.readMessageEnd()
3556
    result = addSourceItemPricing_result()
3557
    try:
3558
      self._handler.addSourceItemPricing(args.sourceItemPricing)
3559
    except CatalogServiceException, cex:
3560
      result.cex = cex
3561
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
3562
    result.write(oprot)
3563
    oprot.writeMessageEnd()
3564
    oprot.trans.flush()
3565
 
3566
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
3567
    args = getAllSourcePricing_args()
3568
    args.read(iprot)
3569
    iprot.readMessageEnd()
3570
    result = getAllSourcePricing_result()
3571
    try:
3572
      result.success = self._handler.getAllSourcePricing(args.itemId)
3573
    except CatalogServiceException, cex:
3574
      result.cex = cex
3575
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
3576
    result.write(oprot)
3577
    oprot.writeMessageEnd()
3578
    oprot.trans.flush()
3579
 
3580
  def process_getItemForSource(self, seqid, iprot, oprot):
3581
    args = getItemForSource_args()
3582
    args.read(iprot)
3583
    iprot.readMessageEnd()
3584
    result = getItemForSource_result()
3585
    try:
3586
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
3587
    except CatalogServiceException, cex:
3588
      result.cex = cex
3589
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
3590
    result.write(oprot)
3591
    oprot.writeMessageEnd()
3592
    oprot.trans.flush()
3593
 
3594
  def process_searchItemsInRange(self, seqid, iprot, oprot):
3595
    args = searchItemsInRange_args()
3596
    args.read(iprot)
3597
    iprot.readMessageEnd()
3598
    result = searchItemsInRange_result()
3599
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
3600
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
3601
    result.write(oprot)
3602
    oprot.writeMessageEnd()
3603
    oprot.trans.flush()
3604
 
3605
  def process_getSearchResultCount(self, seqid, iprot, oprot):
3606
    args = getSearchResultCount_args()
3607
    args.read(iprot)
3608
    iprot.readMessageEnd()
3609
    result = getSearchResultCount_result()
3610
    result.success = self._handler.getSearchResultCount(args.searchTerms)
3611
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
3612
    result.write(oprot)
3613
    oprot.writeMessageEnd()
3614
    oprot.trans.flush()
3615
 
3616
  def process_getProductNotifications(self, seqid, iprot, oprot):
3617
    args = getProductNotifications_args()
3618
    args.read(iprot)
3619
    iprot.readMessageEnd()
3620
    result = getProductNotifications_result()
3621
    result.success = self._handler.getProductNotifications(args.startDateTime)
3622
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
3623
    result.write(oprot)
3624
    oprot.writeMessageEnd()
3625
    oprot.trans.flush()
3626
 
3627
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
3628
    args = getProductNotificationRequestCount_args()
3629
    args.read(iprot)
3630
    iprot.readMessageEnd()
3631
    result = getProductNotificationRequestCount_result()
3632
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
3633
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
3634
    result.write(oprot)
3635
    oprot.writeMessageEnd()
3636
    oprot.trans.flush()
3637
 
3638
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
3639
    args = addAuthorizationLog_args()
3640
    args.read(iprot)
3641
    iprot.readMessageEnd()
3642
    result = addAuthorizationLog_result()
3643
    try:
3644
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
3645
    except CatalogServiceException, cex:
3646
      result.cex = cex
3647
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
3648
    result.write(oprot)
3649
    oprot.writeMessageEnd()
3650
    oprot.trans.flush()
3651
 
3652
  def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):
3653
    args = getClearanceSaleCatalogIds_args()
3654
    args.read(iprot)
3655
    iprot.readMessageEnd()
3656
    result = getClearanceSaleCatalogIds_result()
3657
    try:
3658
      result.success = self._handler.getClearanceSaleCatalogIds()
3659
    except CatalogServiceException, cex:
3660
      result.cex = cex
3661
    oprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)
3662
    result.write(oprot)
3663
    oprot.writeMessageEnd()
3664
    oprot.trans.flush()
3665
 
3666
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
3667
    args = addupdateVoucherForItem_args()
3668
    args.read(iprot)
3669
    iprot.readMessageEnd()
3670
    result = addupdateVoucherForItem_result()
3671
    try:
3672
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
3673
    except CatalogServiceException, cex:
3674
      result.cex = cex
3675
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
3676
    result.write(oprot)
3677
    oprot.writeMessageEnd()
3678
    oprot.trans.flush()
3679
 
3680
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
3681
    args = deleteVoucherForItem_args()
3682
    args.read(iprot)
3683
    iprot.readMessageEnd()
3684
    result = deleteVoucherForItem_result()
3685
    try:
3686
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
3687
    except CatalogServiceException, cex:
3688
      result.cex = cex
3689
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
3690
    result.write(oprot)
3691
    oprot.writeMessageEnd()
3692
    oprot.trans.flush()
3693
 
3694
  def process_getVoucherAmount(self, seqid, iprot, oprot):
3695
    args = getVoucherAmount_args()
3696
    args.read(iprot)
3697
    iprot.readMessageEnd()
3698
    result = getVoucherAmount_result()
3699
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
3700
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
3701
    result.write(oprot)
3702
    oprot.writeMessageEnd()
3703
    oprot.trans.flush()
3704
 
3705
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
3706
    args = getAllItemVouchers_args()
3707
    args.read(iprot)
3708
    iprot.readMessageEnd()
3709
    result = getAllItemVouchers_result()
3710
    result.success = self._handler.getAllItemVouchers(args.itemId)
3711
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
3712
    result.write(oprot)
3713
    oprot.writeMessageEnd()
3714
    oprot.trans.flush()
3715
 
3716
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
3717
    args = isValidCatalogItemId_args()
3718
    args.read(iprot)
3719
    iprot.readMessageEnd()
3720
    result = isValidCatalogItemId_result()
3721
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
3722
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
3723
    result.write(oprot)
3724
    oprot.writeMessageEnd()
3725
    oprot.trans.flush()
3726
 
6039 amit.gupta 3727
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
3728
    args = getVatPercentageForItem_args()
3729
    args.read(iprot)
3730
    iprot.readMessageEnd()
3731
    result = getVatPercentageForItem_result()
3732
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
3733
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
3734
    result.write(oprot)
3735
    oprot.writeMessageEnd()
3736
    oprot.trans.flush()
5944 mandeep.dh 3737
 
6039 amit.gupta 3738
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
3739
    args = getVatAmountForItem_args()
3740
    args.read(iprot)
3741
    iprot.readMessageEnd()
3742
    result = getVatAmountForItem_result()
3743
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
3744
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
3745
    result.write(oprot)
3746
    oprot.writeMessageEnd()
3747
    oprot.trans.flush()
3748
 
6531 vikram.rag 3749
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
3750
    args = getAllIgnoredInventoryUpdateItemsList_args()
3751
    args.read(iprot)
3752
    iprot.readMessageEnd()
3753
    result = getAllIgnoredInventoryUpdateItemsList_result()
3754
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
3755
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
3756
    result.write(oprot)
3757
    oprot.writeMessageEnd()
3758
    oprot.trans.flush()
6039 amit.gupta 3759
 
6531 vikram.rag 3760
 
5944 mandeep.dh 3761
# HELPER FUNCTIONS AND STRUCTURES
3762
 
3763
class addItem_args:
3764
  """
3765
  Attributes:
3766
   - item
3767
  """
3768
 
3769
  thrift_spec = (
3770
    None, # 0
3771
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
3772
  )
3773
 
3774
  def __init__(self, item=None,):
3775
    self.item = item
3776
 
3777
  def read(self, iprot):
3778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3780
      return
3781
    iprot.readStructBegin()
3782
    while True:
3783
      (fname, ftype, fid) = iprot.readFieldBegin()
3784
      if ftype == TType.STOP:
3785
        break
3786
      if fid == 1:
3787
        if ftype == TType.STRUCT:
3788
          self.item = Item()
3789
          self.item.read(iprot)
3790
        else:
3791
          iprot.skip(ftype)
3792
      else:
3793
        iprot.skip(ftype)
3794
      iprot.readFieldEnd()
3795
    iprot.readStructEnd()
3796
 
3797
  def write(self, oprot):
3798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3800
      return
3801
    oprot.writeStructBegin('addItem_args')
3802
    if self.item is not None:
3803
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
3804
      self.item.write(oprot)
3805
      oprot.writeFieldEnd()
3806
    oprot.writeFieldStop()
3807
    oprot.writeStructEnd()
3808
 
3809
  def validate(self):
3810
    return
3811
 
3812
 
3813
  def __repr__(self):
3814
    L = ['%s=%r' % (key, value)
3815
      for key, value in self.__dict__.iteritems()]
3816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3817
 
3818
  def __eq__(self, other):
3819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3820
 
3821
  def __ne__(self, other):
3822
    return not (self == other)
3823
 
3824
class addItem_result:
3825
  """
3826
  Attributes:
3827
   - success
3828
   - cex
3829
  """
3830
 
3831
  thrift_spec = (
3832
    (0, TType.I64, 'success', None, None, ), # 0
3833
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
3834
  )
3835
 
3836
  def __init__(self, success=None, cex=None,):
3837
    self.success = success
3838
    self.cex = cex
3839
 
3840
  def read(self, iprot):
3841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3843
      return
3844
    iprot.readStructBegin()
3845
    while True:
3846
      (fname, ftype, fid) = iprot.readFieldBegin()
3847
      if ftype == TType.STOP:
3848
        break
3849
      if fid == 0:
3850
        if ftype == TType.I64:
3851
          self.success = iprot.readI64();
3852
        else:
3853
          iprot.skip(ftype)
3854
      elif fid == 1:
3855
        if ftype == TType.STRUCT:
3856
          self.cex = CatalogServiceException()
3857
          self.cex.read(iprot)
3858
        else:
3859
          iprot.skip(ftype)
3860
      else:
3861
        iprot.skip(ftype)
3862
      iprot.readFieldEnd()
3863
    iprot.readStructEnd()
3864
 
3865
  def write(self, oprot):
3866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3868
      return
3869
    oprot.writeStructBegin('addItem_result')
3870
    if self.success is not None:
3871
      oprot.writeFieldBegin('success', TType.I64, 0)
3872
      oprot.writeI64(self.success)
3873
      oprot.writeFieldEnd()
3874
    if self.cex is not None:
3875
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3876
      self.cex.write(oprot)
3877
      oprot.writeFieldEnd()
3878
    oprot.writeFieldStop()
3879
    oprot.writeStructEnd()
3880
 
3881
  def validate(self):
3882
    return
3883
 
3884
 
3885
  def __repr__(self):
3886
    L = ['%s=%r' % (key, value)
3887
      for key, value in self.__dict__.iteritems()]
3888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3889
 
3890
  def __eq__(self, other):
3891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3892
 
3893
  def __ne__(self, other):
3894
    return not (self == other)
3895
 
3896
class updateItem_args:
3897
  """
3898
  Attributes:
3899
   - item
3900
  """
3901
 
3902
  thrift_spec = (
3903
    None, # 0
3904
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
3905
  )
3906
 
3907
  def __init__(self, item=None,):
3908
    self.item = item
3909
 
3910
  def read(self, iprot):
3911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3913
      return
3914
    iprot.readStructBegin()
3915
    while True:
3916
      (fname, ftype, fid) = iprot.readFieldBegin()
3917
      if ftype == TType.STOP:
3918
        break
3919
      if fid == 1:
3920
        if ftype == TType.STRUCT:
3921
          self.item = Item()
3922
          self.item.read(iprot)
3923
        else:
3924
          iprot.skip(ftype)
3925
      else:
3926
        iprot.skip(ftype)
3927
      iprot.readFieldEnd()
3928
    iprot.readStructEnd()
3929
 
3930
  def write(self, oprot):
3931
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3932
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3933
      return
3934
    oprot.writeStructBegin('updateItem_args')
3935
    if self.item is not None:
3936
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
3937
      self.item.write(oprot)
3938
      oprot.writeFieldEnd()
3939
    oprot.writeFieldStop()
3940
    oprot.writeStructEnd()
3941
 
3942
  def validate(self):
3943
    return
3944
 
3945
 
3946
  def __repr__(self):
3947
    L = ['%s=%r' % (key, value)
3948
      for key, value in self.__dict__.iteritems()]
3949
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3950
 
3951
  def __eq__(self, other):
3952
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3953
 
3954
  def __ne__(self, other):
3955
    return not (self == other)
3956
 
3957
class updateItem_result:
3958
  """
3959
  Attributes:
3960
   - success
3961
   - cex
3962
  """
3963
 
3964
  thrift_spec = (
3965
    (0, TType.I64, 'success', None, None, ), # 0
3966
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
3967
  )
3968
 
3969
  def __init__(self, success=None, cex=None,):
3970
    self.success = success
3971
    self.cex = cex
3972
 
3973
  def read(self, iprot):
3974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3976
      return
3977
    iprot.readStructBegin()
3978
    while True:
3979
      (fname, ftype, fid) = iprot.readFieldBegin()
3980
      if ftype == TType.STOP:
3981
        break
3982
      if fid == 0:
3983
        if ftype == TType.I64:
3984
          self.success = iprot.readI64();
3985
        else:
3986
          iprot.skip(ftype)
3987
      elif fid == 1:
3988
        if ftype == TType.STRUCT:
3989
          self.cex = CatalogServiceException()
3990
          self.cex.read(iprot)
3991
        else:
3992
          iprot.skip(ftype)
3993
      else:
3994
        iprot.skip(ftype)
3995
      iprot.readFieldEnd()
3996
    iprot.readStructEnd()
3997
 
3998
  def write(self, oprot):
3999
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4000
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4001
      return
4002
    oprot.writeStructBegin('updateItem_result')
4003
    if self.success is not None:
4004
      oprot.writeFieldBegin('success', TType.I64, 0)
4005
      oprot.writeI64(self.success)
4006
      oprot.writeFieldEnd()
4007
    if self.cex is not None:
4008
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4009
      self.cex.write(oprot)
4010
      oprot.writeFieldEnd()
4011
    oprot.writeFieldStop()
4012
    oprot.writeStructEnd()
4013
 
4014
  def validate(self):
4015
    return
4016
 
4017
 
4018
  def __repr__(self):
4019
    L = ['%s=%r' % (key, value)
4020
      for key, value in self.__dict__.iteritems()]
4021
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4022
 
4023
  def __eq__(self, other):
4024
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4025
 
4026
  def __ne__(self, other):
4027
    return not (self == other)
4028
 
4029
class isActive_args:
4030
  """
4031
  Attributes:
4032
   - itemId
4033
  """
4034
 
4035
  thrift_spec = (
4036
    None, # 0
4037
    (1, TType.I64, 'itemId', None, None, ), # 1
4038
  )
4039
 
4040
  def __init__(self, itemId=None,):
4041
    self.itemId = itemId
4042
 
4043
  def read(self, iprot):
4044
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4045
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4046
      return
4047
    iprot.readStructBegin()
4048
    while True:
4049
      (fname, ftype, fid) = iprot.readFieldBegin()
4050
      if ftype == TType.STOP:
4051
        break
4052
      if fid == 1:
4053
        if ftype == TType.I64:
4054
          self.itemId = iprot.readI64();
4055
        else:
4056
          iprot.skip(ftype)
4057
      else:
4058
        iprot.skip(ftype)
4059
      iprot.readFieldEnd()
4060
    iprot.readStructEnd()
4061
 
4062
  def write(self, oprot):
4063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4065
      return
4066
    oprot.writeStructBegin('isActive_args')
4067
    if self.itemId is not None:
4068
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4069
      oprot.writeI64(self.itemId)
4070
      oprot.writeFieldEnd()
4071
    oprot.writeFieldStop()
4072
    oprot.writeStructEnd()
4073
 
4074
  def validate(self):
4075
    return
4076
 
4077
 
4078
  def __repr__(self):
4079
    L = ['%s=%r' % (key, value)
4080
      for key, value in self.__dict__.iteritems()]
4081
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4082
 
4083
  def __eq__(self, other):
4084
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4085
 
4086
  def __ne__(self, other):
4087
    return not (self == other)
4088
 
4089
class isActive_result:
4090
  """
4091
  Attributes:
4092
   - success
4093
   - isex
4094
  """
4095
 
4096
  thrift_spec = (
4097
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4098
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4099
  )
4100
 
4101
  def __init__(self, success=None, isex=None,):
4102
    self.success = success
4103
    self.isex = isex
4104
 
4105
  def read(self, iprot):
4106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4108
      return
4109
    iprot.readStructBegin()
4110
    while True:
4111
      (fname, ftype, fid) = iprot.readFieldBegin()
4112
      if ftype == TType.STOP:
4113
        break
4114
      if fid == 0:
4115
        if ftype == TType.STRUCT:
4116
          self.success = ItemShippingInfo()
4117
          self.success.read(iprot)
4118
        else:
4119
          iprot.skip(ftype)
4120
      elif fid == 1:
4121
        if ftype == TType.STRUCT:
4122
          self.isex = CatalogServiceException()
4123
          self.isex.read(iprot)
4124
        else:
4125
          iprot.skip(ftype)
4126
      else:
4127
        iprot.skip(ftype)
4128
      iprot.readFieldEnd()
4129
    iprot.readStructEnd()
4130
 
4131
  def write(self, oprot):
4132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4134
      return
4135
    oprot.writeStructBegin('isActive_result')
4136
    if self.success is not None:
4137
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4138
      self.success.write(oprot)
4139
      oprot.writeFieldEnd()
4140
    if self.isex is not None:
4141
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4142
      self.isex.write(oprot)
4143
      oprot.writeFieldEnd()
4144
    oprot.writeFieldStop()
4145
    oprot.writeStructEnd()
4146
 
4147
  def validate(self):
4148
    return
4149
 
4150
 
4151
  def __repr__(self):
4152
    L = ['%s=%r' % (key, value)
4153
      for key, value in self.__dict__.iteritems()]
4154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4155
 
4156
  def __eq__(self, other):
4157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4158
 
4159
  def __ne__(self, other):
4160
    return not (self == other)
4161
 
4162
class getItemStatusDescription_args:
4163
  """
4164
  Attributes:
4165
   - itemId
4166
  """
4167
 
4168
  thrift_spec = (
4169
    None, # 0
4170
    (1, TType.I64, 'itemId', None, None, ), # 1
4171
  )
4172
 
4173
  def __init__(self, itemId=None,):
4174
    self.itemId = itemId
4175
 
4176
  def read(self, iprot):
4177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4179
      return
4180
    iprot.readStructBegin()
4181
    while True:
4182
      (fname, ftype, fid) = iprot.readFieldBegin()
4183
      if ftype == TType.STOP:
4184
        break
4185
      if fid == 1:
4186
        if ftype == TType.I64:
4187
          self.itemId = iprot.readI64();
4188
        else:
4189
          iprot.skip(ftype)
4190
      else:
4191
        iprot.skip(ftype)
4192
      iprot.readFieldEnd()
4193
    iprot.readStructEnd()
4194
 
4195
  def write(self, oprot):
4196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4198
      return
4199
    oprot.writeStructBegin('getItemStatusDescription_args')
4200
    if self.itemId is not None:
4201
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4202
      oprot.writeI64(self.itemId)
4203
      oprot.writeFieldEnd()
4204
    oprot.writeFieldStop()
4205
    oprot.writeStructEnd()
4206
 
4207
  def validate(self):
4208
    return
4209
 
4210
 
4211
  def __repr__(self):
4212
    L = ['%s=%r' % (key, value)
4213
      for key, value in self.__dict__.iteritems()]
4214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4215
 
4216
  def __eq__(self, other):
4217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4218
 
4219
  def __ne__(self, other):
4220
    return not (self == other)
4221
 
4222
class getItemStatusDescription_result:
4223
  """
4224
  Attributes:
4225
   - success
4226
   - isex
4227
  """
4228
 
4229
  thrift_spec = (
4230
    (0, TType.STRING, 'success', None, None, ), # 0
4231
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4232
  )
4233
 
4234
  def __init__(self, success=None, isex=None,):
4235
    self.success = success
4236
    self.isex = isex
4237
 
4238
  def read(self, iprot):
4239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4241
      return
4242
    iprot.readStructBegin()
4243
    while True:
4244
      (fname, ftype, fid) = iprot.readFieldBegin()
4245
      if ftype == TType.STOP:
4246
        break
4247
      if fid == 0:
4248
        if ftype == TType.STRING:
4249
          self.success = iprot.readString();
4250
        else:
4251
          iprot.skip(ftype)
4252
      elif fid == 1:
4253
        if ftype == TType.STRUCT:
4254
          self.isex = CatalogServiceException()
4255
          self.isex.read(iprot)
4256
        else:
4257
          iprot.skip(ftype)
4258
      else:
4259
        iprot.skip(ftype)
4260
      iprot.readFieldEnd()
4261
    iprot.readStructEnd()
4262
 
4263
  def write(self, oprot):
4264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4266
      return
4267
    oprot.writeStructBegin('getItemStatusDescription_result')
4268
    if self.success is not None:
4269
      oprot.writeFieldBegin('success', TType.STRING, 0)
4270
      oprot.writeString(self.success)
4271
      oprot.writeFieldEnd()
4272
    if self.isex is not None:
4273
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4274
      self.isex.write(oprot)
4275
      oprot.writeFieldEnd()
4276
    oprot.writeFieldStop()
4277
    oprot.writeStructEnd()
4278
 
4279
  def validate(self):
4280
    return
4281
 
4282
 
4283
  def __repr__(self):
4284
    L = ['%s=%r' % (key, value)
4285
      for key, value in self.__dict__.iteritems()]
4286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4287
 
4288
  def __eq__(self, other):
4289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4290
 
4291
  def __ne__(self, other):
4292
    return not (self == other)
4293
 
4294
class startItemOn_args:
4295
  """
4296
  Attributes:
4297
   - item_id
4298
   - timestamp
4299
  """
4300
 
4301
  thrift_spec = (
4302
    None, # 0
4303
    (1, TType.I64, 'item_id', None, None, ), # 1
4304
    (2, TType.I64, 'timestamp', None, None, ), # 2
4305
  )
4306
 
4307
  def __init__(self, item_id=None, timestamp=None,):
4308
    self.item_id = item_id
4309
    self.timestamp = timestamp
4310
 
4311
  def read(self, iprot):
4312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4314
      return
4315
    iprot.readStructBegin()
4316
    while True:
4317
      (fname, ftype, fid) = iprot.readFieldBegin()
4318
      if ftype == TType.STOP:
4319
        break
4320
      if fid == 1:
4321
        if ftype == TType.I64:
4322
          self.item_id = iprot.readI64();
4323
        else:
4324
          iprot.skip(ftype)
4325
      elif fid == 2:
4326
        if ftype == TType.I64:
4327
          self.timestamp = iprot.readI64();
4328
        else:
4329
          iprot.skip(ftype)
4330
      else:
4331
        iprot.skip(ftype)
4332
      iprot.readFieldEnd()
4333
    iprot.readStructEnd()
4334
 
4335
  def write(self, oprot):
4336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4338
      return
4339
    oprot.writeStructBegin('startItemOn_args')
4340
    if self.item_id is not None:
4341
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4342
      oprot.writeI64(self.item_id)
4343
      oprot.writeFieldEnd()
4344
    if self.timestamp is not None:
4345
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4346
      oprot.writeI64(self.timestamp)
4347
      oprot.writeFieldEnd()
4348
    oprot.writeFieldStop()
4349
    oprot.writeStructEnd()
4350
 
4351
  def validate(self):
4352
    return
4353
 
4354
 
4355
  def __repr__(self):
4356
    L = ['%s=%r' % (key, value)
4357
      for key, value in self.__dict__.iteritems()]
4358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4359
 
4360
  def __eq__(self, other):
4361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4362
 
4363
  def __ne__(self, other):
4364
    return not (self == other)
4365
 
4366
class startItemOn_result:
4367
  """
4368
  Attributes:
4369
   - cex
4370
  """
4371
 
4372
  thrift_spec = (
4373
    None, # 0
4374
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4375
  )
4376
 
4377
  def __init__(self, cex=None,):
4378
    self.cex = cex
4379
 
4380
  def read(self, iprot):
4381
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4382
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4383
      return
4384
    iprot.readStructBegin()
4385
    while True:
4386
      (fname, ftype, fid) = iprot.readFieldBegin()
4387
      if ftype == TType.STOP:
4388
        break
4389
      if fid == 1:
4390
        if ftype == TType.STRUCT:
4391
          self.cex = CatalogServiceException()
4392
          self.cex.read(iprot)
4393
        else:
4394
          iprot.skip(ftype)
4395
      else:
4396
        iprot.skip(ftype)
4397
      iprot.readFieldEnd()
4398
    iprot.readStructEnd()
4399
 
4400
  def write(self, oprot):
4401
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4402
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4403
      return
4404
    oprot.writeStructBegin('startItemOn_result')
4405
    if self.cex is not None:
4406
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4407
      self.cex.write(oprot)
4408
      oprot.writeFieldEnd()
4409
    oprot.writeFieldStop()
4410
    oprot.writeStructEnd()
4411
 
4412
  def validate(self):
4413
    return
4414
 
4415
 
4416
  def __repr__(self):
4417
    L = ['%s=%r' % (key, value)
4418
      for key, value in self.__dict__.iteritems()]
4419
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4420
 
4421
  def __eq__(self, other):
4422
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4423
 
4424
  def __ne__(self, other):
4425
    return not (self == other)
4426
 
4427
class retireItemOn_args:
4428
  """
4429
  Attributes:
4430
   - item_id
4431
   - timestamp
4432
  """
4433
 
4434
  thrift_spec = (
4435
    None, # 0
4436
    (1, TType.I64, 'item_id', None, None, ), # 1
4437
    (2, TType.I64, 'timestamp', None, None, ), # 2
4438
  )
4439
 
4440
  def __init__(self, item_id=None, timestamp=None,):
4441
    self.item_id = item_id
4442
    self.timestamp = timestamp
4443
 
4444
  def read(self, iprot):
4445
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4446
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4447
      return
4448
    iprot.readStructBegin()
4449
    while True:
4450
      (fname, ftype, fid) = iprot.readFieldBegin()
4451
      if ftype == TType.STOP:
4452
        break
4453
      if fid == 1:
4454
        if ftype == TType.I64:
4455
          self.item_id = iprot.readI64();
4456
        else:
4457
          iprot.skip(ftype)
4458
      elif fid == 2:
4459
        if ftype == TType.I64:
4460
          self.timestamp = iprot.readI64();
4461
        else:
4462
          iprot.skip(ftype)
4463
      else:
4464
        iprot.skip(ftype)
4465
      iprot.readFieldEnd()
4466
    iprot.readStructEnd()
4467
 
4468
  def write(self, oprot):
4469
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4470
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4471
      return
4472
    oprot.writeStructBegin('retireItemOn_args')
4473
    if self.item_id is not None:
4474
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4475
      oprot.writeI64(self.item_id)
4476
      oprot.writeFieldEnd()
4477
    if self.timestamp is not None:
4478
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4479
      oprot.writeI64(self.timestamp)
4480
      oprot.writeFieldEnd()
4481
    oprot.writeFieldStop()
4482
    oprot.writeStructEnd()
4483
 
4484
  def validate(self):
4485
    return
4486
 
4487
 
4488
  def __repr__(self):
4489
    L = ['%s=%r' % (key, value)
4490
      for key, value in self.__dict__.iteritems()]
4491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4492
 
4493
  def __eq__(self, other):
4494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4495
 
4496
  def __ne__(self, other):
4497
    return not (self == other)
4498
 
4499
class retireItemOn_result:
4500
  """
4501
  Attributes:
4502
   - cex
4503
  """
4504
 
4505
  thrift_spec = (
4506
    None, # 0
4507
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4508
  )
4509
 
4510
  def __init__(self, cex=None,):
4511
    self.cex = cex
4512
 
4513
  def read(self, iprot):
4514
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4515
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4516
      return
4517
    iprot.readStructBegin()
4518
    while True:
4519
      (fname, ftype, fid) = iprot.readFieldBegin()
4520
      if ftype == TType.STOP:
4521
        break
4522
      if fid == 1:
4523
        if ftype == TType.STRUCT:
4524
          self.cex = CatalogServiceException()
4525
          self.cex.read(iprot)
4526
        else:
4527
          iprot.skip(ftype)
4528
      else:
4529
        iprot.skip(ftype)
4530
      iprot.readFieldEnd()
4531
    iprot.readStructEnd()
4532
 
4533
  def write(self, oprot):
4534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4536
      return
4537
    oprot.writeStructBegin('retireItemOn_result')
4538
    if self.cex is not None:
4539
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4540
      self.cex.write(oprot)
4541
      oprot.writeFieldEnd()
4542
    oprot.writeFieldStop()
4543
    oprot.writeStructEnd()
4544
 
4545
  def validate(self):
4546
    return
4547
 
4548
 
4549
  def __repr__(self):
4550
    L = ['%s=%r' % (key, value)
4551
      for key, value in self.__dict__.iteritems()]
4552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4553
 
4554
  def __eq__(self, other):
4555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4556
 
4557
  def __ne__(self, other):
4558
    return not (self == other)
4559
 
4560
class changeItemStatus_args:
4561
  """
4562
  Attributes:
4563
   - item_id
4564
   - timestamp
4565
   - newstatus
4566
  """
4567
 
4568
  thrift_spec = (
4569
    None, # 0
4570
    (1, TType.I64, 'item_id', None, None, ), # 1
4571
    (2, TType.I64, 'timestamp', None, None, ), # 2
4572
    (3, TType.I32, 'newstatus', None, None, ), # 3
4573
  )
4574
 
4575
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
4576
    self.item_id = item_id
4577
    self.timestamp = timestamp
4578
    self.newstatus = newstatus
4579
 
4580
  def read(self, iprot):
4581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4583
      return
4584
    iprot.readStructBegin()
4585
    while True:
4586
      (fname, ftype, fid) = iprot.readFieldBegin()
4587
      if ftype == TType.STOP:
4588
        break
4589
      if fid == 1:
4590
        if ftype == TType.I64:
4591
          self.item_id = iprot.readI64();
4592
        else:
4593
          iprot.skip(ftype)
4594
      elif fid == 2:
4595
        if ftype == TType.I64:
4596
          self.timestamp = iprot.readI64();
4597
        else:
4598
          iprot.skip(ftype)
4599
      elif fid == 3:
4600
        if ftype == TType.I32:
4601
          self.newstatus = iprot.readI32();
4602
        else:
4603
          iprot.skip(ftype)
4604
      else:
4605
        iprot.skip(ftype)
4606
      iprot.readFieldEnd()
4607
    iprot.readStructEnd()
4608
 
4609
  def write(self, oprot):
4610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4612
      return
4613
    oprot.writeStructBegin('changeItemStatus_args')
4614
    if self.item_id is not None:
4615
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4616
      oprot.writeI64(self.item_id)
4617
      oprot.writeFieldEnd()
4618
    if self.timestamp is not None:
4619
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4620
      oprot.writeI64(self.timestamp)
4621
      oprot.writeFieldEnd()
4622
    if self.newstatus is not None:
4623
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
4624
      oprot.writeI32(self.newstatus)
4625
      oprot.writeFieldEnd()
4626
    oprot.writeFieldStop()
4627
    oprot.writeStructEnd()
4628
 
4629
  def validate(self):
4630
    return
4631
 
4632
 
4633
  def __repr__(self):
4634
    L = ['%s=%r' % (key, value)
4635
      for key, value in self.__dict__.iteritems()]
4636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4637
 
4638
  def __eq__(self, other):
4639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4640
 
4641
  def __ne__(self, other):
4642
    return not (self == other)
4643
 
4644
class changeItemStatus_result:
4645
  """
4646
  Attributes:
4647
   - cex
4648
  """
4649
 
4650
  thrift_spec = (
4651
    None, # 0
4652
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4653
  )
4654
 
4655
  def __init__(self, cex=None,):
4656
    self.cex = cex
4657
 
4658
  def read(self, iprot):
4659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4661
      return
4662
    iprot.readStructBegin()
4663
    while True:
4664
      (fname, ftype, fid) = iprot.readFieldBegin()
4665
      if ftype == TType.STOP:
4666
        break
4667
      if fid == 1:
4668
        if ftype == TType.STRUCT:
4669
          self.cex = CatalogServiceException()
4670
          self.cex.read(iprot)
4671
        else:
4672
          iprot.skip(ftype)
4673
      else:
4674
        iprot.skip(ftype)
4675
      iprot.readFieldEnd()
4676
    iprot.readStructEnd()
4677
 
4678
  def write(self, oprot):
4679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4681
      return
4682
    oprot.writeStructBegin('changeItemStatus_result')
4683
    if self.cex is not None:
4684
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4685
      self.cex.write(oprot)
4686
      oprot.writeFieldEnd()
4687
    oprot.writeFieldStop()
4688
    oprot.writeStructEnd()
4689
 
4690
  def validate(self):
4691
    return
4692
 
4693
 
4694
  def __repr__(self):
4695
    L = ['%s=%r' % (key, value)
4696
      for key, value in self.__dict__.iteritems()]
4697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4698
 
4699
  def __eq__(self, other):
4700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4701
 
4702
  def __ne__(self, other):
4703
    return not (self == other)
4704
 
4705
class getItem_args:
4706
  """
4707
  Attributes:
4708
   - item_id
4709
  """
4710
 
4711
  thrift_spec = (
4712
    None, # 0
4713
    (1, TType.I64, 'item_id', None, None, ), # 1
4714
  )
4715
 
4716
  def __init__(self, item_id=None,):
4717
    self.item_id = item_id
4718
 
4719
  def read(self, iprot):
4720
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4721
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4722
      return
4723
    iprot.readStructBegin()
4724
    while True:
4725
      (fname, ftype, fid) = iprot.readFieldBegin()
4726
      if ftype == TType.STOP:
4727
        break
4728
      if fid == 1:
4729
        if ftype == TType.I64:
4730
          self.item_id = iprot.readI64();
4731
        else:
4732
          iprot.skip(ftype)
4733
      else:
4734
        iprot.skip(ftype)
4735
      iprot.readFieldEnd()
4736
    iprot.readStructEnd()
4737
 
4738
  def write(self, oprot):
4739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4741
      return
4742
    oprot.writeStructBegin('getItem_args')
4743
    if self.item_id is not None:
4744
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4745
      oprot.writeI64(self.item_id)
4746
      oprot.writeFieldEnd()
4747
    oprot.writeFieldStop()
4748
    oprot.writeStructEnd()
4749
 
4750
  def validate(self):
4751
    return
4752
 
4753
 
4754
  def __repr__(self):
4755
    L = ['%s=%r' % (key, value)
4756
      for key, value in self.__dict__.iteritems()]
4757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4758
 
4759
  def __eq__(self, other):
4760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4761
 
4762
  def __ne__(self, other):
4763
    return not (self == other)
4764
 
4765
class getItem_result:
4766
  """
4767
  Attributes:
4768
   - success
4769
   - cex
4770
  """
4771
 
4772
  thrift_spec = (
4773
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
4774
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4775
  )
4776
 
4777
  def __init__(self, success=None, cex=None,):
4778
    self.success = success
4779
    self.cex = cex
4780
 
4781
  def read(self, iprot):
4782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4784
      return
4785
    iprot.readStructBegin()
4786
    while True:
4787
      (fname, ftype, fid) = iprot.readFieldBegin()
4788
      if ftype == TType.STOP:
4789
        break
4790
      if fid == 0:
4791
        if ftype == TType.STRUCT:
4792
          self.success = Item()
4793
          self.success.read(iprot)
4794
        else:
4795
          iprot.skip(ftype)
4796
      elif fid == 1:
4797
        if ftype == TType.STRUCT:
4798
          self.cex = CatalogServiceException()
4799
          self.cex.read(iprot)
4800
        else:
4801
          iprot.skip(ftype)
4802
      else:
4803
        iprot.skip(ftype)
4804
      iprot.readFieldEnd()
4805
    iprot.readStructEnd()
4806
 
4807
  def write(self, oprot):
4808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4810
      return
4811
    oprot.writeStructBegin('getItem_result')
4812
    if self.success is not None:
4813
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4814
      self.success.write(oprot)
4815
      oprot.writeFieldEnd()
4816
    if self.cex is not None:
4817
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4818
      self.cex.write(oprot)
4819
      oprot.writeFieldEnd()
4820
    oprot.writeFieldStop()
4821
    oprot.writeStructEnd()
4822
 
4823
  def validate(self):
4824
    return
4825
 
4826
 
4827
  def __repr__(self):
4828
    L = ['%s=%r' % (key, value)
4829
      for key, value in self.__dict__.iteritems()]
4830
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4831
 
4832
  def __eq__(self, other):
4833
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4834
 
4835
  def __ne__(self, other):
4836
    return not (self == other)
4837
 
4838
class getItemsByCatalogId_args:
4839
  """
4840
  Attributes:
4841
   - catalog_item_id
4842
  """
4843
 
4844
  thrift_spec = (
4845
    None, # 0
4846
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
4847
  )
4848
 
4849
  def __init__(self, catalog_item_id=None,):
4850
    self.catalog_item_id = catalog_item_id
4851
 
4852
  def read(self, iprot):
4853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4855
      return
4856
    iprot.readStructBegin()
4857
    while True:
4858
      (fname, ftype, fid) = iprot.readFieldBegin()
4859
      if ftype == TType.STOP:
4860
        break
4861
      if fid == 1:
4862
        if ftype == TType.I64:
4863
          self.catalog_item_id = iprot.readI64();
4864
        else:
4865
          iprot.skip(ftype)
4866
      else:
4867
        iprot.skip(ftype)
4868
      iprot.readFieldEnd()
4869
    iprot.readStructEnd()
4870
 
4871
  def write(self, oprot):
4872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4874
      return
4875
    oprot.writeStructBegin('getItemsByCatalogId_args')
4876
    if self.catalog_item_id is not None:
4877
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
4878
      oprot.writeI64(self.catalog_item_id)
4879
      oprot.writeFieldEnd()
4880
    oprot.writeFieldStop()
4881
    oprot.writeStructEnd()
4882
 
4883
  def validate(self):
4884
    return
4885
 
4886
 
4887
  def __repr__(self):
4888
    L = ['%s=%r' % (key, value)
4889
      for key, value in self.__dict__.iteritems()]
4890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4891
 
4892
  def __eq__(self, other):
4893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4894
 
4895
  def __ne__(self, other):
4896
    return not (self == other)
4897
 
4898
class getItemsByCatalogId_result:
4899
  """
4900
  Attributes:
4901
   - success
4902
   - cex
4903
  """
4904
 
4905
  thrift_spec = (
4906
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
4907
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4908
  )
4909
 
4910
  def __init__(self, success=None, cex=None,):
4911
    self.success = success
4912
    self.cex = cex
4913
 
4914
  def read(self, iprot):
4915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4917
      return
4918
    iprot.readStructBegin()
4919
    while True:
4920
      (fname, ftype, fid) = iprot.readFieldBegin()
4921
      if ftype == TType.STOP:
4922
        break
4923
      if fid == 0:
4924
        if ftype == TType.LIST:
4925
          self.success = []
4926
          (_etype19, _size16) = iprot.readListBegin()
4927
          for _i20 in xrange(_size16):
4928
            _elem21 = Item()
4929
            _elem21.read(iprot)
4930
            self.success.append(_elem21)
4931
          iprot.readListEnd()
4932
        else:
4933
          iprot.skip(ftype)
4934
      elif fid == 1:
4935
        if ftype == TType.STRUCT:
4936
          self.cex = CatalogServiceException()
4937
          self.cex.read(iprot)
4938
        else:
4939
          iprot.skip(ftype)
4940
      else:
4941
        iprot.skip(ftype)
4942
      iprot.readFieldEnd()
4943
    iprot.readStructEnd()
4944
 
4945
  def write(self, oprot):
4946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4948
      return
4949
    oprot.writeStructBegin('getItemsByCatalogId_result')
4950
    if self.success is not None:
4951
      oprot.writeFieldBegin('success', TType.LIST, 0)
4952
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4953
      for iter22 in self.success:
4954
        iter22.write(oprot)
4955
      oprot.writeListEnd()
4956
      oprot.writeFieldEnd()
4957
    if self.cex is not None:
4958
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4959
      self.cex.write(oprot)
4960
      oprot.writeFieldEnd()
4961
    oprot.writeFieldStop()
4962
    oprot.writeStructEnd()
4963
 
4964
  def validate(self):
4965
    return
4966
 
4967
 
4968
  def __repr__(self):
4969
    L = ['%s=%r' % (key, value)
4970
      for key, value in self.__dict__.iteritems()]
4971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4972
 
4973
  def __eq__(self, other):
4974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4975
 
4976
  def __ne__(self, other):
4977
    return not (self == other)
4978
 
4979
class getValidItemsByCatalogId_args:
4980
  """
4981
  Attributes:
4982
   - catalog_item_id
4983
  """
4984
 
4985
  thrift_spec = (
4986
    None, # 0
4987
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
4988
  )
4989
 
4990
  def __init__(self, catalog_item_id=None,):
4991
    self.catalog_item_id = catalog_item_id
4992
 
4993
  def read(self, iprot):
4994
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4995
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4996
      return
4997
    iprot.readStructBegin()
4998
    while True:
4999
      (fname, ftype, fid) = iprot.readFieldBegin()
5000
      if ftype == TType.STOP:
5001
        break
5002
      if fid == 1:
5003
        if ftype == TType.I64:
5004
          self.catalog_item_id = iprot.readI64();
5005
        else:
5006
          iprot.skip(ftype)
5007
      else:
5008
        iprot.skip(ftype)
5009
      iprot.readFieldEnd()
5010
    iprot.readStructEnd()
5011
 
5012
  def write(self, oprot):
5013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5015
      return
5016
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5017
    if self.catalog_item_id is not None:
5018
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5019
      oprot.writeI64(self.catalog_item_id)
5020
      oprot.writeFieldEnd()
5021
    oprot.writeFieldStop()
5022
    oprot.writeStructEnd()
5023
 
5024
  def validate(self):
5025
    return
5026
 
5027
 
5028
  def __repr__(self):
5029
    L = ['%s=%r' % (key, value)
5030
      for key, value in self.__dict__.iteritems()]
5031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5032
 
5033
  def __eq__(self, other):
5034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5035
 
5036
  def __ne__(self, other):
5037
    return not (self == other)
5038
 
5039
class getValidItemsByCatalogId_result:
5040
  """
5041
  Attributes:
5042
   - success
5043
   - cex
5044
  """
5045
 
5046
  thrift_spec = (
5047
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5048
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5049
  )
5050
 
5051
  def __init__(self, success=None, cex=None,):
5052
    self.success = success
5053
    self.cex = cex
5054
 
5055
  def read(self, iprot):
5056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5058
      return
5059
    iprot.readStructBegin()
5060
    while True:
5061
      (fname, ftype, fid) = iprot.readFieldBegin()
5062
      if ftype == TType.STOP:
5063
        break
5064
      if fid == 0:
5065
        if ftype == TType.LIST:
5066
          self.success = []
5067
          (_etype26, _size23) = iprot.readListBegin()
5068
          for _i27 in xrange(_size23):
5069
            _elem28 = Item()
5070
            _elem28.read(iprot)
5071
            self.success.append(_elem28)
5072
          iprot.readListEnd()
5073
        else:
5074
          iprot.skip(ftype)
5075
      elif fid == 1:
5076
        if ftype == TType.STRUCT:
5077
          self.cex = CatalogServiceException()
5078
          self.cex.read(iprot)
5079
        else:
5080
          iprot.skip(ftype)
5081
      else:
5082
        iprot.skip(ftype)
5083
      iprot.readFieldEnd()
5084
    iprot.readStructEnd()
5085
 
5086
  def write(self, oprot):
5087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5089
      return
5090
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5091
    if self.success is not None:
5092
      oprot.writeFieldBegin('success', TType.LIST, 0)
5093
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5094
      for iter29 in self.success:
5095
        iter29.write(oprot)
5096
      oprot.writeListEnd()
5097
      oprot.writeFieldEnd()
5098
    if self.cex is not None:
5099
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5100
      self.cex.write(oprot)
5101
      oprot.writeFieldEnd()
5102
    oprot.writeFieldStop()
5103
    oprot.writeStructEnd()
5104
 
5105
  def validate(self):
5106
    return
5107
 
5108
 
5109
  def __repr__(self):
5110
    L = ['%s=%r' % (key, value)
5111
      for key, value in self.__dict__.iteritems()]
5112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5113
 
5114
  def __eq__(self, other):
5115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5116
 
5117
  def __ne__(self, other):
5118
    return not (self == other)
5119
 
5120
class getAllItems_args:
5121
  """
5122
  Attributes:
5123
   - isActive
5124
  """
5125
 
5126
  thrift_spec = (
5127
    None, # 0
5128
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5129
  )
5130
 
5131
  def __init__(self, isActive=None,):
5132
    self.isActive = isActive
5133
 
5134
  def read(self, iprot):
5135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5137
      return
5138
    iprot.readStructBegin()
5139
    while True:
5140
      (fname, ftype, fid) = iprot.readFieldBegin()
5141
      if ftype == TType.STOP:
5142
        break
5143
      if fid == 1:
5144
        if ftype == TType.BOOL:
5145
          self.isActive = iprot.readBool();
5146
        else:
5147
          iprot.skip(ftype)
5148
      else:
5149
        iprot.skip(ftype)
5150
      iprot.readFieldEnd()
5151
    iprot.readStructEnd()
5152
 
5153
  def write(self, oprot):
5154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5156
      return
5157
    oprot.writeStructBegin('getAllItems_args')
5158
    if self.isActive is not None:
5159
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5160
      oprot.writeBool(self.isActive)
5161
      oprot.writeFieldEnd()
5162
    oprot.writeFieldStop()
5163
    oprot.writeStructEnd()
5164
 
5165
  def validate(self):
5166
    return
5167
 
5168
 
5169
  def __repr__(self):
5170
    L = ['%s=%r' % (key, value)
5171
      for key, value in self.__dict__.iteritems()]
5172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5173
 
5174
  def __eq__(self, other):
5175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5176
 
5177
  def __ne__(self, other):
5178
    return not (self == other)
5179
 
5180
class getAllItems_result:
5181
  """
5182
  Attributes:
5183
   - success
5184
   - cex
5185
  """
5186
 
5187
  thrift_spec = (
5188
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5189
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5190
  )
5191
 
5192
  def __init__(self, success=None, cex=None,):
5193
    self.success = success
5194
    self.cex = cex
5195
 
5196
  def read(self, iprot):
5197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5199
      return
5200
    iprot.readStructBegin()
5201
    while True:
5202
      (fname, ftype, fid) = iprot.readFieldBegin()
5203
      if ftype == TType.STOP:
5204
        break
5205
      if fid == 0:
5206
        if ftype == TType.LIST:
5207
          self.success = []
5208
          (_etype33, _size30) = iprot.readListBegin()
5209
          for _i34 in xrange(_size30):
5210
            _elem35 = Item()
5211
            _elem35.read(iprot)
5212
            self.success.append(_elem35)
5213
          iprot.readListEnd()
5214
        else:
5215
          iprot.skip(ftype)
5216
      elif fid == 1:
5217
        if ftype == TType.STRUCT:
5218
          self.cex = CatalogServiceException()
5219
          self.cex.read(iprot)
5220
        else:
5221
          iprot.skip(ftype)
5222
      else:
5223
        iprot.skip(ftype)
5224
      iprot.readFieldEnd()
5225
    iprot.readStructEnd()
5226
 
5227
  def write(self, oprot):
5228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5230
      return
5231
    oprot.writeStructBegin('getAllItems_result')
5232
    if self.success is not None:
5233
      oprot.writeFieldBegin('success', TType.LIST, 0)
5234
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5235
      for iter36 in self.success:
5236
        iter36.write(oprot)
5237
      oprot.writeListEnd()
5238
      oprot.writeFieldEnd()
5239
    if self.cex is not None:
5240
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5241
      self.cex.write(oprot)
5242
      oprot.writeFieldEnd()
5243
    oprot.writeFieldStop()
5244
    oprot.writeStructEnd()
5245
 
5246
  def validate(self):
5247
    return
5248
 
5249
 
5250
  def __repr__(self):
5251
    L = ['%s=%r' % (key, value)
5252
      for key, value in self.__dict__.iteritems()]
5253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5254
 
5255
  def __eq__(self, other):
5256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5257
 
5258
  def __ne__(self, other):
5259
    return not (self == other)
5260
 
5261
class getAllItemsByStatus_args:
5262
  """
5263
  Attributes:
5264
   - itemStatus
5265
  """
5266
 
5267
  thrift_spec = (
5268
    None, # 0
5269
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5270
  )
5271
 
5272
  def __init__(self, itemStatus=None,):
5273
    self.itemStatus = itemStatus
5274
 
5275
  def read(self, iprot):
5276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5278
      return
5279
    iprot.readStructBegin()
5280
    while True:
5281
      (fname, ftype, fid) = iprot.readFieldBegin()
5282
      if ftype == TType.STOP:
5283
        break
5284
      if fid == 1:
5285
        if ftype == TType.I32:
5286
          self.itemStatus = iprot.readI32();
5287
        else:
5288
          iprot.skip(ftype)
5289
      else:
5290
        iprot.skip(ftype)
5291
      iprot.readFieldEnd()
5292
    iprot.readStructEnd()
5293
 
5294
  def write(self, oprot):
5295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5297
      return
5298
    oprot.writeStructBegin('getAllItemsByStatus_args')
5299
    if self.itemStatus is not None:
5300
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5301
      oprot.writeI32(self.itemStatus)
5302
      oprot.writeFieldEnd()
5303
    oprot.writeFieldStop()
5304
    oprot.writeStructEnd()
5305
 
5306
  def validate(self):
5307
    return
5308
 
5309
 
5310
  def __repr__(self):
5311
    L = ['%s=%r' % (key, value)
5312
      for key, value in self.__dict__.iteritems()]
5313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5314
 
5315
  def __eq__(self, other):
5316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5317
 
5318
  def __ne__(self, other):
5319
    return not (self == other)
5320
 
5321
class getAllItemsByStatus_result:
5322
  """
5323
  Attributes:
5324
   - success
5325
   - cex
5326
  """
5327
 
5328
  thrift_spec = (
5329
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5330
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5331
  )
5332
 
5333
  def __init__(self, success=None, cex=None,):
5334
    self.success = success
5335
    self.cex = cex
5336
 
5337
  def read(self, iprot):
5338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5340
      return
5341
    iprot.readStructBegin()
5342
    while True:
5343
      (fname, ftype, fid) = iprot.readFieldBegin()
5344
      if ftype == TType.STOP:
5345
        break
5346
      if fid == 0:
5347
        if ftype == TType.LIST:
5348
          self.success = []
5349
          (_etype40, _size37) = iprot.readListBegin()
5350
          for _i41 in xrange(_size37):
5351
            _elem42 = Item()
5352
            _elem42.read(iprot)
5353
            self.success.append(_elem42)
5354
          iprot.readListEnd()
5355
        else:
5356
          iprot.skip(ftype)
5357
      elif fid == 1:
5358
        if ftype == TType.STRUCT:
5359
          self.cex = CatalogServiceException()
5360
          self.cex.read(iprot)
5361
        else:
5362
          iprot.skip(ftype)
5363
      else:
5364
        iprot.skip(ftype)
5365
      iprot.readFieldEnd()
5366
    iprot.readStructEnd()
5367
 
5368
  def write(self, oprot):
5369
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5370
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5371
      return
5372
    oprot.writeStructBegin('getAllItemsByStatus_result')
5373
    if self.success is not None:
5374
      oprot.writeFieldBegin('success', TType.LIST, 0)
5375
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5376
      for iter43 in self.success:
5377
        iter43.write(oprot)
5378
      oprot.writeListEnd()
5379
      oprot.writeFieldEnd()
5380
    if self.cex is not None:
5381
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5382
      self.cex.write(oprot)
5383
      oprot.writeFieldEnd()
5384
    oprot.writeFieldStop()
5385
    oprot.writeStructEnd()
5386
 
5387
  def validate(self):
5388
    return
5389
 
5390
 
5391
  def __repr__(self):
5392
    L = ['%s=%r' % (key, value)
5393
      for key, value in self.__dict__.iteritems()]
5394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5395
 
5396
  def __eq__(self, other):
5397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5398
 
5399
  def __ne__(self, other):
5400
    return not (self == other)
5401
 
5402
class markItemAsContentComplete_args:
5403
  """
5404
  Attributes:
5405
   - entityId
5406
   - category
5407
   - brand
5408
   - modelName
5409
   - modelNumber
5410
  """
5411
 
5412
  thrift_spec = (
5413
    None, # 0
5414
    (1, TType.I64, 'entityId', None, None, ), # 1
5415
    (2, TType.I64, 'category', None, None, ), # 2
5416
    (3, TType.STRING, 'brand', None, None, ), # 3
5417
    (4, TType.STRING, 'modelName', None, None, ), # 4
5418
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
5419
  )
5420
 
5421
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
5422
    self.entityId = entityId
5423
    self.category = category
5424
    self.brand = brand
5425
    self.modelName = modelName
5426
    self.modelNumber = modelNumber
5427
 
5428
  def read(self, iprot):
5429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5431
      return
5432
    iprot.readStructBegin()
5433
    while True:
5434
      (fname, ftype, fid) = iprot.readFieldBegin()
5435
      if ftype == TType.STOP:
5436
        break
5437
      if fid == 1:
5438
        if ftype == TType.I64:
5439
          self.entityId = iprot.readI64();
5440
        else:
5441
          iprot.skip(ftype)
5442
      elif fid == 2:
5443
        if ftype == TType.I64:
5444
          self.category = iprot.readI64();
5445
        else:
5446
          iprot.skip(ftype)
5447
      elif fid == 3:
5448
        if ftype == TType.STRING:
5449
          self.brand = iprot.readString();
5450
        else:
5451
          iprot.skip(ftype)
5452
      elif fid == 4:
5453
        if ftype == TType.STRING:
5454
          self.modelName = iprot.readString();
5455
        else:
5456
          iprot.skip(ftype)
5457
      elif fid == 5:
5458
        if ftype == TType.STRING:
5459
          self.modelNumber = iprot.readString();
5460
        else:
5461
          iprot.skip(ftype)
5462
      else:
5463
        iprot.skip(ftype)
5464
      iprot.readFieldEnd()
5465
    iprot.readStructEnd()
5466
 
5467
  def write(self, oprot):
5468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5470
      return
5471
    oprot.writeStructBegin('markItemAsContentComplete_args')
5472
    if self.entityId is not None:
5473
      oprot.writeFieldBegin('entityId', TType.I64, 1)
5474
      oprot.writeI64(self.entityId)
5475
      oprot.writeFieldEnd()
5476
    if self.category is not None:
5477
      oprot.writeFieldBegin('category', TType.I64, 2)
5478
      oprot.writeI64(self.category)
5479
      oprot.writeFieldEnd()
5480
    if self.brand is not None:
5481
      oprot.writeFieldBegin('brand', TType.STRING, 3)
5482
      oprot.writeString(self.brand)
5483
      oprot.writeFieldEnd()
5484
    if self.modelName is not None:
5485
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
5486
      oprot.writeString(self.modelName)
5487
      oprot.writeFieldEnd()
5488
    if self.modelNumber is not None:
5489
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
5490
      oprot.writeString(self.modelNumber)
5491
      oprot.writeFieldEnd()
5492
    oprot.writeFieldStop()
5493
    oprot.writeStructEnd()
5494
 
5495
  def validate(self):
5496
    return
5497
 
5498
 
5499
  def __repr__(self):
5500
    L = ['%s=%r' % (key, value)
5501
      for key, value in self.__dict__.iteritems()]
5502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5503
 
5504
  def __eq__(self, other):
5505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5506
 
5507
  def __ne__(self, other):
5508
    return not (self == other)
5509
 
5510
class markItemAsContentComplete_result:
5511
  """
5512
  Attributes:
5513
   - success
5514
   - cex
5515
  """
5516
 
5517
  thrift_spec = (
5518
    (0, TType.BOOL, 'success', None, None, ), # 0
5519
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5520
  )
5521
 
5522
  def __init__(self, success=None, cex=None,):
5523
    self.success = success
5524
    self.cex = cex
5525
 
5526
  def read(self, iprot):
5527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5529
      return
5530
    iprot.readStructBegin()
5531
    while True:
5532
      (fname, ftype, fid) = iprot.readFieldBegin()
5533
      if ftype == TType.STOP:
5534
        break
5535
      if fid == 0:
5536
        if ftype == TType.BOOL:
5537
          self.success = iprot.readBool();
5538
        else:
5539
          iprot.skip(ftype)
5540
      elif fid == 1:
5541
        if ftype == TType.STRUCT:
5542
          self.cex = CatalogServiceException()
5543
          self.cex.read(iprot)
5544
        else:
5545
          iprot.skip(ftype)
5546
      else:
5547
        iprot.skip(ftype)
5548
      iprot.readFieldEnd()
5549
    iprot.readStructEnd()
5550
 
5551
  def write(self, oprot):
5552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5554
      return
5555
    oprot.writeStructBegin('markItemAsContentComplete_result')
5556
    if self.success is not None:
5557
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5558
      oprot.writeBool(self.success)
5559
      oprot.writeFieldEnd()
5560
    if self.cex is not None:
5561
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5562
      self.cex.write(oprot)
5563
      oprot.writeFieldEnd()
5564
    oprot.writeFieldStop()
5565
    oprot.writeStructEnd()
5566
 
5567
  def validate(self):
5568
    return
5569
 
5570
 
5571
  def __repr__(self):
5572
    L = ['%s=%r' % (key, value)
5573
      for key, value in self.__dict__.iteritems()]
5574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5575
 
5576
  def __eq__(self, other):
5577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5578
 
5579
  def __ne__(self, other):
5580
    return not (self == other)
5581
 
5582
class getAllItemsInRange_args:
5583
  """
5584
  Attributes:
5585
   - offset
5586
   - limit
5587
  """
5588
 
5589
  thrift_spec = (
5590
    None, # 0
5591
    (1, TType.I64, 'offset', None, None, ), # 1
5592
    (2, TType.I64, 'limit', None, None, ), # 2
5593
  )
5594
 
5595
  def __init__(self, offset=None, limit=None,):
5596
    self.offset = offset
5597
    self.limit = limit
5598
 
5599
  def read(self, iprot):
5600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5602
      return
5603
    iprot.readStructBegin()
5604
    while True:
5605
      (fname, ftype, fid) = iprot.readFieldBegin()
5606
      if ftype == TType.STOP:
5607
        break
5608
      if fid == 1:
5609
        if ftype == TType.I64:
5610
          self.offset = iprot.readI64();
5611
        else:
5612
          iprot.skip(ftype)
5613
      elif fid == 2:
5614
        if ftype == TType.I64:
5615
          self.limit = iprot.readI64();
5616
        else:
5617
          iprot.skip(ftype)
5618
      else:
5619
        iprot.skip(ftype)
5620
      iprot.readFieldEnd()
5621
    iprot.readStructEnd()
5622
 
5623
  def write(self, oprot):
5624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5626
      return
5627
    oprot.writeStructBegin('getAllItemsInRange_args')
5628
    if self.offset is not None:
5629
      oprot.writeFieldBegin('offset', TType.I64, 1)
5630
      oprot.writeI64(self.offset)
5631
      oprot.writeFieldEnd()
5632
    if self.limit is not None:
5633
      oprot.writeFieldBegin('limit', TType.I64, 2)
5634
      oprot.writeI64(self.limit)
5635
      oprot.writeFieldEnd()
5636
    oprot.writeFieldStop()
5637
    oprot.writeStructEnd()
5638
 
5639
  def validate(self):
5640
    return
5641
 
5642
 
5643
  def __repr__(self):
5644
    L = ['%s=%r' % (key, value)
5645
      for key, value in self.__dict__.iteritems()]
5646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5647
 
5648
  def __eq__(self, other):
5649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5650
 
5651
  def __ne__(self, other):
5652
    return not (self == other)
5653
 
5654
class getAllItemsInRange_result:
5655
  """
5656
  Attributes:
5657
   - success
5658
   - cex
5659
  """
5660
 
5661
  thrift_spec = (
5662
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5663
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5664
  )
5665
 
5666
  def __init__(self, success=None, cex=None,):
5667
    self.success = success
5668
    self.cex = cex
5669
 
5670
  def read(self, iprot):
5671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5673
      return
5674
    iprot.readStructBegin()
5675
    while True:
5676
      (fname, ftype, fid) = iprot.readFieldBegin()
5677
      if ftype == TType.STOP:
5678
        break
5679
      if fid == 0:
5680
        if ftype == TType.LIST:
5681
          self.success = []
5682
          (_etype47, _size44) = iprot.readListBegin()
5683
          for _i48 in xrange(_size44):
5684
            _elem49 = Item()
5685
            _elem49.read(iprot)
5686
            self.success.append(_elem49)
5687
          iprot.readListEnd()
5688
        else:
5689
          iprot.skip(ftype)
5690
      elif fid == 1:
5691
        if ftype == TType.STRUCT:
5692
          self.cex = CatalogServiceException()
5693
          self.cex.read(iprot)
5694
        else:
5695
          iprot.skip(ftype)
5696
      else:
5697
        iprot.skip(ftype)
5698
      iprot.readFieldEnd()
5699
    iprot.readStructEnd()
5700
 
5701
  def write(self, oprot):
5702
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5703
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5704
      return
5705
    oprot.writeStructBegin('getAllItemsInRange_result')
5706
    if self.success is not None:
5707
      oprot.writeFieldBegin('success', TType.LIST, 0)
5708
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5709
      for iter50 in self.success:
5710
        iter50.write(oprot)
5711
      oprot.writeListEnd()
5712
      oprot.writeFieldEnd()
5713
    if self.cex is not None:
5714
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5715
      self.cex.write(oprot)
5716
      oprot.writeFieldEnd()
5717
    oprot.writeFieldStop()
5718
    oprot.writeStructEnd()
5719
 
5720
  def validate(self):
5721
    return
5722
 
5723
 
5724
  def __repr__(self):
5725
    L = ['%s=%r' % (key, value)
5726
      for key, value in self.__dict__.iteritems()]
5727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5728
 
5729
  def __eq__(self, other):
5730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5731
 
5732
  def __ne__(self, other):
5733
    return not (self == other)
5734
 
5735
class getAllItemsByStatusInRange_args:
5736
  """
5737
  Attributes:
5738
   - itemStatus
5739
   - offset
5740
   - limit
5741
  """
5742
 
5743
  thrift_spec = (
5744
    None, # 0
5745
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5746
    (2, TType.I64, 'offset', None, None, ), # 2
5747
    (3, TType.I64, 'limit', None, None, ), # 3
5748
  )
5749
 
5750
  def __init__(self, itemStatus=None, offset=None, limit=None,):
5751
    self.itemStatus = itemStatus
5752
    self.offset = offset
5753
    self.limit = limit
5754
 
5755
  def read(self, iprot):
5756
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5757
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5758
      return
5759
    iprot.readStructBegin()
5760
    while True:
5761
      (fname, ftype, fid) = iprot.readFieldBegin()
5762
      if ftype == TType.STOP:
5763
        break
5764
      if fid == 1:
5765
        if ftype == TType.I32:
5766
          self.itemStatus = iprot.readI32();
5767
        else:
5768
          iprot.skip(ftype)
5769
      elif fid == 2:
5770
        if ftype == TType.I64:
5771
          self.offset = iprot.readI64();
5772
        else:
5773
          iprot.skip(ftype)
5774
      elif fid == 3:
5775
        if ftype == TType.I64:
5776
          self.limit = iprot.readI64();
5777
        else:
5778
          iprot.skip(ftype)
5779
      else:
5780
        iprot.skip(ftype)
5781
      iprot.readFieldEnd()
5782
    iprot.readStructEnd()
5783
 
5784
  def write(self, oprot):
5785
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5786
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5787
      return
5788
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
5789
    if self.itemStatus is not None:
5790
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5791
      oprot.writeI32(self.itemStatus)
5792
      oprot.writeFieldEnd()
5793
    if self.offset is not None:
5794
      oprot.writeFieldBegin('offset', TType.I64, 2)
5795
      oprot.writeI64(self.offset)
5796
      oprot.writeFieldEnd()
5797
    if self.limit is not None:
5798
      oprot.writeFieldBegin('limit', TType.I64, 3)
5799
      oprot.writeI64(self.limit)
5800
      oprot.writeFieldEnd()
5801
    oprot.writeFieldStop()
5802
    oprot.writeStructEnd()
5803
 
5804
  def validate(self):
5805
    return
5806
 
5807
 
5808
  def __repr__(self):
5809
    L = ['%s=%r' % (key, value)
5810
      for key, value in self.__dict__.iteritems()]
5811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5812
 
5813
  def __eq__(self, other):
5814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5815
 
5816
  def __ne__(self, other):
5817
    return not (self == other)
5818
 
5819
class getAllItemsByStatusInRange_result:
5820
  """
5821
  Attributes:
5822
   - success
5823
   - cex
5824
  """
5825
 
5826
  thrift_spec = (
5827
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5828
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5829
  )
5830
 
5831
  def __init__(self, success=None, cex=None,):
5832
    self.success = success
5833
    self.cex = cex
5834
 
5835
  def read(self, iprot):
5836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5838
      return
5839
    iprot.readStructBegin()
5840
    while True:
5841
      (fname, ftype, fid) = iprot.readFieldBegin()
5842
      if ftype == TType.STOP:
5843
        break
5844
      if fid == 0:
5845
        if ftype == TType.LIST:
5846
          self.success = []
5847
          (_etype54, _size51) = iprot.readListBegin()
5848
          for _i55 in xrange(_size51):
5849
            _elem56 = Item()
5850
            _elem56.read(iprot)
5851
            self.success.append(_elem56)
5852
          iprot.readListEnd()
5853
        else:
5854
          iprot.skip(ftype)
5855
      elif fid == 1:
5856
        if ftype == TType.STRUCT:
5857
          self.cex = CatalogServiceException()
5858
          self.cex.read(iprot)
5859
        else:
5860
          iprot.skip(ftype)
5861
      else:
5862
        iprot.skip(ftype)
5863
      iprot.readFieldEnd()
5864
    iprot.readStructEnd()
5865
 
5866
  def write(self, oprot):
5867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5869
      return
5870
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
5871
    if self.success is not None:
5872
      oprot.writeFieldBegin('success', TType.LIST, 0)
5873
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5874
      for iter57 in self.success:
5875
        iter57.write(oprot)
5876
      oprot.writeListEnd()
5877
      oprot.writeFieldEnd()
5878
    if self.cex is not None:
5879
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5880
      self.cex.write(oprot)
5881
      oprot.writeFieldEnd()
5882
    oprot.writeFieldStop()
5883
    oprot.writeStructEnd()
5884
 
5885
  def validate(self):
5886
    return
5887
 
5888
 
5889
  def __repr__(self):
5890
    L = ['%s=%r' % (key, value)
5891
      for key, value in self.__dict__.iteritems()]
5892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5893
 
5894
  def __eq__(self, other):
5895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5896
 
5897
  def __ne__(self, other):
5898
    return not (self == other)
5899
 
5900
class getItemCountByStatus_args:
5901
  """
5902
  Attributes:
5903
   - useStatus
5904
   - itemStatus
5905
  """
5906
 
5907
  thrift_spec = (
5908
    None, # 0
5909
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
5910
    (2, TType.I32, 'itemStatus', None, None, ), # 2
5911
  )
5912
 
5913
  def __init__(self, useStatus=None, itemStatus=None,):
5914
    self.useStatus = useStatus
5915
    self.itemStatus = itemStatus
5916
 
5917
  def read(self, iprot):
5918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5920
      return
5921
    iprot.readStructBegin()
5922
    while True:
5923
      (fname, ftype, fid) = iprot.readFieldBegin()
5924
      if ftype == TType.STOP:
5925
        break
5926
      if fid == 1:
5927
        if ftype == TType.BOOL:
5928
          self.useStatus = iprot.readBool();
5929
        else:
5930
          iprot.skip(ftype)
5931
      elif fid == 2:
5932
        if ftype == TType.I32:
5933
          self.itemStatus = iprot.readI32();
5934
        else:
5935
          iprot.skip(ftype)
5936
      else:
5937
        iprot.skip(ftype)
5938
      iprot.readFieldEnd()
5939
    iprot.readStructEnd()
5940
 
5941
  def write(self, oprot):
5942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5944
      return
5945
    oprot.writeStructBegin('getItemCountByStatus_args')
5946
    if self.useStatus is not None:
5947
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
5948
      oprot.writeBool(self.useStatus)
5949
      oprot.writeFieldEnd()
5950
    if self.itemStatus is not None:
5951
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
5952
      oprot.writeI32(self.itemStatus)
5953
      oprot.writeFieldEnd()
5954
    oprot.writeFieldStop()
5955
    oprot.writeStructEnd()
5956
 
5957
  def validate(self):
5958
    return
5959
 
5960
 
5961
  def __repr__(self):
5962
    L = ['%s=%r' % (key, value)
5963
      for key, value in self.__dict__.iteritems()]
5964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5965
 
5966
  def __eq__(self, other):
5967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5968
 
5969
  def __ne__(self, other):
5970
    return not (self == other)
5971
 
5972
class getItemCountByStatus_result:
5973
  """
5974
  Attributes:
5975
   - success
5976
  """
5977
 
5978
  thrift_spec = (
5979
    (0, TType.I32, 'success', None, None, ), # 0
5980
  )
5981
 
5982
  def __init__(self, success=None,):
5983
    self.success = success
5984
 
5985
  def read(self, iprot):
5986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5988
      return
5989
    iprot.readStructBegin()
5990
    while True:
5991
      (fname, ftype, fid) = iprot.readFieldBegin()
5992
      if ftype == TType.STOP:
5993
        break
5994
      if fid == 0:
5995
        if ftype == TType.I32:
5996
          self.success = iprot.readI32();
5997
        else:
5998
          iprot.skip(ftype)
5999
      else:
6000
        iprot.skip(ftype)
6001
      iprot.readFieldEnd()
6002
    iprot.readStructEnd()
6003
 
6004
  def write(self, oprot):
6005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6007
      return
6008
    oprot.writeStructBegin('getItemCountByStatus_result')
6009
    if self.success is not None:
6010
      oprot.writeFieldBegin('success', TType.I32, 0)
6011
      oprot.writeI32(self.success)
6012
      oprot.writeFieldEnd()
6013
    oprot.writeFieldStop()
6014
    oprot.writeStructEnd()
6015
 
6016
  def validate(self):
6017
    return
6018
 
6019
 
6020
  def __repr__(self):
6021
    L = ['%s=%r' % (key, value)
6022
      for key, value in self.__dict__.iteritems()]
6023
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6024
 
6025
  def __eq__(self, other):
6026
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6027
 
6028
  def __ne__(self, other):
6029
    return not (self == other)
6030
 
6031
class getBestSellers_args:
6032
 
6033
  thrift_spec = (
6034
  )
6035
 
6036
  def read(self, iprot):
6037
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6038
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6039
      return
6040
    iprot.readStructBegin()
6041
    while True:
6042
      (fname, ftype, fid) = iprot.readFieldBegin()
6043
      if ftype == TType.STOP:
6044
        break
6045
      else:
6046
        iprot.skip(ftype)
6047
      iprot.readFieldEnd()
6048
    iprot.readStructEnd()
6049
 
6050
  def write(self, oprot):
6051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6053
      return
6054
    oprot.writeStructBegin('getBestSellers_args')
6055
    oprot.writeFieldStop()
6056
    oprot.writeStructEnd()
6057
 
6058
  def validate(self):
6059
    return
6060
 
6061
 
6062
  def __repr__(self):
6063
    L = ['%s=%r' % (key, value)
6064
      for key, value in self.__dict__.iteritems()]
6065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6066
 
6067
  def __eq__(self, other):
6068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6069
 
6070
  def __ne__(self, other):
6071
    return not (self == other)
6072
 
6073
class getBestSellers_result:
6074
  """
6075
  Attributes:
6076
   - success
6077
   - isex
6078
  """
6079
 
6080
  thrift_spec = (
6081
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6082
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6083
  )
6084
 
6085
  def __init__(self, success=None, isex=None,):
6086
    self.success = success
6087
    self.isex = isex
6088
 
6089
  def read(self, iprot):
6090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6092
      return
6093
    iprot.readStructBegin()
6094
    while True:
6095
      (fname, ftype, fid) = iprot.readFieldBegin()
6096
      if ftype == TType.STOP:
6097
        break
6098
      if fid == 0:
6099
        if ftype == TType.LIST:
6100
          self.success = []
6101
          (_etype61, _size58) = iprot.readListBegin()
6102
          for _i62 in xrange(_size58):
6103
            _elem63 = Item()
6104
            _elem63.read(iprot)
6105
            self.success.append(_elem63)
6106
          iprot.readListEnd()
6107
        else:
6108
          iprot.skip(ftype)
6109
      elif fid == 1:
6110
        if ftype == TType.STRUCT:
6111
          self.isex = CatalogServiceException()
6112
          self.isex.read(iprot)
6113
        else:
6114
          iprot.skip(ftype)
6115
      else:
6116
        iprot.skip(ftype)
6117
      iprot.readFieldEnd()
6118
    iprot.readStructEnd()
6119
 
6120
  def write(self, oprot):
6121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6123
      return
6124
    oprot.writeStructBegin('getBestSellers_result')
6125
    if self.success is not None:
6126
      oprot.writeFieldBegin('success', TType.LIST, 0)
6127
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6128
      for iter64 in self.success:
6129
        iter64.write(oprot)
6130
      oprot.writeListEnd()
6131
      oprot.writeFieldEnd()
6132
    if self.isex is not None:
6133
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6134
      self.isex.write(oprot)
6135
      oprot.writeFieldEnd()
6136
    oprot.writeFieldStop()
6137
    oprot.writeStructEnd()
6138
 
6139
  def validate(self):
6140
    return
6141
 
6142
 
6143
  def __repr__(self):
6144
    L = ['%s=%r' % (key, value)
6145
      for key, value in self.__dict__.iteritems()]
6146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6147
 
6148
  def __eq__(self, other):
6149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6150
 
6151
  def __ne__(self, other):
6152
    return not (self == other)
6153
 
6154
class getBestSellersCatalogIds_args:
6155
  """
6156
  Attributes:
6157
   - beginIndex
6158
   - totalItems
6159
   - brand
6160
   - category
6161
  """
6162
 
6163
  thrift_spec = (
6164
    None, # 0
6165
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6166
    (2, TType.I64, 'totalItems', None, None, ), # 2
6167
    (3, TType.STRING, 'brand', None, None, ), # 3
6168
    (4, TType.I64, 'category', None, None, ), # 4
6169
  )
6170
 
6171
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6172
    self.beginIndex = beginIndex
6173
    self.totalItems = totalItems
6174
    self.brand = brand
6175
    self.category = category
6176
 
6177
  def read(self, iprot):
6178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6180
      return
6181
    iprot.readStructBegin()
6182
    while True:
6183
      (fname, ftype, fid) = iprot.readFieldBegin()
6184
      if ftype == TType.STOP:
6185
        break
6186
      if fid == 1:
6187
        if ftype == TType.I64:
6188
          self.beginIndex = iprot.readI64();
6189
        else:
6190
          iprot.skip(ftype)
6191
      elif fid == 2:
6192
        if ftype == TType.I64:
6193
          self.totalItems = iprot.readI64();
6194
        else:
6195
          iprot.skip(ftype)
6196
      elif fid == 3:
6197
        if ftype == TType.STRING:
6198
          self.brand = iprot.readString();
6199
        else:
6200
          iprot.skip(ftype)
6201
      elif fid == 4:
6202
        if ftype == TType.I64:
6203
          self.category = iprot.readI64();
6204
        else:
6205
          iprot.skip(ftype)
6206
      else:
6207
        iprot.skip(ftype)
6208
      iprot.readFieldEnd()
6209
    iprot.readStructEnd()
6210
 
6211
  def write(self, oprot):
6212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6214
      return
6215
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6216
    if self.beginIndex is not None:
6217
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6218
      oprot.writeI64(self.beginIndex)
6219
      oprot.writeFieldEnd()
6220
    if self.totalItems is not None:
6221
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6222
      oprot.writeI64(self.totalItems)
6223
      oprot.writeFieldEnd()
6224
    if self.brand is not None:
6225
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6226
      oprot.writeString(self.brand)
6227
      oprot.writeFieldEnd()
6228
    if self.category is not None:
6229
      oprot.writeFieldBegin('category', TType.I64, 4)
6230
      oprot.writeI64(self.category)
6231
      oprot.writeFieldEnd()
6232
    oprot.writeFieldStop()
6233
    oprot.writeStructEnd()
6234
 
6235
  def validate(self):
6236
    return
6237
 
6238
 
6239
  def __repr__(self):
6240
    L = ['%s=%r' % (key, value)
6241
      for key, value in self.__dict__.iteritems()]
6242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6243
 
6244
  def __eq__(self, other):
6245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6246
 
6247
  def __ne__(self, other):
6248
    return not (self == other)
6249
 
6250
class getBestSellersCatalogIds_result:
6251
  """
6252
  Attributes:
6253
   - success
6254
   - cex
6255
  """
6256
 
6257
  thrift_spec = (
6258
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6259
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6260
  )
6261
 
6262
  def __init__(self, success=None, cex=None,):
6263
    self.success = success
6264
    self.cex = cex
6265
 
6266
  def read(self, iprot):
6267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6269
      return
6270
    iprot.readStructBegin()
6271
    while True:
6272
      (fname, ftype, fid) = iprot.readFieldBegin()
6273
      if ftype == TType.STOP:
6274
        break
6275
      if fid == 0:
6276
        if ftype == TType.LIST:
6277
          self.success = []
6278
          (_etype68, _size65) = iprot.readListBegin()
6279
          for _i69 in xrange(_size65):
6280
            _elem70 = iprot.readI64();
6281
            self.success.append(_elem70)
6282
          iprot.readListEnd()
6283
        else:
6284
          iprot.skip(ftype)
6285
      elif fid == 1:
6286
        if ftype == TType.STRUCT:
6287
          self.cex = CatalogServiceException()
6288
          self.cex.read(iprot)
6289
        else:
6290
          iprot.skip(ftype)
6291
      else:
6292
        iprot.skip(ftype)
6293
      iprot.readFieldEnd()
6294
    iprot.readStructEnd()
6295
 
6296
  def write(self, oprot):
6297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6299
      return
6300
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
6301
    if self.success is not None:
6302
      oprot.writeFieldBegin('success', TType.LIST, 0)
6303
      oprot.writeListBegin(TType.I64, len(self.success))
6304
      for iter71 in self.success:
6305
        oprot.writeI64(iter71)
6306
      oprot.writeListEnd()
6307
      oprot.writeFieldEnd()
6308
    if self.cex is not None:
6309
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6310
      self.cex.write(oprot)
6311
      oprot.writeFieldEnd()
6312
    oprot.writeFieldStop()
6313
    oprot.writeStructEnd()
6314
 
6315
  def validate(self):
6316
    return
6317
 
6318
 
6319
  def __repr__(self):
6320
    L = ['%s=%r' % (key, value)
6321
      for key, value in self.__dict__.iteritems()]
6322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6323
 
6324
  def __eq__(self, other):
6325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6326
 
6327
  def __ne__(self, other):
6328
    return not (self == other)
6329
 
6330
class getBestSellersCount_args:
6331
 
6332
  thrift_spec = (
6333
  )
6334
 
6335
  def read(self, iprot):
6336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6338
      return
6339
    iprot.readStructBegin()
6340
    while True:
6341
      (fname, ftype, fid) = iprot.readFieldBegin()
6342
      if ftype == TType.STOP:
6343
        break
6344
      else:
6345
        iprot.skip(ftype)
6346
      iprot.readFieldEnd()
6347
    iprot.readStructEnd()
6348
 
6349
  def write(self, oprot):
6350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6352
      return
6353
    oprot.writeStructBegin('getBestSellersCount_args')
6354
    oprot.writeFieldStop()
6355
    oprot.writeStructEnd()
6356
 
6357
  def validate(self):
6358
    return
6359
 
6360
 
6361
  def __repr__(self):
6362
    L = ['%s=%r' % (key, value)
6363
      for key, value in self.__dict__.iteritems()]
6364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6365
 
6366
  def __eq__(self, other):
6367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6368
 
6369
  def __ne__(self, other):
6370
    return not (self == other)
6371
 
6372
class getBestSellersCount_result:
6373
  """
6374
  Attributes:
6375
   - success
6376
   - cex
6377
  """
6378
 
6379
  thrift_spec = (
6380
    (0, TType.I64, 'success', None, None, ), # 0
6381
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6382
  )
6383
 
6384
  def __init__(self, success=None, cex=None,):
6385
    self.success = success
6386
    self.cex = cex
6387
 
6388
  def read(self, iprot):
6389
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6390
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6391
      return
6392
    iprot.readStructBegin()
6393
    while True:
6394
      (fname, ftype, fid) = iprot.readFieldBegin()
6395
      if ftype == TType.STOP:
6396
        break
6397
      if fid == 0:
6398
        if ftype == TType.I64:
6399
          self.success = iprot.readI64();
6400
        else:
6401
          iprot.skip(ftype)
6402
      elif fid == 1:
6403
        if ftype == TType.STRUCT:
6404
          self.cex = CatalogServiceException()
6405
          self.cex.read(iprot)
6406
        else:
6407
          iprot.skip(ftype)
6408
      else:
6409
        iprot.skip(ftype)
6410
      iprot.readFieldEnd()
6411
    iprot.readStructEnd()
6412
 
6413
  def write(self, oprot):
6414
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6415
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6416
      return
6417
    oprot.writeStructBegin('getBestSellersCount_result')
6418
    if self.success is not None:
6419
      oprot.writeFieldBegin('success', TType.I64, 0)
6420
      oprot.writeI64(self.success)
6421
      oprot.writeFieldEnd()
6422
    if self.cex is not None:
6423
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6424
      self.cex.write(oprot)
6425
      oprot.writeFieldEnd()
6426
    oprot.writeFieldStop()
6427
    oprot.writeStructEnd()
6428
 
6429
  def validate(self):
6430
    return
6431
 
6432
 
6433
  def __repr__(self):
6434
    L = ['%s=%r' % (key, value)
6435
      for key, value in self.__dict__.iteritems()]
6436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6437
 
6438
  def __eq__(self, other):
6439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6440
 
6441
  def __ne__(self, other):
6442
    return not (self == other)
6443
 
6444
class getBestDeals_args:
6445
 
6446
  thrift_spec = (
6447
  )
6448
 
6449
  def read(self, iprot):
6450
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6451
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6452
      return
6453
    iprot.readStructBegin()
6454
    while True:
6455
      (fname, ftype, fid) = iprot.readFieldBegin()
6456
      if ftype == TType.STOP:
6457
        break
6458
      else:
6459
        iprot.skip(ftype)
6460
      iprot.readFieldEnd()
6461
    iprot.readStructEnd()
6462
 
6463
  def write(self, oprot):
6464
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6465
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6466
      return
6467
    oprot.writeStructBegin('getBestDeals_args')
6468
    oprot.writeFieldStop()
6469
    oprot.writeStructEnd()
6470
 
6471
  def validate(self):
6472
    return
6473
 
6474
 
6475
  def __repr__(self):
6476
    L = ['%s=%r' % (key, value)
6477
      for key, value in self.__dict__.iteritems()]
6478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6479
 
6480
  def __eq__(self, other):
6481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6482
 
6483
  def __ne__(self, other):
6484
    return not (self == other)
6485
 
6486
class getBestDeals_result:
6487
  """
6488
  Attributes:
6489
   - success
6490
   - isex
6491
  """
6492
 
6493
  thrift_spec = (
6494
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6495
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6496
  )
6497
 
6498
  def __init__(self, success=None, isex=None,):
6499
    self.success = success
6500
    self.isex = isex
6501
 
6502
  def read(self, iprot):
6503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6505
      return
6506
    iprot.readStructBegin()
6507
    while True:
6508
      (fname, ftype, fid) = iprot.readFieldBegin()
6509
      if ftype == TType.STOP:
6510
        break
6511
      if fid == 0:
6512
        if ftype == TType.LIST:
6513
          self.success = []
6514
          (_etype75, _size72) = iprot.readListBegin()
6515
          for _i76 in xrange(_size72):
6516
            _elem77 = Item()
6517
            _elem77.read(iprot)
6518
            self.success.append(_elem77)
6519
          iprot.readListEnd()
6520
        else:
6521
          iprot.skip(ftype)
6522
      elif fid == 1:
6523
        if ftype == TType.STRUCT:
6524
          self.isex = CatalogServiceException()
6525
          self.isex.read(iprot)
6526
        else:
6527
          iprot.skip(ftype)
6528
      else:
6529
        iprot.skip(ftype)
6530
      iprot.readFieldEnd()
6531
    iprot.readStructEnd()
6532
 
6533
  def write(self, oprot):
6534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6536
      return
6537
    oprot.writeStructBegin('getBestDeals_result')
6538
    if self.success is not None:
6539
      oprot.writeFieldBegin('success', TType.LIST, 0)
6540
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6541
      for iter78 in self.success:
6542
        iter78.write(oprot)
6543
      oprot.writeListEnd()
6544
      oprot.writeFieldEnd()
6545
    if self.isex is not None:
6546
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6547
      self.isex.write(oprot)
6548
      oprot.writeFieldEnd()
6549
    oprot.writeFieldStop()
6550
    oprot.writeStructEnd()
6551
 
6552
  def validate(self):
6553
    return
6554
 
6555
 
6556
  def __repr__(self):
6557
    L = ['%s=%r' % (key, value)
6558
      for key, value in self.__dict__.iteritems()]
6559
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6560
 
6561
  def __eq__(self, other):
6562
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6563
 
6564
  def __ne__(self, other):
6565
    return not (self == other)
6566
 
6567
class getBestDealsCatalogIds_args:
6568
  """
6569
  Attributes:
6570
   - beginIndex
6571
   - totalItems
6572
   - brand
6573
   - category
6574
  """
6575
 
6576
  thrift_spec = (
6577
    None, # 0
6578
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6579
    (2, TType.I64, 'totalItems', None, None, ), # 2
6580
    (3, TType.STRING, 'brand', None, None, ), # 3
6581
    (4, TType.I64, 'category', None, None, ), # 4
6582
  )
6583
 
6584
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6585
    self.beginIndex = beginIndex
6586
    self.totalItems = totalItems
6587
    self.brand = brand
6588
    self.category = category
6589
 
6590
  def read(self, iprot):
6591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6593
      return
6594
    iprot.readStructBegin()
6595
    while True:
6596
      (fname, ftype, fid) = iprot.readFieldBegin()
6597
      if ftype == TType.STOP:
6598
        break
6599
      if fid == 1:
6600
        if ftype == TType.I64:
6601
          self.beginIndex = iprot.readI64();
6602
        else:
6603
          iprot.skip(ftype)
6604
      elif fid == 2:
6605
        if ftype == TType.I64:
6606
          self.totalItems = iprot.readI64();
6607
        else:
6608
          iprot.skip(ftype)
6609
      elif fid == 3:
6610
        if ftype == TType.STRING:
6611
          self.brand = iprot.readString();
6612
        else:
6613
          iprot.skip(ftype)
6614
      elif fid == 4:
6615
        if ftype == TType.I64:
6616
          self.category = iprot.readI64();
6617
        else:
6618
          iprot.skip(ftype)
6619
      else:
6620
        iprot.skip(ftype)
6621
      iprot.readFieldEnd()
6622
    iprot.readStructEnd()
6623
 
6624
  def write(self, oprot):
6625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6627
      return
6628
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
6629
    if self.beginIndex is not None:
6630
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6631
      oprot.writeI64(self.beginIndex)
6632
      oprot.writeFieldEnd()
6633
    if self.totalItems is not None:
6634
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6635
      oprot.writeI64(self.totalItems)
6636
      oprot.writeFieldEnd()
6637
    if self.brand is not None:
6638
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6639
      oprot.writeString(self.brand)
6640
      oprot.writeFieldEnd()
6641
    if self.category is not None:
6642
      oprot.writeFieldBegin('category', TType.I64, 4)
6643
      oprot.writeI64(self.category)
6644
      oprot.writeFieldEnd()
6645
    oprot.writeFieldStop()
6646
    oprot.writeStructEnd()
6647
 
6648
  def validate(self):
6649
    return
6650
 
6651
 
6652
  def __repr__(self):
6653
    L = ['%s=%r' % (key, value)
6654
      for key, value in self.__dict__.iteritems()]
6655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6656
 
6657
  def __eq__(self, other):
6658
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6659
 
6660
  def __ne__(self, other):
6661
    return not (self == other)
6662
 
6663
class getBestDealsCatalogIds_result:
6664
  """
6665
  Attributes:
6666
   - success
6667
   - cex
6668
  """
6669
 
6670
  thrift_spec = (
6671
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6672
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6673
  )
6674
 
6675
  def __init__(self, success=None, cex=None,):
6676
    self.success = success
6677
    self.cex = cex
6678
 
6679
  def read(self, iprot):
6680
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6681
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6682
      return
6683
    iprot.readStructBegin()
6684
    while True:
6685
      (fname, ftype, fid) = iprot.readFieldBegin()
6686
      if ftype == TType.STOP:
6687
        break
6688
      if fid == 0:
6689
        if ftype == TType.LIST:
6690
          self.success = []
6691
          (_etype82, _size79) = iprot.readListBegin()
6692
          for _i83 in xrange(_size79):
6693
            _elem84 = iprot.readI64();
6694
            self.success.append(_elem84)
6695
          iprot.readListEnd()
6696
        else:
6697
          iprot.skip(ftype)
6698
      elif fid == 1:
6699
        if ftype == TType.STRUCT:
6700
          self.cex = CatalogServiceException()
6701
          self.cex.read(iprot)
6702
        else:
6703
          iprot.skip(ftype)
6704
      else:
6705
        iprot.skip(ftype)
6706
      iprot.readFieldEnd()
6707
    iprot.readStructEnd()
6708
 
6709
  def write(self, oprot):
6710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6712
      return
6713
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
6714
    if self.success is not None:
6715
      oprot.writeFieldBegin('success', TType.LIST, 0)
6716
      oprot.writeListBegin(TType.I64, len(self.success))
6717
      for iter85 in self.success:
6718
        oprot.writeI64(iter85)
6719
      oprot.writeListEnd()
6720
      oprot.writeFieldEnd()
6721
    if self.cex is not None:
6722
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6723
      self.cex.write(oprot)
6724
      oprot.writeFieldEnd()
6725
    oprot.writeFieldStop()
6726
    oprot.writeStructEnd()
6727
 
6728
  def validate(self):
6729
    return
6730
 
6731
 
6732
  def __repr__(self):
6733
    L = ['%s=%r' % (key, value)
6734
      for key, value in self.__dict__.iteritems()]
6735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6736
 
6737
  def __eq__(self, other):
6738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6739
 
6740
  def __ne__(self, other):
6741
    return not (self == other)
6742
 
6743
class getBestDealsCount_args:
6744
 
6745
  thrift_spec = (
6746
  )
6747
 
6748
  def read(self, iprot):
6749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6751
      return
6752
    iprot.readStructBegin()
6753
    while True:
6754
      (fname, ftype, fid) = iprot.readFieldBegin()
6755
      if ftype == TType.STOP:
6756
        break
6757
      else:
6758
        iprot.skip(ftype)
6759
      iprot.readFieldEnd()
6760
    iprot.readStructEnd()
6761
 
6762
  def write(self, oprot):
6763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6765
      return
6766
    oprot.writeStructBegin('getBestDealsCount_args')
6767
    oprot.writeFieldStop()
6768
    oprot.writeStructEnd()
6769
 
6770
  def validate(self):
6771
    return
6772
 
6773
 
6774
  def __repr__(self):
6775
    L = ['%s=%r' % (key, value)
6776
      for key, value in self.__dict__.iteritems()]
6777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6778
 
6779
  def __eq__(self, other):
6780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6781
 
6782
  def __ne__(self, other):
6783
    return not (self == other)
6784
 
6785
class getBestDealsCount_result:
6786
  """
6787
  Attributes:
6788
   - success
6789
   - cex
6790
  """
6791
 
6792
  thrift_spec = (
6793
    (0, TType.I64, 'success', None, None, ), # 0
6794
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6795
  )
6796
 
6797
  def __init__(self, success=None, cex=None,):
6798
    self.success = success
6799
    self.cex = cex
6800
 
6801
  def read(self, iprot):
6802
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6803
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6804
      return
6805
    iprot.readStructBegin()
6806
    while True:
6807
      (fname, ftype, fid) = iprot.readFieldBegin()
6808
      if ftype == TType.STOP:
6809
        break
6810
      if fid == 0:
6811
        if ftype == TType.I64:
6812
          self.success = iprot.readI64();
6813
        else:
6814
          iprot.skip(ftype)
6815
      elif fid == 1:
6816
        if ftype == TType.STRUCT:
6817
          self.cex = CatalogServiceException()
6818
          self.cex.read(iprot)
6819
        else:
6820
          iprot.skip(ftype)
6821
      else:
6822
        iprot.skip(ftype)
6823
      iprot.readFieldEnd()
6824
    iprot.readStructEnd()
6825
 
6826
  def write(self, oprot):
6827
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6828
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6829
      return
6830
    oprot.writeStructBegin('getBestDealsCount_result')
6831
    if self.success is not None:
6832
      oprot.writeFieldBegin('success', TType.I64, 0)
6833
      oprot.writeI64(self.success)
6834
      oprot.writeFieldEnd()
6835
    if self.cex is not None:
6836
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6837
      self.cex.write(oprot)
6838
      oprot.writeFieldEnd()
6839
    oprot.writeFieldStop()
6840
    oprot.writeStructEnd()
6841
 
6842
  def validate(self):
6843
    return
6844
 
6845
 
6846
  def __repr__(self):
6847
    L = ['%s=%r' % (key, value)
6848
      for key, value in self.__dict__.iteritems()]
6849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6850
 
6851
  def __eq__(self, other):
6852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6853
 
6854
  def __ne__(self, other):
6855
    return not (self == other)
6856
 
6857
class getComingSoon_args:
6858
 
6859
  thrift_spec = (
6860
  )
6861
 
6862
  def read(self, iprot):
6863
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6864
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6865
      return
6866
    iprot.readStructBegin()
6867
    while True:
6868
      (fname, ftype, fid) = iprot.readFieldBegin()
6869
      if ftype == TType.STOP:
6870
        break
6871
      else:
6872
        iprot.skip(ftype)
6873
      iprot.readFieldEnd()
6874
    iprot.readStructEnd()
6875
 
6876
  def write(self, oprot):
6877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6879
      return
6880
    oprot.writeStructBegin('getComingSoon_args')
6881
    oprot.writeFieldStop()
6882
    oprot.writeStructEnd()
6883
 
6884
  def validate(self):
6885
    return
6886
 
6887
 
6888
  def __repr__(self):
6889
    L = ['%s=%r' % (key, value)
6890
      for key, value in self.__dict__.iteritems()]
6891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6892
 
6893
  def __eq__(self, other):
6894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6895
 
6896
  def __ne__(self, other):
6897
    return not (self == other)
6898
 
6899
class getComingSoon_result:
6900
  """
6901
  Attributes:
6902
   - success
6903
   - isex
6904
  """
6905
 
6906
  thrift_spec = (
6907
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6908
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6909
  )
6910
 
6911
  def __init__(self, success=None, isex=None,):
6912
    self.success = success
6913
    self.isex = isex
6914
 
6915
  def read(self, iprot):
6916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6918
      return
6919
    iprot.readStructBegin()
6920
    while True:
6921
      (fname, ftype, fid) = iprot.readFieldBegin()
6922
      if ftype == TType.STOP:
6923
        break
6924
      if fid == 0:
6925
        if ftype == TType.LIST:
6926
          self.success = []
6927
          (_etype89, _size86) = iprot.readListBegin()
6928
          for _i90 in xrange(_size86):
6929
            _elem91 = Item()
6930
            _elem91.read(iprot)
6931
            self.success.append(_elem91)
6932
          iprot.readListEnd()
6933
        else:
6934
          iprot.skip(ftype)
6935
      elif fid == 1:
6936
        if ftype == TType.STRUCT:
6937
          self.isex = CatalogServiceException()
6938
          self.isex.read(iprot)
6939
        else:
6940
          iprot.skip(ftype)
6941
      else:
6942
        iprot.skip(ftype)
6943
      iprot.readFieldEnd()
6944
    iprot.readStructEnd()
6945
 
6946
  def write(self, oprot):
6947
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6948
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6949
      return
6950
    oprot.writeStructBegin('getComingSoon_result')
6951
    if self.success is not None:
6952
      oprot.writeFieldBegin('success', TType.LIST, 0)
6953
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6954
      for iter92 in self.success:
6955
        iter92.write(oprot)
6956
      oprot.writeListEnd()
6957
      oprot.writeFieldEnd()
6958
    if self.isex is not None:
6959
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6960
      self.isex.write(oprot)
6961
      oprot.writeFieldEnd()
6962
    oprot.writeFieldStop()
6963
    oprot.writeStructEnd()
6964
 
6965
  def validate(self):
6966
    return
6967
 
6968
 
6969
  def __repr__(self):
6970
    L = ['%s=%r' % (key, value)
6971
      for key, value in self.__dict__.iteritems()]
6972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6973
 
6974
  def __eq__(self, other):
6975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6976
 
6977
  def __ne__(self, other):
6978
    return not (self == other)
6979
 
6980
class getComingSoonCatalogIds_args:
6981
  """
6982
  Attributes:
6983
   - beginIndex
6984
   - totalItems
6985
   - brand
6986
   - category
6987
  """
6988
 
6989
  thrift_spec = (
6990
    None, # 0
6991
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6992
    (2, TType.I64, 'totalItems', None, None, ), # 2
6993
    (3, TType.STRING, 'brand', None, None, ), # 3
6994
    (4, TType.I64, 'category', None, None, ), # 4
6995
  )
6996
 
6997
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6998
    self.beginIndex = beginIndex
6999
    self.totalItems = totalItems
7000
    self.brand = brand
7001
    self.category = category
7002
 
7003
  def read(self, iprot):
7004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7006
      return
7007
    iprot.readStructBegin()
7008
    while True:
7009
      (fname, ftype, fid) = iprot.readFieldBegin()
7010
      if ftype == TType.STOP:
7011
        break
7012
      if fid == 1:
7013
        if ftype == TType.I64:
7014
          self.beginIndex = iprot.readI64();
7015
        else:
7016
          iprot.skip(ftype)
7017
      elif fid == 2:
7018
        if ftype == TType.I64:
7019
          self.totalItems = iprot.readI64();
7020
        else:
7021
          iprot.skip(ftype)
7022
      elif fid == 3:
7023
        if ftype == TType.STRING:
7024
          self.brand = iprot.readString();
7025
        else:
7026
          iprot.skip(ftype)
7027
      elif fid == 4:
7028
        if ftype == TType.I64:
7029
          self.category = iprot.readI64();
7030
        else:
7031
          iprot.skip(ftype)
7032
      else:
7033
        iprot.skip(ftype)
7034
      iprot.readFieldEnd()
7035
    iprot.readStructEnd()
7036
 
7037
  def write(self, oprot):
7038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7040
      return
7041
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7042
    if self.beginIndex is not None:
7043
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7044
      oprot.writeI64(self.beginIndex)
7045
      oprot.writeFieldEnd()
7046
    if self.totalItems is not None:
7047
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7048
      oprot.writeI64(self.totalItems)
7049
      oprot.writeFieldEnd()
7050
    if self.brand is not None:
7051
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7052
      oprot.writeString(self.brand)
7053
      oprot.writeFieldEnd()
7054
    if self.category is not None:
7055
      oprot.writeFieldBegin('category', TType.I64, 4)
7056
      oprot.writeI64(self.category)
7057
      oprot.writeFieldEnd()
7058
    oprot.writeFieldStop()
7059
    oprot.writeStructEnd()
7060
 
7061
  def validate(self):
7062
    return
7063
 
7064
 
7065
  def __repr__(self):
7066
    L = ['%s=%r' % (key, value)
7067
      for key, value in self.__dict__.iteritems()]
7068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7069
 
7070
  def __eq__(self, other):
7071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7072
 
7073
  def __ne__(self, other):
7074
    return not (self == other)
7075
 
7076
class getComingSoonCatalogIds_result:
7077
  """
7078
  Attributes:
7079
   - success
7080
   - cex
7081
  """
7082
 
7083
  thrift_spec = (
7084
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7085
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7086
  )
7087
 
7088
  def __init__(self, success=None, cex=None,):
7089
    self.success = success
7090
    self.cex = cex
7091
 
7092
  def read(self, iprot):
7093
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7094
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7095
      return
7096
    iprot.readStructBegin()
7097
    while True:
7098
      (fname, ftype, fid) = iprot.readFieldBegin()
7099
      if ftype == TType.STOP:
7100
        break
7101
      if fid == 0:
7102
        if ftype == TType.LIST:
7103
          self.success = []
7104
          (_etype96, _size93) = iprot.readListBegin()
7105
          for _i97 in xrange(_size93):
7106
            _elem98 = iprot.readI64();
7107
            self.success.append(_elem98)
7108
          iprot.readListEnd()
7109
        else:
7110
          iprot.skip(ftype)
7111
      elif fid == 1:
7112
        if ftype == TType.STRUCT:
7113
          self.cex = CatalogServiceException()
7114
          self.cex.read(iprot)
7115
        else:
7116
          iprot.skip(ftype)
7117
      else:
7118
        iprot.skip(ftype)
7119
      iprot.readFieldEnd()
7120
    iprot.readStructEnd()
7121
 
7122
  def write(self, oprot):
7123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7125
      return
7126
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7127
    if self.success is not None:
7128
      oprot.writeFieldBegin('success', TType.LIST, 0)
7129
      oprot.writeListBegin(TType.I64, len(self.success))
7130
      for iter99 in self.success:
7131
        oprot.writeI64(iter99)
7132
      oprot.writeListEnd()
7133
      oprot.writeFieldEnd()
7134
    if self.cex is not None:
7135
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7136
      self.cex.write(oprot)
7137
      oprot.writeFieldEnd()
7138
    oprot.writeFieldStop()
7139
    oprot.writeStructEnd()
7140
 
7141
  def validate(self):
7142
    return
7143
 
7144
 
7145
  def __repr__(self):
7146
    L = ['%s=%r' % (key, value)
7147
      for key, value in self.__dict__.iteritems()]
7148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7149
 
7150
  def __eq__(self, other):
7151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7152
 
7153
  def __ne__(self, other):
7154
    return not (self == other)
7155
 
7156
class getComingSoonCount_args:
7157
 
7158
  thrift_spec = (
7159
  )
7160
 
7161
  def read(self, iprot):
7162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7164
      return
7165
    iprot.readStructBegin()
7166
    while True:
7167
      (fname, ftype, fid) = iprot.readFieldBegin()
7168
      if ftype == TType.STOP:
7169
        break
7170
      else:
7171
        iprot.skip(ftype)
7172
      iprot.readFieldEnd()
7173
    iprot.readStructEnd()
7174
 
7175
  def write(self, oprot):
7176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7178
      return
7179
    oprot.writeStructBegin('getComingSoonCount_args')
7180
    oprot.writeFieldStop()
7181
    oprot.writeStructEnd()
7182
 
7183
  def validate(self):
7184
    return
7185
 
7186
 
7187
  def __repr__(self):
7188
    L = ['%s=%r' % (key, value)
7189
      for key, value in self.__dict__.iteritems()]
7190
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7191
 
7192
  def __eq__(self, other):
7193
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7194
 
7195
  def __ne__(self, other):
7196
    return not (self == other)
7197
 
7198
class getComingSoonCount_result:
7199
  """
7200
  Attributes:
7201
   - success
7202
   - cex
7203
  """
7204
 
7205
  thrift_spec = (
7206
    (0, TType.I64, 'success', None, None, ), # 0
7207
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7208
  )
7209
 
7210
  def __init__(self, success=None, cex=None,):
7211
    self.success = success
7212
    self.cex = cex
7213
 
7214
  def read(self, iprot):
7215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7217
      return
7218
    iprot.readStructBegin()
7219
    while True:
7220
      (fname, ftype, fid) = iprot.readFieldBegin()
7221
      if ftype == TType.STOP:
7222
        break
7223
      if fid == 0:
7224
        if ftype == TType.I64:
7225
          self.success = iprot.readI64();
7226
        else:
7227
          iprot.skip(ftype)
7228
      elif fid == 1:
7229
        if ftype == TType.STRUCT:
7230
          self.cex = CatalogServiceException()
7231
          self.cex.read(iprot)
7232
        else:
7233
          iprot.skip(ftype)
7234
      else:
7235
        iprot.skip(ftype)
7236
      iprot.readFieldEnd()
7237
    iprot.readStructEnd()
7238
 
7239
  def write(self, oprot):
7240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7242
      return
7243
    oprot.writeStructBegin('getComingSoonCount_result')
7244
    if self.success is not None:
7245
      oprot.writeFieldBegin('success', TType.I64, 0)
7246
      oprot.writeI64(self.success)
7247
      oprot.writeFieldEnd()
7248
    if self.cex is not None:
7249
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7250
      self.cex.write(oprot)
7251
      oprot.writeFieldEnd()
7252
    oprot.writeFieldStop()
7253
    oprot.writeStructEnd()
7254
 
7255
  def validate(self):
7256
    return
7257
 
7258
 
7259
  def __repr__(self):
7260
    L = ['%s=%r' % (key, value)
7261
      for key, value in self.__dict__.iteritems()]
7262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7263
 
7264
  def __eq__(self, other):
7265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7266
 
7267
  def __ne__(self, other):
7268
    return not (self == other)
7269
 
7270
class getLatestArrivals_args:
7271
 
7272
  thrift_spec = (
7273
  )
7274
 
7275
  def read(self, iprot):
7276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7278
      return
7279
    iprot.readStructBegin()
7280
    while True:
7281
      (fname, ftype, fid) = iprot.readFieldBegin()
7282
      if ftype == TType.STOP:
7283
        break
7284
      else:
7285
        iprot.skip(ftype)
7286
      iprot.readFieldEnd()
7287
    iprot.readStructEnd()
7288
 
7289
  def write(self, oprot):
7290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7292
      return
7293
    oprot.writeStructBegin('getLatestArrivals_args')
7294
    oprot.writeFieldStop()
7295
    oprot.writeStructEnd()
7296
 
7297
  def validate(self):
7298
    return
7299
 
7300
 
7301
  def __repr__(self):
7302
    L = ['%s=%r' % (key, value)
7303
      for key, value in self.__dict__.iteritems()]
7304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7305
 
7306
  def __eq__(self, other):
7307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7308
 
7309
  def __ne__(self, other):
7310
    return not (self == other)
7311
 
7312
class getLatestArrivals_result:
7313
  """
7314
  Attributes:
7315
   - success
7316
   - isex
7317
  """
7318
 
7319
  thrift_spec = (
7320
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7321
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7322
  )
7323
 
7324
  def __init__(self, success=None, isex=None,):
7325
    self.success = success
7326
    self.isex = isex
7327
 
7328
  def read(self, iprot):
7329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7331
      return
7332
    iprot.readStructBegin()
7333
    while True:
7334
      (fname, ftype, fid) = iprot.readFieldBegin()
7335
      if ftype == TType.STOP:
7336
        break
7337
      if fid == 0:
7338
        if ftype == TType.LIST:
7339
          self.success = []
7340
          (_etype103, _size100) = iprot.readListBegin()
7341
          for _i104 in xrange(_size100):
7342
            _elem105 = Item()
7343
            _elem105.read(iprot)
7344
            self.success.append(_elem105)
7345
          iprot.readListEnd()
7346
        else:
7347
          iprot.skip(ftype)
7348
      elif fid == 1:
7349
        if ftype == TType.STRUCT:
7350
          self.isex = CatalogServiceException()
7351
          self.isex.read(iprot)
7352
        else:
7353
          iprot.skip(ftype)
7354
      else:
7355
        iprot.skip(ftype)
7356
      iprot.readFieldEnd()
7357
    iprot.readStructEnd()
7358
 
7359
  def write(self, oprot):
7360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7362
      return
7363
    oprot.writeStructBegin('getLatestArrivals_result')
7364
    if self.success is not None:
7365
      oprot.writeFieldBegin('success', TType.LIST, 0)
7366
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7367
      for iter106 in self.success:
7368
        iter106.write(oprot)
7369
      oprot.writeListEnd()
7370
      oprot.writeFieldEnd()
7371
    if self.isex is not None:
7372
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7373
      self.isex.write(oprot)
7374
      oprot.writeFieldEnd()
7375
    oprot.writeFieldStop()
7376
    oprot.writeStructEnd()
7377
 
7378
  def validate(self):
7379
    return
7380
 
7381
 
7382
  def __repr__(self):
7383
    L = ['%s=%r' % (key, value)
7384
      for key, value in self.__dict__.iteritems()]
7385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7386
 
7387
  def __eq__(self, other):
7388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7389
 
7390
  def __ne__(self, other):
7391
    return not (self == other)
7392
 
7393
class getLatestArrivalsCatalogIds_args:
7394
  """
7395
  Attributes:
7396
   - beginIndex
7397
   - totalItems
7398
   - brand
7399
   - categories
7400
  """
7401
 
7402
  thrift_spec = (
7403
    None, # 0
7404
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7405
    (2, TType.I64, 'totalItems', None, None, ), # 2
7406
    (3, TType.STRING, 'brand', None, None, ), # 3
7407
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
7408
  )
7409
 
7410
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
7411
    self.beginIndex = beginIndex
7412
    self.totalItems = totalItems
7413
    self.brand = brand
7414
    self.categories = categories
7415
 
7416
  def read(self, iprot):
7417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7419
      return
7420
    iprot.readStructBegin()
7421
    while True:
7422
      (fname, ftype, fid) = iprot.readFieldBegin()
7423
      if ftype == TType.STOP:
7424
        break
7425
      if fid == 1:
7426
        if ftype == TType.I64:
7427
          self.beginIndex = iprot.readI64();
7428
        else:
7429
          iprot.skip(ftype)
7430
      elif fid == 2:
7431
        if ftype == TType.I64:
7432
          self.totalItems = iprot.readI64();
7433
        else:
7434
          iprot.skip(ftype)
7435
      elif fid == 3:
7436
        if ftype == TType.STRING:
7437
          self.brand = iprot.readString();
7438
        else:
7439
          iprot.skip(ftype)
7440
      elif fid == 4:
7441
        if ftype == TType.LIST:
7442
          self.categories = []
7443
          (_etype110, _size107) = iprot.readListBegin()
7444
          for _i111 in xrange(_size107):
7445
            _elem112 = iprot.readI64();
7446
            self.categories.append(_elem112)
7447
          iprot.readListEnd()
7448
        else:
7449
          iprot.skip(ftype)
7450
      else:
7451
        iprot.skip(ftype)
7452
      iprot.readFieldEnd()
7453
    iprot.readStructEnd()
7454
 
7455
  def write(self, oprot):
7456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7458
      return
7459
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
7460
    if self.beginIndex is not None:
7461
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7462
      oprot.writeI64(self.beginIndex)
7463
      oprot.writeFieldEnd()
7464
    if self.totalItems is not None:
7465
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7466
      oprot.writeI64(self.totalItems)
7467
      oprot.writeFieldEnd()
7468
    if self.brand is not None:
7469
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7470
      oprot.writeString(self.brand)
7471
      oprot.writeFieldEnd()
7472
    if self.categories is not None:
7473
      oprot.writeFieldBegin('categories', TType.LIST, 4)
7474
      oprot.writeListBegin(TType.I64, len(self.categories))
7475
      for iter113 in self.categories:
7476
        oprot.writeI64(iter113)
7477
      oprot.writeListEnd()
7478
      oprot.writeFieldEnd()
7479
    oprot.writeFieldStop()
7480
    oprot.writeStructEnd()
7481
 
7482
  def validate(self):
7483
    return
7484
 
7485
 
7486
  def __repr__(self):
7487
    L = ['%s=%r' % (key, value)
7488
      for key, value in self.__dict__.iteritems()]
7489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7490
 
7491
  def __eq__(self, other):
7492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7493
 
7494
  def __ne__(self, other):
7495
    return not (self == other)
7496
 
7497
class getLatestArrivalsCatalogIds_result:
7498
  """
7499
  Attributes:
7500
   - success
7501
   - cex
7502
  """
7503
 
7504
  thrift_spec = (
7505
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7506
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7507
  )
7508
 
7509
  def __init__(self, success=None, cex=None,):
7510
    self.success = success
7511
    self.cex = cex
7512
 
7513
  def read(self, iprot):
7514
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7515
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7516
      return
7517
    iprot.readStructBegin()
7518
    while True:
7519
      (fname, ftype, fid) = iprot.readFieldBegin()
7520
      if ftype == TType.STOP:
7521
        break
7522
      if fid == 0:
7523
        if ftype == TType.LIST:
7524
          self.success = []
7525
          (_etype117, _size114) = iprot.readListBegin()
7526
          for _i118 in xrange(_size114):
7527
            _elem119 = iprot.readI64();
7528
            self.success.append(_elem119)
7529
          iprot.readListEnd()
7530
        else:
7531
          iprot.skip(ftype)
7532
      elif fid == 1:
7533
        if ftype == TType.STRUCT:
7534
          self.cex = CatalogServiceException()
7535
          self.cex.read(iprot)
7536
        else:
7537
          iprot.skip(ftype)
7538
      else:
7539
        iprot.skip(ftype)
7540
      iprot.readFieldEnd()
7541
    iprot.readStructEnd()
7542
 
7543
  def write(self, oprot):
7544
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7545
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7546
      return
7547
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
7548
    if self.success is not None:
7549
      oprot.writeFieldBegin('success', TType.LIST, 0)
7550
      oprot.writeListBegin(TType.I64, len(self.success))
7551
      for iter120 in self.success:
7552
        oprot.writeI64(iter120)
7553
      oprot.writeListEnd()
7554
      oprot.writeFieldEnd()
7555
    if self.cex is not None:
7556
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7557
      self.cex.write(oprot)
7558
      oprot.writeFieldEnd()
7559
    oprot.writeFieldStop()
7560
    oprot.writeStructEnd()
7561
 
7562
  def validate(self):
7563
    return
7564
 
7565
 
7566
  def __repr__(self):
7567
    L = ['%s=%r' % (key, value)
7568
      for key, value in self.__dict__.iteritems()]
7569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7570
 
7571
  def __eq__(self, other):
7572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7573
 
7574
  def __ne__(self, other):
7575
    return not (self == other)
7576
 
7577
class getLatestArrivalsCount_args:
7578
 
7579
  thrift_spec = (
7580
  )
7581
 
7582
  def read(self, iprot):
7583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7585
      return
7586
    iprot.readStructBegin()
7587
    while True:
7588
      (fname, ftype, fid) = iprot.readFieldBegin()
7589
      if ftype == TType.STOP:
7590
        break
7591
      else:
7592
        iprot.skip(ftype)
7593
      iprot.readFieldEnd()
7594
    iprot.readStructEnd()
7595
 
7596
  def write(self, oprot):
7597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7599
      return
7600
    oprot.writeStructBegin('getLatestArrivalsCount_args')
7601
    oprot.writeFieldStop()
7602
    oprot.writeStructEnd()
7603
 
7604
  def validate(self):
7605
    return
7606
 
7607
 
7608
  def __repr__(self):
7609
    L = ['%s=%r' % (key, value)
7610
      for key, value in self.__dict__.iteritems()]
7611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7612
 
7613
  def __eq__(self, other):
7614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7615
 
7616
  def __ne__(self, other):
7617
    return not (self == other)
7618
 
7619
class getLatestArrivalsCount_result:
7620
  """
7621
  Attributes:
7622
   - success
7623
   - cex
7624
  """
7625
 
7626
  thrift_spec = (
7627
    (0, TType.I64, 'success', None, None, ), # 0
7628
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7629
  )
7630
 
7631
  def __init__(self, success=None, cex=None,):
7632
    self.success = success
7633
    self.cex = cex
7634
 
7635
  def read(self, iprot):
7636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7638
      return
7639
    iprot.readStructBegin()
7640
    while True:
7641
      (fname, ftype, fid) = iprot.readFieldBegin()
7642
      if ftype == TType.STOP:
7643
        break
7644
      if fid == 0:
7645
        if ftype == TType.I64:
7646
          self.success = iprot.readI64();
7647
        else:
7648
          iprot.skip(ftype)
7649
      elif fid == 1:
7650
        if ftype == TType.STRUCT:
7651
          self.cex = CatalogServiceException()
7652
          self.cex.read(iprot)
7653
        else:
7654
          iprot.skip(ftype)
7655
      else:
7656
        iprot.skip(ftype)
7657
      iprot.readFieldEnd()
7658
    iprot.readStructEnd()
7659
 
7660
  def write(self, oprot):
7661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7663
      return
7664
    oprot.writeStructBegin('getLatestArrivalsCount_result')
7665
    if self.success is not None:
7666
      oprot.writeFieldBegin('success', TType.I64, 0)
7667
      oprot.writeI64(self.success)
7668
      oprot.writeFieldEnd()
7669
    if self.cex is not None:
7670
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7671
      self.cex.write(oprot)
7672
      oprot.writeFieldEnd()
7673
    oprot.writeFieldStop()
7674
    oprot.writeStructEnd()
7675
 
7676
  def validate(self):
7677
    return
7678
 
7679
 
7680
  def __repr__(self):
7681
    L = ['%s=%r' % (key, value)
7682
      for key, value in self.__dict__.iteritems()]
7683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7684
 
7685
  def __eq__(self, other):
7686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7687
 
7688
  def __ne__(self, other):
7689
    return not (self == other)
7690
 
7691
class generateNewEntityID_args:
7692
 
7693
  thrift_spec = (
7694
  )
7695
 
7696
  def read(self, iprot):
7697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7699
      return
7700
    iprot.readStructBegin()
7701
    while True:
7702
      (fname, ftype, fid) = iprot.readFieldBegin()
7703
      if ftype == TType.STOP:
7704
        break
7705
      else:
7706
        iprot.skip(ftype)
7707
      iprot.readFieldEnd()
7708
    iprot.readStructEnd()
7709
 
7710
  def write(self, oprot):
7711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7713
      return
7714
    oprot.writeStructBegin('generateNewEntityID_args')
7715
    oprot.writeFieldStop()
7716
    oprot.writeStructEnd()
7717
 
7718
  def validate(self):
7719
    return
7720
 
7721
 
7722
  def __repr__(self):
7723
    L = ['%s=%r' % (key, value)
7724
      for key, value in self.__dict__.iteritems()]
7725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7726
 
7727
  def __eq__(self, other):
7728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7729
 
7730
  def __ne__(self, other):
7731
    return not (self == other)
7732
 
7733
class generateNewEntityID_result:
7734
  """
7735
  Attributes:
7736
   - success
7737
  """
7738
 
7739
  thrift_spec = (
7740
    (0, TType.I64, 'success', None, None, ), # 0
7741
  )
7742
 
7743
  def __init__(self, success=None,):
7744
    self.success = success
7745
 
7746
  def read(self, iprot):
7747
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7748
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7749
      return
7750
    iprot.readStructBegin()
7751
    while True:
7752
      (fname, ftype, fid) = iprot.readFieldBegin()
7753
      if ftype == TType.STOP:
7754
        break
7755
      if fid == 0:
7756
        if ftype == TType.I64:
7757
          self.success = iprot.readI64();
7758
        else:
7759
          iprot.skip(ftype)
7760
      else:
7761
        iprot.skip(ftype)
7762
      iprot.readFieldEnd()
7763
    iprot.readStructEnd()
7764
 
7765
  def write(self, oprot):
7766
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7767
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7768
      return
7769
    oprot.writeStructBegin('generateNewEntityID_result')
7770
    if self.success is not None:
7771
      oprot.writeFieldBegin('success', TType.I64, 0)
7772
      oprot.writeI64(self.success)
7773
      oprot.writeFieldEnd()
7774
    oprot.writeFieldStop()
7775
    oprot.writeStructEnd()
7776
 
7777
  def validate(self):
7778
    return
7779
 
7780
 
7781
  def __repr__(self):
7782
    L = ['%s=%r' % (key, value)
7783
      for key, value in self.__dict__.iteritems()]
7784
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7785
 
7786
  def __eq__(self, other):
7787
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7788
 
7789
  def __ne__(self, other):
7790
    return not (self == other)
7791
 
7792
class addCategory_args:
7793
  """
7794
  Attributes:
7795
   - category
7796
  """
7797
 
7798
  thrift_spec = (
7799
    None, # 0
7800
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
7801
  )
7802
 
7803
  def __init__(self, category=None,):
7804
    self.category = category
7805
 
7806
  def read(self, iprot):
7807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7809
      return
7810
    iprot.readStructBegin()
7811
    while True:
7812
      (fname, ftype, fid) = iprot.readFieldBegin()
7813
      if ftype == TType.STOP:
7814
        break
7815
      if fid == 1:
7816
        if ftype == TType.STRUCT:
7817
          self.category = Category()
7818
          self.category.read(iprot)
7819
        else:
7820
          iprot.skip(ftype)
7821
      else:
7822
        iprot.skip(ftype)
7823
      iprot.readFieldEnd()
7824
    iprot.readStructEnd()
7825
 
7826
  def write(self, oprot):
7827
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7828
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7829
      return
7830
    oprot.writeStructBegin('addCategory_args')
7831
    if self.category is not None:
7832
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
7833
      self.category.write(oprot)
7834
      oprot.writeFieldEnd()
7835
    oprot.writeFieldStop()
7836
    oprot.writeStructEnd()
7837
 
7838
  def validate(self):
7839
    return
7840
 
7841
 
7842
  def __repr__(self):
7843
    L = ['%s=%r' % (key, value)
7844
      for key, value in self.__dict__.iteritems()]
7845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7846
 
7847
  def __eq__(self, other):
7848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7849
 
7850
  def __ne__(self, other):
7851
    return not (self == other)
7852
 
7853
class addCategory_result:
7854
  """
7855
  Attributes:
7856
   - success
7857
  """
7858
 
7859
  thrift_spec = (
7860
    (0, TType.BOOL, 'success', None, None, ), # 0
7861
  )
7862
 
7863
  def __init__(self, success=None,):
7864
    self.success = success
7865
 
7866
  def read(self, iprot):
7867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7869
      return
7870
    iprot.readStructBegin()
7871
    while True:
7872
      (fname, ftype, fid) = iprot.readFieldBegin()
7873
      if ftype == TType.STOP:
7874
        break
7875
      if fid == 0:
7876
        if ftype == TType.BOOL:
7877
          self.success = iprot.readBool();
7878
        else:
7879
          iprot.skip(ftype)
7880
      else:
7881
        iprot.skip(ftype)
7882
      iprot.readFieldEnd()
7883
    iprot.readStructEnd()
7884
 
7885
  def write(self, oprot):
7886
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7887
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7888
      return
7889
    oprot.writeStructBegin('addCategory_result')
7890
    if self.success is not None:
7891
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7892
      oprot.writeBool(self.success)
7893
      oprot.writeFieldEnd()
7894
    oprot.writeFieldStop()
7895
    oprot.writeStructEnd()
7896
 
7897
  def validate(self):
7898
    return
7899
 
7900
 
7901
  def __repr__(self):
7902
    L = ['%s=%r' % (key, value)
7903
      for key, value in self.__dict__.iteritems()]
7904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7905
 
7906
  def __eq__(self, other):
7907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7908
 
7909
  def __ne__(self, other):
7910
    return not (self == other)
7911
 
7912
class getCategory_args:
7913
  """
7914
  Attributes:
7915
   - id
7916
  """
7917
 
7918
  thrift_spec = (
7919
    None, # 0
7920
    (1, TType.I64, 'id', None, None, ), # 1
7921
  )
7922
 
7923
  def __init__(self, id=None,):
7924
    self.id = id
7925
 
7926
  def read(self, iprot):
7927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7929
      return
7930
    iprot.readStructBegin()
7931
    while True:
7932
      (fname, ftype, fid) = iprot.readFieldBegin()
7933
      if ftype == TType.STOP:
7934
        break
7935
      if fid == 1:
7936
        if ftype == TType.I64:
7937
          self.id = iprot.readI64();
7938
        else:
7939
          iprot.skip(ftype)
7940
      else:
7941
        iprot.skip(ftype)
7942
      iprot.readFieldEnd()
7943
    iprot.readStructEnd()
7944
 
7945
  def write(self, oprot):
7946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7948
      return
7949
    oprot.writeStructBegin('getCategory_args')
7950
    if self.id is not None:
7951
      oprot.writeFieldBegin('id', TType.I64, 1)
7952
      oprot.writeI64(self.id)
7953
      oprot.writeFieldEnd()
7954
    oprot.writeFieldStop()
7955
    oprot.writeStructEnd()
7956
 
7957
  def validate(self):
7958
    return
7959
 
7960
 
7961
  def __repr__(self):
7962
    L = ['%s=%r' % (key, value)
7963
      for key, value in self.__dict__.iteritems()]
7964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7965
 
7966
  def __eq__(self, other):
7967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7968
 
7969
  def __ne__(self, other):
7970
    return not (self == other)
7971
 
7972
class getCategory_result:
7973
  """
7974
  Attributes:
7975
   - success
7976
  """
7977
 
7978
  thrift_spec = (
7979
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
7980
  )
7981
 
7982
  def __init__(self, success=None,):
7983
    self.success = success
7984
 
7985
  def read(self, iprot):
7986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7988
      return
7989
    iprot.readStructBegin()
7990
    while True:
7991
      (fname, ftype, fid) = iprot.readFieldBegin()
7992
      if ftype == TType.STOP:
7993
        break
7994
      if fid == 0:
7995
        if ftype == TType.STRUCT:
7996
          self.success = Category()
7997
          self.success.read(iprot)
7998
        else:
7999
          iprot.skip(ftype)
8000
      else:
8001
        iprot.skip(ftype)
8002
      iprot.readFieldEnd()
8003
    iprot.readStructEnd()
8004
 
8005
  def write(self, oprot):
8006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8008
      return
8009
    oprot.writeStructBegin('getCategory_result')
8010
    if self.success is not None:
8011
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8012
      self.success.write(oprot)
8013
      oprot.writeFieldEnd()
8014
    oprot.writeFieldStop()
8015
    oprot.writeStructEnd()
8016
 
8017
  def validate(self):
8018
    return
8019
 
8020
 
8021
  def __repr__(self):
8022
    L = ['%s=%r' % (key, value)
8023
      for key, value in self.__dict__.iteritems()]
8024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8025
 
8026
  def __eq__(self, other):
8027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8028
 
8029
  def __ne__(self, other):
8030
    return not (self == other)
8031
 
8032
class getAllCategories_args:
8033
 
8034
  thrift_spec = (
8035
  )
8036
 
8037
  def read(self, iprot):
8038
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8039
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8040
      return
8041
    iprot.readStructBegin()
8042
    while True:
8043
      (fname, ftype, fid) = iprot.readFieldBegin()
8044
      if ftype == TType.STOP:
8045
        break
8046
      else:
8047
        iprot.skip(ftype)
8048
      iprot.readFieldEnd()
8049
    iprot.readStructEnd()
8050
 
8051
  def write(self, oprot):
8052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8054
      return
8055
    oprot.writeStructBegin('getAllCategories_args')
8056
    oprot.writeFieldStop()
8057
    oprot.writeStructEnd()
8058
 
8059
  def validate(self):
8060
    return
8061
 
8062
 
8063
  def __repr__(self):
8064
    L = ['%s=%r' % (key, value)
8065
      for key, value in self.__dict__.iteritems()]
8066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8067
 
8068
  def __eq__(self, other):
8069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8070
 
8071
  def __ne__(self, other):
8072
    return not (self == other)
8073
 
8074
class getAllCategories_result:
8075
  """
8076
  Attributes:
8077
   - success
8078
  """
8079
 
8080
  thrift_spec = (
8081
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8082
  )
8083
 
8084
  def __init__(self, success=None,):
8085
    self.success = success
8086
 
8087
  def read(self, iprot):
8088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8090
      return
8091
    iprot.readStructBegin()
8092
    while True:
8093
      (fname, ftype, fid) = iprot.readFieldBegin()
8094
      if ftype == TType.STOP:
8095
        break
8096
      if fid == 0:
8097
        if ftype == TType.LIST:
8098
          self.success = []
8099
          (_etype124, _size121) = iprot.readListBegin()
8100
          for _i125 in xrange(_size121):
8101
            _elem126 = Category()
8102
            _elem126.read(iprot)
8103
            self.success.append(_elem126)
8104
          iprot.readListEnd()
8105
        else:
8106
          iprot.skip(ftype)
8107
      else:
8108
        iprot.skip(ftype)
8109
      iprot.readFieldEnd()
8110
    iprot.readStructEnd()
8111
 
8112
  def write(self, oprot):
8113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8115
      return
8116
    oprot.writeStructBegin('getAllCategories_result')
8117
    if self.success is not None:
8118
      oprot.writeFieldBegin('success', TType.LIST, 0)
8119
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8120
      for iter127 in self.success:
8121
        iter127.write(oprot)
8122
      oprot.writeListEnd()
8123
      oprot.writeFieldEnd()
8124
    oprot.writeFieldStop()
8125
    oprot.writeStructEnd()
8126
 
8127
  def validate(self):
8128
    return
8129
 
8130
 
8131
  def __repr__(self):
8132
    L = ['%s=%r' % (key, value)
8133
      for key, value in self.__dict__.iteritems()]
8134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8135
 
8136
  def __eq__(self, other):
8137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8138
 
8139
  def __ne__(self, other):
8140
    return not (self == other)
8141
 
8142
class getAllSimilarItems_args:
8143
  """
8144
  Attributes:
8145
   - itemId
8146
  """
8147
 
8148
  thrift_spec = (
8149
    None, # 0
8150
    (1, TType.I64, 'itemId', None, None, ), # 1
8151
  )
8152
 
8153
  def __init__(self, itemId=None,):
8154
    self.itemId = itemId
8155
 
8156
  def read(self, iprot):
8157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8159
      return
8160
    iprot.readStructBegin()
8161
    while True:
8162
      (fname, ftype, fid) = iprot.readFieldBegin()
8163
      if ftype == TType.STOP:
8164
        break
8165
      if fid == 1:
8166
        if ftype == TType.I64:
8167
          self.itemId = iprot.readI64();
8168
        else:
8169
          iprot.skip(ftype)
8170
      else:
8171
        iprot.skip(ftype)
8172
      iprot.readFieldEnd()
8173
    iprot.readStructEnd()
8174
 
8175
  def write(self, oprot):
8176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8178
      return
8179
    oprot.writeStructBegin('getAllSimilarItems_args')
8180
    if self.itemId is not None:
8181
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8182
      oprot.writeI64(self.itemId)
8183
      oprot.writeFieldEnd()
8184
    oprot.writeFieldStop()
8185
    oprot.writeStructEnd()
8186
 
8187
  def validate(self):
8188
    return
8189
 
8190
 
8191
  def __repr__(self):
8192
    L = ['%s=%r' % (key, value)
8193
      for key, value in self.__dict__.iteritems()]
8194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8195
 
8196
  def __eq__(self, other):
8197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8198
 
8199
  def __ne__(self, other):
8200
    return not (self == other)
8201
 
8202
class getAllSimilarItems_result:
8203
  """
8204
  Attributes:
8205
   - success
8206
  """
8207
 
8208
  thrift_spec = (
8209
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8210
  )
8211
 
8212
  def __init__(self, success=None,):
8213
    self.success = success
8214
 
8215
  def read(self, iprot):
8216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8218
      return
8219
    iprot.readStructBegin()
8220
    while True:
8221
      (fname, ftype, fid) = iprot.readFieldBegin()
8222
      if ftype == TType.STOP:
8223
        break
8224
      if fid == 0:
8225
        if ftype == TType.LIST:
8226
          self.success = []
8227
          (_etype131, _size128) = iprot.readListBegin()
8228
          for _i132 in xrange(_size128):
8229
            _elem133 = Item()
8230
            _elem133.read(iprot)
8231
            self.success.append(_elem133)
8232
          iprot.readListEnd()
8233
        else:
8234
          iprot.skip(ftype)
8235
      else:
8236
        iprot.skip(ftype)
8237
      iprot.readFieldEnd()
8238
    iprot.readStructEnd()
8239
 
8240
  def write(self, oprot):
8241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8243
      return
8244
    oprot.writeStructBegin('getAllSimilarItems_result')
8245
    if self.success is not None:
8246
      oprot.writeFieldBegin('success', TType.LIST, 0)
8247
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8248
      for iter134 in self.success:
8249
        iter134.write(oprot)
8250
      oprot.writeListEnd()
8251
      oprot.writeFieldEnd()
8252
    oprot.writeFieldStop()
8253
    oprot.writeStructEnd()
8254
 
8255
  def validate(self):
8256
    return
8257
 
8258
 
8259
  def __repr__(self):
8260
    L = ['%s=%r' % (key, value)
8261
      for key, value in self.__dict__.iteritems()]
8262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8263
 
8264
  def __eq__(self, other):
8265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8266
 
8267
  def __ne__(self, other):
8268
    return not (self == other)
8269
 
8270
class addSimilarItem_args:
8271
  """
8272
  Attributes:
8273
   - itemId
8274
   - catalogItemId
8275
  """
8276
 
8277
  thrift_spec = (
8278
    None, # 0
8279
    (1, TType.I64, 'itemId', None, None, ), # 1
8280
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
8281
  )
8282
 
8283
  def __init__(self, itemId=None, catalogItemId=None,):
8284
    self.itemId = itemId
8285
    self.catalogItemId = catalogItemId
8286
 
8287
  def read(self, iprot):
8288
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8289
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8290
      return
8291
    iprot.readStructBegin()
8292
    while True:
8293
      (fname, ftype, fid) = iprot.readFieldBegin()
8294
      if ftype == TType.STOP:
8295
        break
8296
      if fid == 1:
8297
        if ftype == TType.I64:
8298
          self.itemId = iprot.readI64();
8299
        else:
8300
          iprot.skip(ftype)
8301
      elif fid == 2:
8302
        if ftype == TType.I64:
8303
          self.catalogItemId = iprot.readI64();
8304
        else:
8305
          iprot.skip(ftype)
8306
      else:
8307
        iprot.skip(ftype)
8308
      iprot.readFieldEnd()
8309
    iprot.readStructEnd()
8310
 
8311
  def write(self, oprot):
8312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8314
      return
8315
    oprot.writeStructBegin('addSimilarItem_args')
8316
    if self.itemId is not None:
8317
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8318
      oprot.writeI64(self.itemId)
8319
      oprot.writeFieldEnd()
8320
    if self.catalogItemId is not None:
8321
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
8322
      oprot.writeI64(self.catalogItemId)
8323
      oprot.writeFieldEnd()
8324
    oprot.writeFieldStop()
8325
    oprot.writeStructEnd()
8326
 
8327
  def validate(self):
8328
    return
8329
 
8330
 
8331
  def __repr__(self):
8332
    L = ['%s=%r' % (key, value)
8333
      for key, value in self.__dict__.iteritems()]
8334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8335
 
8336
  def __eq__(self, other):
8337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8338
 
8339
  def __ne__(self, other):
8340
    return not (self == other)
8341
 
8342
class addSimilarItem_result:
8343
  """
8344
  Attributes:
8345
   - success
8346
   - cex
8347
  """
8348
 
8349
  thrift_spec = (
8350
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8351
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8352
  )
8353
 
8354
  def __init__(self, success=None, cex=None,):
8355
    self.success = success
8356
    self.cex = cex
8357
 
8358
  def read(self, iprot):
8359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8361
      return
8362
    iprot.readStructBegin()
8363
    while True:
8364
      (fname, ftype, fid) = iprot.readFieldBegin()
8365
      if ftype == TType.STOP:
8366
        break
8367
      if fid == 0:
8368
        if ftype == TType.STRUCT:
8369
          self.success = Item()
8370
          self.success.read(iprot)
8371
        else:
8372
          iprot.skip(ftype)
8373
      elif fid == 1:
8374
        if ftype == TType.STRUCT:
8375
          self.cex = CatalogServiceException()
8376
          self.cex.read(iprot)
8377
        else:
8378
          iprot.skip(ftype)
8379
      else:
8380
        iprot.skip(ftype)
8381
      iprot.readFieldEnd()
8382
    iprot.readStructEnd()
8383
 
8384
  def write(self, oprot):
8385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8387
      return
8388
    oprot.writeStructBegin('addSimilarItem_result')
8389
    if self.success is not None:
8390
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8391
      self.success.write(oprot)
8392
      oprot.writeFieldEnd()
8393
    if self.cex is not None:
8394
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8395
      self.cex.write(oprot)
8396
      oprot.writeFieldEnd()
8397
    oprot.writeFieldStop()
8398
    oprot.writeStructEnd()
8399
 
8400
  def validate(self):
8401
    return
8402
 
8403
 
8404
  def __repr__(self):
8405
    L = ['%s=%r' % (key, value)
8406
      for key, value in self.__dict__.iteritems()]
8407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8408
 
8409
  def __eq__(self, other):
8410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8411
 
8412
  def __ne__(self, other):
8413
    return not (self == other)
8414
 
6512 kshitij.so 8415
class addTag_args:
8416
  """
8417
  Attributes:
8418
   - displayName
8419
   - itemId
8420
  """
8421
 
8422
  thrift_spec = (
8423
    None, # 0
8424
    (1, TType.STRING, 'displayName', None, None, ), # 1
8425
    (2, TType.I64, 'itemId', None, None, ), # 2
8426
  )
8427
 
8428
  def __init__(self, displayName=None, itemId=None,):
8429
    self.displayName = displayName
8430
    self.itemId = itemId
8431
 
8432
  def read(self, iprot):
8433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8435
      return
8436
    iprot.readStructBegin()
8437
    while True:
8438
      (fname, ftype, fid) = iprot.readFieldBegin()
8439
      if ftype == TType.STOP:
8440
        break
8441
      if fid == 1:
8442
        if ftype == TType.STRING:
8443
          self.displayName = iprot.readString();
8444
        else:
8445
          iprot.skip(ftype)
8446
      elif fid == 2:
8447
        if ftype == TType.I64:
8448
          self.itemId = iprot.readI64();
8449
        else:
8450
          iprot.skip(ftype)
8451
      else:
8452
        iprot.skip(ftype)
8453
      iprot.readFieldEnd()
8454
    iprot.readStructEnd()
8455
 
8456
  def write(self, oprot):
8457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8459
      return
8460
    oprot.writeStructBegin('addTag_args')
8461
    if self.displayName is not None:
8462
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8463
      oprot.writeString(self.displayName)
8464
      oprot.writeFieldEnd()
8465
    if self.itemId is not None:
8466
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8467
      oprot.writeI64(self.itemId)
8468
      oprot.writeFieldEnd()
8469
    oprot.writeFieldStop()
8470
    oprot.writeStructEnd()
8471
 
8472
  def validate(self):
8473
    return
8474
 
8475
 
8476
  def __repr__(self):
8477
    L = ['%s=%r' % (key, value)
8478
      for key, value in self.__dict__.iteritems()]
8479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8480
 
8481
  def __eq__(self, other):
8482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8483
 
8484
  def __ne__(self, other):
8485
    return not (self == other)
8486
 
8487
class addTag_result:
8488
  """
8489
  Attributes:
8490
   - success
8491
  """
8492
 
8493
  thrift_spec = (
8494
    (0, TType.BOOL, 'success', None, None, ), # 0
8495
  )
8496
 
8497
  def __init__(self, success=None,):
8498
    self.success = success
8499
 
8500
  def read(self, iprot):
8501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8503
      return
8504
    iprot.readStructBegin()
8505
    while True:
8506
      (fname, ftype, fid) = iprot.readFieldBegin()
8507
      if ftype == TType.STOP:
8508
        break
8509
      if fid == 0:
8510
        if ftype == TType.BOOL:
8511
          self.success = iprot.readBool();
8512
        else:
8513
          iprot.skip(ftype)
8514
      else:
8515
        iprot.skip(ftype)
8516
      iprot.readFieldEnd()
8517
    iprot.readStructEnd()
8518
 
8519
  def write(self, oprot):
8520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8522
      return
8523
    oprot.writeStructBegin('addTag_result')
8524
    if self.success is not None:
8525
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8526
      oprot.writeBool(self.success)
8527
      oprot.writeFieldEnd()
8528
    oprot.writeFieldStop()
8529
    oprot.writeStructEnd()
8530
 
8531
  def validate(self):
8532
    return
8533
 
8534
 
8535
  def __repr__(self):
8536
    L = ['%s=%r' % (key, value)
8537
      for key, value in self.__dict__.iteritems()]
8538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8539
 
8540
  def __eq__(self, other):
8541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8542
 
8543
  def __ne__(self, other):
8544
    return not (self == other)
8545
 
8546
class deleteEntityTag_args:
8547
  """
8548
  Attributes:
8549
   - displayName
8550
   - itemId
8551
  """
8552
 
8553
  thrift_spec = (
8554
    None, # 0
8555
    (1, TType.STRING, 'displayName', None, None, ), # 1
8556
    (2, TType.I64, 'itemId', None, None, ), # 2
8557
  )
8558
 
8559
  def __init__(self, displayName=None, itemId=None,):
8560
    self.displayName = displayName
8561
    self.itemId = itemId
8562
 
8563
  def read(self, iprot):
8564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8566
      return
8567
    iprot.readStructBegin()
8568
    while True:
8569
      (fname, ftype, fid) = iprot.readFieldBegin()
8570
      if ftype == TType.STOP:
8571
        break
8572
      if fid == 1:
8573
        if ftype == TType.STRING:
8574
          self.displayName = iprot.readString();
8575
        else:
8576
          iprot.skip(ftype)
8577
      elif fid == 2:
8578
        if ftype == TType.I64:
8579
          self.itemId = iprot.readI64();
8580
        else:
8581
          iprot.skip(ftype)
8582
      else:
8583
        iprot.skip(ftype)
8584
      iprot.readFieldEnd()
8585
    iprot.readStructEnd()
8586
 
8587
  def write(self, oprot):
8588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8590
      return
8591
    oprot.writeStructBegin('deleteEntityTag_args')
8592
    if self.displayName is not None:
8593
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8594
      oprot.writeString(self.displayName)
8595
      oprot.writeFieldEnd()
8596
    if self.itemId is not None:
8597
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8598
      oprot.writeI64(self.itemId)
8599
      oprot.writeFieldEnd()
8600
    oprot.writeFieldStop()
8601
    oprot.writeStructEnd()
8602
 
8603
  def validate(self):
8604
    return
8605
 
8606
 
8607
  def __repr__(self):
8608
    L = ['%s=%r' % (key, value)
8609
      for key, value in self.__dict__.iteritems()]
8610
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8611
 
8612
  def __eq__(self, other):
8613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8614
 
8615
  def __ne__(self, other):
8616
    return not (self == other)
8617
 
8618
class deleteEntityTag_result:
8619
  """
8620
  Attributes:
8621
   - success
8622
  """
8623
 
8624
  thrift_spec = (
8625
    (0, TType.BOOL, 'success', None, None, ), # 0
8626
  )
8627
 
8628
  def __init__(self, success=None,):
8629
    self.success = success
8630
 
8631
  def read(self, iprot):
8632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8634
      return
8635
    iprot.readStructBegin()
8636
    while True:
8637
      (fname, ftype, fid) = iprot.readFieldBegin()
8638
      if ftype == TType.STOP:
8639
        break
8640
      if fid == 0:
8641
        if ftype == TType.BOOL:
8642
          self.success = iprot.readBool();
8643
        else:
8644
          iprot.skip(ftype)
8645
      else:
8646
        iprot.skip(ftype)
8647
      iprot.readFieldEnd()
8648
    iprot.readStructEnd()
8649
 
8650
  def write(self, oprot):
8651
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8652
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8653
      return
8654
    oprot.writeStructBegin('deleteEntityTag_result')
8655
    if self.success is not None:
8656
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8657
      oprot.writeBool(self.success)
8658
      oprot.writeFieldEnd()
8659
    oprot.writeFieldStop()
8660
    oprot.writeStructEnd()
8661
 
8662
  def validate(self):
8663
    return
8664
 
8665
 
8666
  def __repr__(self):
8667
    L = ['%s=%r' % (key, value)
8668
      for key, value in self.__dict__.iteritems()]
8669
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8670
 
8671
  def __eq__(self, other):
8672
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8673
 
8674
  def __ne__(self, other):
8675
    return not (self == other)
8676
 
8677
class deleteTag_args:
8678
  """
8679
  Attributes:
8680
   - displayName
8681
  """
8682
 
8683
  thrift_spec = (
8684
    None, # 0
8685
    (1, TType.STRING, 'displayName', None, None, ), # 1
8686
  )
8687
 
8688
  def __init__(self, displayName=None,):
8689
    self.displayName = displayName
8690
 
8691
  def read(self, iprot):
8692
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8693
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8694
      return
8695
    iprot.readStructBegin()
8696
    while True:
8697
      (fname, ftype, fid) = iprot.readFieldBegin()
8698
      if ftype == TType.STOP:
8699
        break
8700
      if fid == 1:
8701
        if ftype == TType.STRING:
8702
          self.displayName = iprot.readString();
8703
        else:
8704
          iprot.skip(ftype)
8705
      else:
8706
        iprot.skip(ftype)
8707
      iprot.readFieldEnd()
8708
    iprot.readStructEnd()
8709
 
8710
  def write(self, oprot):
8711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8713
      return
8714
    oprot.writeStructBegin('deleteTag_args')
8715
    if self.displayName is not None:
8716
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8717
      oprot.writeString(self.displayName)
8718
      oprot.writeFieldEnd()
8719
    oprot.writeFieldStop()
8720
    oprot.writeStructEnd()
8721
 
8722
  def validate(self):
8723
    return
8724
 
8725
 
8726
  def __repr__(self):
8727
    L = ['%s=%r' % (key, value)
8728
      for key, value in self.__dict__.iteritems()]
8729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8730
 
8731
  def __eq__(self, other):
8732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8733
 
8734
  def __ne__(self, other):
8735
    return not (self == other)
8736
 
8737
class deleteTag_result:
8738
  """
8739
  Attributes:
8740
   - success
8741
  """
8742
 
8743
  thrift_spec = (
8744
    (0, TType.BOOL, 'success', None, None, ), # 0
8745
  )
8746
 
8747
  def __init__(self, success=None,):
8748
    self.success = success
8749
 
8750
  def read(self, iprot):
8751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8753
      return
8754
    iprot.readStructBegin()
8755
    while True:
8756
      (fname, ftype, fid) = iprot.readFieldBegin()
8757
      if ftype == TType.STOP:
8758
        break
8759
      if fid == 0:
8760
        if ftype == TType.BOOL:
8761
          self.success = iprot.readBool();
8762
        else:
8763
          iprot.skip(ftype)
8764
      else:
8765
        iprot.skip(ftype)
8766
      iprot.readFieldEnd()
8767
    iprot.readStructEnd()
8768
 
8769
  def write(self, oprot):
8770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8772
      return
8773
    oprot.writeStructBegin('deleteTag_result')
8774
    if self.success is not None:
8775
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8776
      oprot.writeBool(self.success)
8777
      oprot.writeFieldEnd()
8778
    oprot.writeFieldStop()
8779
    oprot.writeStructEnd()
8780
 
8781
  def validate(self):
8782
    return
8783
 
8784
 
8785
  def __repr__(self):
8786
    L = ['%s=%r' % (key, value)
8787
      for key, value in self.__dict__.iteritems()]
8788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8789
 
8790
  def __eq__(self, other):
8791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8792
 
8793
  def __ne__(self, other):
8794
    return not (self == other)
8795
 
8796
class getAllTags_args:
8797
 
8798
  thrift_spec = (
8799
  )
8800
 
8801
  def read(self, iprot):
8802
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8803
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8804
      return
8805
    iprot.readStructBegin()
8806
    while True:
8807
      (fname, ftype, fid) = iprot.readFieldBegin()
8808
      if ftype == TType.STOP:
8809
        break
8810
      else:
8811
        iprot.skip(ftype)
8812
      iprot.readFieldEnd()
8813
    iprot.readStructEnd()
8814
 
8815
  def write(self, oprot):
8816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8818
      return
8819
    oprot.writeStructBegin('getAllTags_args')
8820
    oprot.writeFieldStop()
8821
    oprot.writeStructEnd()
8822
 
8823
  def validate(self):
8824
    return
8825
 
8826
 
8827
  def __repr__(self):
8828
    L = ['%s=%r' % (key, value)
8829
      for key, value in self.__dict__.iteritems()]
8830
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8831
 
8832
  def __eq__(self, other):
8833
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8834
 
8835
  def __ne__(self, other):
8836
    return not (self == other)
8837
 
8838
class getAllTags_result:
8839
  """
8840
  Attributes:
8841
   - success
8842
  """
8843
 
8844
  thrift_spec = (
8845
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
8846
  )
8847
 
8848
  def __init__(self, success=None,):
8849
    self.success = success
8850
 
8851
  def read(self, iprot):
8852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8854
      return
8855
    iprot.readStructBegin()
8856
    while True:
8857
      (fname, ftype, fid) = iprot.readFieldBegin()
8858
      if ftype == TType.STOP:
8859
        break
8860
      if fid == 0:
8861
        if ftype == TType.LIST:
8862
          self.success = []
8863
          (_etype138, _size135) = iprot.readListBegin()
8864
          for _i139 in xrange(_size135):
8865
            _elem140 = iprot.readString();
8866
            self.success.append(_elem140)
8867
          iprot.readListEnd()
8868
        else:
8869
          iprot.skip(ftype)
8870
      else:
8871
        iprot.skip(ftype)
8872
      iprot.readFieldEnd()
8873
    iprot.readStructEnd()
8874
 
8875
  def write(self, oprot):
8876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8878
      return
8879
    oprot.writeStructBegin('getAllTags_result')
8880
    if self.success is not None:
8881
      oprot.writeFieldBegin('success', TType.LIST, 0)
8882
      oprot.writeListBegin(TType.STRING, len(self.success))
8883
      for iter141 in self.success:
8884
        oprot.writeString(iter141)
8885
      oprot.writeListEnd()
8886
      oprot.writeFieldEnd()
8887
    oprot.writeFieldStop()
8888
    oprot.writeStructEnd()
8889
 
8890
  def validate(self):
8891
    return
8892
 
8893
 
8894
  def __repr__(self):
8895
    L = ['%s=%r' % (key, value)
8896
      for key, value in self.__dict__.iteritems()]
8897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8898
 
8899
  def __eq__(self, other):
8900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8901
 
8902
  def __ne__(self, other):
8903
    return not (self == other)
8904
 
8905
class getAllEntitiesByTagName_args:
8906
  """
8907
  Attributes:
8908
   - displayName
8909
  """
8910
 
8911
  thrift_spec = (
8912
    None, # 0
8913
    (1, TType.STRING, 'displayName', None, None, ), # 1
8914
  )
8915
 
8916
  def __init__(self, displayName=None,):
8917
    self.displayName = displayName
8918
 
8919
  def read(self, iprot):
8920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8922
      return
8923
    iprot.readStructBegin()
8924
    while True:
8925
      (fname, ftype, fid) = iprot.readFieldBegin()
8926
      if ftype == TType.STOP:
8927
        break
8928
      if fid == 1:
8929
        if ftype == TType.STRING:
8930
          self.displayName = iprot.readString();
8931
        else:
8932
          iprot.skip(ftype)
8933
      else:
8934
        iprot.skip(ftype)
8935
      iprot.readFieldEnd()
8936
    iprot.readStructEnd()
8937
 
8938
  def write(self, oprot):
8939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8941
      return
8942
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
8943
    if self.displayName is not None:
8944
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8945
      oprot.writeString(self.displayName)
8946
      oprot.writeFieldEnd()
8947
    oprot.writeFieldStop()
8948
    oprot.writeStructEnd()
8949
 
8950
  def validate(self):
8951
    return
8952
 
8953
 
8954
  def __repr__(self):
8955
    L = ['%s=%r' % (key, value)
8956
      for key, value in self.__dict__.iteritems()]
8957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8958
 
8959
  def __eq__(self, other):
8960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8961
 
8962
  def __ne__(self, other):
8963
    return not (self == other)
8964
 
8965
class getAllEntitiesByTagName_result:
8966
  """
8967
  Attributes:
8968
   - success
8969
  """
8970
 
8971
  thrift_spec = (
8972
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8973
  )
8974
 
8975
  def __init__(self, success=None,):
8976
    self.success = success
8977
 
8978
  def read(self, iprot):
8979
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8980
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8981
      return
8982
    iprot.readStructBegin()
8983
    while True:
8984
      (fname, ftype, fid) = iprot.readFieldBegin()
8985
      if ftype == TType.STOP:
8986
        break
8987
      if fid == 0:
8988
        if ftype == TType.LIST:
8989
          self.success = []
8990
          (_etype145, _size142) = iprot.readListBegin()
8991
          for _i146 in xrange(_size142):
8992
            _elem147 = iprot.readI64();
8993
            self.success.append(_elem147)
8994
          iprot.readListEnd()
8995
        else:
8996
          iprot.skip(ftype)
8997
      else:
8998
        iprot.skip(ftype)
8999
      iprot.readFieldEnd()
9000
    iprot.readStructEnd()
9001
 
9002
  def write(self, oprot):
9003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9005
      return
9006
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9007
    if self.success is not None:
9008
      oprot.writeFieldBegin('success', TType.LIST, 0)
9009
      oprot.writeListBegin(TType.I64, len(self.success))
9010
      for iter148 in self.success:
9011
        oprot.writeI64(iter148)
9012
      oprot.writeListEnd()
9013
      oprot.writeFieldEnd()
9014
    oprot.writeFieldStop()
9015
    oprot.writeStructEnd()
9016
 
9017
  def validate(self):
9018
    return
9019
 
9020
 
9021
  def __repr__(self):
9022
    L = ['%s=%r' % (key, value)
9023
      for key, value in self.__dict__.iteritems()]
9024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9025
 
9026
  def __eq__(self, other):
9027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9028
 
9029
  def __ne__(self, other):
9030
    return not (self == other)
9031
 
5944 mandeep.dh 9032
class deleteSimilarItem_args:
9033
  """
9034
  Attributes:
9035
   - itemId
9036
   - catalogItemId
9037
  """
9038
 
9039
  thrift_spec = (
9040
    None, # 0
9041
    (1, TType.I64, 'itemId', None, None, ), # 1
9042
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
9043
  )
9044
 
9045
  def __init__(self, itemId=None, catalogItemId=None,):
9046
    self.itemId = itemId
9047
    self.catalogItemId = catalogItemId
9048
 
9049
  def read(self, iprot):
9050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9052
      return
9053
    iprot.readStructBegin()
9054
    while True:
9055
      (fname, ftype, fid) = iprot.readFieldBegin()
9056
      if ftype == TType.STOP:
9057
        break
9058
      if fid == 1:
9059
        if ftype == TType.I64:
9060
          self.itemId = iprot.readI64();
9061
        else:
9062
          iprot.skip(ftype)
9063
      elif fid == 2:
9064
        if ftype == TType.I64:
9065
          self.catalogItemId = iprot.readI64();
9066
        else:
9067
          iprot.skip(ftype)
9068
      else:
9069
        iprot.skip(ftype)
9070
      iprot.readFieldEnd()
9071
    iprot.readStructEnd()
9072
 
9073
  def write(self, oprot):
9074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9076
      return
9077
    oprot.writeStructBegin('deleteSimilarItem_args')
9078
    if self.itemId is not None:
9079
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9080
      oprot.writeI64(self.itemId)
9081
      oprot.writeFieldEnd()
9082
    if self.catalogItemId is not None:
9083
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
9084
      oprot.writeI64(self.catalogItemId)
9085
      oprot.writeFieldEnd()
9086
    oprot.writeFieldStop()
9087
    oprot.writeStructEnd()
9088
 
9089
  def validate(self):
9090
    return
9091
 
9092
 
9093
  def __repr__(self):
9094
    L = ['%s=%r' % (key, value)
9095
      for key, value in self.__dict__.iteritems()]
9096
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9097
 
9098
  def __eq__(self, other):
9099
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9100
 
9101
  def __ne__(self, other):
9102
    return not (self == other)
9103
 
9104
class deleteSimilarItem_result:
9105
  """
9106
  Attributes:
9107
   - success
9108
   - cex
9109
  """
9110
 
9111
  thrift_spec = (
9112
    (0, TType.BOOL, 'success', None, None, ), # 0
9113
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9114
  )
9115
 
9116
  def __init__(self, success=None, cex=None,):
9117
    self.success = success
9118
    self.cex = cex
9119
 
9120
  def read(self, iprot):
9121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9123
      return
9124
    iprot.readStructBegin()
9125
    while True:
9126
      (fname, ftype, fid) = iprot.readFieldBegin()
9127
      if ftype == TType.STOP:
9128
        break
9129
      if fid == 0:
9130
        if ftype == TType.BOOL:
9131
          self.success = iprot.readBool();
9132
        else:
9133
          iprot.skip(ftype)
9134
      elif fid == 1:
9135
        if ftype == TType.STRUCT:
9136
          self.cex = CatalogServiceException()
9137
          self.cex.read(iprot)
9138
        else:
9139
          iprot.skip(ftype)
9140
      else:
9141
        iprot.skip(ftype)
9142
      iprot.readFieldEnd()
9143
    iprot.readStructEnd()
9144
 
9145
  def write(self, oprot):
9146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9148
      return
9149
    oprot.writeStructBegin('deleteSimilarItem_result')
9150
    if self.success is not None:
9151
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9152
      oprot.writeBool(self.success)
9153
      oprot.writeFieldEnd()
9154
    if self.cex is not None:
9155
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9156
      self.cex.write(oprot)
9157
      oprot.writeFieldEnd()
9158
    oprot.writeFieldStop()
9159
    oprot.writeStructEnd()
9160
 
9161
  def validate(self):
9162
    return
9163
 
9164
 
9165
  def __repr__(self):
9166
    L = ['%s=%r' % (key, value)
9167
      for key, value in self.__dict__.iteritems()]
9168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9169
 
9170
  def __eq__(self, other):
9171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9172
 
9173
  def __ne__(self, other):
9174
    return not (self == other)
9175
 
9176
class checkSimilarItem_args:
9177
  """
9178
  Attributes:
9179
   - brand
9180
   - modelNumber
9181
   - modelName
9182
   - color
9183
  """
9184
 
9185
  thrift_spec = (
9186
    None, # 0
9187
    (1, TType.STRING, 'brand', None, None, ), # 1
9188
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
9189
    (3, TType.STRING, 'modelName', None, None, ), # 3
9190
    (4, TType.STRING, 'color', None, None, ), # 4
9191
  )
9192
 
9193
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
9194
    self.brand = brand
9195
    self.modelNumber = modelNumber
9196
    self.modelName = modelName
9197
    self.color = color
9198
 
9199
  def read(self, iprot):
9200
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9201
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9202
      return
9203
    iprot.readStructBegin()
9204
    while True:
9205
      (fname, ftype, fid) = iprot.readFieldBegin()
9206
      if ftype == TType.STOP:
9207
        break
9208
      if fid == 1:
9209
        if ftype == TType.STRING:
9210
          self.brand = iprot.readString();
9211
        else:
9212
          iprot.skip(ftype)
9213
      elif fid == 2:
9214
        if ftype == TType.STRING:
9215
          self.modelNumber = iprot.readString();
9216
        else:
9217
          iprot.skip(ftype)
9218
      elif fid == 3:
9219
        if ftype == TType.STRING:
9220
          self.modelName = iprot.readString();
9221
        else:
9222
          iprot.skip(ftype)
9223
      elif fid == 4:
9224
        if ftype == TType.STRING:
9225
          self.color = iprot.readString();
9226
        else:
9227
          iprot.skip(ftype)
9228
      else:
9229
        iprot.skip(ftype)
9230
      iprot.readFieldEnd()
9231
    iprot.readStructEnd()
9232
 
9233
  def write(self, oprot):
9234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9236
      return
9237
    oprot.writeStructBegin('checkSimilarItem_args')
9238
    if self.brand is not None:
9239
      oprot.writeFieldBegin('brand', TType.STRING, 1)
9240
      oprot.writeString(self.brand)
9241
      oprot.writeFieldEnd()
9242
    if self.modelNumber is not None:
9243
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
9244
      oprot.writeString(self.modelNumber)
9245
      oprot.writeFieldEnd()
9246
    if self.modelName is not None:
9247
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
9248
      oprot.writeString(self.modelName)
9249
      oprot.writeFieldEnd()
9250
    if self.color is not None:
9251
      oprot.writeFieldBegin('color', TType.STRING, 4)
9252
      oprot.writeString(self.color)
9253
      oprot.writeFieldEnd()
9254
    oprot.writeFieldStop()
9255
    oprot.writeStructEnd()
9256
 
9257
  def validate(self):
9258
    return
9259
 
9260
 
9261
  def __repr__(self):
9262
    L = ['%s=%r' % (key, value)
9263
      for key, value in self.__dict__.iteritems()]
9264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9265
 
9266
  def __eq__(self, other):
9267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9268
 
9269
  def __ne__(self, other):
9270
    return not (self == other)
9271
 
9272
class checkSimilarItem_result:
9273
  """
9274
  Attributes:
9275
   - success
9276
  """
9277
 
9278
  thrift_spec = (
9279
    (0, TType.I64, 'success', None, None, ), # 0
9280
  )
9281
 
9282
  def __init__(self, success=None,):
9283
    self.success = success
9284
 
9285
  def read(self, iprot):
9286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9288
      return
9289
    iprot.readStructBegin()
9290
    while True:
9291
      (fname, ftype, fid) = iprot.readFieldBegin()
9292
      if ftype == TType.STOP:
9293
        break
9294
      if fid == 0:
9295
        if ftype == TType.I64:
9296
          self.success = iprot.readI64();
9297
        else:
9298
          iprot.skip(ftype)
9299
      else:
9300
        iprot.skip(ftype)
9301
      iprot.readFieldEnd()
9302
    iprot.readStructEnd()
9303
 
9304
  def write(self, oprot):
9305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9307
      return
9308
    oprot.writeStructBegin('checkSimilarItem_result')
9309
    if self.success is not None:
9310
      oprot.writeFieldBegin('success', TType.I64, 0)
9311
      oprot.writeI64(self.success)
9312
      oprot.writeFieldEnd()
9313
    oprot.writeFieldStop()
9314
    oprot.writeStructEnd()
9315
 
9316
  def validate(self):
9317
    return
9318
 
9319
 
9320
  def __repr__(self):
9321
    L = ['%s=%r' % (key, value)
9322
      for key, value in self.__dict__.iteritems()]
9323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9324
 
9325
  def __eq__(self, other):
9326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9327
 
9328
  def __ne__(self, other):
9329
    return not (self == other)
9330
 
9331
class validateRiskyStatus_args:
9332
  """
9333
  Attributes:
9334
   - itemId
9335
  """
9336
 
9337
  thrift_spec = (
9338
    None, # 0
9339
    (1, TType.I64, 'itemId', None, None, ), # 1
9340
  )
9341
 
9342
  def __init__(self, itemId=None,):
9343
    self.itemId = itemId
9344
 
9345
  def read(self, iprot):
9346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9348
      return
9349
    iprot.readStructBegin()
9350
    while True:
9351
      (fname, ftype, fid) = iprot.readFieldBegin()
9352
      if ftype == TType.STOP:
9353
        break
9354
      if fid == 1:
9355
        if ftype == TType.I64:
9356
          self.itemId = iprot.readI64();
9357
        else:
9358
          iprot.skip(ftype)
9359
      else:
9360
        iprot.skip(ftype)
9361
      iprot.readFieldEnd()
9362
    iprot.readStructEnd()
9363
 
9364
  def write(self, oprot):
9365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9367
      return
9368
    oprot.writeStructBegin('validateRiskyStatus_args')
9369
    if self.itemId is not None:
9370
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9371
      oprot.writeI64(self.itemId)
9372
      oprot.writeFieldEnd()
9373
    oprot.writeFieldStop()
9374
    oprot.writeStructEnd()
9375
 
9376
  def validate(self):
9377
    return
9378
 
9379
 
9380
  def __repr__(self):
9381
    L = ['%s=%r' % (key, value)
9382
      for key, value in self.__dict__.iteritems()]
9383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9384
 
9385
  def __eq__(self, other):
9386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9387
 
9388
  def __ne__(self, other):
9389
    return not (self == other)
9390
 
9391
class validateRiskyStatus_result:
9392
 
9393
  thrift_spec = (
9394
  )
9395
 
9396
  def read(self, iprot):
9397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9399
      return
9400
    iprot.readStructBegin()
9401
    while True:
9402
      (fname, ftype, fid) = iprot.readFieldBegin()
9403
      if ftype == TType.STOP:
9404
        break
9405
      else:
9406
        iprot.skip(ftype)
9407
      iprot.readFieldEnd()
9408
    iprot.readStructEnd()
9409
 
9410
  def write(self, oprot):
9411
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9412
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9413
      return
9414
    oprot.writeStructBegin('validateRiskyStatus_result')
9415
    oprot.writeFieldStop()
9416
    oprot.writeStructEnd()
9417
 
9418
  def validate(self):
9419
    return
9420
 
9421
 
9422
  def __repr__(self):
9423
    L = ['%s=%r' % (key, value)
9424
      for key, value in self.__dict__.iteritems()]
9425
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9426
 
9427
  def __eq__(self, other):
9428
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9429
 
9430
  def __ne__(self, other):
9431
    return not (self == other)
9432
 
9433
class changeItemRiskyFlag_args:
9434
  """
9435
  Attributes:
9436
   - itemId
9437
   - risky
9438
  """
9439
 
9440
  thrift_spec = (
9441
    None, # 0
9442
    (1, TType.I64, 'itemId', None, None, ), # 1
9443
    (2, TType.BOOL, 'risky', None, None, ), # 2
9444
  )
9445
 
9446
  def __init__(self, itemId=None, risky=None,):
9447
    self.itemId = itemId
9448
    self.risky = risky
9449
 
9450
  def read(self, iprot):
9451
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9452
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9453
      return
9454
    iprot.readStructBegin()
9455
    while True:
9456
      (fname, ftype, fid) = iprot.readFieldBegin()
9457
      if ftype == TType.STOP:
9458
        break
9459
      if fid == 1:
9460
        if ftype == TType.I64:
9461
          self.itemId = iprot.readI64();
9462
        else:
9463
          iprot.skip(ftype)
9464
      elif fid == 2:
9465
        if ftype == TType.BOOL:
9466
          self.risky = iprot.readBool();
9467
        else:
9468
          iprot.skip(ftype)
9469
      else:
9470
        iprot.skip(ftype)
9471
      iprot.readFieldEnd()
9472
    iprot.readStructEnd()
9473
 
9474
  def write(self, oprot):
9475
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9476
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9477
      return
9478
    oprot.writeStructBegin('changeItemRiskyFlag_args')
9479
    if self.itemId is not None:
9480
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9481
      oprot.writeI64(self.itemId)
9482
      oprot.writeFieldEnd()
9483
    if self.risky is not None:
9484
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
9485
      oprot.writeBool(self.risky)
9486
      oprot.writeFieldEnd()
9487
    oprot.writeFieldStop()
9488
    oprot.writeStructEnd()
9489
 
9490
  def validate(self):
9491
    return
9492
 
9493
 
9494
  def __repr__(self):
9495
    L = ['%s=%r' % (key, value)
9496
      for key, value in self.__dict__.iteritems()]
9497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9498
 
9499
  def __eq__(self, other):
9500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9501
 
9502
  def __ne__(self, other):
9503
    return not (self == other)
9504
 
9505
class changeItemRiskyFlag_result:
9506
 
9507
  thrift_spec = (
9508
  )
9509
 
9510
  def read(self, iprot):
9511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9513
      return
9514
    iprot.readStructBegin()
9515
    while True:
9516
      (fname, ftype, fid) = iprot.readFieldBegin()
9517
      if ftype == TType.STOP:
9518
        break
9519
      else:
9520
        iprot.skip(ftype)
9521
      iprot.readFieldEnd()
9522
    iprot.readStructEnd()
9523
 
9524
  def write(self, oprot):
9525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9527
      return
9528
    oprot.writeStructBegin('changeItemRiskyFlag_result')
9529
    oprot.writeFieldStop()
9530
    oprot.writeStructEnd()
9531
 
9532
  def validate(self):
9533
    return
9534
 
9535
 
9536
  def __repr__(self):
9537
    L = ['%s=%r' % (key, value)
9538
      for key, value in self.__dict__.iteritems()]
9539
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9540
 
9541
  def __eq__(self, other):
9542
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9543
 
9544
  def __ne__(self, other):
9545
    return not (self == other)
9546
 
9547
class getItemsByRiskyFlag_args:
9548
 
9549
  thrift_spec = (
9550
  )
9551
 
9552
  def read(self, iprot):
9553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9555
      return
9556
    iprot.readStructBegin()
9557
    while True:
9558
      (fname, ftype, fid) = iprot.readFieldBegin()
9559
      if ftype == TType.STOP:
9560
        break
9561
      else:
9562
        iprot.skip(ftype)
9563
      iprot.readFieldEnd()
9564
    iprot.readStructEnd()
9565
 
9566
  def write(self, oprot):
9567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9569
      return
9570
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
9571
    oprot.writeFieldStop()
9572
    oprot.writeStructEnd()
9573
 
9574
  def validate(self):
9575
    return
9576
 
9577
 
9578
  def __repr__(self):
9579
    L = ['%s=%r' % (key, value)
9580
      for key, value in self.__dict__.iteritems()]
9581
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9582
 
9583
  def __eq__(self, other):
9584
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9585
 
9586
  def __ne__(self, other):
9587
    return not (self == other)
9588
 
9589
class getItemsByRiskyFlag_result:
9590
  """
9591
  Attributes:
9592
   - success
9593
  """
9594
 
9595
  thrift_spec = (
9596
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9597
  )
9598
 
9599
  def __init__(self, success=None,):
9600
    self.success = success
9601
 
9602
  def read(self, iprot):
9603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9605
      return
9606
    iprot.readStructBegin()
9607
    while True:
9608
      (fname, ftype, fid) = iprot.readFieldBegin()
9609
      if ftype == TType.STOP:
9610
        break
9611
      if fid == 0:
9612
        if ftype == TType.LIST:
9613
          self.success = []
6512 kshitij.so 9614
          (_etype152, _size149) = iprot.readListBegin()
9615
          for _i153 in xrange(_size149):
9616
            _elem154 = Item()
9617
            _elem154.read(iprot)
9618
            self.success.append(_elem154)
5944 mandeep.dh 9619
          iprot.readListEnd()
9620
        else:
9621
          iprot.skip(ftype)
9622
      else:
9623
        iprot.skip(ftype)
9624
      iprot.readFieldEnd()
9625
    iprot.readStructEnd()
9626
 
9627
  def write(self, oprot):
9628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9630
      return
9631
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
9632
    if self.success is not None:
9633
      oprot.writeFieldBegin('success', TType.LIST, 0)
9634
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 9635
      for iter155 in self.success:
9636
        iter155.write(oprot)
5944 mandeep.dh 9637
      oprot.writeListEnd()
9638
      oprot.writeFieldEnd()
9639
    oprot.writeFieldStop()
9640
    oprot.writeStructEnd()
9641
 
9642
  def validate(self):
9643
    return
9644
 
9645
 
9646
  def __repr__(self):
9647
    L = ['%s=%r' % (key, value)
9648
      for key, value in self.__dict__.iteritems()]
9649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9650
 
9651
  def __eq__(self, other):
9652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9653
 
9654
  def __ne__(self, other):
9655
    return not (self == other)
9656
 
9657
class getItemsForMasterSheet_args:
9658
  """
9659
  Attributes:
9660
   - category
9661
   - brand
9662
  """
9663
 
9664
  thrift_spec = (
9665
    None, # 0
9666
    (1, TType.STRING, 'category', None, None, ), # 1
9667
    (2, TType.STRING, 'brand', None, None, ), # 2
9668
  )
9669
 
9670
  def __init__(self, category=None, brand=None,):
9671
    self.category = category
9672
    self.brand = brand
9673
 
9674
  def read(self, iprot):
9675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9677
      return
9678
    iprot.readStructBegin()
9679
    while True:
9680
      (fname, ftype, fid) = iprot.readFieldBegin()
9681
      if ftype == TType.STOP:
9682
        break
9683
      if fid == 1:
9684
        if ftype == TType.STRING:
9685
          self.category = iprot.readString();
9686
        else:
9687
          iprot.skip(ftype)
9688
      elif fid == 2:
9689
        if ftype == TType.STRING:
9690
          self.brand = iprot.readString();
9691
        else:
9692
          iprot.skip(ftype)
9693
      else:
9694
        iprot.skip(ftype)
9695
      iprot.readFieldEnd()
9696
    iprot.readStructEnd()
9697
 
9698
  def write(self, oprot):
9699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9701
      return
9702
    oprot.writeStructBegin('getItemsForMasterSheet_args')
9703
    if self.category is not None:
9704
      oprot.writeFieldBegin('category', TType.STRING, 1)
9705
      oprot.writeString(self.category)
9706
      oprot.writeFieldEnd()
9707
    if self.brand is not None:
9708
      oprot.writeFieldBegin('brand', TType.STRING, 2)
9709
      oprot.writeString(self.brand)
9710
      oprot.writeFieldEnd()
9711
    oprot.writeFieldStop()
9712
    oprot.writeStructEnd()
9713
 
9714
  def validate(self):
9715
    return
9716
 
9717
 
9718
  def __repr__(self):
9719
    L = ['%s=%r' % (key, value)
9720
      for key, value in self.__dict__.iteritems()]
9721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9722
 
9723
  def __eq__(self, other):
9724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9725
 
9726
  def __ne__(self, other):
9727
    return not (self == other)
9728
 
9729
class getItemsForMasterSheet_result:
9730
  """
9731
  Attributes:
9732
   - success
9733
  """
9734
 
9735
  thrift_spec = (
9736
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9737
  )
9738
 
9739
  def __init__(self, success=None,):
9740
    self.success = success
9741
 
9742
  def read(self, iprot):
9743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9745
      return
9746
    iprot.readStructBegin()
9747
    while True:
9748
      (fname, ftype, fid) = iprot.readFieldBegin()
9749
      if ftype == TType.STOP:
9750
        break
9751
      if fid == 0:
9752
        if ftype == TType.LIST:
9753
          self.success = []
6512 kshitij.so 9754
          (_etype159, _size156) = iprot.readListBegin()
9755
          for _i160 in xrange(_size156):
9756
            _elem161 = Item()
9757
            _elem161.read(iprot)
9758
            self.success.append(_elem161)
5944 mandeep.dh 9759
          iprot.readListEnd()
9760
        else:
9761
          iprot.skip(ftype)
9762
      else:
9763
        iprot.skip(ftype)
9764
      iprot.readFieldEnd()
9765
    iprot.readStructEnd()
9766
 
9767
  def write(self, oprot):
9768
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9769
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9770
      return
9771
    oprot.writeStructBegin('getItemsForMasterSheet_result')
9772
    if self.success is not None:
9773
      oprot.writeFieldBegin('success', TType.LIST, 0)
9774
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 9775
      for iter162 in self.success:
9776
        iter162.write(oprot)
5944 mandeep.dh 9777
      oprot.writeListEnd()
9778
      oprot.writeFieldEnd()
9779
    oprot.writeFieldStop()
9780
    oprot.writeStructEnd()
9781
 
9782
  def validate(self):
9783
    return
9784
 
9785
 
9786
  def __repr__(self):
9787
    L = ['%s=%r' % (key, value)
9788
      for key, value in self.__dict__.iteritems()]
9789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9790
 
9791
  def __eq__(self, other):
9792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9793
 
9794
  def __ne__(self, other):
9795
    return not (self == other)
9796
 
9797
class getSimilarItemsCatalogIds_args:
9798
  """
9799
  Attributes:
9800
   - beginIndex
9801
   - totalItems
9802
   - itemId
9803
  """
9804
 
9805
  thrift_spec = (
9806
    None, # 0
9807
    (1, TType.I64, 'beginIndex', None, None, ), # 1
9808
    (2, TType.I64, 'totalItems', None, None, ), # 2
9809
    (3, TType.I64, 'itemId', None, None, ), # 3
9810
  )
9811
 
9812
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
9813
    self.beginIndex = beginIndex
9814
    self.totalItems = totalItems
9815
    self.itemId = itemId
9816
 
9817
  def read(self, iprot):
9818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9820
      return
9821
    iprot.readStructBegin()
9822
    while True:
9823
      (fname, ftype, fid) = iprot.readFieldBegin()
9824
      if ftype == TType.STOP:
9825
        break
9826
      if fid == 1:
9827
        if ftype == TType.I64:
9828
          self.beginIndex = iprot.readI64();
9829
        else:
9830
          iprot.skip(ftype)
9831
      elif fid == 2:
9832
        if ftype == TType.I64:
9833
          self.totalItems = iprot.readI64();
9834
        else:
9835
          iprot.skip(ftype)
9836
      elif fid == 3:
9837
        if ftype == TType.I64:
9838
          self.itemId = iprot.readI64();
9839
        else:
9840
          iprot.skip(ftype)
9841
      else:
9842
        iprot.skip(ftype)
9843
      iprot.readFieldEnd()
9844
    iprot.readStructEnd()
9845
 
9846
  def write(self, oprot):
9847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9849
      return
9850
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
9851
    if self.beginIndex is not None:
9852
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
9853
      oprot.writeI64(self.beginIndex)
9854
      oprot.writeFieldEnd()
9855
    if self.totalItems is not None:
9856
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
9857
      oprot.writeI64(self.totalItems)
9858
      oprot.writeFieldEnd()
9859
    if self.itemId is not None:
9860
      oprot.writeFieldBegin('itemId', TType.I64, 3)
9861
      oprot.writeI64(self.itemId)
9862
      oprot.writeFieldEnd()
9863
    oprot.writeFieldStop()
9864
    oprot.writeStructEnd()
9865
 
9866
  def validate(self):
9867
    return
9868
 
9869
 
9870
  def __repr__(self):
9871
    L = ['%s=%r' % (key, value)
9872
      for key, value in self.__dict__.iteritems()]
9873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9874
 
9875
  def __eq__(self, other):
9876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9877
 
9878
  def __ne__(self, other):
9879
    return not (self == other)
9880
 
9881
class getSimilarItemsCatalogIds_result:
9882
  """
9883
  Attributes:
9884
   - success
9885
  """
9886
 
9887
  thrift_spec = (
9888
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9889
  )
9890
 
9891
  def __init__(self, success=None,):
9892
    self.success = success
9893
 
9894
  def read(self, iprot):
9895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9897
      return
9898
    iprot.readStructBegin()
9899
    while True:
9900
      (fname, ftype, fid) = iprot.readFieldBegin()
9901
      if ftype == TType.STOP:
9902
        break
9903
      if fid == 0:
9904
        if ftype == TType.LIST:
9905
          self.success = []
6512 kshitij.so 9906
          (_etype166, _size163) = iprot.readListBegin()
9907
          for _i167 in xrange(_size163):
9908
            _elem168 = iprot.readI64();
9909
            self.success.append(_elem168)
5944 mandeep.dh 9910
          iprot.readListEnd()
9911
        else:
9912
          iprot.skip(ftype)
9913
      else:
9914
        iprot.skip(ftype)
9915
      iprot.readFieldEnd()
9916
    iprot.readStructEnd()
9917
 
9918
  def write(self, oprot):
9919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9921
      return
9922
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
9923
    if self.success is not None:
9924
      oprot.writeFieldBegin('success', TType.LIST, 0)
9925
      oprot.writeListBegin(TType.I64, len(self.success))
6512 kshitij.so 9926
      for iter169 in self.success:
9927
        oprot.writeI64(iter169)
5944 mandeep.dh 9928
      oprot.writeListEnd()
9929
      oprot.writeFieldEnd()
9930
    oprot.writeFieldStop()
9931
    oprot.writeStructEnd()
9932
 
9933
  def validate(self):
9934
    return
9935
 
9936
 
9937
  def __repr__(self):
9938
    L = ['%s=%r' % (key, value)
9939
      for key, value in self.__dict__.iteritems()]
9940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9941
 
9942
  def __eq__(self, other):
9943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9944
 
9945
  def __ne__(self, other):
9946
    return not (self == other)
9947
 
9948
class addProductNotification_args:
9949
  """
9950
  Attributes:
9951
   - itemId
9952
   - email
9953
  """
9954
 
9955
  thrift_spec = None
9956
  def __init__(self, itemId=None, email=None,):
9957
    self.itemId = itemId
9958
    self.email = email
9959
 
9960
  def read(self, iprot):
9961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9963
      return
9964
    iprot.readStructBegin()
9965
    while True:
9966
      (fname, ftype, fid) = iprot.readFieldBegin()
9967
      if ftype == TType.STOP:
9968
        break
9969
      if fid == -1:
9970
        if ftype == TType.I64:
9971
          self.itemId = iprot.readI64();
9972
        else:
9973
          iprot.skip(ftype)
9974
      elif fid == -2:
9975
        if ftype == TType.STRING:
9976
          self.email = iprot.readString();
9977
        else:
9978
          iprot.skip(ftype)
9979
      else:
9980
        iprot.skip(ftype)
9981
      iprot.readFieldEnd()
9982
    iprot.readStructEnd()
9983
 
9984
  def write(self, oprot):
9985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9987
      return
9988
    oprot.writeStructBegin('addProductNotification_args')
9989
    if self.email is not None:
9990
      oprot.writeFieldBegin('email', TType.STRING, -2)
9991
      oprot.writeString(self.email)
9992
      oprot.writeFieldEnd()
9993
    if self.itemId is not None:
9994
      oprot.writeFieldBegin('itemId', TType.I64, -1)
9995
      oprot.writeI64(self.itemId)
9996
      oprot.writeFieldEnd()
9997
    oprot.writeFieldStop()
9998
    oprot.writeStructEnd()
9999
 
10000
  def validate(self):
10001
    return
10002
 
10003
 
10004
  def __repr__(self):
10005
    L = ['%s=%r' % (key, value)
10006
      for key, value in self.__dict__.iteritems()]
10007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10008
 
10009
  def __eq__(self, other):
10010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10011
 
10012
  def __ne__(self, other):
10013
    return not (self == other)
10014
 
10015
class addProductNotification_result:
10016
  """
10017
  Attributes:
10018
   - success
10019
  """
10020
 
10021
  thrift_spec = (
10022
    (0, TType.BOOL, 'success', None, None, ), # 0
10023
  )
10024
 
10025
  def __init__(self, success=None,):
10026
    self.success = success
10027
 
10028
  def read(self, iprot):
10029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10031
      return
10032
    iprot.readStructBegin()
10033
    while True:
10034
      (fname, ftype, fid) = iprot.readFieldBegin()
10035
      if ftype == TType.STOP:
10036
        break
10037
      if fid == 0:
10038
        if ftype == TType.BOOL:
10039
          self.success = iprot.readBool();
10040
        else:
10041
          iprot.skip(ftype)
10042
      else:
10043
        iprot.skip(ftype)
10044
      iprot.readFieldEnd()
10045
    iprot.readStructEnd()
10046
 
10047
  def write(self, oprot):
10048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10050
      return
10051
    oprot.writeStructBegin('addProductNotification_result')
10052
    if self.success is not None:
10053
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10054
      oprot.writeBool(self.success)
10055
      oprot.writeFieldEnd()
10056
    oprot.writeFieldStop()
10057
    oprot.writeStructEnd()
10058
 
10059
  def validate(self):
10060
    return
10061
 
10062
 
10063
  def __repr__(self):
10064
    L = ['%s=%r' % (key, value)
10065
      for key, value in self.__dict__.iteritems()]
10066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10067
 
10068
  def __eq__(self, other):
10069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10070
 
10071
  def __ne__(self, other):
10072
    return not (self == other)
10073
 
10074
class sendProductNotifications_args:
10075
 
10076
  thrift_spec = (
10077
  )
10078
 
10079
  def read(self, iprot):
10080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10082
      return
10083
    iprot.readStructBegin()
10084
    while True:
10085
      (fname, ftype, fid) = iprot.readFieldBegin()
10086
      if ftype == TType.STOP:
10087
        break
10088
      else:
10089
        iprot.skip(ftype)
10090
      iprot.readFieldEnd()
10091
    iprot.readStructEnd()
10092
 
10093
  def write(self, oprot):
10094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10096
      return
10097
    oprot.writeStructBegin('sendProductNotifications_args')
10098
    oprot.writeFieldStop()
10099
    oprot.writeStructEnd()
10100
 
10101
  def validate(self):
10102
    return
10103
 
10104
 
10105
  def __repr__(self):
10106
    L = ['%s=%r' % (key, value)
10107
      for key, value in self.__dict__.iteritems()]
10108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10109
 
10110
  def __eq__(self, other):
10111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10112
 
10113
  def __ne__(self, other):
10114
    return not (self == other)
10115
 
10116
class sendProductNotifications_result:
10117
  """
10118
  Attributes:
10119
   - success
10120
  """
10121
 
10122
  thrift_spec = (
10123
    (0, TType.BOOL, 'success', None, None, ), # 0
10124
  )
10125
 
10126
  def __init__(self, success=None,):
10127
    self.success = success
10128
 
10129
  def read(self, iprot):
10130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10132
      return
10133
    iprot.readStructBegin()
10134
    while True:
10135
      (fname, ftype, fid) = iprot.readFieldBegin()
10136
      if ftype == TType.STOP:
10137
        break
10138
      if fid == 0:
10139
        if ftype == TType.BOOL:
10140
          self.success = iprot.readBool();
10141
        else:
10142
          iprot.skip(ftype)
10143
      else:
10144
        iprot.skip(ftype)
10145
      iprot.readFieldEnd()
10146
    iprot.readStructEnd()
10147
 
10148
  def write(self, oprot):
10149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10151
      return
10152
    oprot.writeStructBegin('sendProductNotifications_result')
10153
    if self.success is not None:
10154
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10155
      oprot.writeBool(self.success)
10156
      oprot.writeFieldEnd()
10157
    oprot.writeFieldStop()
10158
    oprot.writeStructEnd()
10159
 
10160
  def validate(self):
10161
    return
10162
 
10163
 
10164
  def __repr__(self):
10165
    L = ['%s=%r' % (key, value)
10166
      for key, value in self.__dict__.iteritems()]
10167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10168
 
10169
  def __eq__(self, other):
10170
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10171
 
10172
  def __ne__(self, other):
10173
    return not (self == other)
10174
 
10175
class getAllBrandsByCategory_args:
10176
  """
10177
  Attributes:
10178
   - categoryId
10179
  """
10180
 
10181
  thrift_spec = (
10182
    None, # 0
10183
    (1, TType.I64, 'categoryId', None, None, ), # 1
10184
  )
10185
 
10186
  def __init__(self, categoryId=None,):
10187
    self.categoryId = categoryId
10188
 
10189
  def read(self, iprot):
10190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10192
      return
10193
    iprot.readStructBegin()
10194
    while True:
10195
      (fname, ftype, fid) = iprot.readFieldBegin()
10196
      if ftype == TType.STOP:
10197
        break
10198
      if fid == 1:
10199
        if ftype == TType.I64:
10200
          self.categoryId = iprot.readI64();
10201
        else:
10202
          iprot.skip(ftype)
10203
      else:
10204
        iprot.skip(ftype)
10205
      iprot.readFieldEnd()
10206
    iprot.readStructEnd()
10207
 
10208
  def write(self, oprot):
10209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10211
      return
10212
    oprot.writeStructBegin('getAllBrandsByCategory_args')
10213
    if self.categoryId is not None:
10214
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
10215
      oprot.writeI64(self.categoryId)
10216
      oprot.writeFieldEnd()
10217
    oprot.writeFieldStop()
10218
    oprot.writeStructEnd()
10219
 
10220
  def validate(self):
10221
    return
10222
 
10223
 
10224
  def __repr__(self):
10225
    L = ['%s=%r' % (key, value)
10226
      for key, value in self.__dict__.iteritems()]
10227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10228
 
10229
  def __eq__(self, other):
10230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10231
 
10232
  def __ne__(self, other):
10233
    return not (self == other)
10234
 
10235
class getAllBrandsByCategory_result:
10236
  """
10237
  Attributes:
10238
   - success
10239
  """
10240
 
10241
  thrift_spec = (
10242
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10243
  )
10244
 
10245
  def __init__(self, success=None,):
10246
    self.success = success
10247
 
10248
  def read(self, iprot):
10249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10251
      return
10252
    iprot.readStructBegin()
10253
    while True:
10254
      (fname, ftype, fid) = iprot.readFieldBegin()
10255
      if ftype == TType.STOP:
10256
        break
10257
      if fid == 0:
10258
        if ftype == TType.LIST:
10259
          self.success = []
6512 kshitij.so 10260
          (_etype173, _size170) = iprot.readListBegin()
10261
          for _i174 in xrange(_size170):
10262
            _elem175 = iprot.readString();
10263
            self.success.append(_elem175)
5944 mandeep.dh 10264
          iprot.readListEnd()
10265
        else:
10266
          iprot.skip(ftype)
10267
      else:
10268
        iprot.skip(ftype)
10269
      iprot.readFieldEnd()
10270
    iprot.readStructEnd()
10271
 
10272
  def write(self, oprot):
10273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10275
      return
10276
    oprot.writeStructBegin('getAllBrandsByCategory_result')
10277
    if self.success is not None:
10278
      oprot.writeFieldBegin('success', TType.LIST, 0)
10279
      oprot.writeListBegin(TType.STRING, len(self.success))
6512 kshitij.so 10280
      for iter176 in self.success:
10281
        oprot.writeString(iter176)
5944 mandeep.dh 10282
      oprot.writeListEnd()
10283
      oprot.writeFieldEnd()
10284
    oprot.writeFieldStop()
10285
    oprot.writeStructEnd()
10286
 
10287
  def validate(self):
10288
    return
10289
 
10290
 
10291
  def __repr__(self):
10292
    L = ['%s=%r' % (key, value)
10293
      for key, value in self.__dict__.iteritems()]
10294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10295
 
10296
  def __eq__(self, other):
10297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10298
 
10299
  def __ne__(self, other):
10300
    return not (self == other)
10301
 
10302
class getAllBrands_args:
10303
 
10304
  thrift_spec = (
10305
  )
10306
 
10307
  def read(self, iprot):
10308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10310
      return
10311
    iprot.readStructBegin()
10312
    while True:
10313
      (fname, ftype, fid) = iprot.readFieldBegin()
10314
      if ftype == TType.STOP:
10315
        break
10316
      else:
10317
        iprot.skip(ftype)
10318
      iprot.readFieldEnd()
10319
    iprot.readStructEnd()
10320
 
10321
  def write(self, oprot):
10322
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10323
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10324
      return
10325
    oprot.writeStructBegin('getAllBrands_args')
10326
    oprot.writeFieldStop()
10327
    oprot.writeStructEnd()
10328
 
10329
  def validate(self):
10330
    return
10331
 
10332
 
10333
  def __repr__(self):
10334
    L = ['%s=%r' % (key, value)
10335
      for key, value in self.__dict__.iteritems()]
10336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10337
 
10338
  def __eq__(self, other):
10339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10340
 
10341
  def __ne__(self, other):
10342
    return not (self == other)
10343
 
10344
class getAllBrands_result:
10345
  """
10346
  Attributes:
10347
   - success
10348
  """
10349
 
10350
  thrift_spec = (
10351
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10352
  )
10353
 
10354
  def __init__(self, success=None,):
10355
    self.success = success
10356
 
10357
  def read(self, iprot):
10358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10360
      return
10361
    iprot.readStructBegin()
10362
    while True:
10363
      (fname, ftype, fid) = iprot.readFieldBegin()
10364
      if ftype == TType.STOP:
10365
        break
10366
      if fid == 0:
10367
        if ftype == TType.LIST:
10368
          self.success = []
6512 kshitij.so 10369
          (_etype180, _size177) = iprot.readListBegin()
10370
          for _i181 in xrange(_size177):
10371
            _elem182 = iprot.readString();
10372
            self.success.append(_elem182)
5944 mandeep.dh 10373
          iprot.readListEnd()
10374
        else:
10375
          iprot.skip(ftype)
10376
      else:
10377
        iprot.skip(ftype)
10378
      iprot.readFieldEnd()
10379
    iprot.readStructEnd()
10380
 
10381
  def write(self, oprot):
10382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10384
      return
10385
    oprot.writeStructBegin('getAllBrands_result')
10386
    if self.success is not None:
10387
      oprot.writeFieldBegin('success', TType.LIST, 0)
10388
      oprot.writeListBegin(TType.STRING, len(self.success))
6512 kshitij.so 10389
      for iter183 in self.success:
10390
        oprot.writeString(iter183)
5944 mandeep.dh 10391
      oprot.writeListEnd()
10392
      oprot.writeFieldEnd()
10393
    oprot.writeFieldStop()
10394
    oprot.writeStructEnd()
10395
 
10396
  def validate(self):
10397
    return
10398
 
10399
 
10400
  def __repr__(self):
10401
    L = ['%s=%r' % (key, value)
10402
      for key, value in self.__dict__.iteritems()]
10403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10404
 
10405
  def __eq__(self, other):
10406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10407
 
10408
  def __ne__(self, other):
10409
    return not (self == other)
10410
 
10411
class getAllSources_args:
10412
 
10413
  thrift_spec = (
10414
  )
10415
 
10416
  def read(self, iprot):
10417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10419
      return
10420
    iprot.readStructBegin()
10421
    while True:
10422
      (fname, ftype, fid) = iprot.readFieldBegin()
10423
      if ftype == TType.STOP:
10424
        break
10425
      else:
10426
        iprot.skip(ftype)
10427
      iprot.readFieldEnd()
10428
    iprot.readStructEnd()
10429
 
10430
  def write(self, oprot):
10431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10433
      return
10434
    oprot.writeStructBegin('getAllSources_args')
10435
    oprot.writeFieldStop()
10436
    oprot.writeStructEnd()
10437
 
10438
  def validate(self):
10439
    return
10440
 
10441
 
10442
  def __repr__(self):
10443
    L = ['%s=%r' % (key, value)
10444
      for key, value in self.__dict__.iteritems()]
10445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10446
 
10447
  def __eq__(self, other):
10448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10449
 
10450
  def __ne__(self, other):
10451
    return not (self == other)
10452
 
10453
class getAllSources_result:
10454
  """
10455
  Attributes:
10456
   - success
10457
  """
10458
 
10459
  thrift_spec = (
10460
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
10461
  )
10462
 
10463
  def __init__(self, success=None,):
10464
    self.success = success
10465
 
10466
  def read(self, iprot):
10467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10469
      return
10470
    iprot.readStructBegin()
10471
    while True:
10472
      (fname, ftype, fid) = iprot.readFieldBegin()
10473
      if ftype == TType.STOP:
10474
        break
10475
      if fid == 0:
10476
        if ftype == TType.LIST:
10477
          self.success = []
6512 kshitij.so 10478
          (_etype187, _size184) = iprot.readListBegin()
10479
          for _i188 in xrange(_size184):
10480
            _elem189 = Source()
10481
            _elem189.read(iprot)
10482
            self.success.append(_elem189)
5944 mandeep.dh 10483
          iprot.readListEnd()
10484
        else:
10485
          iprot.skip(ftype)
10486
      else:
10487
        iprot.skip(ftype)
10488
      iprot.readFieldEnd()
10489
    iprot.readStructEnd()
10490
 
10491
  def write(self, oprot):
10492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10494
      return
10495
    oprot.writeStructBegin('getAllSources_result')
10496
    if self.success is not None:
10497
      oprot.writeFieldBegin('success', TType.LIST, 0)
10498
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 10499
      for iter190 in self.success:
10500
        iter190.write(oprot)
5944 mandeep.dh 10501
      oprot.writeListEnd()
10502
      oprot.writeFieldEnd()
10503
    oprot.writeFieldStop()
10504
    oprot.writeStructEnd()
10505
 
10506
  def validate(self):
10507
    return
10508
 
10509
 
10510
  def __repr__(self):
10511
    L = ['%s=%r' % (key, value)
10512
      for key, value in self.__dict__.iteritems()]
10513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10514
 
10515
  def __eq__(self, other):
10516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10517
 
10518
  def __ne__(self, other):
10519
    return not (self == other)
10520
 
10521
class getItemPricingBySource_args:
10522
  """
10523
  Attributes:
10524
   - itemId
10525
   - sourceId
10526
  """
10527
 
10528
  thrift_spec = (
10529
    None, # 0
10530
    (1, TType.I64, 'itemId', None, None, ), # 1
10531
    (2, TType.I64, 'sourceId', None, None, ), # 2
10532
  )
10533
 
10534
  def __init__(self, itemId=None, sourceId=None,):
10535
    self.itemId = itemId
10536
    self.sourceId = sourceId
10537
 
10538
  def read(self, iprot):
10539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10541
      return
10542
    iprot.readStructBegin()
10543
    while True:
10544
      (fname, ftype, fid) = iprot.readFieldBegin()
10545
      if ftype == TType.STOP:
10546
        break
10547
      if fid == 1:
10548
        if ftype == TType.I64:
10549
          self.itemId = iprot.readI64();
10550
        else:
10551
          iprot.skip(ftype)
10552
      elif fid == 2:
10553
        if ftype == TType.I64:
10554
          self.sourceId = iprot.readI64();
10555
        else:
10556
          iprot.skip(ftype)
10557
      else:
10558
        iprot.skip(ftype)
10559
      iprot.readFieldEnd()
10560
    iprot.readStructEnd()
10561
 
10562
  def write(self, oprot):
10563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10565
      return
10566
    oprot.writeStructBegin('getItemPricingBySource_args')
10567
    if self.itemId is not None:
10568
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10569
      oprot.writeI64(self.itemId)
10570
      oprot.writeFieldEnd()
10571
    if self.sourceId is not None:
10572
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
10573
      oprot.writeI64(self.sourceId)
10574
      oprot.writeFieldEnd()
10575
    oprot.writeFieldStop()
10576
    oprot.writeStructEnd()
10577
 
10578
  def validate(self):
10579
    return
10580
 
10581
 
10582
  def __repr__(self):
10583
    L = ['%s=%r' % (key, value)
10584
      for key, value in self.__dict__.iteritems()]
10585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10586
 
10587
  def __eq__(self, other):
10588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10589
 
10590
  def __ne__(self, other):
10591
    return not (self == other)
10592
 
10593
class getItemPricingBySource_result:
10594
  """
10595
  Attributes:
10596
   - success
10597
   - cex
10598
  """
10599
 
10600
  thrift_spec = (
10601
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
10602
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10603
  )
10604
 
10605
  def __init__(self, success=None, cex=None,):
10606
    self.success = success
10607
    self.cex = cex
10608
 
10609
  def read(self, iprot):
10610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10612
      return
10613
    iprot.readStructBegin()
10614
    while True:
10615
      (fname, ftype, fid) = iprot.readFieldBegin()
10616
      if ftype == TType.STOP:
10617
        break
10618
      if fid == 0:
10619
        if ftype == TType.STRUCT:
10620
          self.success = SourceItemPricing()
10621
          self.success.read(iprot)
10622
        else:
10623
          iprot.skip(ftype)
10624
      elif fid == 1:
10625
        if ftype == TType.STRUCT:
10626
          self.cex = CatalogServiceException()
10627
          self.cex.read(iprot)
10628
        else:
10629
          iprot.skip(ftype)
10630
      else:
10631
        iprot.skip(ftype)
10632
      iprot.readFieldEnd()
10633
    iprot.readStructEnd()
10634
 
10635
  def write(self, oprot):
10636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10638
      return
10639
    oprot.writeStructBegin('getItemPricingBySource_result')
10640
    if self.success is not None:
10641
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10642
      self.success.write(oprot)
10643
      oprot.writeFieldEnd()
10644
    if self.cex is not None:
10645
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10646
      self.cex.write(oprot)
10647
      oprot.writeFieldEnd()
10648
    oprot.writeFieldStop()
10649
    oprot.writeStructEnd()
10650
 
10651
  def validate(self):
10652
    return
10653
 
10654
 
10655
  def __repr__(self):
10656
    L = ['%s=%r' % (key, value)
10657
      for key, value in self.__dict__.iteritems()]
10658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10659
 
10660
  def __eq__(self, other):
10661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10662
 
10663
  def __ne__(self, other):
10664
    return not (self == other)
10665
 
10666
class addSourceItemPricing_args:
10667
  """
10668
  Attributes:
10669
   - sourceItemPricing
10670
  """
10671
 
10672
  thrift_spec = (
10673
    None, # 0
10674
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
10675
  )
10676
 
10677
  def __init__(self, sourceItemPricing=None,):
10678
    self.sourceItemPricing = sourceItemPricing
10679
 
10680
  def read(self, iprot):
10681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10683
      return
10684
    iprot.readStructBegin()
10685
    while True:
10686
      (fname, ftype, fid) = iprot.readFieldBegin()
10687
      if ftype == TType.STOP:
10688
        break
10689
      if fid == 1:
10690
        if ftype == TType.STRUCT:
10691
          self.sourceItemPricing = SourceItemPricing()
10692
          self.sourceItemPricing.read(iprot)
10693
        else:
10694
          iprot.skip(ftype)
10695
      else:
10696
        iprot.skip(ftype)
10697
      iprot.readFieldEnd()
10698
    iprot.readStructEnd()
10699
 
10700
  def write(self, oprot):
10701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10703
      return
10704
    oprot.writeStructBegin('addSourceItemPricing_args')
10705
    if self.sourceItemPricing is not None:
10706
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
10707
      self.sourceItemPricing.write(oprot)
10708
      oprot.writeFieldEnd()
10709
    oprot.writeFieldStop()
10710
    oprot.writeStructEnd()
10711
 
10712
  def validate(self):
10713
    return
10714
 
10715
 
10716
  def __repr__(self):
10717
    L = ['%s=%r' % (key, value)
10718
      for key, value in self.__dict__.iteritems()]
10719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10720
 
10721
  def __eq__(self, other):
10722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10723
 
10724
  def __ne__(self, other):
10725
    return not (self == other)
10726
 
10727
class addSourceItemPricing_result:
10728
  """
10729
  Attributes:
10730
   - cex
10731
  """
10732
 
10733
  thrift_spec = (
10734
    None, # 0
10735
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10736
  )
10737
 
10738
  def __init__(self, cex=None,):
10739
    self.cex = cex
10740
 
10741
  def read(self, iprot):
10742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10744
      return
10745
    iprot.readStructBegin()
10746
    while True:
10747
      (fname, ftype, fid) = iprot.readFieldBegin()
10748
      if ftype == TType.STOP:
10749
        break
10750
      if fid == 1:
10751
        if ftype == TType.STRUCT:
10752
          self.cex = CatalogServiceException()
10753
          self.cex.read(iprot)
10754
        else:
10755
          iprot.skip(ftype)
10756
      else:
10757
        iprot.skip(ftype)
10758
      iprot.readFieldEnd()
10759
    iprot.readStructEnd()
10760
 
10761
  def write(self, oprot):
10762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10764
      return
10765
    oprot.writeStructBegin('addSourceItemPricing_result')
10766
    if self.cex is not None:
10767
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10768
      self.cex.write(oprot)
10769
      oprot.writeFieldEnd()
10770
    oprot.writeFieldStop()
10771
    oprot.writeStructEnd()
10772
 
10773
  def validate(self):
10774
    return
10775
 
10776
 
10777
  def __repr__(self):
10778
    L = ['%s=%r' % (key, value)
10779
      for key, value in self.__dict__.iteritems()]
10780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10781
 
10782
  def __eq__(self, other):
10783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10784
 
10785
  def __ne__(self, other):
10786
    return not (self == other)
10787
 
10788
class getAllSourcePricing_args:
10789
  """
10790
  Attributes:
10791
   - itemId
10792
  """
10793
 
10794
  thrift_spec = (
10795
    None, # 0
10796
    (1, TType.I64, 'itemId', None, None, ), # 1
10797
  )
10798
 
10799
  def __init__(self, itemId=None,):
10800
    self.itemId = itemId
10801
 
10802
  def read(self, iprot):
10803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10805
      return
10806
    iprot.readStructBegin()
10807
    while True:
10808
      (fname, ftype, fid) = iprot.readFieldBegin()
10809
      if ftype == TType.STOP:
10810
        break
10811
      if fid == 1:
10812
        if ftype == TType.I64:
10813
          self.itemId = iprot.readI64();
10814
        else:
10815
          iprot.skip(ftype)
10816
      else:
10817
        iprot.skip(ftype)
10818
      iprot.readFieldEnd()
10819
    iprot.readStructEnd()
10820
 
10821
  def write(self, oprot):
10822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10824
      return
10825
    oprot.writeStructBegin('getAllSourcePricing_args')
10826
    if self.itemId is not None:
10827
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10828
      oprot.writeI64(self.itemId)
10829
      oprot.writeFieldEnd()
10830
    oprot.writeFieldStop()
10831
    oprot.writeStructEnd()
10832
 
10833
  def validate(self):
10834
    return
10835
 
10836
 
10837
  def __repr__(self):
10838
    L = ['%s=%r' % (key, value)
10839
      for key, value in self.__dict__.iteritems()]
10840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10841
 
10842
  def __eq__(self, other):
10843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10844
 
10845
  def __ne__(self, other):
10846
    return not (self == other)
10847
 
10848
class getAllSourcePricing_result:
10849
  """
10850
  Attributes:
10851
   - success
10852
   - cex
10853
  """
10854
 
10855
  thrift_spec = (
10856
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
10857
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10858
  )
10859
 
10860
  def __init__(self, success=None, cex=None,):
10861
    self.success = success
10862
    self.cex = cex
10863
 
10864
  def read(self, iprot):
10865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10867
      return
10868
    iprot.readStructBegin()
10869
    while True:
10870
      (fname, ftype, fid) = iprot.readFieldBegin()
10871
      if ftype == TType.STOP:
10872
        break
10873
      if fid == 0:
10874
        if ftype == TType.LIST:
10875
          self.success = []
6512 kshitij.so 10876
          (_etype194, _size191) = iprot.readListBegin()
10877
          for _i195 in xrange(_size191):
10878
            _elem196 = SourceItemPricing()
10879
            _elem196.read(iprot)
10880
            self.success.append(_elem196)
5944 mandeep.dh 10881
          iprot.readListEnd()
10882
        else:
10883
          iprot.skip(ftype)
10884
      elif fid == 1:
10885
        if ftype == TType.STRUCT:
10886
          self.cex = CatalogServiceException()
10887
          self.cex.read(iprot)
10888
        else:
10889
          iprot.skip(ftype)
10890
      else:
10891
        iprot.skip(ftype)
10892
      iprot.readFieldEnd()
10893
    iprot.readStructEnd()
10894
 
10895
  def write(self, oprot):
10896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10898
      return
10899
    oprot.writeStructBegin('getAllSourcePricing_result')
10900
    if self.success is not None:
10901
      oprot.writeFieldBegin('success', TType.LIST, 0)
10902
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 10903
      for iter197 in self.success:
10904
        iter197.write(oprot)
5944 mandeep.dh 10905
      oprot.writeListEnd()
10906
      oprot.writeFieldEnd()
10907
    if self.cex is not None:
10908
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10909
      self.cex.write(oprot)
10910
      oprot.writeFieldEnd()
10911
    oprot.writeFieldStop()
10912
    oprot.writeStructEnd()
10913
 
10914
  def validate(self):
10915
    return
10916
 
10917
 
10918
  def __repr__(self):
10919
    L = ['%s=%r' % (key, value)
10920
      for key, value in self.__dict__.iteritems()]
10921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10922
 
10923
  def __eq__(self, other):
10924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10925
 
10926
  def __ne__(self, other):
10927
    return not (self == other)
10928
 
10929
class getItemForSource_args:
10930
  """
10931
  Attributes:
10932
   - item_id
10933
   - sourceId
10934
  """
10935
 
10936
  thrift_spec = (
10937
    None, # 0
10938
    (1, TType.I64, 'item_id', None, None, ), # 1
10939
    (2, TType.I64, 'sourceId', None, None, ), # 2
10940
  )
10941
 
10942
  def __init__(self, item_id=None, sourceId=None,):
10943
    self.item_id = item_id
10944
    self.sourceId = sourceId
10945
 
10946
  def read(self, iprot):
10947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10949
      return
10950
    iprot.readStructBegin()
10951
    while True:
10952
      (fname, ftype, fid) = iprot.readFieldBegin()
10953
      if ftype == TType.STOP:
10954
        break
10955
      if fid == 1:
10956
        if ftype == TType.I64:
10957
          self.item_id = iprot.readI64();
10958
        else:
10959
          iprot.skip(ftype)
10960
      elif fid == 2:
10961
        if ftype == TType.I64:
10962
          self.sourceId = iprot.readI64();
10963
        else:
10964
          iprot.skip(ftype)
10965
      else:
10966
        iprot.skip(ftype)
10967
      iprot.readFieldEnd()
10968
    iprot.readStructEnd()
10969
 
10970
  def write(self, oprot):
10971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10973
      return
10974
    oprot.writeStructBegin('getItemForSource_args')
10975
    if self.item_id is not None:
10976
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10977
      oprot.writeI64(self.item_id)
10978
      oprot.writeFieldEnd()
10979
    if self.sourceId is not None:
10980
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
10981
      oprot.writeI64(self.sourceId)
10982
      oprot.writeFieldEnd()
10983
    oprot.writeFieldStop()
10984
    oprot.writeStructEnd()
10985
 
10986
  def validate(self):
10987
    return
10988
 
10989
 
10990
  def __repr__(self):
10991
    L = ['%s=%r' % (key, value)
10992
      for key, value in self.__dict__.iteritems()]
10993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10994
 
10995
  def __eq__(self, other):
10996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10997
 
10998
  def __ne__(self, other):
10999
    return not (self == other)
11000
 
11001
class getItemForSource_result:
11002
  """
11003
  Attributes:
11004
   - success
11005
   - cex
11006
  """
11007
 
11008
  thrift_spec = (
11009
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
11010
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11011
  )
11012
 
11013
  def __init__(self, success=None, cex=None,):
11014
    self.success = success
11015
    self.cex = cex
11016
 
11017
  def read(self, iprot):
11018
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11019
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11020
      return
11021
    iprot.readStructBegin()
11022
    while True:
11023
      (fname, ftype, fid) = iprot.readFieldBegin()
11024
      if ftype == TType.STOP:
11025
        break
11026
      if fid == 0:
11027
        if ftype == TType.STRUCT:
11028
          self.success = Item()
11029
          self.success.read(iprot)
11030
        else:
11031
          iprot.skip(ftype)
11032
      elif fid == 1:
11033
        if ftype == TType.STRUCT:
11034
          self.cex = CatalogServiceException()
11035
          self.cex.read(iprot)
11036
        else:
11037
          iprot.skip(ftype)
11038
      else:
11039
        iprot.skip(ftype)
11040
      iprot.readFieldEnd()
11041
    iprot.readStructEnd()
11042
 
11043
  def write(self, oprot):
11044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11046
      return
11047
    oprot.writeStructBegin('getItemForSource_result')
11048
    if self.success is not None:
11049
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11050
      self.success.write(oprot)
11051
      oprot.writeFieldEnd()
11052
    if self.cex is not None:
11053
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11054
      self.cex.write(oprot)
11055
      oprot.writeFieldEnd()
11056
    oprot.writeFieldStop()
11057
    oprot.writeStructEnd()
11058
 
11059
  def validate(self):
11060
    return
11061
 
11062
 
11063
  def __repr__(self):
11064
    L = ['%s=%r' % (key, value)
11065
      for key, value in self.__dict__.iteritems()]
11066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11067
 
11068
  def __eq__(self, other):
11069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11070
 
11071
  def __ne__(self, other):
11072
    return not (self == other)
11073
 
11074
class searchItemsInRange_args:
11075
  """
11076
  Attributes:
11077
   - searchTerms
11078
   - offset
11079
   - limit
11080
  """
11081
 
11082
  thrift_spec = (
11083
    None, # 0
11084
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11085
    (2, TType.I64, 'offset', None, None, ), # 2
11086
    (3, TType.I64, 'limit', None, None, ), # 3
11087
  )
11088
 
11089
  def __init__(self, searchTerms=None, offset=None, limit=None,):
11090
    self.searchTerms = searchTerms
11091
    self.offset = offset
11092
    self.limit = limit
11093
 
11094
  def read(self, iprot):
11095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11097
      return
11098
    iprot.readStructBegin()
11099
    while True:
11100
      (fname, ftype, fid) = iprot.readFieldBegin()
11101
      if ftype == TType.STOP:
11102
        break
11103
      if fid == 1:
11104
        if ftype == TType.LIST:
11105
          self.searchTerms = []
6512 kshitij.so 11106
          (_etype201, _size198) = iprot.readListBegin()
11107
          for _i202 in xrange(_size198):
11108
            _elem203 = iprot.readString();
11109
            self.searchTerms.append(_elem203)
5944 mandeep.dh 11110
          iprot.readListEnd()
11111
        else:
11112
          iprot.skip(ftype)
11113
      elif fid == 2:
11114
        if ftype == TType.I64:
11115
          self.offset = iprot.readI64();
11116
        else:
11117
          iprot.skip(ftype)
11118
      elif fid == 3:
11119
        if ftype == TType.I64:
11120
          self.limit = iprot.readI64();
11121
        else:
11122
          iprot.skip(ftype)
11123
      else:
11124
        iprot.skip(ftype)
11125
      iprot.readFieldEnd()
11126
    iprot.readStructEnd()
11127
 
11128
  def write(self, oprot):
11129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11131
      return
11132
    oprot.writeStructBegin('searchItemsInRange_args')
11133
    if self.searchTerms is not None:
11134
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11135
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6512 kshitij.so 11136
      for iter204 in self.searchTerms:
11137
        oprot.writeString(iter204)
5944 mandeep.dh 11138
      oprot.writeListEnd()
11139
      oprot.writeFieldEnd()
11140
    if self.offset is not None:
11141
      oprot.writeFieldBegin('offset', TType.I64, 2)
11142
      oprot.writeI64(self.offset)
11143
      oprot.writeFieldEnd()
11144
    if self.limit is not None:
11145
      oprot.writeFieldBegin('limit', TType.I64, 3)
11146
      oprot.writeI64(self.limit)
11147
      oprot.writeFieldEnd()
11148
    oprot.writeFieldStop()
11149
    oprot.writeStructEnd()
11150
 
11151
  def validate(self):
11152
    return
11153
 
11154
 
11155
  def __repr__(self):
11156
    L = ['%s=%r' % (key, value)
11157
      for key, value in self.__dict__.iteritems()]
11158
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11159
 
11160
  def __eq__(self, other):
11161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11162
 
11163
  def __ne__(self, other):
11164
    return not (self == other)
11165
 
11166
class searchItemsInRange_result:
11167
  """
11168
  Attributes:
11169
   - success
11170
  """
11171
 
11172
  thrift_spec = (
11173
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11174
  )
11175
 
11176
  def __init__(self, success=None,):
11177
    self.success = success
11178
 
11179
  def read(self, iprot):
11180
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11181
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11182
      return
11183
    iprot.readStructBegin()
11184
    while True:
11185
      (fname, ftype, fid) = iprot.readFieldBegin()
11186
      if ftype == TType.STOP:
11187
        break
11188
      if fid == 0:
11189
        if ftype == TType.LIST:
11190
          self.success = []
6512 kshitij.so 11191
          (_etype208, _size205) = iprot.readListBegin()
11192
          for _i209 in xrange(_size205):
11193
            _elem210 = Item()
11194
            _elem210.read(iprot)
11195
            self.success.append(_elem210)
5944 mandeep.dh 11196
          iprot.readListEnd()
11197
        else:
11198
          iprot.skip(ftype)
11199
      else:
11200
        iprot.skip(ftype)
11201
      iprot.readFieldEnd()
11202
    iprot.readStructEnd()
11203
 
11204
  def write(self, oprot):
11205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11207
      return
11208
    oprot.writeStructBegin('searchItemsInRange_result')
11209
    if self.success is not None:
11210
      oprot.writeFieldBegin('success', TType.LIST, 0)
11211
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11212
      for iter211 in self.success:
11213
        iter211.write(oprot)
5944 mandeep.dh 11214
      oprot.writeListEnd()
11215
      oprot.writeFieldEnd()
11216
    oprot.writeFieldStop()
11217
    oprot.writeStructEnd()
11218
 
11219
  def validate(self):
11220
    return
11221
 
11222
 
11223
  def __repr__(self):
11224
    L = ['%s=%r' % (key, value)
11225
      for key, value in self.__dict__.iteritems()]
11226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11227
 
11228
  def __eq__(self, other):
11229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11230
 
11231
  def __ne__(self, other):
11232
    return not (self == other)
11233
 
11234
class getSearchResultCount_args:
11235
  """
11236
  Attributes:
11237
   - searchTerms
11238
  """
11239
 
11240
  thrift_spec = (
11241
    None, # 0
11242
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11243
  )
11244
 
11245
  def __init__(self, searchTerms=None,):
11246
    self.searchTerms = searchTerms
11247
 
11248
  def read(self, iprot):
11249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11251
      return
11252
    iprot.readStructBegin()
11253
    while True:
11254
      (fname, ftype, fid) = iprot.readFieldBegin()
11255
      if ftype == TType.STOP:
11256
        break
11257
      if fid == 1:
11258
        if ftype == TType.LIST:
11259
          self.searchTerms = []
6512 kshitij.so 11260
          (_etype215, _size212) = iprot.readListBegin()
11261
          for _i216 in xrange(_size212):
11262
            _elem217 = iprot.readString();
11263
            self.searchTerms.append(_elem217)
5944 mandeep.dh 11264
          iprot.readListEnd()
11265
        else:
11266
          iprot.skip(ftype)
11267
      else:
11268
        iprot.skip(ftype)
11269
      iprot.readFieldEnd()
11270
    iprot.readStructEnd()
11271
 
11272
  def write(self, oprot):
11273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11275
      return
11276
    oprot.writeStructBegin('getSearchResultCount_args')
11277
    if self.searchTerms is not None:
11278
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11279
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6512 kshitij.so 11280
      for iter218 in self.searchTerms:
11281
        oprot.writeString(iter218)
5944 mandeep.dh 11282
      oprot.writeListEnd()
11283
      oprot.writeFieldEnd()
11284
    oprot.writeFieldStop()
11285
    oprot.writeStructEnd()
11286
 
11287
  def validate(self):
11288
    return
11289
 
11290
 
11291
  def __repr__(self):
11292
    L = ['%s=%r' % (key, value)
11293
      for key, value in self.__dict__.iteritems()]
11294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11295
 
11296
  def __eq__(self, other):
11297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11298
 
11299
  def __ne__(self, other):
11300
    return not (self == other)
11301
 
11302
class getSearchResultCount_result:
11303
  """
11304
  Attributes:
11305
   - success
11306
  """
11307
 
11308
  thrift_spec = (
11309
    (0, TType.I32, 'success', None, None, ), # 0
11310
  )
11311
 
11312
  def __init__(self, success=None,):
11313
    self.success = success
11314
 
11315
  def read(self, iprot):
11316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11318
      return
11319
    iprot.readStructBegin()
11320
    while True:
11321
      (fname, ftype, fid) = iprot.readFieldBegin()
11322
      if ftype == TType.STOP:
11323
        break
11324
      if fid == 0:
11325
        if ftype == TType.I32:
11326
          self.success = iprot.readI32();
11327
        else:
11328
          iprot.skip(ftype)
11329
      else:
11330
        iprot.skip(ftype)
11331
      iprot.readFieldEnd()
11332
    iprot.readStructEnd()
11333
 
11334
  def write(self, oprot):
11335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11337
      return
11338
    oprot.writeStructBegin('getSearchResultCount_result')
11339
    if self.success is not None:
11340
      oprot.writeFieldBegin('success', TType.I32, 0)
11341
      oprot.writeI32(self.success)
11342
      oprot.writeFieldEnd()
11343
    oprot.writeFieldStop()
11344
    oprot.writeStructEnd()
11345
 
11346
  def validate(self):
11347
    return
11348
 
11349
 
11350
  def __repr__(self):
11351
    L = ['%s=%r' % (key, value)
11352
      for key, value in self.__dict__.iteritems()]
11353
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11354
 
11355
  def __eq__(self, other):
11356
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11357
 
11358
  def __ne__(self, other):
11359
    return not (self == other)
11360
 
11361
class getProductNotifications_args:
11362
  """
11363
  Attributes:
11364
   - startDateTime
11365
  """
11366
 
11367
  thrift_spec = (
11368
    None, # 0
11369
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11370
  )
11371
 
11372
  def __init__(self, startDateTime=None,):
11373
    self.startDateTime = startDateTime
11374
 
11375
  def read(self, iprot):
11376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11378
      return
11379
    iprot.readStructBegin()
11380
    while True:
11381
      (fname, ftype, fid) = iprot.readFieldBegin()
11382
      if ftype == TType.STOP:
11383
        break
11384
      if fid == 1:
11385
        if ftype == TType.I64:
11386
          self.startDateTime = iprot.readI64();
11387
        else:
11388
          iprot.skip(ftype)
11389
      else:
11390
        iprot.skip(ftype)
11391
      iprot.readFieldEnd()
11392
    iprot.readStructEnd()
11393
 
11394
  def write(self, oprot):
11395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11397
      return
11398
    oprot.writeStructBegin('getProductNotifications_args')
11399
    if self.startDateTime is not None:
11400
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11401
      oprot.writeI64(self.startDateTime)
11402
      oprot.writeFieldEnd()
11403
    oprot.writeFieldStop()
11404
    oprot.writeStructEnd()
11405
 
11406
  def validate(self):
11407
    return
11408
 
11409
 
11410
  def __repr__(self):
11411
    L = ['%s=%r' % (key, value)
11412
      for key, value in self.__dict__.iteritems()]
11413
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11414
 
11415
  def __eq__(self, other):
11416
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11417
 
11418
  def __ne__(self, other):
11419
    return not (self == other)
11420
 
11421
class getProductNotifications_result:
11422
  """
11423
  Attributes:
11424
   - success
11425
  """
11426
 
11427
  thrift_spec = (
11428
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
11429
  )
11430
 
11431
  def __init__(self, success=None,):
11432
    self.success = success
11433
 
11434
  def read(self, iprot):
11435
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11436
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11437
      return
11438
    iprot.readStructBegin()
11439
    while True:
11440
      (fname, ftype, fid) = iprot.readFieldBegin()
11441
      if ftype == TType.STOP:
11442
        break
11443
      if fid == 0:
11444
        if ftype == TType.LIST:
11445
          self.success = []
6512 kshitij.so 11446
          (_etype222, _size219) = iprot.readListBegin()
11447
          for _i223 in xrange(_size219):
11448
            _elem224 = ProductNotificationRequest()
11449
            _elem224.read(iprot)
11450
            self.success.append(_elem224)
5944 mandeep.dh 11451
          iprot.readListEnd()
11452
        else:
11453
          iprot.skip(ftype)
11454
      else:
11455
        iprot.skip(ftype)
11456
      iprot.readFieldEnd()
11457
    iprot.readStructEnd()
11458
 
11459
  def write(self, oprot):
11460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11462
      return
11463
    oprot.writeStructBegin('getProductNotifications_result')
11464
    if self.success is not None:
11465
      oprot.writeFieldBegin('success', TType.LIST, 0)
11466
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11467
      for iter225 in self.success:
11468
        iter225.write(oprot)
5944 mandeep.dh 11469
      oprot.writeListEnd()
11470
      oprot.writeFieldEnd()
11471
    oprot.writeFieldStop()
11472
    oprot.writeStructEnd()
11473
 
11474
  def validate(self):
11475
    return
11476
 
11477
 
11478
  def __repr__(self):
11479
    L = ['%s=%r' % (key, value)
11480
      for key, value in self.__dict__.iteritems()]
11481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11482
 
11483
  def __eq__(self, other):
11484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11485
 
11486
  def __ne__(self, other):
11487
    return not (self == other)
11488
 
11489
class getProductNotificationRequestCount_args:
11490
  """
11491
  Attributes:
11492
   - startDateTime
11493
  """
11494
 
11495
  thrift_spec = (
11496
    None, # 0
11497
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11498
  )
11499
 
11500
  def __init__(self, startDateTime=None,):
11501
    self.startDateTime = startDateTime
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 == 1:
11513
        if ftype == TType.I64:
11514
          self.startDateTime = iprot.readI64();
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('getProductNotificationRequestCount_args')
11527
    if self.startDateTime is not None:
11528
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11529
      oprot.writeI64(self.startDateTime)
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 getProductNotificationRequestCount_result:
11550
  """
11551
  Attributes:
11552
   - success
11553
  """
11554
 
11555
  thrift_spec = (
11556
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
11557
  )
11558
 
11559
  def __init__(self, success=None,):
11560
    self.success = success
11561
 
11562
  def read(self, iprot):
11563
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11564
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11565
      return
11566
    iprot.readStructBegin()
11567
    while True:
11568
      (fname, ftype, fid) = iprot.readFieldBegin()
11569
      if ftype == TType.STOP:
11570
        break
11571
      if fid == 0:
11572
        if ftype == TType.LIST:
11573
          self.success = []
6512 kshitij.so 11574
          (_etype229, _size226) = iprot.readListBegin()
11575
          for _i230 in xrange(_size226):
11576
            _elem231 = ProductNotificationRequestCount()
11577
            _elem231.read(iprot)
11578
            self.success.append(_elem231)
5944 mandeep.dh 11579
          iprot.readListEnd()
11580
        else:
11581
          iprot.skip(ftype)
11582
      else:
11583
        iprot.skip(ftype)
11584
      iprot.readFieldEnd()
11585
    iprot.readStructEnd()
11586
 
11587
  def write(self, oprot):
11588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11590
      return
11591
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
11592
    if self.success is not None:
11593
      oprot.writeFieldBegin('success', TType.LIST, 0)
11594
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11595
      for iter232 in self.success:
11596
        iter232.write(oprot)
5944 mandeep.dh 11597
      oprot.writeListEnd()
11598
      oprot.writeFieldEnd()
11599
    oprot.writeFieldStop()
11600
    oprot.writeStructEnd()
11601
 
11602
  def validate(self):
11603
    return
11604
 
11605
 
11606
  def __repr__(self):
11607
    L = ['%s=%r' % (key, value)
11608
      for key, value in self.__dict__.iteritems()]
11609
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11610
 
11611
  def __eq__(self, other):
11612
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11613
 
11614
  def __ne__(self, other):
11615
    return not (self == other)
11616
 
11617
class addAuthorizationLog_args:
11618
  """
11619
  Attributes:
11620
   - itemId
11621
   - username
11622
   - reason
11623
  """
11624
 
11625
  thrift_spec = (
11626
    None, # 0
11627
    (1, TType.I64, 'itemId', None, None, ), # 1
11628
    (2, TType.STRING, 'username', None, None, ), # 2
11629
    (3, TType.STRING, 'reason', None, None, ), # 3
11630
  )
11631
 
11632
  def __init__(self, itemId=None, username=None, reason=None,):
11633
    self.itemId = itemId
11634
    self.username = username
11635
    self.reason = reason
11636
 
11637
  def read(self, iprot):
11638
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11639
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11640
      return
11641
    iprot.readStructBegin()
11642
    while True:
11643
      (fname, ftype, fid) = iprot.readFieldBegin()
11644
      if ftype == TType.STOP:
11645
        break
11646
      if fid == 1:
11647
        if ftype == TType.I64:
11648
          self.itemId = iprot.readI64();
11649
        else:
11650
          iprot.skip(ftype)
11651
      elif fid == 2:
11652
        if ftype == TType.STRING:
11653
          self.username = iprot.readString();
11654
        else:
11655
          iprot.skip(ftype)
11656
      elif fid == 3:
11657
        if ftype == TType.STRING:
11658
          self.reason = iprot.readString();
11659
        else:
11660
          iprot.skip(ftype)
11661
      else:
11662
        iprot.skip(ftype)
11663
      iprot.readFieldEnd()
11664
    iprot.readStructEnd()
11665
 
11666
  def write(self, oprot):
11667
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11668
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11669
      return
11670
    oprot.writeStructBegin('addAuthorizationLog_args')
11671
    if self.itemId is not None:
11672
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11673
      oprot.writeI64(self.itemId)
11674
      oprot.writeFieldEnd()
11675
    if self.username is not None:
11676
      oprot.writeFieldBegin('username', TType.STRING, 2)
11677
      oprot.writeString(self.username)
11678
      oprot.writeFieldEnd()
11679
    if self.reason is not None:
11680
      oprot.writeFieldBegin('reason', TType.STRING, 3)
11681
      oprot.writeString(self.reason)
11682
      oprot.writeFieldEnd()
11683
    oprot.writeFieldStop()
11684
    oprot.writeStructEnd()
11685
 
11686
  def validate(self):
11687
    return
11688
 
11689
 
11690
  def __repr__(self):
11691
    L = ['%s=%r' % (key, value)
11692
      for key, value in self.__dict__.iteritems()]
11693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11694
 
11695
  def __eq__(self, other):
11696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11697
 
11698
  def __ne__(self, other):
11699
    return not (self == other)
11700
 
11701
class addAuthorizationLog_result:
11702
  """
11703
  Attributes:
11704
   - success
11705
   - cex
11706
  """
11707
 
11708
  thrift_spec = (
11709
    (0, TType.BOOL, 'success', None, None, ), # 0
11710
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11711
  )
11712
 
11713
  def __init__(self, success=None, cex=None,):
11714
    self.success = success
11715
    self.cex = cex
11716
 
11717
  def read(self, iprot):
11718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11720
      return
11721
    iprot.readStructBegin()
11722
    while True:
11723
      (fname, ftype, fid) = iprot.readFieldBegin()
11724
      if ftype == TType.STOP:
11725
        break
11726
      if fid == 0:
11727
        if ftype == TType.BOOL:
11728
          self.success = iprot.readBool();
11729
        else:
11730
          iprot.skip(ftype)
11731
      elif fid == 1:
11732
        if ftype == TType.STRUCT:
11733
          self.cex = CatalogServiceException()
11734
          self.cex.read(iprot)
11735
        else:
11736
          iprot.skip(ftype)
11737
      else:
11738
        iprot.skip(ftype)
11739
      iprot.readFieldEnd()
11740
    iprot.readStructEnd()
11741
 
11742
  def write(self, oprot):
11743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11745
      return
11746
    oprot.writeStructBegin('addAuthorizationLog_result')
11747
    if self.success is not None:
11748
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11749
      oprot.writeBool(self.success)
11750
      oprot.writeFieldEnd()
11751
    if self.cex is not None:
11752
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11753
      self.cex.write(oprot)
11754
      oprot.writeFieldEnd()
11755
    oprot.writeFieldStop()
11756
    oprot.writeStructEnd()
11757
 
11758
  def validate(self):
11759
    return
11760
 
11761
 
11762
  def __repr__(self):
11763
    L = ['%s=%r' % (key, value)
11764
      for key, value in self.__dict__.iteritems()]
11765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11766
 
11767
  def __eq__(self, other):
11768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11769
 
11770
  def __ne__(self, other):
11771
    return not (self == other)
11772
 
11773
class getClearanceSaleCatalogIds_args:
11774
 
11775
  thrift_spec = (
11776
  )
11777
 
11778
  def read(self, iprot):
11779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11781
      return
11782
    iprot.readStructBegin()
11783
    while True:
11784
      (fname, ftype, fid) = iprot.readFieldBegin()
11785
      if ftype == TType.STOP:
11786
        break
11787
      else:
11788
        iprot.skip(ftype)
11789
      iprot.readFieldEnd()
11790
    iprot.readStructEnd()
11791
 
11792
  def write(self, oprot):
11793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11795
      return
11796
    oprot.writeStructBegin('getClearanceSaleCatalogIds_args')
11797
    oprot.writeFieldStop()
11798
    oprot.writeStructEnd()
11799
 
11800
  def validate(self):
11801
    return
11802
 
11803
 
11804
  def __repr__(self):
11805
    L = ['%s=%r' % (key, value)
11806
      for key, value in self.__dict__.iteritems()]
11807
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11808
 
11809
  def __eq__(self, other):
11810
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11811
 
11812
  def __ne__(self, other):
11813
    return not (self == other)
11814
 
11815
class getClearanceSaleCatalogIds_result:
11816
  """
11817
  Attributes:
11818
   - success
11819
   - cex
11820
  """
11821
 
11822
  thrift_spec = (
11823
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11824
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11825
  )
11826
 
11827
  def __init__(self, success=None, cex=None,):
11828
    self.success = success
11829
    self.cex = cex
11830
 
11831
  def read(self, iprot):
11832
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11833
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11834
      return
11835
    iprot.readStructBegin()
11836
    while True:
11837
      (fname, ftype, fid) = iprot.readFieldBegin()
11838
      if ftype == TType.STOP:
11839
        break
11840
      if fid == 0:
11841
        if ftype == TType.LIST:
11842
          self.success = []
6512 kshitij.so 11843
          (_etype236, _size233) = iprot.readListBegin()
11844
          for _i237 in xrange(_size233):
11845
            _elem238 = iprot.readI64();
11846
            self.success.append(_elem238)
5944 mandeep.dh 11847
          iprot.readListEnd()
11848
        else:
11849
          iprot.skip(ftype)
11850
      elif fid == 1:
11851
        if ftype == TType.STRUCT:
11852
          self.cex = CatalogServiceException()
11853
          self.cex.read(iprot)
11854
        else:
11855
          iprot.skip(ftype)
11856
      else:
11857
        iprot.skip(ftype)
11858
      iprot.readFieldEnd()
11859
    iprot.readStructEnd()
11860
 
11861
  def write(self, oprot):
11862
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11863
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11864
      return
11865
    oprot.writeStructBegin('getClearanceSaleCatalogIds_result')
11866
    if self.success is not None:
11867
      oprot.writeFieldBegin('success', TType.LIST, 0)
11868
      oprot.writeListBegin(TType.I64, len(self.success))
6512 kshitij.so 11869
      for iter239 in self.success:
11870
        oprot.writeI64(iter239)
5944 mandeep.dh 11871
      oprot.writeListEnd()
11872
      oprot.writeFieldEnd()
11873
    if self.cex is not None:
11874
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11875
      self.cex.write(oprot)
11876
      oprot.writeFieldEnd()
11877
    oprot.writeFieldStop()
11878
    oprot.writeStructEnd()
11879
 
11880
  def validate(self):
11881
    return
11882
 
11883
 
11884
  def __repr__(self):
11885
    L = ['%s=%r' % (key, value)
11886
      for key, value in self.__dict__.iteritems()]
11887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11888
 
11889
  def __eq__(self, other):
11890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11891
 
11892
  def __ne__(self, other):
11893
    return not (self == other)
11894
 
11895
class addupdateVoucherForItem_args:
11896
  """
11897
  Attributes:
11898
   - catalog_item_id
11899
   - voucherType
11900
   - voucherAmount
11901
  """
11902
 
11903
  thrift_spec = (
11904
    None, # 0
11905
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
11906
    (2, TType.I64, 'voucherType', None, None, ), # 2
11907
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
11908
  )
11909
 
11910
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
11911
    self.catalog_item_id = catalog_item_id
11912
    self.voucherType = voucherType
11913
    self.voucherAmount = voucherAmount
11914
 
11915
  def read(self, iprot):
11916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11918
      return
11919
    iprot.readStructBegin()
11920
    while True:
11921
      (fname, ftype, fid) = iprot.readFieldBegin()
11922
      if ftype == TType.STOP:
11923
        break
11924
      if fid == 1:
11925
        if ftype == TType.I64:
11926
          self.catalog_item_id = iprot.readI64();
11927
        else:
11928
          iprot.skip(ftype)
11929
      elif fid == 2:
11930
        if ftype == TType.I64:
11931
          self.voucherType = iprot.readI64();
11932
        else:
11933
          iprot.skip(ftype)
11934
      elif fid == 3:
11935
        if ftype == TType.I64:
11936
          self.voucherAmount = iprot.readI64();
11937
        else:
11938
          iprot.skip(ftype)
11939
      else:
11940
        iprot.skip(ftype)
11941
      iprot.readFieldEnd()
11942
    iprot.readStructEnd()
11943
 
11944
  def write(self, oprot):
11945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11947
      return
11948
    oprot.writeStructBegin('addupdateVoucherForItem_args')
11949
    if self.catalog_item_id is not None:
11950
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
11951
      oprot.writeI64(self.catalog_item_id)
11952
      oprot.writeFieldEnd()
11953
    if self.voucherType is not None:
11954
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
11955
      oprot.writeI64(self.voucherType)
11956
      oprot.writeFieldEnd()
11957
    if self.voucherAmount is not None:
11958
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
11959
      oprot.writeI64(self.voucherAmount)
11960
      oprot.writeFieldEnd()
11961
    oprot.writeFieldStop()
11962
    oprot.writeStructEnd()
11963
 
11964
  def validate(self):
11965
    return
11966
 
11967
 
11968
  def __repr__(self):
11969
    L = ['%s=%r' % (key, value)
11970
      for key, value in self.__dict__.iteritems()]
11971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11972
 
11973
  def __eq__(self, other):
11974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11975
 
11976
  def __ne__(self, other):
11977
    return not (self == other)
11978
 
11979
class addupdateVoucherForItem_result:
11980
  """
11981
  Attributes:
11982
   - success
11983
   - cex
11984
  """
11985
 
11986
  thrift_spec = (
11987
    (0, TType.BOOL, 'success', None, None, ), # 0
11988
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11989
  )
11990
 
11991
  def __init__(self, success=None, cex=None,):
11992
    self.success = success
11993
    self.cex = cex
11994
 
11995
  def read(self, iprot):
11996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11998
      return
11999
    iprot.readStructBegin()
12000
    while True:
12001
      (fname, ftype, fid) = iprot.readFieldBegin()
12002
      if ftype == TType.STOP:
12003
        break
12004
      if fid == 0:
12005
        if ftype == TType.BOOL:
12006
          self.success = iprot.readBool();
12007
        else:
12008
          iprot.skip(ftype)
12009
      elif fid == 1:
12010
        if ftype == TType.STRUCT:
12011
          self.cex = CatalogServiceException()
12012
          self.cex.read(iprot)
12013
        else:
12014
          iprot.skip(ftype)
12015
      else:
12016
        iprot.skip(ftype)
12017
      iprot.readFieldEnd()
12018
    iprot.readStructEnd()
12019
 
12020
  def write(self, oprot):
12021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12023
      return
12024
    oprot.writeStructBegin('addupdateVoucherForItem_result')
12025
    if self.success is not None:
12026
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12027
      oprot.writeBool(self.success)
12028
      oprot.writeFieldEnd()
12029
    if self.cex is not None:
12030
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12031
      self.cex.write(oprot)
12032
      oprot.writeFieldEnd()
12033
    oprot.writeFieldStop()
12034
    oprot.writeStructEnd()
12035
 
12036
  def validate(self):
12037
    return
12038
 
12039
 
12040
  def __repr__(self):
12041
    L = ['%s=%r' % (key, value)
12042
      for key, value in self.__dict__.iteritems()]
12043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12044
 
12045
  def __eq__(self, other):
12046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12047
 
12048
  def __ne__(self, other):
12049
    return not (self == other)
12050
 
12051
class deleteVoucherForItem_args:
12052
  """
12053
  Attributes:
12054
   - catalog_item_id
12055
   - voucherType
12056
  """
12057
 
12058
  thrift_spec = (
12059
    None, # 0
12060
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12061
    (2, TType.I64, 'voucherType', None, None, ), # 2
12062
  )
12063
 
12064
  def __init__(self, catalog_item_id=None, voucherType=None,):
12065
    self.catalog_item_id = catalog_item_id
12066
    self.voucherType = voucherType
12067
 
12068
  def read(self, iprot):
12069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12071
      return
12072
    iprot.readStructBegin()
12073
    while True:
12074
      (fname, ftype, fid) = iprot.readFieldBegin()
12075
      if ftype == TType.STOP:
12076
        break
12077
      if fid == 1:
12078
        if ftype == TType.I64:
12079
          self.catalog_item_id = iprot.readI64();
12080
        else:
12081
          iprot.skip(ftype)
12082
      elif fid == 2:
12083
        if ftype == TType.I64:
12084
          self.voucherType = iprot.readI64();
12085
        else:
12086
          iprot.skip(ftype)
12087
      else:
12088
        iprot.skip(ftype)
12089
      iprot.readFieldEnd()
12090
    iprot.readStructEnd()
12091
 
12092
  def write(self, oprot):
12093
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12094
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12095
      return
12096
    oprot.writeStructBegin('deleteVoucherForItem_args')
12097
    if self.catalog_item_id is not None:
12098
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12099
      oprot.writeI64(self.catalog_item_id)
12100
      oprot.writeFieldEnd()
12101
    if self.voucherType is not None:
12102
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12103
      oprot.writeI64(self.voucherType)
12104
      oprot.writeFieldEnd()
12105
    oprot.writeFieldStop()
12106
    oprot.writeStructEnd()
12107
 
12108
  def validate(self):
12109
    return
12110
 
12111
 
12112
  def __repr__(self):
12113
    L = ['%s=%r' % (key, value)
12114
      for key, value in self.__dict__.iteritems()]
12115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12116
 
12117
  def __eq__(self, other):
12118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12119
 
12120
  def __ne__(self, other):
12121
    return not (self == other)
12122
 
12123
class deleteVoucherForItem_result:
12124
  """
12125
  Attributes:
12126
   - success
12127
   - cex
12128
  """
12129
 
12130
  thrift_spec = (
12131
    (0, TType.BOOL, 'success', None, None, ), # 0
12132
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12133
  )
12134
 
12135
  def __init__(self, success=None, cex=None,):
12136
    self.success = success
12137
    self.cex = cex
12138
 
12139
  def read(self, iprot):
12140
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12141
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12142
      return
12143
    iprot.readStructBegin()
12144
    while True:
12145
      (fname, ftype, fid) = iprot.readFieldBegin()
12146
      if ftype == TType.STOP:
12147
        break
12148
      if fid == 0:
12149
        if ftype == TType.BOOL:
12150
          self.success = iprot.readBool();
12151
        else:
12152
          iprot.skip(ftype)
12153
      elif fid == 1:
12154
        if ftype == TType.STRUCT:
12155
          self.cex = CatalogServiceException()
12156
          self.cex.read(iprot)
12157
        else:
12158
          iprot.skip(ftype)
12159
      else:
12160
        iprot.skip(ftype)
12161
      iprot.readFieldEnd()
12162
    iprot.readStructEnd()
12163
 
12164
  def write(self, oprot):
12165
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12166
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12167
      return
12168
    oprot.writeStructBegin('deleteVoucherForItem_result')
12169
    if self.success is not None:
12170
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12171
      oprot.writeBool(self.success)
12172
      oprot.writeFieldEnd()
12173
    if self.cex is not None:
12174
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12175
      self.cex.write(oprot)
12176
      oprot.writeFieldEnd()
12177
    oprot.writeFieldStop()
12178
    oprot.writeStructEnd()
12179
 
12180
  def validate(self):
12181
    return
12182
 
12183
 
12184
  def __repr__(self):
12185
    L = ['%s=%r' % (key, value)
12186
      for key, value in self.__dict__.iteritems()]
12187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12188
 
12189
  def __eq__(self, other):
12190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12191
 
12192
  def __ne__(self, other):
12193
    return not (self == other)
12194
 
12195
class getVoucherAmount_args:
12196
  """
12197
  Attributes:
12198
   - itemId
12199
   - voucherType
12200
  """
12201
 
12202
  thrift_spec = (
12203
    None, # 0
12204
    (1, TType.I64, 'itemId', None, None, ), # 1
12205
    (2, TType.I64, 'voucherType', None, None, ), # 2
12206
  )
12207
 
12208
  def __init__(self, itemId=None, voucherType=None,):
12209
    self.itemId = itemId
12210
    self.voucherType = voucherType
12211
 
12212
  def read(self, iprot):
12213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12215
      return
12216
    iprot.readStructBegin()
12217
    while True:
12218
      (fname, ftype, fid) = iprot.readFieldBegin()
12219
      if ftype == TType.STOP:
12220
        break
12221
      if fid == 1:
12222
        if ftype == TType.I64:
12223
          self.itemId = iprot.readI64();
12224
        else:
12225
          iprot.skip(ftype)
12226
      elif fid == 2:
12227
        if ftype == TType.I64:
12228
          self.voucherType = iprot.readI64();
12229
        else:
12230
          iprot.skip(ftype)
12231
      else:
12232
        iprot.skip(ftype)
12233
      iprot.readFieldEnd()
12234
    iprot.readStructEnd()
12235
 
12236
  def write(self, oprot):
12237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12239
      return
12240
    oprot.writeStructBegin('getVoucherAmount_args')
12241
    if self.itemId is not None:
12242
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12243
      oprot.writeI64(self.itemId)
12244
      oprot.writeFieldEnd()
12245
    if self.voucherType is not None:
12246
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12247
      oprot.writeI64(self.voucherType)
12248
      oprot.writeFieldEnd()
12249
    oprot.writeFieldStop()
12250
    oprot.writeStructEnd()
12251
 
12252
  def validate(self):
12253
    return
12254
 
12255
 
12256
  def __repr__(self):
12257
    L = ['%s=%r' % (key, value)
12258
      for key, value in self.__dict__.iteritems()]
12259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12260
 
12261
  def __eq__(self, other):
12262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12263
 
12264
  def __ne__(self, other):
12265
    return not (self == other)
12266
 
12267
class getVoucherAmount_result:
12268
  """
12269
  Attributes:
12270
   - success
12271
  """
12272
 
12273
  thrift_spec = (
12274
    (0, TType.I64, 'success', None, None, ), # 0
12275
  )
12276
 
12277
  def __init__(self, success=None,):
12278
    self.success = success
12279
 
12280
  def read(self, iprot):
12281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12283
      return
12284
    iprot.readStructBegin()
12285
    while True:
12286
      (fname, ftype, fid) = iprot.readFieldBegin()
12287
      if ftype == TType.STOP:
12288
        break
12289
      if fid == 0:
12290
        if ftype == TType.I64:
12291
          self.success = iprot.readI64();
12292
        else:
12293
          iprot.skip(ftype)
12294
      else:
12295
        iprot.skip(ftype)
12296
      iprot.readFieldEnd()
12297
    iprot.readStructEnd()
12298
 
12299
  def write(self, oprot):
12300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12302
      return
12303
    oprot.writeStructBegin('getVoucherAmount_result')
12304
    if self.success is not None:
12305
      oprot.writeFieldBegin('success', TType.I64, 0)
12306
      oprot.writeI64(self.success)
12307
      oprot.writeFieldEnd()
12308
    oprot.writeFieldStop()
12309
    oprot.writeStructEnd()
12310
 
12311
  def validate(self):
12312
    return
12313
 
12314
 
12315
  def __repr__(self):
12316
    L = ['%s=%r' % (key, value)
12317
      for key, value in self.__dict__.iteritems()]
12318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12319
 
12320
  def __eq__(self, other):
12321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12322
 
12323
  def __ne__(self, other):
12324
    return not (self == other)
12325
 
12326
class getAllItemVouchers_args:
12327
  """
12328
  Attributes:
12329
   - itemId
12330
  """
12331
 
12332
  thrift_spec = (
12333
    None, # 0
12334
    (1, TType.I64, 'itemId', None, None, ), # 1
12335
  )
12336
 
12337
  def __init__(self, itemId=None,):
12338
    self.itemId = itemId
12339
 
12340
  def read(self, iprot):
12341
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12342
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12343
      return
12344
    iprot.readStructBegin()
12345
    while True:
12346
      (fname, ftype, fid) = iprot.readFieldBegin()
12347
      if ftype == TType.STOP:
12348
        break
12349
      if fid == 1:
12350
        if ftype == TType.I64:
12351
          self.itemId = iprot.readI64();
12352
        else:
12353
          iprot.skip(ftype)
12354
      else:
12355
        iprot.skip(ftype)
12356
      iprot.readFieldEnd()
12357
    iprot.readStructEnd()
12358
 
12359
  def write(self, oprot):
12360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12362
      return
12363
    oprot.writeStructBegin('getAllItemVouchers_args')
12364
    if self.itemId is not None:
12365
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12366
      oprot.writeI64(self.itemId)
12367
      oprot.writeFieldEnd()
12368
    oprot.writeFieldStop()
12369
    oprot.writeStructEnd()
12370
 
12371
  def validate(self):
12372
    return
12373
 
12374
 
12375
  def __repr__(self):
12376
    L = ['%s=%r' % (key, value)
12377
      for key, value in self.__dict__.iteritems()]
12378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12379
 
12380
  def __eq__(self, other):
12381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12382
 
12383
  def __ne__(self, other):
12384
    return not (self == other)
12385
 
12386
class getAllItemVouchers_result:
12387
  """
12388
  Attributes:
12389
   - success
12390
  """
12391
 
12392
  thrift_spec = (
12393
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
12394
  )
12395
 
12396
  def __init__(self, success=None,):
12397
    self.success = success
12398
 
12399
  def read(self, iprot):
12400
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12401
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12402
      return
12403
    iprot.readStructBegin()
12404
    while True:
12405
      (fname, ftype, fid) = iprot.readFieldBegin()
12406
      if ftype == TType.STOP:
12407
        break
12408
      if fid == 0:
12409
        if ftype == TType.LIST:
12410
          self.success = []
6512 kshitij.so 12411
          (_etype243, _size240) = iprot.readListBegin()
12412
          for _i244 in xrange(_size240):
12413
            _elem245 = VoucherItemMapping()
12414
            _elem245.read(iprot)
12415
            self.success.append(_elem245)
5944 mandeep.dh 12416
          iprot.readListEnd()
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('getAllItemVouchers_result')
12429
    if self.success is not None:
12430
      oprot.writeFieldBegin('success', TType.LIST, 0)
12431
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 12432
      for iter246 in self.success:
12433
        iter246.write(oprot)
5944 mandeep.dh 12434
      oprot.writeListEnd()
12435
      oprot.writeFieldEnd()
12436
    oprot.writeFieldStop()
12437
    oprot.writeStructEnd()
12438
 
12439
  def validate(self):
12440
    return
12441
 
12442
 
12443
  def __repr__(self):
12444
    L = ['%s=%r' % (key, value)
12445
      for key, value in self.__dict__.iteritems()]
12446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12447
 
12448
  def __eq__(self, other):
12449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12450
 
12451
  def __ne__(self, other):
12452
    return not (self == other)
12453
 
12454
class isValidCatalogItemId_args:
12455
  """
12456
  Attributes:
12457
   - catalog_item_id
12458
  """
12459
 
12460
  thrift_spec = (
12461
    None, # 0
12462
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12463
  )
12464
 
12465
  def __init__(self, catalog_item_id=None,):
12466
    self.catalog_item_id = catalog_item_id
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 == 1:
12478
        if ftype == TType.I64:
12479
          self.catalog_item_id = 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('isValidCatalogItemId_args')
12492
    if self.catalog_item_id is not None:
12493
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12494
      oprot.writeI64(self.catalog_item_id)
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 isValidCatalogItemId_result:
12515
  """
12516
  Attributes:
12517
   - success
12518
  """
12519
 
12520
  thrift_spec = (
12521
    (0, TType.BOOL, 'success', None, None, ), # 0
12522
  )
12523
 
12524
  def __init__(self, success=None,):
12525
    self.success = success
12526
 
12527
  def read(self, iprot):
12528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12530
      return
12531
    iprot.readStructBegin()
12532
    while True:
12533
      (fname, ftype, fid) = iprot.readFieldBegin()
12534
      if ftype == TType.STOP:
12535
        break
12536
      if fid == 0:
12537
        if ftype == TType.BOOL:
12538
          self.success = iprot.readBool();
12539
        else:
12540
          iprot.skip(ftype)
12541
      else:
12542
        iprot.skip(ftype)
12543
      iprot.readFieldEnd()
12544
    iprot.readStructEnd()
12545
 
12546
  def write(self, oprot):
12547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12549
      return
12550
    oprot.writeStructBegin('isValidCatalogItemId_result')
12551
    if self.success is not None:
12552
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12553
      oprot.writeBool(self.success)
12554
      oprot.writeFieldEnd()
12555
    oprot.writeFieldStop()
12556
    oprot.writeStructEnd()
12557
 
12558
  def validate(self):
12559
    return
12560
 
12561
 
12562
  def __repr__(self):
12563
    L = ['%s=%r' % (key, value)
12564
      for key, value in self.__dict__.iteritems()]
12565
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12566
 
12567
  def __eq__(self, other):
12568
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12569
 
12570
  def __ne__(self, other):
12571
    return not (self == other)
6039 amit.gupta 12572
 
12573
class getVatPercentageForItem_args:
12574
  """
12575
  Attributes:
12576
   - itemId
12577
   - price
12578
  """
12579
 
12580
  thrift_spec = (
12581
    None, # 0
12582
    (1, TType.I64, 'itemId', None, None, ), # 1
12583
    (2, TType.DOUBLE, 'price', None, None, ), # 2
12584
  )
12585
 
12586
  def __init__(self, itemId=None, price=None,):
12587
    self.itemId = itemId
12588
    self.price = price
12589
 
12590
  def read(self, iprot):
12591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12593
      return
12594
    iprot.readStructBegin()
12595
    while True:
12596
      (fname, ftype, fid) = iprot.readFieldBegin()
12597
      if ftype == TType.STOP:
12598
        break
12599
      if fid == 1:
12600
        if ftype == TType.I64:
12601
          self.itemId = iprot.readI64();
12602
        else:
12603
          iprot.skip(ftype)
12604
      elif fid == 2:
12605
        if ftype == TType.DOUBLE:
12606
          self.price = iprot.readDouble();
12607
        else:
12608
          iprot.skip(ftype)
12609
      else:
12610
        iprot.skip(ftype)
12611
      iprot.readFieldEnd()
12612
    iprot.readStructEnd()
12613
 
12614
  def write(self, oprot):
12615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12617
      return
12618
    oprot.writeStructBegin('getVatPercentageForItem_args')
12619
    if self.itemId is not None:
12620
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12621
      oprot.writeI64(self.itemId)
12622
      oprot.writeFieldEnd()
12623
    if self.price is not None:
12624
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
12625
      oprot.writeDouble(self.price)
12626
      oprot.writeFieldEnd()
12627
    oprot.writeFieldStop()
12628
    oprot.writeStructEnd()
12629
 
12630
  def validate(self):
12631
    return
12632
 
12633
 
12634
  def __repr__(self):
12635
    L = ['%s=%r' % (key, value)
12636
      for key, value in self.__dict__.iteritems()]
12637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12638
 
12639
  def __eq__(self, other):
12640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12641
 
12642
  def __ne__(self, other):
12643
    return not (self == other)
12644
 
12645
class getVatPercentageForItem_result:
12646
  """
12647
  Attributes:
12648
   - success
12649
  """
12650
 
12651
  thrift_spec = (
12652
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12653
  )
12654
 
12655
  def __init__(self, success=None,):
12656
    self.success = success
12657
 
12658
  def read(self, iprot):
12659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12661
      return
12662
    iprot.readStructBegin()
12663
    while True:
12664
      (fname, ftype, fid) = iprot.readFieldBegin()
12665
      if ftype == TType.STOP:
12666
        break
12667
      if fid == 0:
12668
        if ftype == TType.DOUBLE:
12669
          self.success = iprot.readDouble();
12670
        else:
12671
          iprot.skip(ftype)
12672
      else:
12673
        iprot.skip(ftype)
12674
      iprot.readFieldEnd()
12675
    iprot.readStructEnd()
12676
 
12677
  def write(self, oprot):
12678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12680
      return
12681
    oprot.writeStructBegin('getVatPercentageForItem_result')
12682
    if self.success is not None:
12683
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12684
      oprot.writeDouble(self.success)
12685
      oprot.writeFieldEnd()
12686
    oprot.writeFieldStop()
12687
    oprot.writeStructEnd()
12688
 
12689
  def validate(self):
12690
    return
12691
 
12692
 
12693
  def __repr__(self):
12694
    L = ['%s=%r' % (key, value)
12695
      for key, value in self.__dict__.iteritems()]
12696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12697
 
12698
  def __eq__(self, other):
12699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12700
 
12701
  def __ne__(self, other):
12702
    return not (self == other)
12703
 
12704
class getVatAmountForItem_args:
12705
  """
12706
  Attributes:
12707
   - itemId
12708
   - price
12709
  """
12710
 
12711
  thrift_spec = (
12712
    None, # 0
12713
    (1, TType.I64, 'itemId', None, None, ), # 1
12714
    (2, TType.DOUBLE, 'price', None, None, ), # 2
12715
  )
12716
 
12717
  def __init__(self, itemId=None, price=None,):
12718
    self.itemId = itemId
12719
    self.price = price
12720
 
12721
  def read(self, iprot):
12722
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12723
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12724
      return
12725
    iprot.readStructBegin()
12726
    while True:
12727
      (fname, ftype, fid) = iprot.readFieldBegin()
12728
      if ftype == TType.STOP:
12729
        break
12730
      if fid == 1:
12731
        if ftype == TType.I64:
12732
          self.itemId = iprot.readI64();
12733
        else:
12734
          iprot.skip(ftype)
12735
      elif fid == 2:
12736
        if ftype == TType.DOUBLE:
12737
          self.price = iprot.readDouble();
12738
        else:
12739
          iprot.skip(ftype)
12740
      else:
12741
        iprot.skip(ftype)
12742
      iprot.readFieldEnd()
12743
    iprot.readStructEnd()
12744
 
12745
  def write(self, oprot):
12746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12748
      return
12749
    oprot.writeStructBegin('getVatAmountForItem_args')
12750
    if self.itemId is not None:
12751
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12752
      oprot.writeI64(self.itemId)
12753
      oprot.writeFieldEnd()
12754
    if self.price is not None:
12755
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
12756
      oprot.writeDouble(self.price)
12757
      oprot.writeFieldEnd()
12758
    oprot.writeFieldStop()
12759
    oprot.writeStructEnd()
12760
 
12761
  def validate(self):
12762
    return
12763
 
12764
 
12765
  def __repr__(self):
12766
    L = ['%s=%r' % (key, value)
12767
      for key, value in self.__dict__.iteritems()]
12768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12769
 
12770
  def __eq__(self, other):
12771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12772
 
12773
  def __ne__(self, other):
12774
    return not (self == other)
12775
 
12776
class getVatAmountForItem_result:
12777
  """
12778
  Attributes:
12779
   - success
12780
  """
12781
 
12782
  thrift_spec = (
12783
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12784
  )
12785
 
12786
  def __init__(self, success=None,):
12787
    self.success = success
12788
 
12789
  def read(self, iprot):
12790
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12791
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12792
      return
12793
    iprot.readStructBegin()
12794
    while True:
12795
      (fname, ftype, fid) = iprot.readFieldBegin()
12796
      if ftype == TType.STOP:
12797
        break
12798
      if fid == 0:
12799
        if ftype == TType.DOUBLE:
12800
          self.success = iprot.readDouble();
12801
        else:
12802
          iprot.skip(ftype)
12803
      else:
12804
        iprot.skip(ftype)
12805
      iprot.readFieldEnd()
12806
    iprot.readStructEnd()
12807
 
12808
  def write(self, oprot):
12809
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12810
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12811
      return
12812
    oprot.writeStructBegin('getVatAmountForItem_result')
12813
    if self.success is not None:
12814
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12815
      oprot.writeDouble(self.success)
12816
      oprot.writeFieldEnd()
12817
    oprot.writeFieldStop()
12818
    oprot.writeStructEnd()
12819
 
12820
  def validate(self):
12821
    return
12822
 
12823
 
12824
  def __repr__(self):
12825
    L = ['%s=%r' % (key, value)
12826
      for key, value in self.__dict__.iteritems()]
12827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12828
 
12829
  def __eq__(self, other):
12830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12831
 
12832
  def __ne__(self, other):
12833
    return not (self == other)
6531 vikram.rag 12834
 
12835
class getAllIgnoredInventoryUpdateItemsList_args:
12836
  """
12837
  Attributes:
12838
   - offset
12839
   - limit
12840
  """
12841
 
12842
  thrift_spec = (
12843
    None, # 0
12844
    (1, TType.I32, 'offset', None, None, ), # 1
12845
    (2, TType.I32, 'limit', None, None, ), # 2
12846
  )
12847
 
12848
  def __init__(self, offset=None, limit=None,):
12849
    self.offset = offset
12850
    self.limit = limit
12851
 
12852
  def read(self, iprot):
12853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12855
      return
12856
    iprot.readStructBegin()
12857
    while True:
12858
      (fname, ftype, fid) = iprot.readFieldBegin()
12859
      if ftype == TType.STOP:
12860
        break
12861
      if fid == 1:
12862
        if ftype == TType.I32:
12863
          self.offset = iprot.readI32();
12864
        else:
12865
          iprot.skip(ftype)
12866
      elif fid == 2:
12867
        if ftype == TType.I32:
12868
          self.limit = iprot.readI32();
12869
        else:
12870
          iprot.skip(ftype)
12871
      else:
12872
        iprot.skip(ftype)
12873
      iprot.readFieldEnd()
12874
    iprot.readStructEnd()
12875
 
12876
  def write(self, oprot):
12877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12879
      return
12880
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
12881
    if self.offset is not None:
12882
      oprot.writeFieldBegin('offset', TType.I32, 1)
12883
      oprot.writeI32(self.offset)
12884
      oprot.writeFieldEnd()
12885
    if self.limit is not None:
12886
      oprot.writeFieldBegin('limit', TType.I32, 2)
12887
      oprot.writeI32(self.limit)
12888
      oprot.writeFieldEnd()
12889
    oprot.writeFieldStop()
12890
    oprot.writeStructEnd()
12891
 
12892
  def validate(self):
12893
    return
12894
 
12895
 
12896
  def __repr__(self):
12897
    L = ['%s=%r' % (key, value)
12898
      for key, value in self.__dict__.iteritems()]
12899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12900
 
12901
  def __eq__(self, other):
12902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12903
 
12904
  def __ne__(self, other):
12905
    return not (self == other)
12906
 
12907
class getAllIgnoredInventoryUpdateItemsList_result:
12908
  """
12909
  Attributes:
12910
   - success
12911
  """
12912
 
12913
  thrift_spec = (
12914
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12915
  )
12916
 
12917
  def __init__(self, success=None,):
12918
    self.success = success
12919
 
12920
  def read(self, iprot):
12921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12923
      return
12924
    iprot.readStructBegin()
12925
    while True:
12926
      (fname, ftype, fid) = iprot.readFieldBegin()
12927
      if ftype == TType.STOP:
12928
        break
12929
      if fid == 0:
12930
        if ftype == TType.LIST:
12931
          self.success = []
12932
          (_etype250, _size247) = iprot.readListBegin()
12933
          for _i251 in xrange(_size247):
12934
            _elem252 = Item()
12935
            _elem252.read(iprot)
12936
            self.success.append(_elem252)
12937
          iprot.readListEnd()
12938
        else:
12939
          iprot.skip(ftype)
12940
      else:
12941
        iprot.skip(ftype)
12942
      iprot.readFieldEnd()
12943
    iprot.readStructEnd()
12944
 
12945
  def write(self, oprot):
12946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12948
      return
12949
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
12950
    if self.success is not None:
12951
      oprot.writeFieldBegin('success', TType.LIST, 0)
12952
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12953
      for iter253 in self.success:
12954
        iter253.write(oprot)
12955
      oprot.writeListEnd()
12956
      oprot.writeFieldEnd()
12957
    oprot.writeFieldStop()
12958
    oprot.writeStructEnd()
12959
 
12960
  def validate(self):
12961
    return
12962
 
12963
 
12964
  def __repr__(self):
12965
    L = ['%s=%r' % (key, value)
12966
      for key, value in self.__dict__.iteritems()]
12967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12968
 
12969
  def __eq__(self, other):
12970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12971
 
12972
  def __ne__(self, other):
12973
    return not (self == other)