Subversion Repositories SmartDukaan

Rev

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