Subversion Repositories SmartDukaan

Rev

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