Subversion Repositories SmartDukaan

Rev

Rev 6805 | Rev 6838 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addItem(self, item):
21
    """
22
    Availability and inventory attributes
23
 
24
    Parameters:
25
     - item
26
    """
27
    pass
28
 
29
  def updateItem(self, item):
30
    """
31
    Parameters:
32
     - item
33
    """
34
    pass
35
 
36
  def isActive(self, itemId):
37
    """
38
    Checks if the item given to the corresponding itemId is active. If it's active,
39
    whether it's risky and if it's risky, its inventory position.
40
 
41
    Parameters:
42
     - itemId
43
    """
44
    pass
45
 
46
  def getItemStatusDescription(self, itemId):
47
    """
48
    Parameters:
49
     - itemId
50
    """
51
    pass
52
 
53
  def startItemOn(self, item_id, timestamp):
54
    """
55
    Parameters:
56
     - item_id
57
     - timestamp
58
    """
59
    pass
60
 
61
  def retireItemOn(self, item_id, timestamp):
62
    """
63
    Parameters:
64
     - item_id
65
     - timestamp
66
    """
67
    pass
68
 
69
  def changeItemStatus(self, item_id, timestamp, newstatus):
70
    """
71
    Parameters:
72
     - item_id
73
     - timestamp
74
     - newstatus
75
    """
76
    pass
77
 
78
  def getItem(self, item_id):
79
    """
80
    Parameters:
81
     - item_id
82
    """
83
    pass
84
 
85
  def getItemsByCatalogId(self, catalog_item_id):
86
    """
87
    Parameters:
88
     - catalog_item_id
89
    """
90
    pass
91
 
92
  def getValidItemsByCatalogId(self, catalog_item_id):
93
    """
94
    Parameters:
95
     - catalog_item_id
96
    """
97
    pass
98
 
99
  def getAllItems(self, isActive):
100
    """
101
    Parameters:
102
     - isActive
103
    """
104
    pass
105
 
106
  def getAllItemsByStatus(self, itemStatus):
107
    """
108
    Parameters:
109
     - itemStatus
110
    """
111
    pass
112
 
113
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
114
    """
115
    Parameters:
116
     - entityId
117
     - category
118
     - brand
119
     - modelName
120
     - modelNumber
121
    """
122
    pass
123
 
124
  def getAllItemsInRange(self, offset, limit):
125
    """
126
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
127
 
128
    Parameters:
129
     - offset
130
     - limit
131
    """
132
    pass
133
 
134
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
135
    """
136
    Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
137
 
138
    Parameters:
139
     - itemStatus
140
     - offset
141
     - limit
142
    """
143
    pass
144
 
145
  def getItemCountByStatus(self, useStatus, itemStatus):
146
    """
147
    Gets a count of all items by status
148
 
149
    Parameters:
150
     - useStatus
151
     - itemStatus
152
    """
153
    pass
154
 
155
  def getBestSellers(self, ):
156
    pass
157
 
158
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
159
    """
160
    Parameters:
161
     - beginIndex
162
     - totalItems
163
     - brand
164
     - category
165
    """
166
    pass
167
 
168
  def getBestSellersCount(self, ):
169
    pass
170
 
171
  def getBestDeals(self, ):
172
    pass
173
 
174
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
175
    """
176
    Parameters:
177
     - beginIndex
178
     - totalItems
179
     - brand
180
     - category
181
    """
182
    pass
183
 
184
  def getBestDealsCount(self, ):
185
    pass
186
 
187
  def getComingSoon(self, ):
188
    pass
189
 
190
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
191
    """
192
    Parameters:
193
     - beginIndex
194
     - totalItems
195
     - brand
196
     - category
197
    """
198
    pass
199
 
200
  def getComingSoonCount(self, ):
201
    pass
202
 
203
  def getLatestArrivals(self, ):
204
    """
205
    Returns a list of items sorted in the descending order by start date.
206
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
207
    """
208
    pass
209
 
210
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
211
    """
212
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
213
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
214
 
215
    Parameters:
216
     - beginIndex
217
     - totalItems
218
     - brand
219
     - categories
220
    """
221
    pass
222
 
223
  def getLatestArrivalsCount(self, ):
224
    """
225
    Get the total number of latest arrivals we are willing to show.
226
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
227
    """
228
    pass
229
 
230
  def generateNewEntityID(self, ):
231
    pass
232
 
233
  def addCategory(self, category):
234
    """
235
    All category related functions
236
 
237
    Parameters:
238
     - category
239
    """
240
    pass
241
 
242
  def getCategory(self, id):
243
    """
244
    Parameters:
245
     - id
246
    """
247
    pass
248
 
249
  def getAllCategories(self, ):
250
    pass
251
 
252
  def getAllSimilarItems(self, itemId):
253
    """
254
    Returns the list of similar items.
255
 
256
    Parameters:
257
     - itemId
258
    """
259
    pass
260
 
261
  def addSimilarItem(self, itemId, catalogItemId):
262
    """
263
    Adds similar item.
264
 
265
    Parameters:
266
     - itemId
267
     - catalogItemId
268
    """
269
    pass
270
 
6512 kshitij.so 271
  def addTag(self, displayName, itemId):
272
    """
273
    Tag Related
274
 
275
    Parameters:
276
     - displayName
277
     - itemId
278
    """
279
    pass
280
 
281
  def deleteEntityTag(self, displayName, itemId):
282
    """
283
    Parameters:
284
     - displayName
285
     - itemId
286
    """
287
    pass
288
 
289
  def deleteTag(self, displayName):
290
    """
291
    Parameters:
292
     - displayName
293
    """
294
    pass
295
 
296
  def getAllTags(self, ):
297
    pass
298
 
299
  def getAllEntitiesByTagName(self, displayName):
300
    """
301
    Parameters:
302
     - displayName
303
    """
304
    pass
305
 
5944 mandeep.dh 306
  def deleteSimilarItem(self, itemId, catalogItemId):
307
    """
308
    Delete similar item.
309
 
310
    Parameters:
311
     - itemId
312
     - catalogItemId
313
    """
314
    pass
315
 
316
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
317
    """
318
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
319
    If yes, returns the itemId else returns 0
320
 
321
    Parameters:
322
     - brand
323
     - modelNumber
324
     - modelName
325
     - color
326
    """
327
    pass
328
 
329
  def validateRiskyStatus(self, itemId):
330
    """
331
    Check wether item is risky and change status if inventory is not available for risky items
332
 
333
    Parameters:
334
     - itemId
335
    """
336
    pass
337
 
338
  def changeItemRiskyFlag(self, itemId, risky):
339
    """
340
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
341
 
342
    Parameters:
343
     - itemId
344
     - risky
345
    """
346
    pass
347
 
348
  def getItemsByRiskyFlag(self, ):
349
    """
350
    Returns list of items marked as risky.
351
    """
352
    pass
353
 
354
  def getItemsForMasterSheet(self, category, brand):
355
    """
356
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
357
 
358
    Parameters:
359
     - category
360
     - brand
361
    """
362
    pass
363
 
364
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
365
    """
366
    Returns list of catalog ids of items with same similarity index as of the given itemId
367
 
368
    Parameters:
369
     - beginIndex
370
     - totalItems
371
     - itemId
372
    """
373
    pass
374
 
375
  def addProductNotification(self, itemId, email):
376
    """
377
    Add user requests for out of stock items. Once user will ask for notify me an entry will
378
 
379
    Parameters:
380
     - itemId
381
     - email
382
    """
383
    pass
384
 
385
  def sendProductNotifications(self, ):
386
    """
387
    Send the product notifications to the users for items which has stock.
388
    """
389
    pass
390
 
391
  def getAllBrandsByCategory(self, categoryId):
392
    """
393
    Returns list of brand names for a given category Id
394
 
395
    Parameters:
396
     - categoryId
397
    """
398
    pass
399
 
400
  def getAllBrands(self, ):
401
    """
402
    Returns list of brand names
403
    """
404
    pass
405
 
406
  def getAllSources(self, ):
407
    """
408
    Return list of all sources
409
    """
410
    pass
411
 
412
  def getItemPricingBySource(self, itemId, sourceId):
413
    """
414
    Returns the pricing information of an item. If no information is found, exception will be thrown.
415
 
416
    Parameters:
417
     - itemId
418
     - sourceId
419
    """
420
    pass
421
 
422
  def addSourceItemPricing(self, sourceItemPricing):
423
    """
424
    Adds prices to be displayed corresponding to the item if user comes from a source.
425
    If item is not found or source is not found, it will throw exception.
426
 
427
    Parameters:
428
     - sourceItemPricing
429
    """
430
    pass
431
 
432
  def getAllSourcePricing(self, itemId):
433
    """
434
    Returns the list of source pricing information of an item.
435
    Raises an exception if item not found corresponding to itemId
436
 
437
    Parameters:
438
     - itemId
439
    """
440
    pass
441
 
442
  def getItemForSource(self, item_id, sourceId):
443
    """
444
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
445
 
446
    Parameters:
447
     - item_id
448
     - sourceId
449
    """
450
    pass
451
 
452
  def searchItemsInRange(self, searchTerms, offset, limit):
453
    """
454
    Searches items matching the the given terms in the catalog and returns results within the specified range.
455
 
456
    Parameters:
457
     - searchTerms
458
     - offset
459
     - limit
460
    """
461
    pass
462
 
463
  def getSearchResultCount(self, searchTerms):
464
    """
465
    Gets the count of search results for the given search terms so that the user can go through all the pages.
466
 
467
    Parameters:
468
     - searchTerms
469
    """
470
    pass
471
 
472
  def getProductNotifications(self, startDateTime):
473
    """
474
    Returns a list of product notifications added after a supplied datetime
475
 
476
    Parameters:
477
     - startDateTime
478
    """
479
    pass
480
 
481
  def getProductNotificationRequestCount(self, startDateTime):
482
    """
483
    Returns a list of count of requests for product notification against each item
484
 
485
    Parameters:
486
     - startDateTime
487
    """
488
    pass
489
 
490
  def addAuthorizationLog(self, itemId, username, reason):
491
    """
492
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
493
 
494
    Parameters:
495
     - itemId
496
     - username
497
     - reason
498
    """
499
    pass
500
 
501
  def getClearanceSaleCatalogIds(self, ):
502
    pass
503
 
504
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
505
    """
506
    Parameters:
507
     - catalog_item_id
508
     - voucherType
509
     - voucherAmount
510
    """
511
    pass
512
 
513
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
514
    """
515
    Parameters:
516
     - catalog_item_id
517
     - voucherType
518
    """
519
    pass
520
 
521
  def getVoucherAmount(self, itemId, voucherType):
522
    """
523
    Parameters:
524
     - itemId
525
     - voucherType
526
    """
527
    pass
528
 
529
  def getAllItemVouchers(self, itemId):
530
    """
531
    Parameters:
532
     - itemId
533
    """
534
    pass
535
 
536
  def isValidCatalogItemId(self, catalog_item_id):
537
    """
538
    Parameters:
539
     - catalog_item_id
540
    """
541
    pass
542
 
6039 amit.gupta 543
  def getVatPercentageForItem(self, itemId, price):
544
    """
545
    Parameters:
546
     - itemId
547
     - price
548
    """
549
    pass
5944 mandeep.dh 550
 
6039 amit.gupta 551
  def getVatAmountForItem(self, itemId, price):
552
    """
553
    Parameters:
554
     - itemId
555
     - price
556
    """
557
    pass
558
 
6531 vikram.rag 559
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
560
    """
561
    Parameters:
562
     - offset
563
     - limit
564
    """
565
    pass
6039 amit.gupta 566
 
6821 amar.kumar 567
  def getAllAliveItems(self, ):
568
    pass
569
 
6805 anupam.sin 570
  def getInsuranceAmount(self, itemId, insurerId, quantity):
571
    """
572
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 573
 
6805 anupam.sin 574
    Parameters:
575
     - itemId
576
     - insurerId
577
     - quantity
578
    """
579
    pass
580
 
581
  def getInsurer(self, insurerId):
582
    """
583
    Parameters:
584
     - insurerId
585
    """
586
    pass
587
 
588
 
5944 mandeep.dh 589
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
590
  def __init__(self, iprot, oprot=None):
591
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
592
 
593
  def addItem(self, item):
594
    """
595
    Availability and inventory attributes
596
 
597
    Parameters:
598
     - item
599
    """
600
    self.send_addItem(item)
601
    return self.recv_addItem()
602
 
603
  def send_addItem(self, item):
604
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
605
    args = addItem_args()
606
    args.item = item
607
    args.write(self._oprot)
608
    self._oprot.writeMessageEnd()
609
    self._oprot.trans.flush()
610
 
611
  def recv_addItem(self, ):
612
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
613
    if mtype == TMessageType.EXCEPTION:
614
      x = TApplicationException()
615
      x.read(self._iprot)
616
      self._iprot.readMessageEnd()
617
      raise x
618
    result = addItem_result()
619
    result.read(self._iprot)
620
    self._iprot.readMessageEnd()
621
    if result.success is not None:
622
      return result.success
623
    if result.cex is not None:
624
      raise result.cex
625
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
626
 
627
  def updateItem(self, item):
628
    """
629
    Parameters:
630
     - item
631
    """
632
    self.send_updateItem(item)
633
    return self.recv_updateItem()
634
 
635
  def send_updateItem(self, item):
636
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
637
    args = updateItem_args()
638
    args.item = item
639
    args.write(self._oprot)
640
    self._oprot.writeMessageEnd()
641
    self._oprot.trans.flush()
642
 
643
  def recv_updateItem(self, ):
644
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
645
    if mtype == TMessageType.EXCEPTION:
646
      x = TApplicationException()
647
      x.read(self._iprot)
648
      self._iprot.readMessageEnd()
649
      raise x
650
    result = updateItem_result()
651
    result.read(self._iprot)
652
    self._iprot.readMessageEnd()
653
    if result.success is not None:
654
      return result.success
655
    if result.cex is not None:
656
      raise result.cex
657
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
658
 
659
  def isActive(self, itemId):
660
    """
661
    Checks if the item given to the corresponding itemId is active. If it's active,
662
    whether it's risky and if it's risky, its inventory position.
663
 
664
    Parameters:
665
     - itemId
666
    """
667
    self.send_isActive(itemId)
668
    return self.recv_isActive()
669
 
670
  def send_isActive(self, itemId):
671
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
672
    args = isActive_args()
673
    args.itemId = itemId
674
    args.write(self._oprot)
675
    self._oprot.writeMessageEnd()
676
    self._oprot.trans.flush()
677
 
678
  def recv_isActive(self, ):
679
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
680
    if mtype == TMessageType.EXCEPTION:
681
      x = TApplicationException()
682
      x.read(self._iprot)
683
      self._iprot.readMessageEnd()
684
      raise x
685
    result = isActive_result()
686
    result.read(self._iprot)
687
    self._iprot.readMessageEnd()
688
    if result.success is not None:
689
      return result.success
690
    if result.isex is not None:
691
      raise result.isex
692
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
693
 
694
  def getItemStatusDescription(self, itemId):
695
    """
696
    Parameters:
697
     - itemId
698
    """
699
    self.send_getItemStatusDescription(itemId)
700
    return self.recv_getItemStatusDescription()
701
 
702
  def send_getItemStatusDescription(self, itemId):
703
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
704
    args = getItemStatusDescription_args()
705
    args.itemId = itemId
706
    args.write(self._oprot)
707
    self._oprot.writeMessageEnd()
708
    self._oprot.trans.flush()
709
 
710
  def recv_getItemStatusDescription(self, ):
711
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
712
    if mtype == TMessageType.EXCEPTION:
713
      x = TApplicationException()
714
      x.read(self._iprot)
715
      self._iprot.readMessageEnd()
716
      raise x
717
    result = getItemStatusDescription_result()
718
    result.read(self._iprot)
719
    self._iprot.readMessageEnd()
720
    if result.success is not None:
721
      return result.success
722
    if result.isex is not None:
723
      raise result.isex
724
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
725
 
726
  def startItemOn(self, item_id, timestamp):
727
    """
728
    Parameters:
729
     - item_id
730
     - timestamp
731
    """
732
    self.send_startItemOn(item_id, timestamp)
733
    self.recv_startItemOn()
734
 
735
  def send_startItemOn(self, item_id, timestamp):
736
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
737
    args = startItemOn_args()
738
    args.item_id = item_id
739
    args.timestamp = timestamp
740
    args.write(self._oprot)
741
    self._oprot.writeMessageEnd()
742
    self._oprot.trans.flush()
743
 
744
  def recv_startItemOn(self, ):
745
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
746
    if mtype == TMessageType.EXCEPTION:
747
      x = TApplicationException()
748
      x.read(self._iprot)
749
      self._iprot.readMessageEnd()
750
      raise x
751
    result = startItemOn_result()
752
    result.read(self._iprot)
753
    self._iprot.readMessageEnd()
754
    if result.cex is not None:
755
      raise result.cex
756
    return
757
 
758
  def retireItemOn(self, item_id, timestamp):
759
    """
760
    Parameters:
761
     - item_id
762
     - timestamp
763
    """
764
    self.send_retireItemOn(item_id, timestamp)
765
    self.recv_retireItemOn()
766
 
767
  def send_retireItemOn(self, item_id, timestamp):
768
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
769
    args = retireItemOn_args()
770
    args.item_id = item_id
771
    args.timestamp = timestamp
772
    args.write(self._oprot)
773
    self._oprot.writeMessageEnd()
774
    self._oprot.trans.flush()
775
 
776
  def recv_retireItemOn(self, ):
777
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
778
    if mtype == TMessageType.EXCEPTION:
779
      x = TApplicationException()
780
      x.read(self._iprot)
781
      self._iprot.readMessageEnd()
782
      raise x
783
    result = retireItemOn_result()
784
    result.read(self._iprot)
785
    self._iprot.readMessageEnd()
786
    if result.cex is not None:
787
      raise result.cex
788
    return
789
 
790
  def changeItemStatus(self, item_id, timestamp, newstatus):
791
    """
792
    Parameters:
793
     - item_id
794
     - timestamp
795
     - newstatus
796
    """
797
    self.send_changeItemStatus(item_id, timestamp, newstatus)
798
    self.recv_changeItemStatus()
799
 
800
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
801
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
802
    args = changeItemStatus_args()
803
    args.item_id = item_id
804
    args.timestamp = timestamp
805
    args.newstatus = newstatus
806
    args.write(self._oprot)
807
    self._oprot.writeMessageEnd()
808
    self._oprot.trans.flush()
809
 
810
  def recv_changeItemStatus(self, ):
811
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
812
    if mtype == TMessageType.EXCEPTION:
813
      x = TApplicationException()
814
      x.read(self._iprot)
815
      self._iprot.readMessageEnd()
816
      raise x
817
    result = changeItemStatus_result()
818
    result.read(self._iprot)
819
    self._iprot.readMessageEnd()
820
    if result.cex is not None:
821
      raise result.cex
822
    return
823
 
824
  def getItem(self, item_id):
825
    """
826
    Parameters:
827
     - item_id
828
    """
829
    self.send_getItem(item_id)
830
    return self.recv_getItem()
831
 
832
  def send_getItem(self, item_id):
833
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
834
    args = getItem_args()
835
    args.item_id = item_id
836
    args.write(self._oprot)
837
    self._oprot.writeMessageEnd()
838
    self._oprot.trans.flush()
839
 
840
  def recv_getItem(self, ):
841
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
842
    if mtype == TMessageType.EXCEPTION:
843
      x = TApplicationException()
844
      x.read(self._iprot)
845
      self._iprot.readMessageEnd()
846
      raise x
847
    result = getItem_result()
848
    result.read(self._iprot)
849
    self._iprot.readMessageEnd()
850
    if result.success is not None:
851
      return result.success
852
    if result.cex is not None:
853
      raise result.cex
854
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
855
 
856
  def getItemsByCatalogId(self, catalog_item_id):
857
    """
858
    Parameters:
859
     - catalog_item_id
860
    """
861
    self.send_getItemsByCatalogId(catalog_item_id)
862
    return self.recv_getItemsByCatalogId()
863
 
864
  def send_getItemsByCatalogId(self, catalog_item_id):
865
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
866
    args = getItemsByCatalogId_args()
867
    args.catalog_item_id = catalog_item_id
868
    args.write(self._oprot)
869
    self._oprot.writeMessageEnd()
870
    self._oprot.trans.flush()
871
 
872
  def recv_getItemsByCatalogId(self, ):
873
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
874
    if mtype == TMessageType.EXCEPTION:
875
      x = TApplicationException()
876
      x.read(self._iprot)
877
      self._iprot.readMessageEnd()
878
      raise x
879
    result = getItemsByCatalogId_result()
880
    result.read(self._iprot)
881
    self._iprot.readMessageEnd()
882
    if result.success is not None:
883
      return result.success
884
    if result.cex is not None:
885
      raise result.cex
886
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
887
 
888
  def getValidItemsByCatalogId(self, catalog_item_id):
889
    """
890
    Parameters:
891
     - catalog_item_id
892
    """
893
    self.send_getValidItemsByCatalogId(catalog_item_id)
894
    return self.recv_getValidItemsByCatalogId()
895
 
896
  def send_getValidItemsByCatalogId(self, catalog_item_id):
897
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
898
    args = getValidItemsByCatalogId_args()
899
    args.catalog_item_id = catalog_item_id
900
    args.write(self._oprot)
901
    self._oprot.writeMessageEnd()
902
    self._oprot.trans.flush()
903
 
904
  def recv_getValidItemsByCatalogId(self, ):
905
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
906
    if mtype == TMessageType.EXCEPTION:
907
      x = TApplicationException()
908
      x.read(self._iprot)
909
      self._iprot.readMessageEnd()
910
      raise x
911
    result = getValidItemsByCatalogId_result()
912
    result.read(self._iprot)
913
    self._iprot.readMessageEnd()
914
    if result.success is not None:
915
      return result.success
916
    if result.cex is not None:
917
      raise result.cex
918
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
919
 
920
  def getAllItems(self, isActive):
921
    """
922
    Parameters:
923
     - isActive
924
    """
925
    self.send_getAllItems(isActive)
926
    return self.recv_getAllItems()
927
 
928
  def send_getAllItems(self, isActive):
929
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
930
    args = getAllItems_args()
931
    args.isActive = isActive
932
    args.write(self._oprot)
933
    self._oprot.writeMessageEnd()
934
    self._oprot.trans.flush()
935
 
936
  def recv_getAllItems(self, ):
937
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
938
    if mtype == TMessageType.EXCEPTION:
939
      x = TApplicationException()
940
      x.read(self._iprot)
941
      self._iprot.readMessageEnd()
942
      raise x
943
    result = getAllItems_result()
944
    result.read(self._iprot)
945
    self._iprot.readMessageEnd()
946
    if result.success is not None:
947
      return result.success
948
    if result.cex is not None:
949
      raise result.cex
950
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
951
 
952
  def getAllItemsByStatus(self, itemStatus):
953
    """
954
    Parameters:
955
     - itemStatus
956
    """
957
    self.send_getAllItemsByStatus(itemStatus)
958
    return self.recv_getAllItemsByStatus()
959
 
960
  def send_getAllItemsByStatus(self, itemStatus):
961
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
962
    args = getAllItemsByStatus_args()
963
    args.itemStatus = itemStatus
964
    args.write(self._oprot)
965
    self._oprot.writeMessageEnd()
966
    self._oprot.trans.flush()
967
 
968
  def recv_getAllItemsByStatus(self, ):
969
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
970
    if mtype == TMessageType.EXCEPTION:
971
      x = TApplicationException()
972
      x.read(self._iprot)
973
      self._iprot.readMessageEnd()
974
      raise x
975
    result = getAllItemsByStatus_result()
976
    result.read(self._iprot)
977
    self._iprot.readMessageEnd()
978
    if result.success is not None:
979
      return result.success
980
    if result.cex is not None:
981
      raise result.cex
982
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
983
 
984
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
985
    """
986
    Parameters:
987
     - entityId
988
     - category
989
     - brand
990
     - modelName
991
     - modelNumber
992
    """
993
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
994
    return self.recv_markItemAsContentComplete()
995
 
996
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
997
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
998
    args = markItemAsContentComplete_args()
999
    args.entityId = entityId
1000
    args.category = category
1001
    args.brand = brand
1002
    args.modelName = modelName
1003
    args.modelNumber = modelNumber
1004
    args.write(self._oprot)
1005
    self._oprot.writeMessageEnd()
1006
    self._oprot.trans.flush()
1007
 
1008
  def recv_markItemAsContentComplete(self, ):
1009
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1010
    if mtype == TMessageType.EXCEPTION:
1011
      x = TApplicationException()
1012
      x.read(self._iprot)
1013
      self._iprot.readMessageEnd()
1014
      raise x
1015
    result = markItemAsContentComplete_result()
1016
    result.read(self._iprot)
1017
    self._iprot.readMessageEnd()
1018
    if result.success is not None:
1019
      return result.success
1020
    if result.cex is not None:
1021
      raise result.cex
1022
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1023
 
1024
  def getAllItemsInRange(self, offset, limit):
1025
    """
1026
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1027
 
1028
    Parameters:
1029
     - offset
1030
     - limit
1031
    """
1032
    self.send_getAllItemsInRange(offset, limit)
1033
    return self.recv_getAllItemsInRange()
1034
 
1035
  def send_getAllItemsInRange(self, offset, limit):
1036
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1037
    args = getAllItemsInRange_args()
1038
    args.offset = offset
1039
    args.limit = limit
1040
    args.write(self._oprot)
1041
    self._oprot.writeMessageEnd()
1042
    self._oprot.trans.flush()
1043
 
1044
  def recv_getAllItemsInRange(self, ):
1045
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1046
    if mtype == TMessageType.EXCEPTION:
1047
      x = TApplicationException()
1048
      x.read(self._iprot)
1049
      self._iprot.readMessageEnd()
1050
      raise x
1051
    result = getAllItemsInRange_result()
1052
    result.read(self._iprot)
1053
    self._iprot.readMessageEnd()
1054
    if result.success is not None:
1055
      return result.success
1056
    if result.cex is not None:
1057
      raise result.cex
1058
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1059
 
1060
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1061
    """
1062
    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.
1063
 
1064
    Parameters:
1065
     - itemStatus
1066
     - offset
1067
     - limit
1068
    """
1069
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1070
    return self.recv_getAllItemsByStatusInRange()
1071
 
1072
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1073
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1074
    args = getAllItemsByStatusInRange_args()
1075
    args.itemStatus = itemStatus
1076
    args.offset = offset
1077
    args.limit = limit
1078
    args.write(self._oprot)
1079
    self._oprot.writeMessageEnd()
1080
    self._oprot.trans.flush()
1081
 
1082
  def recv_getAllItemsByStatusInRange(self, ):
1083
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1084
    if mtype == TMessageType.EXCEPTION:
1085
      x = TApplicationException()
1086
      x.read(self._iprot)
1087
      self._iprot.readMessageEnd()
1088
      raise x
1089
    result = getAllItemsByStatusInRange_result()
1090
    result.read(self._iprot)
1091
    self._iprot.readMessageEnd()
1092
    if result.success is not None:
1093
      return result.success
1094
    if result.cex is not None:
1095
      raise result.cex
1096
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1097
 
1098
  def getItemCountByStatus(self, useStatus, itemStatus):
1099
    """
1100
    Gets a count of all items by status
1101
 
1102
    Parameters:
1103
     - useStatus
1104
     - itemStatus
1105
    """
1106
    self.send_getItemCountByStatus(useStatus, itemStatus)
1107
    return self.recv_getItemCountByStatus()
1108
 
1109
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1110
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1111
    args = getItemCountByStatus_args()
1112
    args.useStatus = useStatus
1113
    args.itemStatus = itemStatus
1114
    args.write(self._oprot)
1115
    self._oprot.writeMessageEnd()
1116
    self._oprot.trans.flush()
1117
 
1118
  def recv_getItemCountByStatus(self, ):
1119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1120
    if mtype == TMessageType.EXCEPTION:
1121
      x = TApplicationException()
1122
      x.read(self._iprot)
1123
      self._iprot.readMessageEnd()
1124
      raise x
1125
    result = getItemCountByStatus_result()
1126
    result.read(self._iprot)
1127
    self._iprot.readMessageEnd()
1128
    if result.success is not None:
1129
      return result.success
1130
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1131
 
1132
  def getBestSellers(self, ):
1133
    self.send_getBestSellers()
1134
    return self.recv_getBestSellers()
1135
 
1136
  def send_getBestSellers(self, ):
1137
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1138
    args = getBestSellers_args()
1139
    args.write(self._oprot)
1140
    self._oprot.writeMessageEnd()
1141
    self._oprot.trans.flush()
1142
 
1143
  def recv_getBestSellers(self, ):
1144
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1145
    if mtype == TMessageType.EXCEPTION:
1146
      x = TApplicationException()
1147
      x.read(self._iprot)
1148
      self._iprot.readMessageEnd()
1149
      raise x
1150
    result = getBestSellers_result()
1151
    result.read(self._iprot)
1152
    self._iprot.readMessageEnd()
1153
    if result.success is not None:
1154
      return result.success
1155
    if result.isex is not None:
1156
      raise result.isex
1157
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1158
 
1159
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1160
    """
1161
    Parameters:
1162
     - beginIndex
1163
     - totalItems
1164
     - brand
1165
     - category
1166
    """
1167
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1168
    return self.recv_getBestSellersCatalogIds()
1169
 
1170
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1171
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1172
    args = getBestSellersCatalogIds_args()
1173
    args.beginIndex = beginIndex
1174
    args.totalItems = totalItems
1175
    args.brand = brand
1176
    args.category = category
1177
    args.write(self._oprot)
1178
    self._oprot.writeMessageEnd()
1179
    self._oprot.trans.flush()
1180
 
1181
  def recv_getBestSellersCatalogIds(self, ):
1182
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1183
    if mtype == TMessageType.EXCEPTION:
1184
      x = TApplicationException()
1185
      x.read(self._iprot)
1186
      self._iprot.readMessageEnd()
1187
      raise x
1188
    result = getBestSellersCatalogIds_result()
1189
    result.read(self._iprot)
1190
    self._iprot.readMessageEnd()
1191
    if result.success is not None:
1192
      return result.success
1193
    if result.cex is not None:
1194
      raise result.cex
1195
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1196
 
1197
  def getBestSellersCount(self, ):
1198
    self.send_getBestSellersCount()
1199
    return self.recv_getBestSellersCount()
1200
 
1201
  def send_getBestSellersCount(self, ):
1202
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1203
    args = getBestSellersCount_args()
1204
    args.write(self._oprot)
1205
    self._oprot.writeMessageEnd()
1206
    self._oprot.trans.flush()
1207
 
1208
  def recv_getBestSellersCount(self, ):
1209
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1210
    if mtype == TMessageType.EXCEPTION:
1211
      x = TApplicationException()
1212
      x.read(self._iprot)
1213
      self._iprot.readMessageEnd()
1214
      raise x
1215
    result = getBestSellersCount_result()
1216
    result.read(self._iprot)
1217
    self._iprot.readMessageEnd()
1218
    if result.success is not None:
1219
      return result.success
1220
    if result.cex is not None:
1221
      raise result.cex
1222
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1223
 
1224
  def getBestDeals(self, ):
1225
    self.send_getBestDeals()
1226
    return self.recv_getBestDeals()
1227
 
1228
  def send_getBestDeals(self, ):
1229
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1230
    args = getBestDeals_args()
1231
    args.write(self._oprot)
1232
    self._oprot.writeMessageEnd()
1233
    self._oprot.trans.flush()
1234
 
1235
  def recv_getBestDeals(self, ):
1236
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1237
    if mtype == TMessageType.EXCEPTION:
1238
      x = TApplicationException()
1239
      x.read(self._iprot)
1240
      self._iprot.readMessageEnd()
1241
      raise x
1242
    result = getBestDeals_result()
1243
    result.read(self._iprot)
1244
    self._iprot.readMessageEnd()
1245
    if result.success is not None:
1246
      return result.success
1247
    if result.isex is not None:
1248
      raise result.isex
1249
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1250
 
1251
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1252
    """
1253
    Parameters:
1254
     - beginIndex
1255
     - totalItems
1256
     - brand
1257
     - category
1258
    """
1259
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1260
    return self.recv_getBestDealsCatalogIds()
1261
 
1262
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1263
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1264
    args = getBestDealsCatalogIds_args()
1265
    args.beginIndex = beginIndex
1266
    args.totalItems = totalItems
1267
    args.brand = brand
1268
    args.category = category
1269
    args.write(self._oprot)
1270
    self._oprot.writeMessageEnd()
1271
    self._oprot.trans.flush()
1272
 
1273
  def recv_getBestDealsCatalogIds(self, ):
1274
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1275
    if mtype == TMessageType.EXCEPTION:
1276
      x = TApplicationException()
1277
      x.read(self._iprot)
1278
      self._iprot.readMessageEnd()
1279
      raise x
1280
    result = getBestDealsCatalogIds_result()
1281
    result.read(self._iprot)
1282
    self._iprot.readMessageEnd()
1283
    if result.success is not None:
1284
      return result.success
1285
    if result.cex is not None:
1286
      raise result.cex
1287
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1288
 
1289
  def getBestDealsCount(self, ):
1290
    self.send_getBestDealsCount()
1291
    return self.recv_getBestDealsCount()
1292
 
1293
  def send_getBestDealsCount(self, ):
1294
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1295
    args = getBestDealsCount_args()
1296
    args.write(self._oprot)
1297
    self._oprot.writeMessageEnd()
1298
    self._oprot.trans.flush()
1299
 
1300
  def recv_getBestDealsCount(self, ):
1301
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1302
    if mtype == TMessageType.EXCEPTION:
1303
      x = TApplicationException()
1304
      x.read(self._iprot)
1305
      self._iprot.readMessageEnd()
1306
      raise x
1307
    result = getBestDealsCount_result()
1308
    result.read(self._iprot)
1309
    self._iprot.readMessageEnd()
1310
    if result.success is not None:
1311
      return result.success
1312
    if result.cex is not None:
1313
      raise result.cex
1314
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1315
 
1316
  def getComingSoon(self, ):
1317
    self.send_getComingSoon()
1318
    return self.recv_getComingSoon()
1319
 
1320
  def send_getComingSoon(self, ):
1321
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1322
    args = getComingSoon_args()
1323
    args.write(self._oprot)
1324
    self._oprot.writeMessageEnd()
1325
    self._oprot.trans.flush()
1326
 
1327
  def recv_getComingSoon(self, ):
1328
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1329
    if mtype == TMessageType.EXCEPTION:
1330
      x = TApplicationException()
1331
      x.read(self._iprot)
1332
      self._iprot.readMessageEnd()
1333
      raise x
1334
    result = getComingSoon_result()
1335
    result.read(self._iprot)
1336
    self._iprot.readMessageEnd()
1337
    if result.success is not None:
1338
      return result.success
1339
    if result.isex is not None:
1340
      raise result.isex
1341
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1342
 
1343
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1344
    """
1345
    Parameters:
1346
     - beginIndex
1347
     - totalItems
1348
     - brand
1349
     - category
1350
    """
1351
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1352
    return self.recv_getComingSoonCatalogIds()
1353
 
1354
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1355
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1356
    args = getComingSoonCatalogIds_args()
1357
    args.beginIndex = beginIndex
1358
    args.totalItems = totalItems
1359
    args.brand = brand
1360
    args.category = category
1361
    args.write(self._oprot)
1362
    self._oprot.writeMessageEnd()
1363
    self._oprot.trans.flush()
1364
 
1365
  def recv_getComingSoonCatalogIds(self, ):
1366
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1367
    if mtype == TMessageType.EXCEPTION:
1368
      x = TApplicationException()
1369
      x.read(self._iprot)
1370
      self._iprot.readMessageEnd()
1371
      raise x
1372
    result = getComingSoonCatalogIds_result()
1373
    result.read(self._iprot)
1374
    self._iprot.readMessageEnd()
1375
    if result.success is not None:
1376
      return result.success
1377
    if result.cex is not None:
1378
      raise result.cex
1379
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1380
 
1381
  def getComingSoonCount(self, ):
1382
    self.send_getComingSoonCount()
1383
    return self.recv_getComingSoonCount()
1384
 
1385
  def send_getComingSoonCount(self, ):
1386
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1387
    args = getComingSoonCount_args()
1388
    args.write(self._oprot)
1389
    self._oprot.writeMessageEnd()
1390
    self._oprot.trans.flush()
1391
 
1392
  def recv_getComingSoonCount(self, ):
1393
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1394
    if mtype == TMessageType.EXCEPTION:
1395
      x = TApplicationException()
1396
      x.read(self._iprot)
1397
      self._iprot.readMessageEnd()
1398
      raise x
1399
    result = getComingSoonCount_result()
1400
    result.read(self._iprot)
1401
    self._iprot.readMessageEnd()
1402
    if result.success is not None:
1403
      return result.success
1404
    if result.cex is not None:
1405
      raise result.cex
1406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1407
 
1408
  def getLatestArrivals(self, ):
1409
    """
1410
    Returns a list of items sorted in the descending order by start date.
1411
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1412
    """
1413
    self.send_getLatestArrivals()
1414
    return self.recv_getLatestArrivals()
1415
 
1416
  def send_getLatestArrivals(self, ):
1417
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1418
    args = getLatestArrivals_args()
1419
    args.write(self._oprot)
1420
    self._oprot.writeMessageEnd()
1421
    self._oprot.trans.flush()
1422
 
1423
  def recv_getLatestArrivals(self, ):
1424
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1425
    if mtype == TMessageType.EXCEPTION:
1426
      x = TApplicationException()
1427
      x.read(self._iprot)
1428
      self._iprot.readMessageEnd()
1429
      raise x
1430
    result = getLatestArrivals_result()
1431
    result.read(self._iprot)
1432
    self._iprot.readMessageEnd()
1433
    if result.success is not None:
1434
      return result.success
1435
    if result.isex is not None:
1436
      raise result.isex
1437
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1438
 
1439
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1440
    """
1441
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1442
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1443
 
1444
    Parameters:
1445
     - beginIndex
1446
     - totalItems
1447
     - brand
1448
     - categories
1449
    """
1450
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1451
    return self.recv_getLatestArrivalsCatalogIds()
1452
 
1453
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1454
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1455
    args = getLatestArrivalsCatalogIds_args()
1456
    args.beginIndex = beginIndex
1457
    args.totalItems = totalItems
1458
    args.brand = brand
1459
    args.categories = categories
1460
    args.write(self._oprot)
1461
    self._oprot.writeMessageEnd()
1462
    self._oprot.trans.flush()
1463
 
1464
  def recv_getLatestArrivalsCatalogIds(self, ):
1465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1466
    if mtype == TMessageType.EXCEPTION:
1467
      x = TApplicationException()
1468
      x.read(self._iprot)
1469
      self._iprot.readMessageEnd()
1470
      raise x
1471
    result = getLatestArrivalsCatalogIds_result()
1472
    result.read(self._iprot)
1473
    self._iprot.readMessageEnd()
1474
    if result.success is not None:
1475
      return result.success
1476
    if result.cex is not None:
1477
      raise result.cex
1478
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1479
 
1480
  def getLatestArrivalsCount(self, ):
1481
    """
1482
    Get the total number of latest arrivals we are willing to show.
1483
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1484
    """
1485
    self.send_getLatestArrivalsCount()
1486
    return self.recv_getLatestArrivalsCount()
1487
 
1488
  def send_getLatestArrivalsCount(self, ):
1489
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1490
    args = getLatestArrivalsCount_args()
1491
    args.write(self._oprot)
1492
    self._oprot.writeMessageEnd()
1493
    self._oprot.trans.flush()
1494
 
1495
  def recv_getLatestArrivalsCount(self, ):
1496
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1497
    if mtype == TMessageType.EXCEPTION:
1498
      x = TApplicationException()
1499
      x.read(self._iprot)
1500
      self._iprot.readMessageEnd()
1501
      raise x
1502
    result = getLatestArrivalsCount_result()
1503
    result.read(self._iprot)
1504
    self._iprot.readMessageEnd()
1505
    if result.success is not None:
1506
      return result.success
1507
    if result.cex is not None:
1508
      raise result.cex
1509
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1510
 
1511
  def generateNewEntityID(self, ):
1512
    self.send_generateNewEntityID()
1513
    return self.recv_generateNewEntityID()
1514
 
1515
  def send_generateNewEntityID(self, ):
1516
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1517
    args = generateNewEntityID_args()
1518
    args.write(self._oprot)
1519
    self._oprot.writeMessageEnd()
1520
    self._oprot.trans.flush()
1521
 
1522
  def recv_generateNewEntityID(self, ):
1523
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1524
    if mtype == TMessageType.EXCEPTION:
1525
      x = TApplicationException()
1526
      x.read(self._iprot)
1527
      self._iprot.readMessageEnd()
1528
      raise x
1529
    result = generateNewEntityID_result()
1530
    result.read(self._iprot)
1531
    self._iprot.readMessageEnd()
1532
    if result.success is not None:
1533
      return result.success
1534
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1535
 
1536
  def addCategory(self, category):
1537
    """
1538
    All category related functions
1539
 
1540
    Parameters:
1541
     - category
1542
    """
1543
    self.send_addCategory(category)
1544
    return self.recv_addCategory()
1545
 
1546
  def send_addCategory(self, category):
1547
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1548
    args = addCategory_args()
1549
    args.category = category
1550
    args.write(self._oprot)
1551
    self._oprot.writeMessageEnd()
1552
    self._oprot.trans.flush()
1553
 
1554
  def recv_addCategory(self, ):
1555
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1556
    if mtype == TMessageType.EXCEPTION:
1557
      x = TApplicationException()
1558
      x.read(self._iprot)
1559
      self._iprot.readMessageEnd()
1560
      raise x
1561
    result = addCategory_result()
1562
    result.read(self._iprot)
1563
    self._iprot.readMessageEnd()
1564
    if result.success is not None:
1565
      return result.success
1566
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1567
 
1568
  def getCategory(self, id):
1569
    """
1570
    Parameters:
1571
     - id
1572
    """
1573
    self.send_getCategory(id)
1574
    return self.recv_getCategory()
1575
 
1576
  def send_getCategory(self, id):
1577
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1578
    args = getCategory_args()
1579
    args.id = id
1580
    args.write(self._oprot)
1581
    self._oprot.writeMessageEnd()
1582
    self._oprot.trans.flush()
1583
 
1584
  def recv_getCategory(self, ):
1585
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1586
    if mtype == TMessageType.EXCEPTION:
1587
      x = TApplicationException()
1588
      x.read(self._iprot)
1589
      self._iprot.readMessageEnd()
1590
      raise x
1591
    result = getCategory_result()
1592
    result.read(self._iprot)
1593
    self._iprot.readMessageEnd()
1594
    if result.success is not None:
1595
      return result.success
1596
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1597
 
1598
  def getAllCategories(self, ):
1599
    self.send_getAllCategories()
1600
    return self.recv_getAllCategories()
1601
 
1602
  def send_getAllCategories(self, ):
1603
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1604
    args = getAllCategories_args()
1605
    args.write(self._oprot)
1606
    self._oprot.writeMessageEnd()
1607
    self._oprot.trans.flush()
1608
 
1609
  def recv_getAllCategories(self, ):
1610
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1611
    if mtype == TMessageType.EXCEPTION:
1612
      x = TApplicationException()
1613
      x.read(self._iprot)
1614
      self._iprot.readMessageEnd()
1615
      raise x
1616
    result = getAllCategories_result()
1617
    result.read(self._iprot)
1618
    self._iprot.readMessageEnd()
1619
    if result.success is not None:
1620
      return result.success
1621
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1622
 
1623
  def getAllSimilarItems(self, itemId):
1624
    """
1625
    Returns the list of similar items.
1626
 
1627
    Parameters:
1628
     - itemId
1629
    """
1630
    self.send_getAllSimilarItems(itemId)
1631
    return self.recv_getAllSimilarItems()
1632
 
1633
  def send_getAllSimilarItems(self, itemId):
1634
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1635
    args = getAllSimilarItems_args()
1636
    args.itemId = itemId
1637
    args.write(self._oprot)
1638
    self._oprot.writeMessageEnd()
1639
    self._oprot.trans.flush()
1640
 
1641
  def recv_getAllSimilarItems(self, ):
1642
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1643
    if mtype == TMessageType.EXCEPTION:
1644
      x = TApplicationException()
1645
      x.read(self._iprot)
1646
      self._iprot.readMessageEnd()
1647
      raise x
1648
    result = getAllSimilarItems_result()
1649
    result.read(self._iprot)
1650
    self._iprot.readMessageEnd()
1651
    if result.success is not None:
1652
      return result.success
1653
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1654
 
1655
  def addSimilarItem(self, itemId, catalogItemId):
1656
    """
1657
    Adds similar item.
1658
 
1659
    Parameters:
1660
     - itemId
1661
     - catalogItemId
1662
    """
1663
    self.send_addSimilarItem(itemId, catalogItemId)
1664
    return self.recv_addSimilarItem()
1665
 
1666
  def send_addSimilarItem(self, itemId, catalogItemId):
1667
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1668
    args = addSimilarItem_args()
1669
    args.itemId = itemId
1670
    args.catalogItemId = catalogItemId
1671
    args.write(self._oprot)
1672
    self._oprot.writeMessageEnd()
1673
    self._oprot.trans.flush()
1674
 
1675
  def recv_addSimilarItem(self, ):
1676
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1677
    if mtype == TMessageType.EXCEPTION:
1678
      x = TApplicationException()
1679
      x.read(self._iprot)
1680
      self._iprot.readMessageEnd()
1681
      raise x
1682
    result = addSimilarItem_result()
1683
    result.read(self._iprot)
1684
    self._iprot.readMessageEnd()
1685
    if result.success is not None:
1686
      return result.success
1687
    if result.cex is not None:
1688
      raise result.cex
1689
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1690
 
6512 kshitij.so 1691
  def addTag(self, displayName, itemId):
1692
    """
1693
    Tag Related
1694
 
1695
    Parameters:
1696
     - displayName
1697
     - itemId
1698
    """
1699
    self.send_addTag(displayName, itemId)
1700
    return self.recv_addTag()
1701
 
1702
  def send_addTag(self, displayName, itemId):
1703
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1704
    args = addTag_args()
1705
    args.displayName = displayName
1706
    args.itemId = itemId
1707
    args.write(self._oprot)
1708
    self._oprot.writeMessageEnd()
1709
    self._oprot.trans.flush()
1710
 
1711
  def recv_addTag(self, ):
1712
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1713
    if mtype == TMessageType.EXCEPTION:
1714
      x = TApplicationException()
1715
      x.read(self._iprot)
1716
      self._iprot.readMessageEnd()
1717
      raise x
1718
    result = addTag_result()
1719
    result.read(self._iprot)
1720
    self._iprot.readMessageEnd()
1721
    if result.success is not None:
1722
      return result.success
1723
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1724
 
1725
  def deleteEntityTag(self, displayName, itemId):
1726
    """
1727
    Parameters:
1728
     - displayName
1729
     - itemId
1730
    """
1731
    self.send_deleteEntityTag(displayName, itemId)
1732
    return self.recv_deleteEntityTag()
1733
 
1734
  def send_deleteEntityTag(self, displayName, itemId):
1735
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1736
    args = deleteEntityTag_args()
1737
    args.displayName = displayName
1738
    args.itemId = itemId
1739
    args.write(self._oprot)
1740
    self._oprot.writeMessageEnd()
1741
    self._oprot.trans.flush()
1742
 
1743
  def recv_deleteEntityTag(self, ):
1744
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1745
    if mtype == TMessageType.EXCEPTION:
1746
      x = TApplicationException()
1747
      x.read(self._iprot)
1748
      self._iprot.readMessageEnd()
1749
      raise x
1750
    result = deleteEntityTag_result()
1751
    result.read(self._iprot)
1752
    self._iprot.readMessageEnd()
1753
    if result.success is not None:
1754
      return result.success
1755
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1756
 
1757
  def deleteTag(self, displayName):
1758
    """
1759
    Parameters:
1760
     - displayName
1761
    """
1762
    self.send_deleteTag(displayName)
1763
    return self.recv_deleteTag()
1764
 
1765
  def send_deleteTag(self, displayName):
1766
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1767
    args = deleteTag_args()
1768
    args.displayName = displayName
1769
    args.write(self._oprot)
1770
    self._oprot.writeMessageEnd()
1771
    self._oprot.trans.flush()
1772
 
1773
  def recv_deleteTag(self, ):
1774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1775
    if mtype == TMessageType.EXCEPTION:
1776
      x = TApplicationException()
1777
      x.read(self._iprot)
1778
      self._iprot.readMessageEnd()
1779
      raise x
1780
    result = deleteTag_result()
1781
    result.read(self._iprot)
1782
    self._iprot.readMessageEnd()
1783
    if result.success is not None:
1784
      return result.success
1785
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1786
 
1787
  def getAllTags(self, ):
1788
    self.send_getAllTags()
1789
    return self.recv_getAllTags()
1790
 
1791
  def send_getAllTags(self, ):
1792
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1793
    args = getAllTags_args()
1794
    args.write(self._oprot)
1795
    self._oprot.writeMessageEnd()
1796
    self._oprot.trans.flush()
1797
 
1798
  def recv_getAllTags(self, ):
1799
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1800
    if mtype == TMessageType.EXCEPTION:
1801
      x = TApplicationException()
1802
      x.read(self._iprot)
1803
      self._iprot.readMessageEnd()
1804
      raise x
1805
    result = getAllTags_result()
1806
    result.read(self._iprot)
1807
    self._iprot.readMessageEnd()
1808
    if result.success is not None:
1809
      return result.success
1810
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1811
 
1812
  def getAllEntitiesByTagName(self, displayName):
1813
    """
1814
    Parameters:
1815
     - displayName
1816
    """
1817
    self.send_getAllEntitiesByTagName(displayName)
1818
    return self.recv_getAllEntitiesByTagName()
1819
 
1820
  def send_getAllEntitiesByTagName(self, displayName):
1821
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1822
    args = getAllEntitiesByTagName_args()
1823
    args.displayName = displayName
1824
    args.write(self._oprot)
1825
    self._oprot.writeMessageEnd()
1826
    self._oprot.trans.flush()
1827
 
1828
  def recv_getAllEntitiesByTagName(self, ):
1829
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1830
    if mtype == TMessageType.EXCEPTION:
1831
      x = TApplicationException()
1832
      x.read(self._iprot)
1833
      self._iprot.readMessageEnd()
1834
      raise x
1835
    result = getAllEntitiesByTagName_result()
1836
    result.read(self._iprot)
1837
    self._iprot.readMessageEnd()
1838
    if result.success is not None:
1839
      return result.success
1840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1841
 
5944 mandeep.dh 1842
  def deleteSimilarItem(self, itemId, catalogItemId):
1843
    """
1844
    Delete similar item.
1845
 
1846
    Parameters:
1847
     - itemId
1848
     - catalogItemId
1849
    """
1850
    self.send_deleteSimilarItem(itemId, catalogItemId)
1851
    return self.recv_deleteSimilarItem()
1852
 
1853
  def send_deleteSimilarItem(self, itemId, catalogItemId):
1854
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
1855
    args = deleteSimilarItem_args()
1856
    args.itemId = itemId
1857
    args.catalogItemId = catalogItemId
1858
    args.write(self._oprot)
1859
    self._oprot.writeMessageEnd()
1860
    self._oprot.trans.flush()
1861
 
1862
  def recv_deleteSimilarItem(self, ):
1863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1864
    if mtype == TMessageType.EXCEPTION:
1865
      x = TApplicationException()
1866
      x.read(self._iprot)
1867
      self._iprot.readMessageEnd()
1868
      raise x
1869
    result = deleteSimilarItem_result()
1870
    result.read(self._iprot)
1871
    self._iprot.readMessageEnd()
1872
    if result.success is not None:
1873
      return result.success
1874
    if result.cex is not None:
1875
      raise result.cex
1876
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
1877
 
1878
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
1879
    """
1880
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
1881
    If yes, returns the itemId else returns 0
1882
 
1883
    Parameters:
1884
     - brand
1885
     - modelNumber
1886
     - modelName
1887
     - color
1888
    """
1889
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
1890
    return self.recv_checkSimilarItem()
1891
 
1892
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
1893
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
1894
    args = checkSimilarItem_args()
1895
    args.brand = brand
1896
    args.modelNumber = modelNumber
1897
    args.modelName = modelName
1898
    args.color = color
1899
    args.write(self._oprot)
1900
    self._oprot.writeMessageEnd()
1901
    self._oprot.trans.flush()
1902
 
1903
  def recv_checkSimilarItem(self, ):
1904
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1905
    if mtype == TMessageType.EXCEPTION:
1906
      x = TApplicationException()
1907
      x.read(self._iprot)
1908
      self._iprot.readMessageEnd()
1909
      raise x
1910
    result = checkSimilarItem_result()
1911
    result.read(self._iprot)
1912
    self._iprot.readMessageEnd()
1913
    if result.success is not None:
1914
      return result.success
1915
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
1916
 
1917
  def validateRiskyStatus(self, itemId):
1918
    """
1919
    Check wether item is risky and change status if inventory is not available for risky items
1920
 
1921
    Parameters:
1922
     - itemId
1923
    """
1924
    self.send_validateRiskyStatus(itemId)
1925
    self.recv_validateRiskyStatus()
1926
 
1927
  def send_validateRiskyStatus(self, itemId):
1928
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
1929
    args = validateRiskyStatus_args()
1930
    args.itemId = itemId
1931
    args.write(self._oprot)
1932
    self._oprot.writeMessageEnd()
1933
    self._oprot.trans.flush()
1934
 
1935
  def recv_validateRiskyStatus(self, ):
1936
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1937
    if mtype == TMessageType.EXCEPTION:
1938
      x = TApplicationException()
1939
      x.read(self._iprot)
1940
      self._iprot.readMessageEnd()
1941
      raise x
1942
    result = validateRiskyStatus_result()
1943
    result.read(self._iprot)
1944
    self._iprot.readMessageEnd()
1945
    return
1946
 
1947
  def changeItemRiskyFlag(self, itemId, risky):
1948
    """
1949
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
1950
 
1951
    Parameters:
1952
     - itemId
1953
     - risky
1954
    """
1955
    self.send_changeItemRiskyFlag(itemId, risky)
1956
    self.recv_changeItemRiskyFlag()
1957
 
1958
  def send_changeItemRiskyFlag(self, itemId, risky):
1959
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
1960
    args = changeItemRiskyFlag_args()
1961
    args.itemId = itemId
1962
    args.risky = risky
1963
    args.write(self._oprot)
1964
    self._oprot.writeMessageEnd()
1965
    self._oprot.trans.flush()
1966
 
1967
  def recv_changeItemRiskyFlag(self, ):
1968
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1969
    if mtype == TMessageType.EXCEPTION:
1970
      x = TApplicationException()
1971
      x.read(self._iprot)
1972
      self._iprot.readMessageEnd()
1973
      raise x
1974
    result = changeItemRiskyFlag_result()
1975
    result.read(self._iprot)
1976
    self._iprot.readMessageEnd()
1977
    return
1978
 
1979
  def getItemsByRiskyFlag(self, ):
1980
    """
1981
    Returns list of items marked as risky.
1982
    """
1983
    self.send_getItemsByRiskyFlag()
1984
    return self.recv_getItemsByRiskyFlag()
1985
 
1986
  def send_getItemsByRiskyFlag(self, ):
1987
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
1988
    args = getItemsByRiskyFlag_args()
1989
    args.write(self._oprot)
1990
    self._oprot.writeMessageEnd()
1991
    self._oprot.trans.flush()
1992
 
1993
  def recv_getItemsByRiskyFlag(self, ):
1994
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1995
    if mtype == TMessageType.EXCEPTION:
1996
      x = TApplicationException()
1997
      x.read(self._iprot)
1998
      self._iprot.readMessageEnd()
1999
      raise x
2000
    result = getItemsByRiskyFlag_result()
2001
    result.read(self._iprot)
2002
    self._iprot.readMessageEnd()
2003
    if result.success is not None:
2004
      return result.success
2005
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2006
 
2007
  def getItemsForMasterSheet(self, category, brand):
2008
    """
2009
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2010
 
2011
    Parameters:
2012
     - category
2013
     - brand
2014
    """
2015
    self.send_getItemsForMasterSheet(category, brand)
2016
    return self.recv_getItemsForMasterSheet()
2017
 
2018
  def send_getItemsForMasterSheet(self, category, brand):
2019
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2020
    args = getItemsForMasterSheet_args()
2021
    args.category = category
2022
    args.brand = brand
2023
    args.write(self._oprot)
2024
    self._oprot.writeMessageEnd()
2025
    self._oprot.trans.flush()
2026
 
2027
  def recv_getItemsForMasterSheet(self, ):
2028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2029
    if mtype == TMessageType.EXCEPTION:
2030
      x = TApplicationException()
2031
      x.read(self._iprot)
2032
      self._iprot.readMessageEnd()
2033
      raise x
2034
    result = getItemsForMasterSheet_result()
2035
    result.read(self._iprot)
2036
    self._iprot.readMessageEnd()
2037
    if result.success is not None:
2038
      return result.success
2039
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2040
 
2041
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2042
    """
2043
    Returns list of catalog ids of items with same similarity index as of the given itemId
2044
 
2045
    Parameters:
2046
     - beginIndex
2047
     - totalItems
2048
     - itemId
2049
    """
2050
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2051
    return self.recv_getSimilarItemsCatalogIds()
2052
 
2053
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2054
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2055
    args = getSimilarItemsCatalogIds_args()
2056
    args.beginIndex = beginIndex
2057
    args.totalItems = totalItems
2058
    args.itemId = itemId
2059
    args.write(self._oprot)
2060
    self._oprot.writeMessageEnd()
2061
    self._oprot.trans.flush()
2062
 
2063
  def recv_getSimilarItemsCatalogIds(self, ):
2064
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2065
    if mtype == TMessageType.EXCEPTION:
2066
      x = TApplicationException()
2067
      x.read(self._iprot)
2068
      self._iprot.readMessageEnd()
2069
      raise x
2070
    result = getSimilarItemsCatalogIds_result()
2071
    result.read(self._iprot)
2072
    self._iprot.readMessageEnd()
2073
    if result.success is not None:
2074
      return result.success
2075
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2076
 
2077
  def addProductNotification(self, itemId, email):
2078
    """
2079
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2080
 
2081
    Parameters:
2082
     - itemId
2083
     - email
2084
    """
2085
    self.send_addProductNotification(itemId, email)
2086
    return self.recv_addProductNotification()
2087
 
2088
  def send_addProductNotification(self, itemId, email):
2089
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2090
    args = addProductNotification_args()
2091
    args.itemId = itemId
2092
    args.email = email
2093
    args.write(self._oprot)
2094
    self._oprot.writeMessageEnd()
2095
    self._oprot.trans.flush()
2096
 
2097
  def recv_addProductNotification(self, ):
2098
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2099
    if mtype == TMessageType.EXCEPTION:
2100
      x = TApplicationException()
2101
      x.read(self._iprot)
2102
      self._iprot.readMessageEnd()
2103
      raise x
2104
    result = addProductNotification_result()
2105
    result.read(self._iprot)
2106
    self._iprot.readMessageEnd()
2107
    if result.success is not None:
2108
      return result.success
2109
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2110
 
2111
  def sendProductNotifications(self, ):
2112
    """
2113
    Send the product notifications to the users for items which has stock.
2114
    """
2115
    self.send_sendProductNotifications()
2116
    return self.recv_sendProductNotifications()
2117
 
2118
  def send_sendProductNotifications(self, ):
2119
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2120
    args = sendProductNotifications_args()
2121
    args.write(self._oprot)
2122
    self._oprot.writeMessageEnd()
2123
    self._oprot.trans.flush()
2124
 
2125
  def recv_sendProductNotifications(self, ):
2126
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2127
    if mtype == TMessageType.EXCEPTION:
2128
      x = TApplicationException()
2129
      x.read(self._iprot)
2130
      self._iprot.readMessageEnd()
2131
      raise x
2132
    result = sendProductNotifications_result()
2133
    result.read(self._iprot)
2134
    self._iprot.readMessageEnd()
2135
    if result.success is not None:
2136
      return result.success
2137
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2138
 
2139
  def getAllBrandsByCategory(self, categoryId):
2140
    """
2141
    Returns list of brand names for a given category Id
2142
 
2143
    Parameters:
2144
     - categoryId
2145
    """
2146
    self.send_getAllBrandsByCategory(categoryId)
2147
    return self.recv_getAllBrandsByCategory()
2148
 
2149
  def send_getAllBrandsByCategory(self, categoryId):
2150
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2151
    args = getAllBrandsByCategory_args()
2152
    args.categoryId = categoryId
2153
    args.write(self._oprot)
2154
    self._oprot.writeMessageEnd()
2155
    self._oprot.trans.flush()
2156
 
2157
  def recv_getAllBrandsByCategory(self, ):
2158
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2159
    if mtype == TMessageType.EXCEPTION:
2160
      x = TApplicationException()
2161
      x.read(self._iprot)
2162
      self._iprot.readMessageEnd()
2163
      raise x
2164
    result = getAllBrandsByCategory_result()
2165
    result.read(self._iprot)
2166
    self._iprot.readMessageEnd()
2167
    if result.success is not None:
2168
      return result.success
2169
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2170
 
2171
  def getAllBrands(self, ):
2172
    """
2173
    Returns list of brand names
2174
    """
2175
    self.send_getAllBrands()
2176
    return self.recv_getAllBrands()
2177
 
2178
  def send_getAllBrands(self, ):
2179
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2180
    args = getAllBrands_args()
2181
    args.write(self._oprot)
2182
    self._oprot.writeMessageEnd()
2183
    self._oprot.trans.flush()
2184
 
2185
  def recv_getAllBrands(self, ):
2186
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2187
    if mtype == TMessageType.EXCEPTION:
2188
      x = TApplicationException()
2189
      x.read(self._iprot)
2190
      self._iprot.readMessageEnd()
2191
      raise x
2192
    result = getAllBrands_result()
2193
    result.read(self._iprot)
2194
    self._iprot.readMessageEnd()
2195
    if result.success is not None:
2196
      return result.success
2197
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2198
 
2199
  def getAllSources(self, ):
2200
    """
2201
    Return list of all sources
2202
    """
2203
    self.send_getAllSources()
2204
    return self.recv_getAllSources()
2205
 
2206
  def send_getAllSources(self, ):
2207
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2208
    args = getAllSources_args()
2209
    args.write(self._oprot)
2210
    self._oprot.writeMessageEnd()
2211
    self._oprot.trans.flush()
2212
 
2213
  def recv_getAllSources(self, ):
2214
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2215
    if mtype == TMessageType.EXCEPTION:
2216
      x = TApplicationException()
2217
      x.read(self._iprot)
2218
      self._iprot.readMessageEnd()
2219
      raise x
2220
    result = getAllSources_result()
2221
    result.read(self._iprot)
2222
    self._iprot.readMessageEnd()
2223
    if result.success is not None:
2224
      return result.success
2225
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2226
 
2227
  def getItemPricingBySource(self, itemId, sourceId):
2228
    """
2229
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2230
 
2231
    Parameters:
2232
     - itemId
2233
     - sourceId
2234
    """
2235
    self.send_getItemPricingBySource(itemId, sourceId)
2236
    return self.recv_getItemPricingBySource()
2237
 
2238
  def send_getItemPricingBySource(self, itemId, sourceId):
2239
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2240
    args = getItemPricingBySource_args()
2241
    args.itemId = itemId
2242
    args.sourceId = sourceId
2243
    args.write(self._oprot)
2244
    self._oprot.writeMessageEnd()
2245
    self._oprot.trans.flush()
2246
 
2247
  def recv_getItemPricingBySource(self, ):
2248
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2249
    if mtype == TMessageType.EXCEPTION:
2250
      x = TApplicationException()
2251
      x.read(self._iprot)
2252
      self._iprot.readMessageEnd()
2253
      raise x
2254
    result = getItemPricingBySource_result()
2255
    result.read(self._iprot)
2256
    self._iprot.readMessageEnd()
2257
    if result.success is not None:
2258
      return result.success
2259
    if result.cex is not None:
2260
      raise result.cex
2261
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2262
 
2263
  def addSourceItemPricing(self, sourceItemPricing):
2264
    """
2265
    Adds prices to be displayed corresponding to the item if user comes from a source.
2266
    If item is not found or source is not found, it will throw exception.
2267
 
2268
    Parameters:
2269
     - sourceItemPricing
2270
    """
2271
    self.send_addSourceItemPricing(sourceItemPricing)
2272
    self.recv_addSourceItemPricing()
2273
 
2274
  def send_addSourceItemPricing(self, sourceItemPricing):
2275
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2276
    args = addSourceItemPricing_args()
2277
    args.sourceItemPricing = sourceItemPricing
2278
    args.write(self._oprot)
2279
    self._oprot.writeMessageEnd()
2280
    self._oprot.trans.flush()
2281
 
2282
  def recv_addSourceItemPricing(self, ):
2283
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2284
    if mtype == TMessageType.EXCEPTION:
2285
      x = TApplicationException()
2286
      x.read(self._iprot)
2287
      self._iprot.readMessageEnd()
2288
      raise x
2289
    result = addSourceItemPricing_result()
2290
    result.read(self._iprot)
2291
    self._iprot.readMessageEnd()
2292
    if result.cex is not None:
2293
      raise result.cex
2294
    return
2295
 
2296
  def getAllSourcePricing(self, itemId):
2297
    """
2298
    Returns the list of source pricing information of an item.
2299
    Raises an exception if item not found corresponding to itemId
2300
 
2301
    Parameters:
2302
     - itemId
2303
    """
2304
    self.send_getAllSourcePricing(itemId)
2305
    return self.recv_getAllSourcePricing()
2306
 
2307
  def send_getAllSourcePricing(self, itemId):
2308
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2309
    args = getAllSourcePricing_args()
2310
    args.itemId = itemId
2311
    args.write(self._oprot)
2312
    self._oprot.writeMessageEnd()
2313
    self._oprot.trans.flush()
2314
 
2315
  def recv_getAllSourcePricing(self, ):
2316
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2317
    if mtype == TMessageType.EXCEPTION:
2318
      x = TApplicationException()
2319
      x.read(self._iprot)
2320
      self._iprot.readMessageEnd()
2321
      raise x
2322
    result = getAllSourcePricing_result()
2323
    result.read(self._iprot)
2324
    self._iprot.readMessageEnd()
2325
    if result.success is not None:
2326
      return result.success
2327
    if result.cex is not None:
2328
      raise result.cex
2329
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2330
 
2331
  def getItemForSource(self, item_id, sourceId):
2332
    """
2333
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2334
 
2335
    Parameters:
2336
     - item_id
2337
     - sourceId
2338
    """
2339
    self.send_getItemForSource(item_id, sourceId)
2340
    return self.recv_getItemForSource()
2341
 
2342
  def send_getItemForSource(self, item_id, sourceId):
2343
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2344
    args = getItemForSource_args()
2345
    args.item_id = item_id
2346
    args.sourceId = sourceId
2347
    args.write(self._oprot)
2348
    self._oprot.writeMessageEnd()
2349
    self._oprot.trans.flush()
2350
 
2351
  def recv_getItemForSource(self, ):
2352
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2353
    if mtype == TMessageType.EXCEPTION:
2354
      x = TApplicationException()
2355
      x.read(self._iprot)
2356
      self._iprot.readMessageEnd()
2357
      raise x
2358
    result = getItemForSource_result()
2359
    result.read(self._iprot)
2360
    self._iprot.readMessageEnd()
2361
    if result.success is not None:
2362
      return result.success
2363
    if result.cex is not None:
2364
      raise result.cex
2365
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2366
 
2367
  def searchItemsInRange(self, searchTerms, offset, limit):
2368
    """
2369
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2370
 
2371
    Parameters:
2372
     - searchTerms
2373
     - offset
2374
     - limit
2375
    """
2376
    self.send_searchItemsInRange(searchTerms, offset, limit)
2377
    return self.recv_searchItemsInRange()
2378
 
2379
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2380
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2381
    args = searchItemsInRange_args()
2382
    args.searchTerms = searchTerms
2383
    args.offset = offset
2384
    args.limit = limit
2385
    args.write(self._oprot)
2386
    self._oprot.writeMessageEnd()
2387
    self._oprot.trans.flush()
2388
 
2389
  def recv_searchItemsInRange(self, ):
2390
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2391
    if mtype == TMessageType.EXCEPTION:
2392
      x = TApplicationException()
2393
      x.read(self._iprot)
2394
      self._iprot.readMessageEnd()
2395
      raise x
2396
    result = searchItemsInRange_result()
2397
    result.read(self._iprot)
2398
    self._iprot.readMessageEnd()
2399
    if result.success is not None:
2400
      return result.success
2401
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2402
 
2403
  def getSearchResultCount(self, searchTerms):
2404
    """
2405
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2406
 
2407
    Parameters:
2408
     - searchTerms
2409
    """
2410
    self.send_getSearchResultCount(searchTerms)
2411
    return self.recv_getSearchResultCount()
2412
 
2413
  def send_getSearchResultCount(self, searchTerms):
2414
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2415
    args = getSearchResultCount_args()
2416
    args.searchTerms = searchTerms
2417
    args.write(self._oprot)
2418
    self._oprot.writeMessageEnd()
2419
    self._oprot.trans.flush()
2420
 
2421
  def recv_getSearchResultCount(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 = getSearchResultCount_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, "getSearchResultCount failed: unknown result");
2434
 
2435
  def getProductNotifications(self, startDateTime):
2436
    """
2437
    Returns a list of product notifications added after a supplied datetime
2438
 
2439
    Parameters:
2440
     - startDateTime
2441
    """
2442
    self.send_getProductNotifications(startDateTime)
2443
    return self.recv_getProductNotifications()
2444
 
2445
  def send_getProductNotifications(self, startDateTime):
2446
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2447
    args = getProductNotifications_args()
2448
    args.startDateTime = startDateTime
2449
    args.write(self._oprot)
2450
    self._oprot.writeMessageEnd()
2451
    self._oprot.trans.flush()
2452
 
2453
  def recv_getProductNotifications(self, ):
2454
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2455
    if mtype == TMessageType.EXCEPTION:
2456
      x = TApplicationException()
2457
      x.read(self._iprot)
2458
      self._iprot.readMessageEnd()
2459
      raise x
2460
    result = getProductNotifications_result()
2461
    result.read(self._iprot)
2462
    self._iprot.readMessageEnd()
2463
    if result.success is not None:
2464
      return result.success
2465
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2466
 
2467
  def getProductNotificationRequestCount(self, startDateTime):
2468
    """
2469
    Returns a list of count of requests for product notification against each item
2470
 
2471
    Parameters:
2472
     - startDateTime
2473
    """
2474
    self.send_getProductNotificationRequestCount(startDateTime)
2475
    return self.recv_getProductNotificationRequestCount()
2476
 
2477
  def send_getProductNotificationRequestCount(self, startDateTime):
2478
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2479
    args = getProductNotificationRequestCount_args()
2480
    args.startDateTime = startDateTime
2481
    args.write(self._oprot)
2482
    self._oprot.writeMessageEnd()
2483
    self._oprot.trans.flush()
2484
 
2485
  def recv_getProductNotificationRequestCount(self, ):
2486
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2487
    if mtype == TMessageType.EXCEPTION:
2488
      x = TApplicationException()
2489
      x.read(self._iprot)
2490
      self._iprot.readMessageEnd()
2491
      raise x
2492
    result = getProductNotificationRequestCount_result()
2493
    result.read(self._iprot)
2494
    self._iprot.readMessageEnd()
2495
    if result.success is not None:
2496
      return result.success
2497
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2498
 
2499
  def addAuthorizationLog(self, itemId, username, reason):
2500
    """
2501
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2502
 
2503
    Parameters:
2504
     - itemId
2505
     - username
2506
     - reason
2507
    """
2508
    self.send_addAuthorizationLog(itemId, username, reason)
2509
    return self.recv_addAuthorizationLog()
2510
 
2511
  def send_addAuthorizationLog(self, itemId, username, reason):
2512
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2513
    args = addAuthorizationLog_args()
2514
    args.itemId = itemId
2515
    args.username = username
2516
    args.reason = reason
2517
    args.write(self._oprot)
2518
    self._oprot.writeMessageEnd()
2519
    self._oprot.trans.flush()
2520
 
2521
  def recv_addAuthorizationLog(self, ):
2522
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2523
    if mtype == TMessageType.EXCEPTION:
2524
      x = TApplicationException()
2525
      x.read(self._iprot)
2526
      self._iprot.readMessageEnd()
2527
      raise x
2528
    result = addAuthorizationLog_result()
2529
    result.read(self._iprot)
2530
    self._iprot.readMessageEnd()
2531
    if result.success is not None:
2532
      return result.success
2533
    if result.cex is not None:
2534
      raise result.cex
2535
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2536
 
2537
  def getClearanceSaleCatalogIds(self, ):
2538
    self.send_getClearanceSaleCatalogIds()
2539
    return self.recv_getClearanceSaleCatalogIds()
2540
 
2541
  def send_getClearanceSaleCatalogIds(self, ):
2542
    self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)
2543
    args = getClearanceSaleCatalogIds_args()
2544
    args.write(self._oprot)
2545
    self._oprot.writeMessageEnd()
2546
    self._oprot.trans.flush()
2547
 
2548
  def recv_getClearanceSaleCatalogIds(self, ):
2549
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2550
    if mtype == TMessageType.EXCEPTION:
2551
      x = TApplicationException()
2552
      x.read(self._iprot)
2553
      self._iprot.readMessageEnd()
2554
      raise x
2555
    result = getClearanceSaleCatalogIds_result()
2556
    result.read(self._iprot)
2557
    self._iprot.readMessageEnd()
2558
    if result.success is not None:
2559
      return result.success
2560
    if result.cex is not None:
2561
      raise result.cex
2562
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2563
 
2564
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2565
    """
2566
    Parameters:
2567
     - catalog_item_id
2568
     - voucherType
2569
     - voucherAmount
2570
    """
2571
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2572
    return self.recv_addupdateVoucherForItem()
2573
 
2574
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2575
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2576
    args = addupdateVoucherForItem_args()
2577
    args.catalog_item_id = catalog_item_id
2578
    args.voucherType = voucherType
2579
    args.voucherAmount = voucherAmount
2580
    args.write(self._oprot)
2581
    self._oprot.writeMessageEnd()
2582
    self._oprot.trans.flush()
2583
 
2584
  def recv_addupdateVoucherForItem(self, ):
2585
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2586
    if mtype == TMessageType.EXCEPTION:
2587
      x = TApplicationException()
2588
      x.read(self._iprot)
2589
      self._iprot.readMessageEnd()
2590
      raise x
2591
    result = addupdateVoucherForItem_result()
2592
    result.read(self._iprot)
2593
    self._iprot.readMessageEnd()
2594
    if result.success is not None:
2595
      return result.success
2596
    if result.cex is not None:
2597
      raise result.cex
2598
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2599
 
2600
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2601
    """
2602
    Parameters:
2603
     - catalog_item_id
2604
     - voucherType
2605
    """
2606
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2607
    return self.recv_deleteVoucherForItem()
2608
 
2609
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2610
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2611
    args = deleteVoucherForItem_args()
2612
    args.catalog_item_id = catalog_item_id
2613
    args.voucherType = voucherType
2614
    args.write(self._oprot)
2615
    self._oprot.writeMessageEnd()
2616
    self._oprot.trans.flush()
2617
 
2618
  def recv_deleteVoucherForItem(self, ):
2619
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2620
    if mtype == TMessageType.EXCEPTION:
2621
      x = TApplicationException()
2622
      x.read(self._iprot)
2623
      self._iprot.readMessageEnd()
2624
      raise x
2625
    result = deleteVoucherForItem_result()
2626
    result.read(self._iprot)
2627
    self._iprot.readMessageEnd()
2628
    if result.success is not None:
2629
      return result.success
2630
    if result.cex is not None:
2631
      raise result.cex
2632
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2633
 
2634
  def getVoucherAmount(self, itemId, voucherType):
2635
    """
2636
    Parameters:
2637
     - itemId
2638
     - voucherType
2639
    """
2640
    self.send_getVoucherAmount(itemId, voucherType)
2641
    return self.recv_getVoucherAmount()
2642
 
2643
  def send_getVoucherAmount(self, itemId, voucherType):
2644
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2645
    args = getVoucherAmount_args()
2646
    args.itemId = itemId
2647
    args.voucherType = voucherType
2648
    args.write(self._oprot)
2649
    self._oprot.writeMessageEnd()
2650
    self._oprot.trans.flush()
2651
 
2652
  def recv_getVoucherAmount(self, ):
2653
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2654
    if mtype == TMessageType.EXCEPTION:
2655
      x = TApplicationException()
2656
      x.read(self._iprot)
2657
      self._iprot.readMessageEnd()
2658
      raise x
2659
    result = getVoucherAmount_result()
2660
    result.read(self._iprot)
2661
    self._iprot.readMessageEnd()
2662
    if result.success is not None:
2663
      return result.success
2664
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
2665
 
2666
  def getAllItemVouchers(self, itemId):
2667
    """
2668
    Parameters:
2669
     - itemId
2670
    """
2671
    self.send_getAllItemVouchers(itemId)
2672
    return self.recv_getAllItemVouchers()
2673
 
2674
  def send_getAllItemVouchers(self, itemId):
2675
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
2676
    args = getAllItemVouchers_args()
2677
    args.itemId = itemId
2678
    args.write(self._oprot)
2679
    self._oprot.writeMessageEnd()
2680
    self._oprot.trans.flush()
2681
 
2682
  def recv_getAllItemVouchers(self, ):
2683
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2684
    if mtype == TMessageType.EXCEPTION:
2685
      x = TApplicationException()
2686
      x.read(self._iprot)
2687
      self._iprot.readMessageEnd()
2688
      raise x
2689
    result = getAllItemVouchers_result()
2690
    result.read(self._iprot)
2691
    self._iprot.readMessageEnd()
2692
    if result.success is not None:
2693
      return result.success
2694
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
2695
 
2696
  def isValidCatalogItemId(self, catalog_item_id):
2697
    """
2698
    Parameters:
2699
     - catalog_item_id
2700
    """
2701
    self.send_isValidCatalogItemId(catalog_item_id)
2702
    return self.recv_isValidCatalogItemId()
2703
 
2704
  def send_isValidCatalogItemId(self, catalog_item_id):
2705
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
2706
    args = isValidCatalogItemId_args()
2707
    args.catalog_item_id = catalog_item_id
2708
    args.write(self._oprot)
2709
    self._oprot.writeMessageEnd()
2710
    self._oprot.trans.flush()
2711
 
2712
  def recv_isValidCatalogItemId(self, ):
2713
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2714
    if mtype == TMessageType.EXCEPTION:
2715
      x = TApplicationException()
2716
      x.read(self._iprot)
2717
      self._iprot.readMessageEnd()
2718
      raise x
2719
    result = isValidCatalogItemId_result()
2720
    result.read(self._iprot)
2721
    self._iprot.readMessageEnd()
2722
    if result.success is not None:
2723
      return result.success
2724
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
2725
 
6039 amit.gupta 2726
  def getVatPercentageForItem(self, itemId, price):
2727
    """
2728
    Parameters:
2729
     - itemId
2730
     - price
2731
    """
2732
    self.send_getVatPercentageForItem(itemId, price)
2733
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 2734
 
6039 amit.gupta 2735
  def send_getVatPercentageForItem(self, itemId, price):
2736
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
2737
    args = getVatPercentageForItem_args()
2738
    args.itemId = itemId
2739
    args.price = price
2740
    args.write(self._oprot)
2741
    self._oprot.writeMessageEnd()
2742
    self._oprot.trans.flush()
2743
 
2744
  def recv_getVatPercentageForItem(self, ):
2745
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2746
    if mtype == TMessageType.EXCEPTION:
2747
      x = TApplicationException()
2748
      x.read(self._iprot)
2749
      self._iprot.readMessageEnd()
2750
      raise x
2751
    result = getVatPercentageForItem_result()
2752
    result.read(self._iprot)
2753
    self._iprot.readMessageEnd()
2754
    if result.success is not None:
2755
      return result.success
2756
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
2757
 
2758
  def getVatAmountForItem(self, itemId, price):
2759
    """
2760
    Parameters:
2761
     - itemId
2762
     - price
2763
    """
2764
    self.send_getVatAmountForItem(itemId, price)
2765
    return self.recv_getVatAmountForItem()
2766
 
2767
  def send_getVatAmountForItem(self, itemId, price):
2768
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
2769
    args = getVatAmountForItem_args()
2770
    args.itemId = itemId
2771
    args.price = price
2772
    args.write(self._oprot)
2773
    self._oprot.writeMessageEnd()
2774
    self._oprot.trans.flush()
2775
 
2776
  def recv_getVatAmountForItem(self, ):
2777
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2778
    if mtype == TMessageType.EXCEPTION:
2779
      x = TApplicationException()
2780
      x.read(self._iprot)
2781
      self._iprot.readMessageEnd()
2782
      raise x
2783
    result = getVatAmountForItem_result()
2784
    result.read(self._iprot)
2785
    self._iprot.readMessageEnd()
2786
    if result.success is not None:
2787
      return result.success
2788
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
2789
 
6531 vikram.rag 2790
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2791
    """
2792
    Parameters:
2793
     - offset
2794
     - limit
2795
    """
2796
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
2797
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 2798
 
6531 vikram.rag 2799
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2800
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
2801
    args = getAllIgnoredInventoryUpdateItemsList_args()
2802
    args.offset = offset
2803
    args.limit = limit
2804
    args.write(self._oprot)
2805
    self._oprot.writeMessageEnd()
2806
    self._oprot.trans.flush()
2807
 
2808
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
2809
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2810
    if mtype == TMessageType.EXCEPTION:
2811
      x = TApplicationException()
2812
      x.read(self._iprot)
2813
      self._iprot.readMessageEnd()
2814
      raise x
2815
    result = getAllIgnoredInventoryUpdateItemsList_result()
2816
    result.read(self._iprot)
2817
    self._iprot.readMessageEnd()
2818
    if result.success is not None:
2819
      return result.success
2820
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
2821
 
6821 amar.kumar 2822
  def getAllAliveItems(self, ):
2823
    self.send_getAllAliveItems()
2824
    return self.recv_getAllAliveItems()
2825
 
2826
  def send_getAllAliveItems(self, ):
2827
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
2828
    args = getAllAliveItems_args()
2829
    args.write(self._oprot)
2830
    self._oprot.writeMessageEnd()
2831
    self._oprot.trans.flush()
2832
 
2833
  def recv_getAllAliveItems(self, ):
2834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2835
    if mtype == TMessageType.EXCEPTION:
2836
      x = TApplicationException()
2837
      x.read(self._iprot)
2838
      self._iprot.readMessageEnd()
2839
      raise x
2840
    result = getAllAliveItems_result()
2841
    result.read(self._iprot)
2842
    self._iprot.readMessageEnd()
2843
    if result.success is not None:
2844
      return result.success
2845
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
2846
 
6805 anupam.sin 2847
  def getInsuranceAmount(self, itemId, insurerId, quantity):
2848
    """
2849
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 2850
 
6805 anupam.sin 2851
    Parameters:
2852
     - itemId
2853
     - insurerId
2854
     - quantity
2855
    """
2856
    self.send_getInsuranceAmount(itemId, insurerId, quantity)
2857
    return self.recv_getInsuranceAmount()
2858
 
2859
  def send_getInsuranceAmount(self, itemId, insurerId, quantity):
2860
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
2861
    args = getInsuranceAmount_args()
2862
    args.itemId = itemId
2863
    args.insurerId = insurerId
2864
    args.quantity = quantity
2865
    args.write(self._oprot)
2866
    self._oprot.writeMessageEnd()
2867
    self._oprot.trans.flush()
2868
 
2869
  def recv_getInsuranceAmount(self, ):
2870
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2871
    if mtype == TMessageType.EXCEPTION:
2872
      x = TApplicationException()
2873
      x.read(self._iprot)
2874
      self._iprot.readMessageEnd()
2875
      raise x
2876
    result = getInsuranceAmount_result()
2877
    result.read(self._iprot)
2878
    self._iprot.readMessageEnd()
2879
    if result.success is not None:
2880
      return result.success
2881
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
2882
 
2883
  def getInsurer(self, insurerId):
2884
    """
2885
    Parameters:
2886
     - insurerId
2887
    """
2888
    self.send_getInsurer(insurerId)
2889
    return self.recv_getInsurer()
2890
 
2891
  def send_getInsurer(self, insurerId):
2892
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
2893
    args = getInsurer_args()
2894
    args.insurerId = insurerId
2895
    args.write(self._oprot)
2896
    self._oprot.writeMessageEnd()
2897
    self._oprot.trans.flush()
2898
 
2899
  def recv_getInsurer(self, ):
2900
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2901
    if mtype == TMessageType.EXCEPTION:
2902
      x = TApplicationException()
2903
      x.read(self._iprot)
2904
      self._iprot.readMessageEnd()
2905
      raise x
2906
    result = getInsurer_result()
2907
    result.read(self._iprot)
2908
    self._iprot.readMessageEnd()
2909
    if result.success is not None:
2910
      return result.success
2911
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
2912
 
2913
 
5944 mandeep.dh 2914
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2915
  def __init__(self, handler):
2916
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2917
    self._processMap["addItem"] = Processor.process_addItem
2918
    self._processMap["updateItem"] = Processor.process_updateItem
2919
    self._processMap["isActive"] = Processor.process_isActive
2920
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
2921
    self._processMap["startItemOn"] = Processor.process_startItemOn
2922
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
2923
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2924
    self._processMap["getItem"] = Processor.process_getItem
2925
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
2926
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
2927
    self._processMap["getAllItems"] = Processor.process_getAllItems
2928
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
2929
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
2930
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
2931
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
2932
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
2933
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
2934
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
2935
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
2936
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
2937
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
2938
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
2939
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
2940
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
2941
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
2942
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
2943
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
2944
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
2945
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
2946
    self._processMap["addCategory"] = Processor.process_addCategory
2947
    self._processMap["getCategory"] = Processor.process_getCategory
2948
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
2949
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
2950
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 2951
    self._processMap["addTag"] = Processor.process_addTag
2952
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
2953
    self._processMap["deleteTag"] = Processor.process_deleteTag
2954
    self._processMap["getAllTags"] = Processor.process_getAllTags
2955
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
5944 mandeep.dh 2956
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
2957
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
2958
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
2959
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
2960
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
2961
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
2962
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
2963
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
2964
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
2965
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
2966
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
2967
    self._processMap["getAllSources"] = Processor.process_getAllSources
2968
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
2969
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
2970
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
2971
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
2972
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
2973
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
2974
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
2975
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
2976
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
2977
    self._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIds
2978
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
2979
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
2980
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
2981
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
2982
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 2983
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
2984
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 2985
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 2986
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 2987
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
2988
    self._processMap["getInsurer"] = Processor.process_getInsurer
5944 mandeep.dh 2989
 
2990
  def process(self, iprot, oprot):
2991
    (name, type, seqid) = iprot.readMessageBegin()
2992
    if name not in self._processMap:
2993
      iprot.skip(TType.STRUCT)
2994
      iprot.readMessageEnd()
2995
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2996
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2997
      x.write(oprot)
2998
      oprot.writeMessageEnd()
2999
      oprot.trans.flush()
3000
      return
3001
    else:
3002
      self._processMap[name](self, seqid, iprot, oprot)
3003
    return True
3004
 
3005
  def process_addItem(self, seqid, iprot, oprot):
3006
    args = addItem_args()
3007
    args.read(iprot)
3008
    iprot.readMessageEnd()
3009
    result = addItem_result()
3010
    try:
3011
      result.success = self._handler.addItem(args.item)
3012
    except CatalogServiceException, cex:
3013
      result.cex = cex
3014
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
3015
    result.write(oprot)
3016
    oprot.writeMessageEnd()
3017
    oprot.trans.flush()
3018
 
3019
  def process_updateItem(self, seqid, iprot, oprot):
3020
    args = updateItem_args()
3021
    args.read(iprot)
3022
    iprot.readMessageEnd()
3023
    result = updateItem_result()
3024
    try:
3025
      result.success = self._handler.updateItem(args.item)
3026
    except CatalogServiceException, cex:
3027
      result.cex = cex
3028
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3029
    result.write(oprot)
3030
    oprot.writeMessageEnd()
3031
    oprot.trans.flush()
3032
 
3033
  def process_isActive(self, seqid, iprot, oprot):
3034
    args = isActive_args()
3035
    args.read(iprot)
3036
    iprot.readMessageEnd()
3037
    result = isActive_result()
3038
    try:
3039
      result.success = self._handler.isActive(args.itemId)
3040
    except CatalogServiceException, isex:
3041
      result.isex = isex
3042
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3043
    result.write(oprot)
3044
    oprot.writeMessageEnd()
3045
    oprot.trans.flush()
3046
 
3047
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3048
    args = getItemStatusDescription_args()
3049
    args.read(iprot)
3050
    iprot.readMessageEnd()
3051
    result = getItemStatusDescription_result()
3052
    try:
3053
      result.success = self._handler.getItemStatusDescription(args.itemId)
3054
    except CatalogServiceException, isex:
3055
      result.isex = isex
3056
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3057
    result.write(oprot)
3058
    oprot.writeMessageEnd()
3059
    oprot.trans.flush()
3060
 
3061
  def process_startItemOn(self, seqid, iprot, oprot):
3062
    args = startItemOn_args()
3063
    args.read(iprot)
3064
    iprot.readMessageEnd()
3065
    result = startItemOn_result()
3066
    try:
3067
      self._handler.startItemOn(args.item_id, args.timestamp)
3068
    except CatalogServiceException, cex:
3069
      result.cex = cex
3070
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3071
    result.write(oprot)
3072
    oprot.writeMessageEnd()
3073
    oprot.trans.flush()
3074
 
3075
  def process_retireItemOn(self, seqid, iprot, oprot):
3076
    args = retireItemOn_args()
3077
    args.read(iprot)
3078
    iprot.readMessageEnd()
3079
    result = retireItemOn_result()
3080
    try:
3081
      self._handler.retireItemOn(args.item_id, args.timestamp)
3082
    except CatalogServiceException, cex:
3083
      result.cex = cex
3084
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3085
    result.write(oprot)
3086
    oprot.writeMessageEnd()
3087
    oprot.trans.flush()
3088
 
3089
  def process_changeItemStatus(self, seqid, iprot, oprot):
3090
    args = changeItemStatus_args()
3091
    args.read(iprot)
3092
    iprot.readMessageEnd()
3093
    result = changeItemStatus_result()
3094
    try:
3095
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3096
    except CatalogServiceException, cex:
3097
      result.cex = cex
3098
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3099
    result.write(oprot)
3100
    oprot.writeMessageEnd()
3101
    oprot.trans.flush()
3102
 
3103
  def process_getItem(self, seqid, iprot, oprot):
3104
    args = getItem_args()
3105
    args.read(iprot)
3106
    iprot.readMessageEnd()
3107
    result = getItem_result()
3108
    try:
3109
      result.success = self._handler.getItem(args.item_id)
3110
    except CatalogServiceException, cex:
3111
      result.cex = cex
3112
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3113
    result.write(oprot)
3114
    oprot.writeMessageEnd()
3115
    oprot.trans.flush()
3116
 
3117
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3118
    args = getItemsByCatalogId_args()
3119
    args.read(iprot)
3120
    iprot.readMessageEnd()
3121
    result = getItemsByCatalogId_result()
3122
    try:
3123
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3124
    except CatalogServiceException, cex:
3125
      result.cex = cex
3126
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3127
    result.write(oprot)
3128
    oprot.writeMessageEnd()
3129
    oprot.trans.flush()
3130
 
3131
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3132
    args = getValidItemsByCatalogId_args()
3133
    args.read(iprot)
3134
    iprot.readMessageEnd()
3135
    result = getValidItemsByCatalogId_result()
3136
    try:
3137
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3138
    except CatalogServiceException, cex:
3139
      result.cex = cex
3140
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3141
    result.write(oprot)
3142
    oprot.writeMessageEnd()
3143
    oprot.trans.flush()
3144
 
3145
  def process_getAllItems(self, seqid, iprot, oprot):
3146
    args = getAllItems_args()
3147
    args.read(iprot)
3148
    iprot.readMessageEnd()
3149
    result = getAllItems_result()
3150
    try:
3151
      result.success = self._handler.getAllItems(args.isActive)
3152
    except CatalogServiceException, cex:
3153
      result.cex = cex
3154
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3155
    result.write(oprot)
3156
    oprot.writeMessageEnd()
3157
    oprot.trans.flush()
3158
 
3159
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3160
    args = getAllItemsByStatus_args()
3161
    args.read(iprot)
3162
    iprot.readMessageEnd()
3163
    result = getAllItemsByStatus_result()
3164
    try:
3165
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3166
    except CatalogServiceException, cex:
3167
      result.cex = cex
3168
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3169
    result.write(oprot)
3170
    oprot.writeMessageEnd()
3171
    oprot.trans.flush()
3172
 
3173
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3174
    args = markItemAsContentComplete_args()
3175
    args.read(iprot)
3176
    iprot.readMessageEnd()
3177
    result = markItemAsContentComplete_result()
3178
    try:
3179
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3180
    except CatalogServiceException, cex:
3181
      result.cex = cex
3182
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3183
    result.write(oprot)
3184
    oprot.writeMessageEnd()
3185
    oprot.trans.flush()
3186
 
3187
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3188
    args = getAllItemsInRange_args()
3189
    args.read(iprot)
3190
    iprot.readMessageEnd()
3191
    result = getAllItemsInRange_result()
3192
    try:
3193
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3194
    except CatalogServiceException, cex:
3195
      result.cex = cex
3196
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3197
    result.write(oprot)
3198
    oprot.writeMessageEnd()
3199
    oprot.trans.flush()
3200
 
3201
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3202
    args = getAllItemsByStatusInRange_args()
3203
    args.read(iprot)
3204
    iprot.readMessageEnd()
3205
    result = getAllItemsByStatusInRange_result()
3206
    try:
3207
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3208
    except CatalogServiceException, cex:
3209
      result.cex = cex
3210
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3211
    result.write(oprot)
3212
    oprot.writeMessageEnd()
3213
    oprot.trans.flush()
3214
 
3215
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3216
    args = getItemCountByStatus_args()
3217
    args.read(iprot)
3218
    iprot.readMessageEnd()
3219
    result = getItemCountByStatus_result()
3220
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3221
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3222
    result.write(oprot)
3223
    oprot.writeMessageEnd()
3224
    oprot.trans.flush()
3225
 
3226
  def process_getBestSellers(self, seqid, iprot, oprot):
3227
    args = getBestSellers_args()
3228
    args.read(iprot)
3229
    iprot.readMessageEnd()
3230
    result = getBestSellers_result()
3231
    try:
3232
      result.success = self._handler.getBestSellers()
3233
    except CatalogServiceException, isex:
3234
      result.isex = isex
3235
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3236
    result.write(oprot)
3237
    oprot.writeMessageEnd()
3238
    oprot.trans.flush()
3239
 
3240
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3241
    args = getBestSellersCatalogIds_args()
3242
    args.read(iprot)
3243
    iprot.readMessageEnd()
3244
    result = getBestSellersCatalogIds_result()
3245
    try:
3246
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3247
    except CatalogServiceException, cex:
3248
      result.cex = cex
3249
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3250
    result.write(oprot)
3251
    oprot.writeMessageEnd()
3252
    oprot.trans.flush()
3253
 
3254
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3255
    args = getBestSellersCount_args()
3256
    args.read(iprot)
3257
    iprot.readMessageEnd()
3258
    result = getBestSellersCount_result()
3259
    try:
3260
      result.success = self._handler.getBestSellersCount()
3261
    except CatalogServiceException, cex:
3262
      result.cex = cex
3263
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3264
    result.write(oprot)
3265
    oprot.writeMessageEnd()
3266
    oprot.trans.flush()
3267
 
3268
  def process_getBestDeals(self, seqid, iprot, oprot):
3269
    args = getBestDeals_args()
3270
    args.read(iprot)
3271
    iprot.readMessageEnd()
3272
    result = getBestDeals_result()
3273
    try:
3274
      result.success = self._handler.getBestDeals()
3275
    except CatalogServiceException, isex:
3276
      result.isex = isex
3277
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3278
    result.write(oprot)
3279
    oprot.writeMessageEnd()
3280
    oprot.trans.flush()
3281
 
3282
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3283
    args = getBestDealsCatalogIds_args()
3284
    args.read(iprot)
3285
    iprot.readMessageEnd()
3286
    result = getBestDealsCatalogIds_result()
3287
    try:
3288
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3289
    except CatalogServiceException, cex:
3290
      result.cex = cex
3291
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3292
    result.write(oprot)
3293
    oprot.writeMessageEnd()
3294
    oprot.trans.flush()
3295
 
3296
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3297
    args = getBestDealsCount_args()
3298
    args.read(iprot)
3299
    iprot.readMessageEnd()
3300
    result = getBestDealsCount_result()
3301
    try:
3302
      result.success = self._handler.getBestDealsCount()
3303
    except CatalogServiceException, cex:
3304
      result.cex = cex
3305
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3306
    result.write(oprot)
3307
    oprot.writeMessageEnd()
3308
    oprot.trans.flush()
3309
 
3310
  def process_getComingSoon(self, seqid, iprot, oprot):
3311
    args = getComingSoon_args()
3312
    args.read(iprot)
3313
    iprot.readMessageEnd()
3314
    result = getComingSoon_result()
3315
    try:
3316
      result.success = self._handler.getComingSoon()
3317
    except CatalogServiceException, isex:
3318
      result.isex = isex
3319
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3320
    result.write(oprot)
3321
    oprot.writeMessageEnd()
3322
    oprot.trans.flush()
3323
 
3324
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3325
    args = getComingSoonCatalogIds_args()
3326
    args.read(iprot)
3327
    iprot.readMessageEnd()
3328
    result = getComingSoonCatalogIds_result()
3329
    try:
3330
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3331
    except CatalogServiceException, cex:
3332
      result.cex = cex
3333
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3334
    result.write(oprot)
3335
    oprot.writeMessageEnd()
3336
    oprot.trans.flush()
3337
 
3338
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3339
    args = getComingSoonCount_args()
3340
    args.read(iprot)
3341
    iprot.readMessageEnd()
3342
    result = getComingSoonCount_result()
3343
    try:
3344
      result.success = self._handler.getComingSoonCount()
3345
    except CatalogServiceException, cex:
3346
      result.cex = cex
3347
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3348
    result.write(oprot)
3349
    oprot.writeMessageEnd()
3350
    oprot.trans.flush()
3351
 
3352
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3353
    args = getLatestArrivals_args()
3354
    args.read(iprot)
3355
    iprot.readMessageEnd()
3356
    result = getLatestArrivals_result()
3357
    try:
3358
      result.success = self._handler.getLatestArrivals()
3359
    except CatalogServiceException, isex:
3360
      result.isex = isex
3361
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3362
    result.write(oprot)
3363
    oprot.writeMessageEnd()
3364
    oprot.trans.flush()
3365
 
3366
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3367
    args = getLatestArrivalsCatalogIds_args()
3368
    args.read(iprot)
3369
    iprot.readMessageEnd()
3370
    result = getLatestArrivalsCatalogIds_result()
3371
    try:
3372
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3373
    except CatalogServiceException, cex:
3374
      result.cex = cex
3375
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3376
    result.write(oprot)
3377
    oprot.writeMessageEnd()
3378
    oprot.trans.flush()
3379
 
3380
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3381
    args = getLatestArrivalsCount_args()
3382
    args.read(iprot)
3383
    iprot.readMessageEnd()
3384
    result = getLatestArrivalsCount_result()
3385
    try:
3386
      result.success = self._handler.getLatestArrivalsCount()
3387
    except CatalogServiceException, cex:
3388
      result.cex = cex
3389
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3390
    result.write(oprot)
3391
    oprot.writeMessageEnd()
3392
    oprot.trans.flush()
3393
 
3394
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3395
    args = generateNewEntityID_args()
3396
    args.read(iprot)
3397
    iprot.readMessageEnd()
3398
    result = generateNewEntityID_result()
3399
    result.success = self._handler.generateNewEntityID()
3400
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3401
    result.write(oprot)
3402
    oprot.writeMessageEnd()
3403
    oprot.trans.flush()
3404
 
3405
  def process_addCategory(self, seqid, iprot, oprot):
3406
    args = addCategory_args()
3407
    args.read(iprot)
3408
    iprot.readMessageEnd()
3409
    result = addCategory_result()
3410
    result.success = self._handler.addCategory(args.category)
3411
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3412
    result.write(oprot)
3413
    oprot.writeMessageEnd()
3414
    oprot.trans.flush()
3415
 
3416
  def process_getCategory(self, seqid, iprot, oprot):
3417
    args = getCategory_args()
3418
    args.read(iprot)
3419
    iprot.readMessageEnd()
3420
    result = getCategory_result()
3421
    result.success = self._handler.getCategory(args.id)
3422
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3423
    result.write(oprot)
3424
    oprot.writeMessageEnd()
3425
    oprot.trans.flush()
3426
 
3427
  def process_getAllCategories(self, seqid, iprot, oprot):
3428
    args = getAllCategories_args()
3429
    args.read(iprot)
3430
    iprot.readMessageEnd()
3431
    result = getAllCategories_result()
3432
    result.success = self._handler.getAllCategories()
3433
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3434
    result.write(oprot)
3435
    oprot.writeMessageEnd()
3436
    oprot.trans.flush()
3437
 
3438
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3439
    args = getAllSimilarItems_args()
3440
    args.read(iprot)
3441
    iprot.readMessageEnd()
3442
    result = getAllSimilarItems_result()
3443
    result.success = self._handler.getAllSimilarItems(args.itemId)
3444
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3445
    result.write(oprot)
3446
    oprot.writeMessageEnd()
3447
    oprot.trans.flush()
3448
 
3449
  def process_addSimilarItem(self, seqid, iprot, oprot):
3450
    args = addSimilarItem_args()
3451
    args.read(iprot)
3452
    iprot.readMessageEnd()
3453
    result = addSimilarItem_result()
3454
    try:
3455
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3456
    except CatalogServiceException, cex:
3457
      result.cex = cex
3458
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3459
    result.write(oprot)
3460
    oprot.writeMessageEnd()
3461
    oprot.trans.flush()
3462
 
6512 kshitij.so 3463
  def process_addTag(self, seqid, iprot, oprot):
3464
    args = addTag_args()
3465
    args.read(iprot)
3466
    iprot.readMessageEnd()
3467
    result = addTag_result()
3468
    result.success = self._handler.addTag(args.displayName, args.itemId)
3469
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3470
    result.write(oprot)
3471
    oprot.writeMessageEnd()
3472
    oprot.trans.flush()
3473
 
3474
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3475
    args = deleteEntityTag_args()
3476
    args.read(iprot)
3477
    iprot.readMessageEnd()
3478
    result = deleteEntityTag_result()
3479
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3480
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3481
    result.write(oprot)
3482
    oprot.writeMessageEnd()
3483
    oprot.trans.flush()
3484
 
3485
  def process_deleteTag(self, seqid, iprot, oprot):
3486
    args = deleteTag_args()
3487
    args.read(iprot)
3488
    iprot.readMessageEnd()
3489
    result = deleteTag_result()
3490
    result.success = self._handler.deleteTag(args.displayName)
3491
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3492
    result.write(oprot)
3493
    oprot.writeMessageEnd()
3494
    oprot.trans.flush()
3495
 
3496
  def process_getAllTags(self, seqid, iprot, oprot):
3497
    args = getAllTags_args()
3498
    args.read(iprot)
3499
    iprot.readMessageEnd()
3500
    result = getAllTags_result()
3501
    result.success = self._handler.getAllTags()
3502
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3503
    result.write(oprot)
3504
    oprot.writeMessageEnd()
3505
    oprot.trans.flush()
3506
 
3507
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3508
    args = getAllEntitiesByTagName_args()
3509
    args.read(iprot)
3510
    iprot.readMessageEnd()
3511
    result = getAllEntitiesByTagName_result()
3512
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
3513
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
3514
    result.write(oprot)
3515
    oprot.writeMessageEnd()
3516
    oprot.trans.flush()
3517
 
5944 mandeep.dh 3518
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
3519
    args = deleteSimilarItem_args()
3520
    args.read(iprot)
3521
    iprot.readMessageEnd()
3522
    result = deleteSimilarItem_result()
3523
    try:
3524
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
3525
    except CatalogServiceException, cex:
3526
      result.cex = cex
3527
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
3528
    result.write(oprot)
3529
    oprot.writeMessageEnd()
3530
    oprot.trans.flush()
3531
 
3532
  def process_checkSimilarItem(self, seqid, iprot, oprot):
3533
    args = checkSimilarItem_args()
3534
    args.read(iprot)
3535
    iprot.readMessageEnd()
3536
    result = checkSimilarItem_result()
3537
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
3538
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
3539
    result.write(oprot)
3540
    oprot.writeMessageEnd()
3541
    oprot.trans.flush()
3542
 
3543
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
3544
    args = validateRiskyStatus_args()
3545
    args.read(iprot)
3546
    iprot.readMessageEnd()
3547
    result = validateRiskyStatus_result()
3548
    self._handler.validateRiskyStatus(args.itemId)
3549
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
3550
    result.write(oprot)
3551
    oprot.writeMessageEnd()
3552
    oprot.trans.flush()
3553
 
3554
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
3555
    args = changeItemRiskyFlag_args()
3556
    args.read(iprot)
3557
    iprot.readMessageEnd()
3558
    result = changeItemRiskyFlag_result()
3559
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
3560
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
3561
    result.write(oprot)
3562
    oprot.writeMessageEnd()
3563
    oprot.trans.flush()
3564
 
3565
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
3566
    args = getItemsByRiskyFlag_args()
3567
    args.read(iprot)
3568
    iprot.readMessageEnd()
3569
    result = getItemsByRiskyFlag_result()
3570
    result.success = self._handler.getItemsByRiskyFlag()
3571
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
3572
    result.write(oprot)
3573
    oprot.writeMessageEnd()
3574
    oprot.trans.flush()
3575
 
3576
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
3577
    args = getItemsForMasterSheet_args()
3578
    args.read(iprot)
3579
    iprot.readMessageEnd()
3580
    result = getItemsForMasterSheet_result()
3581
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
3582
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
3583
    result.write(oprot)
3584
    oprot.writeMessageEnd()
3585
    oprot.trans.flush()
3586
 
3587
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
3588
    args = getSimilarItemsCatalogIds_args()
3589
    args.read(iprot)
3590
    iprot.readMessageEnd()
3591
    result = getSimilarItemsCatalogIds_result()
3592
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
3593
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
3594
    result.write(oprot)
3595
    oprot.writeMessageEnd()
3596
    oprot.trans.flush()
3597
 
3598
  def process_addProductNotification(self, seqid, iprot, oprot):
3599
    args = addProductNotification_args()
3600
    args.read(iprot)
3601
    iprot.readMessageEnd()
3602
    result = addProductNotification_result()
3603
    result.success = self._handler.addProductNotification(args.itemId, args.email)
3604
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
3605
    result.write(oprot)
3606
    oprot.writeMessageEnd()
3607
    oprot.trans.flush()
3608
 
3609
  def process_sendProductNotifications(self, seqid, iprot, oprot):
3610
    args = sendProductNotifications_args()
3611
    args.read(iprot)
3612
    iprot.readMessageEnd()
3613
    result = sendProductNotifications_result()
3614
    result.success = self._handler.sendProductNotifications()
3615
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
3616
    result.write(oprot)
3617
    oprot.writeMessageEnd()
3618
    oprot.trans.flush()
3619
 
3620
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
3621
    args = getAllBrandsByCategory_args()
3622
    args.read(iprot)
3623
    iprot.readMessageEnd()
3624
    result = getAllBrandsByCategory_result()
3625
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
3626
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
3627
    result.write(oprot)
3628
    oprot.writeMessageEnd()
3629
    oprot.trans.flush()
3630
 
3631
  def process_getAllBrands(self, seqid, iprot, oprot):
3632
    args = getAllBrands_args()
3633
    args.read(iprot)
3634
    iprot.readMessageEnd()
3635
    result = getAllBrands_result()
3636
    result.success = self._handler.getAllBrands()
3637
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
3638
    result.write(oprot)
3639
    oprot.writeMessageEnd()
3640
    oprot.trans.flush()
3641
 
3642
  def process_getAllSources(self, seqid, iprot, oprot):
3643
    args = getAllSources_args()
3644
    args.read(iprot)
3645
    iprot.readMessageEnd()
3646
    result = getAllSources_result()
3647
    result.success = self._handler.getAllSources()
3648
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
3649
    result.write(oprot)
3650
    oprot.writeMessageEnd()
3651
    oprot.trans.flush()
3652
 
3653
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
3654
    args = getItemPricingBySource_args()
3655
    args.read(iprot)
3656
    iprot.readMessageEnd()
3657
    result = getItemPricingBySource_result()
3658
    try:
3659
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
3660
    except CatalogServiceException, cex:
3661
      result.cex = cex
3662
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
3663
    result.write(oprot)
3664
    oprot.writeMessageEnd()
3665
    oprot.trans.flush()
3666
 
3667
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
3668
    args = addSourceItemPricing_args()
3669
    args.read(iprot)
3670
    iprot.readMessageEnd()
3671
    result = addSourceItemPricing_result()
3672
    try:
3673
      self._handler.addSourceItemPricing(args.sourceItemPricing)
3674
    except CatalogServiceException, cex:
3675
      result.cex = cex
3676
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
3677
    result.write(oprot)
3678
    oprot.writeMessageEnd()
3679
    oprot.trans.flush()
3680
 
3681
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
3682
    args = getAllSourcePricing_args()
3683
    args.read(iprot)
3684
    iprot.readMessageEnd()
3685
    result = getAllSourcePricing_result()
3686
    try:
3687
      result.success = self._handler.getAllSourcePricing(args.itemId)
3688
    except CatalogServiceException, cex:
3689
      result.cex = cex
3690
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
3691
    result.write(oprot)
3692
    oprot.writeMessageEnd()
3693
    oprot.trans.flush()
3694
 
3695
  def process_getItemForSource(self, seqid, iprot, oprot):
3696
    args = getItemForSource_args()
3697
    args.read(iprot)
3698
    iprot.readMessageEnd()
3699
    result = getItemForSource_result()
3700
    try:
3701
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
3702
    except CatalogServiceException, cex:
3703
      result.cex = cex
3704
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
3705
    result.write(oprot)
3706
    oprot.writeMessageEnd()
3707
    oprot.trans.flush()
3708
 
3709
  def process_searchItemsInRange(self, seqid, iprot, oprot):
3710
    args = searchItemsInRange_args()
3711
    args.read(iprot)
3712
    iprot.readMessageEnd()
3713
    result = searchItemsInRange_result()
3714
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
3715
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
3716
    result.write(oprot)
3717
    oprot.writeMessageEnd()
3718
    oprot.trans.flush()
3719
 
3720
  def process_getSearchResultCount(self, seqid, iprot, oprot):
3721
    args = getSearchResultCount_args()
3722
    args.read(iprot)
3723
    iprot.readMessageEnd()
3724
    result = getSearchResultCount_result()
3725
    result.success = self._handler.getSearchResultCount(args.searchTerms)
3726
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
3727
    result.write(oprot)
3728
    oprot.writeMessageEnd()
3729
    oprot.trans.flush()
3730
 
3731
  def process_getProductNotifications(self, seqid, iprot, oprot):
3732
    args = getProductNotifications_args()
3733
    args.read(iprot)
3734
    iprot.readMessageEnd()
3735
    result = getProductNotifications_result()
3736
    result.success = self._handler.getProductNotifications(args.startDateTime)
3737
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
3738
    result.write(oprot)
3739
    oprot.writeMessageEnd()
3740
    oprot.trans.flush()
3741
 
3742
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
3743
    args = getProductNotificationRequestCount_args()
3744
    args.read(iprot)
3745
    iprot.readMessageEnd()
3746
    result = getProductNotificationRequestCount_result()
3747
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
3748
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
3749
    result.write(oprot)
3750
    oprot.writeMessageEnd()
3751
    oprot.trans.flush()
3752
 
3753
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
3754
    args = addAuthorizationLog_args()
3755
    args.read(iprot)
3756
    iprot.readMessageEnd()
3757
    result = addAuthorizationLog_result()
3758
    try:
3759
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
3760
    except CatalogServiceException, cex:
3761
      result.cex = cex
3762
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
3763
    result.write(oprot)
3764
    oprot.writeMessageEnd()
3765
    oprot.trans.flush()
3766
 
3767
  def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):
3768
    args = getClearanceSaleCatalogIds_args()
3769
    args.read(iprot)
3770
    iprot.readMessageEnd()
3771
    result = getClearanceSaleCatalogIds_result()
3772
    try:
3773
      result.success = self._handler.getClearanceSaleCatalogIds()
3774
    except CatalogServiceException, cex:
3775
      result.cex = cex
3776
    oprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)
3777
    result.write(oprot)
3778
    oprot.writeMessageEnd()
3779
    oprot.trans.flush()
3780
 
3781
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
3782
    args = addupdateVoucherForItem_args()
3783
    args.read(iprot)
3784
    iprot.readMessageEnd()
3785
    result = addupdateVoucherForItem_result()
3786
    try:
3787
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
3788
    except CatalogServiceException, cex:
3789
      result.cex = cex
3790
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
3791
    result.write(oprot)
3792
    oprot.writeMessageEnd()
3793
    oprot.trans.flush()
3794
 
3795
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
3796
    args = deleteVoucherForItem_args()
3797
    args.read(iprot)
3798
    iprot.readMessageEnd()
3799
    result = deleteVoucherForItem_result()
3800
    try:
3801
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
3802
    except CatalogServiceException, cex:
3803
      result.cex = cex
3804
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
3805
    result.write(oprot)
3806
    oprot.writeMessageEnd()
3807
    oprot.trans.flush()
3808
 
3809
  def process_getVoucherAmount(self, seqid, iprot, oprot):
3810
    args = getVoucherAmount_args()
3811
    args.read(iprot)
3812
    iprot.readMessageEnd()
3813
    result = getVoucherAmount_result()
3814
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
3815
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
3816
    result.write(oprot)
3817
    oprot.writeMessageEnd()
3818
    oprot.trans.flush()
3819
 
3820
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
3821
    args = getAllItemVouchers_args()
3822
    args.read(iprot)
3823
    iprot.readMessageEnd()
3824
    result = getAllItemVouchers_result()
3825
    result.success = self._handler.getAllItemVouchers(args.itemId)
3826
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
3827
    result.write(oprot)
3828
    oprot.writeMessageEnd()
3829
    oprot.trans.flush()
3830
 
3831
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
3832
    args = isValidCatalogItemId_args()
3833
    args.read(iprot)
3834
    iprot.readMessageEnd()
3835
    result = isValidCatalogItemId_result()
3836
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
3837
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
3838
    result.write(oprot)
3839
    oprot.writeMessageEnd()
3840
    oprot.trans.flush()
3841
 
6039 amit.gupta 3842
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
3843
    args = getVatPercentageForItem_args()
3844
    args.read(iprot)
3845
    iprot.readMessageEnd()
3846
    result = getVatPercentageForItem_result()
3847
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
3848
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
3849
    result.write(oprot)
3850
    oprot.writeMessageEnd()
3851
    oprot.trans.flush()
5944 mandeep.dh 3852
 
6039 amit.gupta 3853
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
3854
    args = getVatAmountForItem_args()
3855
    args.read(iprot)
3856
    iprot.readMessageEnd()
3857
    result = getVatAmountForItem_result()
3858
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
3859
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
3860
    result.write(oprot)
3861
    oprot.writeMessageEnd()
3862
    oprot.trans.flush()
3863
 
6531 vikram.rag 3864
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
3865
    args = getAllIgnoredInventoryUpdateItemsList_args()
3866
    args.read(iprot)
3867
    iprot.readMessageEnd()
3868
    result = getAllIgnoredInventoryUpdateItemsList_result()
3869
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
3870
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
3871
    result.write(oprot)
3872
    oprot.writeMessageEnd()
3873
    oprot.trans.flush()
6039 amit.gupta 3874
 
6821 amar.kumar 3875
  def process_getAllAliveItems(self, seqid, iprot, oprot):
3876
    args = getAllAliveItems_args()
3877
    args.read(iprot)
3878
    iprot.readMessageEnd()
3879
    result = getAllAliveItems_result()
3880
    result.success = self._handler.getAllAliveItems()
3881
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
3882
    result.write(oprot)
3883
    oprot.writeMessageEnd()
3884
    oprot.trans.flush()
3885
 
6805 anupam.sin 3886
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
3887
    args = getInsuranceAmount_args()
3888
    args.read(iprot)
3889
    iprot.readMessageEnd()
3890
    result = getInsuranceAmount_result()
3891
    result.success = self._handler.getInsuranceAmount(args.itemId, args.insurerId, args.quantity)
3892
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
3893
    result.write(oprot)
3894
    oprot.writeMessageEnd()
3895
    oprot.trans.flush()
6531 vikram.rag 3896
 
6805 anupam.sin 3897
  def process_getInsurer(self, seqid, iprot, oprot):
3898
    args = getInsurer_args()
3899
    args.read(iprot)
3900
    iprot.readMessageEnd()
3901
    result = getInsurer_result()
3902
    result.success = self._handler.getInsurer(args.insurerId)
3903
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
3904
    result.write(oprot)
3905
    oprot.writeMessageEnd()
3906
    oprot.trans.flush()
3907
 
3908
 
5944 mandeep.dh 3909
# HELPER FUNCTIONS AND STRUCTURES
3910
 
3911
class addItem_args:
3912
  """
3913
  Attributes:
3914
   - item
3915
  """
3916
 
3917
  thrift_spec = (
3918
    None, # 0
3919
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
3920
  )
3921
 
3922
  def __init__(self, item=None,):
3923
    self.item = item
3924
 
3925
  def read(self, iprot):
3926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3928
      return
3929
    iprot.readStructBegin()
3930
    while True:
3931
      (fname, ftype, fid) = iprot.readFieldBegin()
3932
      if ftype == TType.STOP:
3933
        break
3934
      if fid == 1:
3935
        if ftype == TType.STRUCT:
3936
          self.item = Item()
3937
          self.item.read(iprot)
3938
        else:
3939
          iprot.skip(ftype)
3940
      else:
3941
        iprot.skip(ftype)
3942
      iprot.readFieldEnd()
3943
    iprot.readStructEnd()
3944
 
3945
  def write(self, oprot):
3946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3948
      return
3949
    oprot.writeStructBegin('addItem_args')
3950
    if self.item is not None:
3951
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
3952
      self.item.write(oprot)
3953
      oprot.writeFieldEnd()
3954
    oprot.writeFieldStop()
3955
    oprot.writeStructEnd()
3956
 
3957
  def validate(self):
3958
    return
3959
 
3960
 
3961
  def __repr__(self):
3962
    L = ['%s=%r' % (key, value)
3963
      for key, value in self.__dict__.iteritems()]
3964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3965
 
3966
  def __eq__(self, other):
3967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3968
 
3969
  def __ne__(self, other):
3970
    return not (self == other)
3971
 
3972
class addItem_result:
3973
  """
3974
  Attributes:
3975
   - success
3976
   - cex
3977
  """
3978
 
3979
  thrift_spec = (
3980
    (0, TType.I64, 'success', None, None, ), # 0
3981
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
3982
  )
3983
 
3984
  def __init__(self, success=None, cex=None,):
3985
    self.success = success
3986
    self.cex = cex
3987
 
3988
  def read(self, iprot):
3989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3991
      return
3992
    iprot.readStructBegin()
3993
    while True:
3994
      (fname, ftype, fid) = iprot.readFieldBegin()
3995
      if ftype == TType.STOP:
3996
        break
3997
      if fid == 0:
3998
        if ftype == TType.I64:
3999
          self.success = iprot.readI64();
4000
        else:
4001
          iprot.skip(ftype)
4002
      elif fid == 1:
4003
        if ftype == TType.STRUCT:
4004
          self.cex = CatalogServiceException()
4005
          self.cex.read(iprot)
4006
        else:
4007
          iprot.skip(ftype)
4008
      else:
4009
        iprot.skip(ftype)
4010
      iprot.readFieldEnd()
4011
    iprot.readStructEnd()
4012
 
4013
  def write(self, oprot):
4014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4016
      return
4017
    oprot.writeStructBegin('addItem_result')
4018
    if self.success is not None:
4019
      oprot.writeFieldBegin('success', TType.I64, 0)
4020
      oprot.writeI64(self.success)
4021
      oprot.writeFieldEnd()
4022
    if self.cex is not None:
4023
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4024
      self.cex.write(oprot)
4025
      oprot.writeFieldEnd()
4026
    oprot.writeFieldStop()
4027
    oprot.writeStructEnd()
4028
 
4029
  def validate(self):
4030
    return
4031
 
4032
 
4033
  def __repr__(self):
4034
    L = ['%s=%r' % (key, value)
4035
      for key, value in self.__dict__.iteritems()]
4036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4037
 
4038
  def __eq__(self, other):
4039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4040
 
4041
  def __ne__(self, other):
4042
    return not (self == other)
4043
 
4044
class updateItem_args:
4045
  """
4046
  Attributes:
4047
   - item
4048
  """
4049
 
4050
  thrift_spec = (
4051
    None, # 0
4052
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4053
  )
4054
 
4055
  def __init__(self, item=None,):
4056
    self.item = item
4057
 
4058
  def read(self, iprot):
4059
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4060
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4061
      return
4062
    iprot.readStructBegin()
4063
    while True:
4064
      (fname, ftype, fid) = iprot.readFieldBegin()
4065
      if ftype == TType.STOP:
4066
        break
4067
      if fid == 1:
4068
        if ftype == TType.STRUCT:
4069
          self.item = Item()
4070
          self.item.read(iprot)
4071
        else:
4072
          iprot.skip(ftype)
4073
      else:
4074
        iprot.skip(ftype)
4075
      iprot.readFieldEnd()
4076
    iprot.readStructEnd()
4077
 
4078
  def write(self, oprot):
4079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4081
      return
4082
    oprot.writeStructBegin('updateItem_args')
4083
    if self.item is not None:
4084
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4085
      self.item.write(oprot)
4086
      oprot.writeFieldEnd()
4087
    oprot.writeFieldStop()
4088
    oprot.writeStructEnd()
4089
 
4090
  def validate(self):
4091
    return
4092
 
4093
 
4094
  def __repr__(self):
4095
    L = ['%s=%r' % (key, value)
4096
      for key, value in self.__dict__.iteritems()]
4097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4098
 
4099
  def __eq__(self, other):
4100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4101
 
4102
  def __ne__(self, other):
4103
    return not (self == other)
4104
 
4105
class updateItem_result:
4106
  """
4107
  Attributes:
4108
   - success
4109
   - cex
4110
  """
4111
 
4112
  thrift_spec = (
4113
    (0, TType.I64, 'success', None, None, ), # 0
4114
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4115
  )
4116
 
4117
  def __init__(self, success=None, cex=None,):
4118
    self.success = success
4119
    self.cex = cex
4120
 
4121
  def read(self, iprot):
4122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4124
      return
4125
    iprot.readStructBegin()
4126
    while True:
4127
      (fname, ftype, fid) = iprot.readFieldBegin()
4128
      if ftype == TType.STOP:
4129
        break
4130
      if fid == 0:
4131
        if ftype == TType.I64:
4132
          self.success = iprot.readI64();
4133
        else:
4134
          iprot.skip(ftype)
4135
      elif fid == 1:
4136
        if ftype == TType.STRUCT:
4137
          self.cex = CatalogServiceException()
4138
          self.cex.read(iprot)
4139
        else:
4140
          iprot.skip(ftype)
4141
      else:
4142
        iprot.skip(ftype)
4143
      iprot.readFieldEnd()
4144
    iprot.readStructEnd()
4145
 
4146
  def write(self, oprot):
4147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4149
      return
4150
    oprot.writeStructBegin('updateItem_result')
4151
    if self.success is not None:
4152
      oprot.writeFieldBegin('success', TType.I64, 0)
4153
      oprot.writeI64(self.success)
4154
      oprot.writeFieldEnd()
4155
    if self.cex is not None:
4156
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4157
      self.cex.write(oprot)
4158
      oprot.writeFieldEnd()
4159
    oprot.writeFieldStop()
4160
    oprot.writeStructEnd()
4161
 
4162
  def validate(self):
4163
    return
4164
 
4165
 
4166
  def __repr__(self):
4167
    L = ['%s=%r' % (key, value)
4168
      for key, value in self.__dict__.iteritems()]
4169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4170
 
4171
  def __eq__(self, other):
4172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4173
 
4174
  def __ne__(self, other):
4175
    return not (self == other)
4176
 
4177
class isActive_args:
4178
  """
4179
  Attributes:
4180
   - itemId
4181
  """
4182
 
4183
  thrift_spec = (
4184
    None, # 0
4185
    (1, TType.I64, 'itemId', None, None, ), # 1
4186
  )
4187
 
4188
  def __init__(self, itemId=None,):
4189
    self.itemId = itemId
4190
 
4191
  def read(self, iprot):
4192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4194
      return
4195
    iprot.readStructBegin()
4196
    while True:
4197
      (fname, ftype, fid) = iprot.readFieldBegin()
4198
      if ftype == TType.STOP:
4199
        break
4200
      if fid == 1:
4201
        if ftype == TType.I64:
4202
          self.itemId = iprot.readI64();
4203
        else:
4204
          iprot.skip(ftype)
4205
      else:
4206
        iprot.skip(ftype)
4207
      iprot.readFieldEnd()
4208
    iprot.readStructEnd()
4209
 
4210
  def write(self, oprot):
4211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4213
      return
4214
    oprot.writeStructBegin('isActive_args')
4215
    if self.itemId is not None:
4216
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4217
      oprot.writeI64(self.itemId)
4218
      oprot.writeFieldEnd()
4219
    oprot.writeFieldStop()
4220
    oprot.writeStructEnd()
4221
 
4222
  def validate(self):
4223
    return
4224
 
4225
 
4226
  def __repr__(self):
4227
    L = ['%s=%r' % (key, value)
4228
      for key, value in self.__dict__.iteritems()]
4229
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4230
 
4231
  def __eq__(self, other):
4232
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4233
 
4234
  def __ne__(self, other):
4235
    return not (self == other)
4236
 
4237
class isActive_result:
4238
  """
4239
  Attributes:
4240
   - success
4241
   - isex
4242
  """
4243
 
4244
  thrift_spec = (
4245
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4246
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4247
  )
4248
 
4249
  def __init__(self, success=None, isex=None,):
4250
    self.success = success
4251
    self.isex = isex
4252
 
4253
  def read(self, iprot):
4254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4256
      return
4257
    iprot.readStructBegin()
4258
    while True:
4259
      (fname, ftype, fid) = iprot.readFieldBegin()
4260
      if ftype == TType.STOP:
4261
        break
4262
      if fid == 0:
4263
        if ftype == TType.STRUCT:
4264
          self.success = ItemShippingInfo()
4265
          self.success.read(iprot)
4266
        else:
4267
          iprot.skip(ftype)
4268
      elif fid == 1:
4269
        if ftype == TType.STRUCT:
4270
          self.isex = CatalogServiceException()
4271
          self.isex.read(iprot)
4272
        else:
4273
          iprot.skip(ftype)
4274
      else:
4275
        iprot.skip(ftype)
4276
      iprot.readFieldEnd()
4277
    iprot.readStructEnd()
4278
 
4279
  def write(self, oprot):
4280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4282
      return
4283
    oprot.writeStructBegin('isActive_result')
4284
    if self.success is not None:
4285
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4286
      self.success.write(oprot)
4287
      oprot.writeFieldEnd()
4288
    if self.isex is not None:
4289
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4290
      self.isex.write(oprot)
4291
      oprot.writeFieldEnd()
4292
    oprot.writeFieldStop()
4293
    oprot.writeStructEnd()
4294
 
4295
  def validate(self):
4296
    return
4297
 
4298
 
4299
  def __repr__(self):
4300
    L = ['%s=%r' % (key, value)
4301
      for key, value in self.__dict__.iteritems()]
4302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4303
 
4304
  def __eq__(self, other):
4305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4306
 
4307
  def __ne__(self, other):
4308
    return not (self == other)
4309
 
4310
class getItemStatusDescription_args:
4311
  """
4312
  Attributes:
4313
   - itemId
4314
  """
4315
 
4316
  thrift_spec = (
4317
    None, # 0
4318
    (1, TType.I64, 'itemId', None, None, ), # 1
4319
  )
4320
 
4321
  def __init__(self, itemId=None,):
4322
    self.itemId = itemId
4323
 
4324
  def read(self, iprot):
4325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4327
      return
4328
    iprot.readStructBegin()
4329
    while True:
4330
      (fname, ftype, fid) = iprot.readFieldBegin()
4331
      if ftype == TType.STOP:
4332
        break
4333
      if fid == 1:
4334
        if ftype == TType.I64:
4335
          self.itemId = iprot.readI64();
4336
        else:
4337
          iprot.skip(ftype)
4338
      else:
4339
        iprot.skip(ftype)
4340
      iprot.readFieldEnd()
4341
    iprot.readStructEnd()
4342
 
4343
  def write(self, oprot):
4344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4346
      return
4347
    oprot.writeStructBegin('getItemStatusDescription_args')
4348
    if self.itemId is not None:
4349
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4350
      oprot.writeI64(self.itemId)
4351
      oprot.writeFieldEnd()
4352
    oprot.writeFieldStop()
4353
    oprot.writeStructEnd()
4354
 
4355
  def validate(self):
4356
    return
4357
 
4358
 
4359
  def __repr__(self):
4360
    L = ['%s=%r' % (key, value)
4361
      for key, value in self.__dict__.iteritems()]
4362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4363
 
4364
  def __eq__(self, other):
4365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4366
 
4367
  def __ne__(self, other):
4368
    return not (self == other)
4369
 
4370
class getItemStatusDescription_result:
4371
  """
4372
  Attributes:
4373
   - success
4374
   - isex
4375
  """
4376
 
4377
  thrift_spec = (
4378
    (0, TType.STRING, 'success', None, None, ), # 0
4379
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4380
  )
4381
 
4382
  def __init__(self, success=None, isex=None,):
4383
    self.success = success
4384
    self.isex = isex
4385
 
4386
  def read(self, iprot):
4387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4389
      return
4390
    iprot.readStructBegin()
4391
    while True:
4392
      (fname, ftype, fid) = iprot.readFieldBegin()
4393
      if ftype == TType.STOP:
4394
        break
4395
      if fid == 0:
4396
        if ftype == TType.STRING:
4397
          self.success = iprot.readString();
4398
        else:
4399
          iprot.skip(ftype)
4400
      elif fid == 1:
4401
        if ftype == TType.STRUCT:
4402
          self.isex = CatalogServiceException()
4403
          self.isex.read(iprot)
4404
        else:
4405
          iprot.skip(ftype)
4406
      else:
4407
        iprot.skip(ftype)
4408
      iprot.readFieldEnd()
4409
    iprot.readStructEnd()
4410
 
4411
  def write(self, oprot):
4412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4414
      return
4415
    oprot.writeStructBegin('getItemStatusDescription_result')
4416
    if self.success is not None:
4417
      oprot.writeFieldBegin('success', TType.STRING, 0)
4418
      oprot.writeString(self.success)
4419
      oprot.writeFieldEnd()
4420
    if self.isex is not None:
4421
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4422
      self.isex.write(oprot)
4423
      oprot.writeFieldEnd()
4424
    oprot.writeFieldStop()
4425
    oprot.writeStructEnd()
4426
 
4427
  def validate(self):
4428
    return
4429
 
4430
 
4431
  def __repr__(self):
4432
    L = ['%s=%r' % (key, value)
4433
      for key, value in self.__dict__.iteritems()]
4434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4435
 
4436
  def __eq__(self, other):
4437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4438
 
4439
  def __ne__(self, other):
4440
    return not (self == other)
4441
 
4442
class startItemOn_args:
4443
  """
4444
  Attributes:
4445
   - item_id
4446
   - timestamp
4447
  """
4448
 
4449
  thrift_spec = (
4450
    None, # 0
4451
    (1, TType.I64, 'item_id', None, None, ), # 1
4452
    (2, TType.I64, 'timestamp', None, None, ), # 2
4453
  )
4454
 
4455
  def __init__(self, item_id=None, timestamp=None,):
4456
    self.item_id = item_id
4457
    self.timestamp = timestamp
4458
 
4459
  def read(self, iprot):
4460
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4461
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4462
      return
4463
    iprot.readStructBegin()
4464
    while True:
4465
      (fname, ftype, fid) = iprot.readFieldBegin()
4466
      if ftype == TType.STOP:
4467
        break
4468
      if fid == 1:
4469
        if ftype == TType.I64:
4470
          self.item_id = iprot.readI64();
4471
        else:
4472
          iprot.skip(ftype)
4473
      elif fid == 2:
4474
        if ftype == TType.I64:
4475
          self.timestamp = iprot.readI64();
4476
        else:
4477
          iprot.skip(ftype)
4478
      else:
4479
        iprot.skip(ftype)
4480
      iprot.readFieldEnd()
4481
    iprot.readStructEnd()
4482
 
4483
  def write(self, oprot):
4484
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4485
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4486
      return
4487
    oprot.writeStructBegin('startItemOn_args')
4488
    if self.item_id is not None:
4489
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4490
      oprot.writeI64(self.item_id)
4491
      oprot.writeFieldEnd()
4492
    if self.timestamp is not None:
4493
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4494
      oprot.writeI64(self.timestamp)
4495
      oprot.writeFieldEnd()
4496
    oprot.writeFieldStop()
4497
    oprot.writeStructEnd()
4498
 
4499
  def validate(self):
4500
    return
4501
 
4502
 
4503
  def __repr__(self):
4504
    L = ['%s=%r' % (key, value)
4505
      for key, value in self.__dict__.iteritems()]
4506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4507
 
4508
  def __eq__(self, other):
4509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4510
 
4511
  def __ne__(self, other):
4512
    return not (self == other)
4513
 
4514
class startItemOn_result:
4515
  """
4516
  Attributes:
4517
   - cex
4518
  """
4519
 
4520
  thrift_spec = (
4521
    None, # 0
4522
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4523
  )
4524
 
4525
  def __init__(self, cex=None,):
4526
    self.cex = cex
4527
 
4528
  def read(self, iprot):
4529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4531
      return
4532
    iprot.readStructBegin()
4533
    while True:
4534
      (fname, ftype, fid) = iprot.readFieldBegin()
4535
      if ftype == TType.STOP:
4536
        break
4537
      if fid == 1:
4538
        if ftype == TType.STRUCT:
4539
          self.cex = CatalogServiceException()
4540
          self.cex.read(iprot)
4541
        else:
4542
          iprot.skip(ftype)
4543
      else:
4544
        iprot.skip(ftype)
4545
      iprot.readFieldEnd()
4546
    iprot.readStructEnd()
4547
 
4548
  def write(self, oprot):
4549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4551
      return
4552
    oprot.writeStructBegin('startItemOn_result')
4553
    if self.cex is not None:
4554
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4555
      self.cex.write(oprot)
4556
      oprot.writeFieldEnd()
4557
    oprot.writeFieldStop()
4558
    oprot.writeStructEnd()
4559
 
4560
  def validate(self):
4561
    return
4562
 
4563
 
4564
  def __repr__(self):
4565
    L = ['%s=%r' % (key, value)
4566
      for key, value in self.__dict__.iteritems()]
4567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4568
 
4569
  def __eq__(self, other):
4570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4571
 
4572
  def __ne__(self, other):
4573
    return not (self == other)
4574
 
4575
class retireItemOn_args:
4576
  """
4577
  Attributes:
4578
   - item_id
4579
   - timestamp
4580
  """
4581
 
4582
  thrift_spec = (
4583
    None, # 0
4584
    (1, TType.I64, 'item_id', None, None, ), # 1
4585
    (2, TType.I64, 'timestamp', None, None, ), # 2
4586
  )
4587
 
4588
  def __init__(self, item_id=None, timestamp=None,):
4589
    self.item_id = item_id
4590
    self.timestamp = timestamp
4591
 
4592
  def read(self, iprot):
4593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4595
      return
4596
    iprot.readStructBegin()
4597
    while True:
4598
      (fname, ftype, fid) = iprot.readFieldBegin()
4599
      if ftype == TType.STOP:
4600
        break
4601
      if fid == 1:
4602
        if ftype == TType.I64:
4603
          self.item_id = iprot.readI64();
4604
        else:
4605
          iprot.skip(ftype)
4606
      elif fid == 2:
4607
        if ftype == TType.I64:
4608
          self.timestamp = iprot.readI64();
4609
        else:
4610
          iprot.skip(ftype)
4611
      else:
4612
        iprot.skip(ftype)
4613
      iprot.readFieldEnd()
4614
    iprot.readStructEnd()
4615
 
4616
  def write(self, oprot):
4617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4619
      return
4620
    oprot.writeStructBegin('retireItemOn_args')
4621
    if self.item_id is not None:
4622
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4623
      oprot.writeI64(self.item_id)
4624
      oprot.writeFieldEnd()
4625
    if self.timestamp is not None:
4626
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4627
      oprot.writeI64(self.timestamp)
4628
      oprot.writeFieldEnd()
4629
    oprot.writeFieldStop()
4630
    oprot.writeStructEnd()
4631
 
4632
  def validate(self):
4633
    return
4634
 
4635
 
4636
  def __repr__(self):
4637
    L = ['%s=%r' % (key, value)
4638
      for key, value in self.__dict__.iteritems()]
4639
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4640
 
4641
  def __eq__(self, other):
4642
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4643
 
4644
  def __ne__(self, other):
4645
    return not (self == other)
4646
 
4647
class retireItemOn_result:
4648
  """
4649
  Attributes:
4650
   - cex
4651
  """
4652
 
4653
  thrift_spec = (
4654
    None, # 0
4655
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4656
  )
4657
 
4658
  def __init__(self, cex=None,):
4659
    self.cex = cex
4660
 
4661
  def read(self, iprot):
4662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4664
      return
4665
    iprot.readStructBegin()
4666
    while True:
4667
      (fname, ftype, fid) = iprot.readFieldBegin()
4668
      if ftype == TType.STOP:
4669
        break
4670
      if fid == 1:
4671
        if ftype == TType.STRUCT:
4672
          self.cex = CatalogServiceException()
4673
          self.cex.read(iprot)
4674
        else:
4675
          iprot.skip(ftype)
4676
      else:
4677
        iprot.skip(ftype)
4678
      iprot.readFieldEnd()
4679
    iprot.readStructEnd()
4680
 
4681
  def write(self, oprot):
4682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4684
      return
4685
    oprot.writeStructBegin('retireItemOn_result')
4686
    if self.cex is not None:
4687
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4688
      self.cex.write(oprot)
4689
      oprot.writeFieldEnd()
4690
    oprot.writeFieldStop()
4691
    oprot.writeStructEnd()
4692
 
4693
  def validate(self):
4694
    return
4695
 
4696
 
4697
  def __repr__(self):
4698
    L = ['%s=%r' % (key, value)
4699
      for key, value in self.__dict__.iteritems()]
4700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4701
 
4702
  def __eq__(self, other):
4703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4704
 
4705
  def __ne__(self, other):
4706
    return not (self == other)
4707
 
4708
class changeItemStatus_args:
4709
  """
4710
  Attributes:
4711
   - item_id
4712
   - timestamp
4713
   - newstatus
4714
  """
4715
 
4716
  thrift_spec = (
4717
    None, # 0
4718
    (1, TType.I64, 'item_id', None, None, ), # 1
4719
    (2, TType.I64, 'timestamp', None, None, ), # 2
4720
    (3, TType.I32, 'newstatus', None, None, ), # 3
4721
  )
4722
 
4723
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
4724
    self.item_id = item_id
4725
    self.timestamp = timestamp
4726
    self.newstatus = newstatus
4727
 
4728
  def read(self, iprot):
4729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4731
      return
4732
    iprot.readStructBegin()
4733
    while True:
4734
      (fname, ftype, fid) = iprot.readFieldBegin()
4735
      if ftype == TType.STOP:
4736
        break
4737
      if fid == 1:
4738
        if ftype == TType.I64:
4739
          self.item_id = iprot.readI64();
4740
        else:
4741
          iprot.skip(ftype)
4742
      elif fid == 2:
4743
        if ftype == TType.I64:
4744
          self.timestamp = iprot.readI64();
4745
        else:
4746
          iprot.skip(ftype)
4747
      elif fid == 3:
4748
        if ftype == TType.I32:
4749
          self.newstatus = iprot.readI32();
4750
        else:
4751
          iprot.skip(ftype)
4752
      else:
4753
        iprot.skip(ftype)
4754
      iprot.readFieldEnd()
4755
    iprot.readStructEnd()
4756
 
4757
  def write(self, oprot):
4758
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4759
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4760
      return
4761
    oprot.writeStructBegin('changeItemStatus_args')
4762
    if self.item_id is not None:
4763
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4764
      oprot.writeI64(self.item_id)
4765
      oprot.writeFieldEnd()
4766
    if self.timestamp is not None:
4767
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4768
      oprot.writeI64(self.timestamp)
4769
      oprot.writeFieldEnd()
4770
    if self.newstatus is not None:
4771
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
4772
      oprot.writeI32(self.newstatus)
4773
      oprot.writeFieldEnd()
4774
    oprot.writeFieldStop()
4775
    oprot.writeStructEnd()
4776
 
4777
  def validate(self):
4778
    return
4779
 
4780
 
4781
  def __repr__(self):
4782
    L = ['%s=%r' % (key, value)
4783
      for key, value in self.__dict__.iteritems()]
4784
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4785
 
4786
  def __eq__(self, other):
4787
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4788
 
4789
  def __ne__(self, other):
4790
    return not (self == other)
4791
 
4792
class changeItemStatus_result:
4793
  """
4794
  Attributes:
4795
   - cex
4796
  """
4797
 
4798
  thrift_spec = (
4799
    None, # 0
4800
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4801
  )
4802
 
4803
  def __init__(self, cex=None,):
4804
    self.cex = cex
4805
 
4806
  def read(self, iprot):
4807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4809
      return
4810
    iprot.readStructBegin()
4811
    while True:
4812
      (fname, ftype, fid) = iprot.readFieldBegin()
4813
      if ftype == TType.STOP:
4814
        break
4815
      if fid == 1:
4816
        if ftype == TType.STRUCT:
4817
          self.cex = CatalogServiceException()
4818
          self.cex.read(iprot)
4819
        else:
4820
          iprot.skip(ftype)
4821
      else:
4822
        iprot.skip(ftype)
4823
      iprot.readFieldEnd()
4824
    iprot.readStructEnd()
4825
 
4826
  def write(self, oprot):
4827
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4828
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4829
      return
4830
    oprot.writeStructBegin('changeItemStatus_result')
4831
    if self.cex is not None:
4832
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4833
      self.cex.write(oprot)
4834
      oprot.writeFieldEnd()
4835
    oprot.writeFieldStop()
4836
    oprot.writeStructEnd()
4837
 
4838
  def validate(self):
4839
    return
4840
 
4841
 
4842
  def __repr__(self):
4843
    L = ['%s=%r' % (key, value)
4844
      for key, value in self.__dict__.iteritems()]
4845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4846
 
4847
  def __eq__(self, other):
4848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4849
 
4850
  def __ne__(self, other):
4851
    return not (self == other)
4852
 
4853
class getItem_args:
4854
  """
4855
  Attributes:
4856
   - item_id
4857
  """
4858
 
4859
  thrift_spec = (
4860
    None, # 0
4861
    (1, TType.I64, 'item_id', None, None, ), # 1
4862
  )
4863
 
4864
  def __init__(self, item_id=None,):
4865
    self.item_id = item_id
4866
 
4867
  def read(self, iprot):
4868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4870
      return
4871
    iprot.readStructBegin()
4872
    while True:
4873
      (fname, ftype, fid) = iprot.readFieldBegin()
4874
      if ftype == TType.STOP:
4875
        break
4876
      if fid == 1:
4877
        if ftype == TType.I64:
4878
          self.item_id = iprot.readI64();
4879
        else:
4880
          iprot.skip(ftype)
4881
      else:
4882
        iprot.skip(ftype)
4883
      iprot.readFieldEnd()
4884
    iprot.readStructEnd()
4885
 
4886
  def write(self, oprot):
4887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4889
      return
4890
    oprot.writeStructBegin('getItem_args')
4891
    if self.item_id is not None:
4892
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4893
      oprot.writeI64(self.item_id)
4894
      oprot.writeFieldEnd()
4895
    oprot.writeFieldStop()
4896
    oprot.writeStructEnd()
4897
 
4898
  def validate(self):
4899
    return
4900
 
4901
 
4902
  def __repr__(self):
4903
    L = ['%s=%r' % (key, value)
4904
      for key, value in self.__dict__.iteritems()]
4905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4906
 
4907
  def __eq__(self, other):
4908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4909
 
4910
  def __ne__(self, other):
4911
    return not (self == other)
4912
 
4913
class getItem_result:
4914
  """
4915
  Attributes:
4916
   - success
4917
   - cex
4918
  """
4919
 
4920
  thrift_spec = (
4921
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
4922
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4923
  )
4924
 
4925
  def __init__(self, success=None, cex=None,):
4926
    self.success = success
4927
    self.cex = cex
4928
 
4929
  def read(self, iprot):
4930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4932
      return
4933
    iprot.readStructBegin()
4934
    while True:
4935
      (fname, ftype, fid) = iprot.readFieldBegin()
4936
      if ftype == TType.STOP:
4937
        break
4938
      if fid == 0:
4939
        if ftype == TType.STRUCT:
4940
          self.success = Item()
4941
          self.success.read(iprot)
4942
        else:
4943
          iprot.skip(ftype)
4944
      elif fid == 1:
4945
        if ftype == TType.STRUCT:
4946
          self.cex = CatalogServiceException()
4947
          self.cex.read(iprot)
4948
        else:
4949
          iprot.skip(ftype)
4950
      else:
4951
        iprot.skip(ftype)
4952
      iprot.readFieldEnd()
4953
    iprot.readStructEnd()
4954
 
4955
  def write(self, oprot):
4956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4958
      return
4959
    oprot.writeStructBegin('getItem_result')
4960
    if self.success is not None:
4961
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4962
      self.success.write(oprot)
4963
      oprot.writeFieldEnd()
4964
    if self.cex is not None:
4965
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4966
      self.cex.write(oprot)
4967
      oprot.writeFieldEnd()
4968
    oprot.writeFieldStop()
4969
    oprot.writeStructEnd()
4970
 
4971
  def validate(self):
4972
    return
4973
 
4974
 
4975
  def __repr__(self):
4976
    L = ['%s=%r' % (key, value)
4977
      for key, value in self.__dict__.iteritems()]
4978
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4979
 
4980
  def __eq__(self, other):
4981
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4982
 
4983
  def __ne__(self, other):
4984
    return not (self == other)
4985
 
4986
class getItemsByCatalogId_args:
4987
  """
4988
  Attributes:
4989
   - catalog_item_id
4990
  """
4991
 
4992
  thrift_spec = (
4993
    None, # 0
4994
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
4995
  )
4996
 
4997
  def __init__(self, catalog_item_id=None,):
4998
    self.catalog_item_id = catalog_item_id
4999
 
5000
  def read(self, iprot):
5001
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5002
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5003
      return
5004
    iprot.readStructBegin()
5005
    while True:
5006
      (fname, ftype, fid) = iprot.readFieldBegin()
5007
      if ftype == TType.STOP:
5008
        break
5009
      if fid == 1:
5010
        if ftype == TType.I64:
5011
          self.catalog_item_id = iprot.readI64();
5012
        else:
5013
          iprot.skip(ftype)
5014
      else:
5015
        iprot.skip(ftype)
5016
      iprot.readFieldEnd()
5017
    iprot.readStructEnd()
5018
 
5019
  def write(self, oprot):
5020
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5021
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5022
      return
5023
    oprot.writeStructBegin('getItemsByCatalogId_args')
5024
    if self.catalog_item_id is not None:
5025
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5026
      oprot.writeI64(self.catalog_item_id)
5027
      oprot.writeFieldEnd()
5028
    oprot.writeFieldStop()
5029
    oprot.writeStructEnd()
5030
 
5031
  def validate(self):
5032
    return
5033
 
5034
 
5035
  def __repr__(self):
5036
    L = ['%s=%r' % (key, value)
5037
      for key, value in self.__dict__.iteritems()]
5038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5039
 
5040
  def __eq__(self, other):
5041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5042
 
5043
  def __ne__(self, other):
5044
    return not (self == other)
5045
 
5046
class getItemsByCatalogId_result:
5047
  """
5048
  Attributes:
5049
   - success
5050
   - cex
5051
  """
5052
 
5053
  thrift_spec = (
5054
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5055
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5056
  )
5057
 
5058
  def __init__(self, success=None, cex=None,):
5059
    self.success = success
5060
    self.cex = cex
5061
 
5062
  def read(self, iprot):
5063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5065
      return
5066
    iprot.readStructBegin()
5067
    while True:
5068
      (fname, ftype, fid) = iprot.readFieldBegin()
5069
      if ftype == TType.STOP:
5070
        break
5071
      if fid == 0:
5072
        if ftype == TType.LIST:
5073
          self.success = []
5074
          (_etype19, _size16) = iprot.readListBegin()
5075
          for _i20 in xrange(_size16):
5076
            _elem21 = Item()
5077
            _elem21.read(iprot)
5078
            self.success.append(_elem21)
5079
          iprot.readListEnd()
5080
        else:
5081
          iprot.skip(ftype)
5082
      elif fid == 1:
5083
        if ftype == TType.STRUCT:
5084
          self.cex = CatalogServiceException()
5085
          self.cex.read(iprot)
5086
        else:
5087
          iprot.skip(ftype)
5088
      else:
5089
        iprot.skip(ftype)
5090
      iprot.readFieldEnd()
5091
    iprot.readStructEnd()
5092
 
5093
  def write(self, oprot):
5094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5096
      return
5097
    oprot.writeStructBegin('getItemsByCatalogId_result')
5098
    if self.success is not None:
5099
      oprot.writeFieldBegin('success', TType.LIST, 0)
5100
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5101
      for iter22 in self.success:
5102
        iter22.write(oprot)
5103
      oprot.writeListEnd()
5104
      oprot.writeFieldEnd()
5105
    if self.cex is not None:
5106
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5107
      self.cex.write(oprot)
5108
      oprot.writeFieldEnd()
5109
    oprot.writeFieldStop()
5110
    oprot.writeStructEnd()
5111
 
5112
  def validate(self):
5113
    return
5114
 
5115
 
5116
  def __repr__(self):
5117
    L = ['%s=%r' % (key, value)
5118
      for key, value in self.__dict__.iteritems()]
5119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5120
 
5121
  def __eq__(self, other):
5122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5123
 
5124
  def __ne__(self, other):
5125
    return not (self == other)
5126
 
5127
class getValidItemsByCatalogId_args:
5128
  """
5129
  Attributes:
5130
   - catalog_item_id
5131
  """
5132
 
5133
  thrift_spec = (
5134
    None, # 0
5135
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5136
  )
5137
 
5138
  def __init__(self, catalog_item_id=None,):
5139
    self.catalog_item_id = catalog_item_id
5140
 
5141
  def read(self, iprot):
5142
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5143
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5144
      return
5145
    iprot.readStructBegin()
5146
    while True:
5147
      (fname, ftype, fid) = iprot.readFieldBegin()
5148
      if ftype == TType.STOP:
5149
        break
5150
      if fid == 1:
5151
        if ftype == TType.I64:
5152
          self.catalog_item_id = iprot.readI64();
5153
        else:
5154
          iprot.skip(ftype)
5155
      else:
5156
        iprot.skip(ftype)
5157
      iprot.readFieldEnd()
5158
    iprot.readStructEnd()
5159
 
5160
  def write(self, oprot):
5161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5163
      return
5164
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5165
    if self.catalog_item_id is not None:
5166
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5167
      oprot.writeI64(self.catalog_item_id)
5168
      oprot.writeFieldEnd()
5169
    oprot.writeFieldStop()
5170
    oprot.writeStructEnd()
5171
 
5172
  def validate(self):
5173
    return
5174
 
5175
 
5176
  def __repr__(self):
5177
    L = ['%s=%r' % (key, value)
5178
      for key, value in self.__dict__.iteritems()]
5179
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5180
 
5181
  def __eq__(self, other):
5182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5183
 
5184
  def __ne__(self, other):
5185
    return not (self == other)
5186
 
5187
class getValidItemsByCatalogId_result:
5188
  """
5189
  Attributes:
5190
   - success
5191
   - cex
5192
  """
5193
 
5194
  thrift_spec = (
5195
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5196
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5197
  )
5198
 
5199
  def __init__(self, success=None, cex=None,):
5200
    self.success = success
5201
    self.cex = cex
5202
 
5203
  def read(self, iprot):
5204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5206
      return
5207
    iprot.readStructBegin()
5208
    while True:
5209
      (fname, ftype, fid) = iprot.readFieldBegin()
5210
      if ftype == TType.STOP:
5211
        break
5212
      if fid == 0:
5213
        if ftype == TType.LIST:
5214
          self.success = []
5215
          (_etype26, _size23) = iprot.readListBegin()
5216
          for _i27 in xrange(_size23):
5217
            _elem28 = Item()
5218
            _elem28.read(iprot)
5219
            self.success.append(_elem28)
5220
          iprot.readListEnd()
5221
        else:
5222
          iprot.skip(ftype)
5223
      elif fid == 1:
5224
        if ftype == TType.STRUCT:
5225
          self.cex = CatalogServiceException()
5226
          self.cex.read(iprot)
5227
        else:
5228
          iprot.skip(ftype)
5229
      else:
5230
        iprot.skip(ftype)
5231
      iprot.readFieldEnd()
5232
    iprot.readStructEnd()
5233
 
5234
  def write(self, oprot):
5235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5237
      return
5238
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5239
    if self.success is not None:
5240
      oprot.writeFieldBegin('success', TType.LIST, 0)
5241
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5242
      for iter29 in self.success:
5243
        iter29.write(oprot)
5244
      oprot.writeListEnd()
5245
      oprot.writeFieldEnd()
5246
    if self.cex is not None:
5247
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5248
      self.cex.write(oprot)
5249
      oprot.writeFieldEnd()
5250
    oprot.writeFieldStop()
5251
    oprot.writeStructEnd()
5252
 
5253
  def validate(self):
5254
    return
5255
 
5256
 
5257
  def __repr__(self):
5258
    L = ['%s=%r' % (key, value)
5259
      for key, value in self.__dict__.iteritems()]
5260
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5261
 
5262
  def __eq__(self, other):
5263
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5264
 
5265
  def __ne__(self, other):
5266
    return not (self == other)
5267
 
5268
class getAllItems_args:
5269
  """
5270
  Attributes:
5271
   - isActive
5272
  """
5273
 
5274
  thrift_spec = (
5275
    None, # 0
5276
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5277
  )
5278
 
5279
  def __init__(self, isActive=None,):
5280
    self.isActive = isActive
5281
 
5282
  def read(self, iprot):
5283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5285
      return
5286
    iprot.readStructBegin()
5287
    while True:
5288
      (fname, ftype, fid) = iprot.readFieldBegin()
5289
      if ftype == TType.STOP:
5290
        break
5291
      if fid == 1:
5292
        if ftype == TType.BOOL:
5293
          self.isActive = iprot.readBool();
5294
        else:
5295
          iprot.skip(ftype)
5296
      else:
5297
        iprot.skip(ftype)
5298
      iprot.readFieldEnd()
5299
    iprot.readStructEnd()
5300
 
5301
  def write(self, oprot):
5302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5304
      return
5305
    oprot.writeStructBegin('getAllItems_args')
5306
    if self.isActive is not None:
5307
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5308
      oprot.writeBool(self.isActive)
5309
      oprot.writeFieldEnd()
5310
    oprot.writeFieldStop()
5311
    oprot.writeStructEnd()
5312
 
5313
  def validate(self):
5314
    return
5315
 
5316
 
5317
  def __repr__(self):
5318
    L = ['%s=%r' % (key, value)
5319
      for key, value in self.__dict__.iteritems()]
5320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5321
 
5322
  def __eq__(self, other):
5323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5324
 
5325
  def __ne__(self, other):
5326
    return not (self == other)
5327
 
5328
class getAllItems_result:
5329
  """
5330
  Attributes:
5331
   - success
5332
   - cex
5333
  """
5334
 
5335
  thrift_spec = (
5336
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5337
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5338
  )
5339
 
5340
  def __init__(self, success=None, cex=None,):
5341
    self.success = success
5342
    self.cex = cex
5343
 
5344
  def read(self, iprot):
5345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5347
      return
5348
    iprot.readStructBegin()
5349
    while True:
5350
      (fname, ftype, fid) = iprot.readFieldBegin()
5351
      if ftype == TType.STOP:
5352
        break
5353
      if fid == 0:
5354
        if ftype == TType.LIST:
5355
          self.success = []
5356
          (_etype33, _size30) = iprot.readListBegin()
5357
          for _i34 in xrange(_size30):
5358
            _elem35 = Item()
5359
            _elem35.read(iprot)
5360
            self.success.append(_elem35)
5361
          iprot.readListEnd()
5362
        else:
5363
          iprot.skip(ftype)
5364
      elif fid == 1:
5365
        if ftype == TType.STRUCT:
5366
          self.cex = CatalogServiceException()
5367
          self.cex.read(iprot)
5368
        else:
5369
          iprot.skip(ftype)
5370
      else:
5371
        iprot.skip(ftype)
5372
      iprot.readFieldEnd()
5373
    iprot.readStructEnd()
5374
 
5375
  def write(self, oprot):
5376
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5377
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5378
      return
5379
    oprot.writeStructBegin('getAllItems_result')
5380
    if self.success is not None:
5381
      oprot.writeFieldBegin('success', TType.LIST, 0)
5382
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5383
      for iter36 in self.success:
5384
        iter36.write(oprot)
5385
      oprot.writeListEnd()
5386
      oprot.writeFieldEnd()
5387
    if self.cex is not None:
5388
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5389
      self.cex.write(oprot)
5390
      oprot.writeFieldEnd()
5391
    oprot.writeFieldStop()
5392
    oprot.writeStructEnd()
5393
 
5394
  def validate(self):
5395
    return
5396
 
5397
 
5398
  def __repr__(self):
5399
    L = ['%s=%r' % (key, value)
5400
      for key, value in self.__dict__.iteritems()]
5401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5402
 
5403
  def __eq__(self, other):
5404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5405
 
5406
  def __ne__(self, other):
5407
    return not (self == other)
5408
 
5409
class getAllItemsByStatus_args:
5410
  """
5411
  Attributes:
5412
   - itemStatus
5413
  """
5414
 
5415
  thrift_spec = (
5416
    None, # 0
5417
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5418
  )
5419
 
5420
  def __init__(self, itemStatus=None,):
5421
    self.itemStatus = itemStatus
5422
 
5423
  def read(self, iprot):
5424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5426
      return
5427
    iprot.readStructBegin()
5428
    while True:
5429
      (fname, ftype, fid) = iprot.readFieldBegin()
5430
      if ftype == TType.STOP:
5431
        break
5432
      if fid == 1:
5433
        if ftype == TType.I32:
5434
          self.itemStatus = iprot.readI32();
5435
        else:
5436
          iprot.skip(ftype)
5437
      else:
5438
        iprot.skip(ftype)
5439
      iprot.readFieldEnd()
5440
    iprot.readStructEnd()
5441
 
5442
  def write(self, oprot):
5443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5445
      return
5446
    oprot.writeStructBegin('getAllItemsByStatus_args')
5447
    if self.itemStatus is not None:
5448
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5449
      oprot.writeI32(self.itemStatus)
5450
      oprot.writeFieldEnd()
5451
    oprot.writeFieldStop()
5452
    oprot.writeStructEnd()
5453
 
5454
  def validate(self):
5455
    return
5456
 
5457
 
5458
  def __repr__(self):
5459
    L = ['%s=%r' % (key, value)
5460
      for key, value in self.__dict__.iteritems()]
5461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5462
 
5463
  def __eq__(self, other):
5464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5465
 
5466
  def __ne__(self, other):
5467
    return not (self == other)
5468
 
5469
class getAllItemsByStatus_result:
5470
  """
5471
  Attributes:
5472
   - success
5473
   - cex
5474
  """
5475
 
5476
  thrift_spec = (
5477
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5478
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5479
  )
5480
 
5481
  def __init__(self, success=None, cex=None,):
5482
    self.success = success
5483
    self.cex = cex
5484
 
5485
  def read(self, iprot):
5486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5488
      return
5489
    iprot.readStructBegin()
5490
    while True:
5491
      (fname, ftype, fid) = iprot.readFieldBegin()
5492
      if ftype == TType.STOP:
5493
        break
5494
      if fid == 0:
5495
        if ftype == TType.LIST:
5496
          self.success = []
5497
          (_etype40, _size37) = iprot.readListBegin()
5498
          for _i41 in xrange(_size37):
5499
            _elem42 = Item()
5500
            _elem42.read(iprot)
5501
            self.success.append(_elem42)
5502
          iprot.readListEnd()
5503
        else:
5504
          iprot.skip(ftype)
5505
      elif fid == 1:
5506
        if ftype == TType.STRUCT:
5507
          self.cex = CatalogServiceException()
5508
          self.cex.read(iprot)
5509
        else:
5510
          iprot.skip(ftype)
5511
      else:
5512
        iprot.skip(ftype)
5513
      iprot.readFieldEnd()
5514
    iprot.readStructEnd()
5515
 
5516
  def write(self, oprot):
5517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5519
      return
5520
    oprot.writeStructBegin('getAllItemsByStatus_result')
5521
    if self.success is not None:
5522
      oprot.writeFieldBegin('success', TType.LIST, 0)
5523
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5524
      for iter43 in self.success:
5525
        iter43.write(oprot)
5526
      oprot.writeListEnd()
5527
      oprot.writeFieldEnd()
5528
    if self.cex is not None:
5529
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5530
      self.cex.write(oprot)
5531
      oprot.writeFieldEnd()
5532
    oprot.writeFieldStop()
5533
    oprot.writeStructEnd()
5534
 
5535
  def validate(self):
5536
    return
5537
 
5538
 
5539
  def __repr__(self):
5540
    L = ['%s=%r' % (key, value)
5541
      for key, value in self.__dict__.iteritems()]
5542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5543
 
5544
  def __eq__(self, other):
5545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5546
 
5547
  def __ne__(self, other):
5548
    return not (self == other)
5549
 
5550
class markItemAsContentComplete_args:
5551
  """
5552
  Attributes:
5553
   - entityId
5554
   - category
5555
   - brand
5556
   - modelName
5557
   - modelNumber
5558
  """
5559
 
5560
  thrift_spec = (
5561
    None, # 0
5562
    (1, TType.I64, 'entityId', None, None, ), # 1
5563
    (2, TType.I64, 'category', None, None, ), # 2
5564
    (3, TType.STRING, 'brand', None, None, ), # 3
5565
    (4, TType.STRING, 'modelName', None, None, ), # 4
5566
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
5567
  )
5568
 
5569
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
5570
    self.entityId = entityId
5571
    self.category = category
5572
    self.brand = brand
5573
    self.modelName = modelName
5574
    self.modelNumber = modelNumber
5575
 
5576
  def read(self, iprot):
5577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5579
      return
5580
    iprot.readStructBegin()
5581
    while True:
5582
      (fname, ftype, fid) = iprot.readFieldBegin()
5583
      if ftype == TType.STOP:
5584
        break
5585
      if fid == 1:
5586
        if ftype == TType.I64:
5587
          self.entityId = iprot.readI64();
5588
        else:
5589
          iprot.skip(ftype)
5590
      elif fid == 2:
5591
        if ftype == TType.I64:
5592
          self.category = iprot.readI64();
5593
        else:
5594
          iprot.skip(ftype)
5595
      elif fid == 3:
5596
        if ftype == TType.STRING:
5597
          self.brand = iprot.readString();
5598
        else:
5599
          iprot.skip(ftype)
5600
      elif fid == 4:
5601
        if ftype == TType.STRING:
5602
          self.modelName = iprot.readString();
5603
        else:
5604
          iprot.skip(ftype)
5605
      elif fid == 5:
5606
        if ftype == TType.STRING:
5607
          self.modelNumber = iprot.readString();
5608
        else:
5609
          iprot.skip(ftype)
5610
      else:
5611
        iprot.skip(ftype)
5612
      iprot.readFieldEnd()
5613
    iprot.readStructEnd()
5614
 
5615
  def write(self, oprot):
5616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5618
      return
5619
    oprot.writeStructBegin('markItemAsContentComplete_args')
5620
    if self.entityId is not None:
5621
      oprot.writeFieldBegin('entityId', TType.I64, 1)
5622
      oprot.writeI64(self.entityId)
5623
      oprot.writeFieldEnd()
5624
    if self.category is not None:
5625
      oprot.writeFieldBegin('category', TType.I64, 2)
5626
      oprot.writeI64(self.category)
5627
      oprot.writeFieldEnd()
5628
    if self.brand is not None:
5629
      oprot.writeFieldBegin('brand', TType.STRING, 3)
5630
      oprot.writeString(self.brand)
5631
      oprot.writeFieldEnd()
5632
    if self.modelName is not None:
5633
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
5634
      oprot.writeString(self.modelName)
5635
      oprot.writeFieldEnd()
5636
    if self.modelNumber is not None:
5637
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
5638
      oprot.writeString(self.modelNumber)
5639
      oprot.writeFieldEnd()
5640
    oprot.writeFieldStop()
5641
    oprot.writeStructEnd()
5642
 
5643
  def validate(self):
5644
    return
5645
 
5646
 
5647
  def __repr__(self):
5648
    L = ['%s=%r' % (key, value)
5649
      for key, value in self.__dict__.iteritems()]
5650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5651
 
5652
  def __eq__(self, other):
5653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5654
 
5655
  def __ne__(self, other):
5656
    return not (self == other)
5657
 
5658
class markItemAsContentComplete_result:
5659
  """
5660
  Attributes:
5661
   - success
5662
   - cex
5663
  """
5664
 
5665
  thrift_spec = (
5666
    (0, TType.BOOL, 'success', None, None, ), # 0
5667
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5668
  )
5669
 
5670
  def __init__(self, success=None, cex=None,):
5671
    self.success = success
5672
    self.cex = cex
5673
 
5674
  def read(self, iprot):
5675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5677
      return
5678
    iprot.readStructBegin()
5679
    while True:
5680
      (fname, ftype, fid) = iprot.readFieldBegin()
5681
      if ftype == TType.STOP:
5682
        break
5683
      if fid == 0:
5684
        if ftype == TType.BOOL:
5685
          self.success = iprot.readBool();
5686
        else:
5687
          iprot.skip(ftype)
5688
      elif fid == 1:
5689
        if ftype == TType.STRUCT:
5690
          self.cex = CatalogServiceException()
5691
          self.cex.read(iprot)
5692
        else:
5693
          iprot.skip(ftype)
5694
      else:
5695
        iprot.skip(ftype)
5696
      iprot.readFieldEnd()
5697
    iprot.readStructEnd()
5698
 
5699
  def write(self, oprot):
5700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5702
      return
5703
    oprot.writeStructBegin('markItemAsContentComplete_result')
5704
    if self.success is not None:
5705
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5706
      oprot.writeBool(self.success)
5707
      oprot.writeFieldEnd()
5708
    if self.cex is not None:
5709
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5710
      self.cex.write(oprot)
5711
      oprot.writeFieldEnd()
5712
    oprot.writeFieldStop()
5713
    oprot.writeStructEnd()
5714
 
5715
  def validate(self):
5716
    return
5717
 
5718
 
5719
  def __repr__(self):
5720
    L = ['%s=%r' % (key, value)
5721
      for key, value in self.__dict__.iteritems()]
5722
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5723
 
5724
  def __eq__(self, other):
5725
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5726
 
5727
  def __ne__(self, other):
5728
    return not (self == other)
5729
 
5730
class getAllItemsInRange_args:
5731
  """
5732
  Attributes:
5733
   - offset
5734
   - limit
5735
  """
5736
 
5737
  thrift_spec = (
5738
    None, # 0
5739
    (1, TType.I64, 'offset', None, None, ), # 1
5740
    (2, TType.I64, 'limit', None, None, ), # 2
5741
  )
5742
 
5743
  def __init__(self, offset=None, limit=None,):
5744
    self.offset = offset
5745
    self.limit = limit
5746
 
5747
  def read(self, iprot):
5748
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5749
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5750
      return
5751
    iprot.readStructBegin()
5752
    while True:
5753
      (fname, ftype, fid) = iprot.readFieldBegin()
5754
      if ftype == TType.STOP:
5755
        break
5756
      if fid == 1:
5757
        if ftype == TType.I64:
5758
          self.offset = iprot.readI64();
5759
        else:
5760
          iprot.skip(ftype)
5761
      elif fid == 2:
5762
        if ftype == TType.I64:
5763
          self.limit = iprot.readI64();
5764
        else:
5765
          iprot.skip(ftype)
5766
      else:
5767
        iprot.skip(ftype)
5768
      iprot.readFieldEnd()
5769
    iprot.readStructEnd()
5770
 
5771
  def write(self, oprot):
5772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5774
      return
5775
    oprot.writeStructBegin('getAllItemsInRange_args')
5776
    if self.offset is not None:
5777
      oprot.writeFieldBegin('offset', TType.I64, 1)
5778
      oprot.writeI64(self.offset)
5779
      oprot.writeFieldEnd()
5780
    if self.limit is not None:
5781
      oprot.writeFieldBegin('limit', TType.I64, 2)
5782
      oprot.writeI64(self.limit)
5783
      oprot.writeFieldEnd()
5784
    oprot.writeFieldStop()
5785
    oprot.writeStructEnd()
5786
 
5787
  def validate(self):
5788
    return
5789
 
5790
 
5791
  def __repr__(self):
5792
    L = ['%s=%r' % (key, value)
5793
      for key, value in self.__dict__.iteritems()]
5794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5795
 
5796
  def __eq__(self, other):
5797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5798
 
5799
  def __ne__(self, other):
5800
    return not (self == other)
5801
 
5802
class getAllItemsInRange_result:
5803
  """
5804
  Attributes:
5805
   - success
5806
   - cex
5807
  """
5808
 
5809
  thrift_spec = (
5810
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5811
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5812
  )
5813
 
5814
  def __init__(self, success=None, cex=None,):
5815
    self.success = success
5816
    self.cex = cex
5817
 
5818
  def read(self, iprot):
5819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5821
      return
5822
    iprot.readStructBegin()
5823
    while True:
5824
      (fname, ftype, fid) = iprot.readFieldBegin()
5825
      if ftype == TType.STOP:
5826
        break
5827
      if fid == 0:
5828
        if ftype == TType.LIST:
5829
          self.success = []
5830
          (_etype47, _size44) = iprot.readListBegin()
5831
          for _i48 in xrange(_size44):
5832
            _elem49 = Item()
5833
            _elem49.read(iprot)
5834
            self.success.append(_elem49)
5835
          iprot.readListEnd()
5836
        else:
5837
          iprot.skip(ftype)
5838
      elif fid == 1:
5839
        if ftype == TType.STRUCT:
5840
          self.cex = CatalogServiceException()
5841
          self.cex.read(iprot)
5842
        else:
5843
          iprot.skip(ftype)
5844
      else:
5845
        iprot.skip(ftype)
5846
      iprot.readFieldEnd()
5847
    iprot.readStructEnd()
5848
 
5849
  def write(self, oprot):
5850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5852
      return
5853
    oprot.writeStructBegin('getAllItemsInRange_result')
5854
    if self.success is not None:
5855
      oprot.writeFieldBegin('success', TType.LIST, 0)
5856
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5857
      for iter50 in self.success:
5858
        iter50.write(oprot)
5859
      oprot.writeListEnd()
5860
      oprot.writeFieldEnd()
5861
    if self.cex is not None:
5862
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5863
      self.cex.write(oprot)
5864
      oprot.writeFieldEnd()
5865
    oprot.writeFieldStop()
5866
    oprot.writeStructEnd()
5867
 
5868
  def validate(self):
5869
    return
5870
 
5871
 
5872
  def __repr__(self):
5873
    L = ['%s=%r' % (key, value)
5874
      for key, value in self.__dict__.iteritems()]
5875
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5876
 
5877
  def __eq__(self, other):
5878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5879
 
5880
  def __ne__(self, other):
5881
    return not (self == other)
5882
 
5883
class getAllItemsByStatusInRange_args:
5884
  """
5885
  Attributes:
5886
   - itemStatus
5887
   - offset
5888
   - limit
5889
  """
5890
 
5891
  thrift_spec = (
5892
    None, # 0
5893
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5894
    (2, TType.I64, 'offset', None, None, ), # 2
5895
    (3, TType.I64, 'limit', None, None, ), # 3
5896
  )
5897
 
5898
  def __init__(self, itemStatus=None, offset=None, limit=None,):
5899
    self.itemStatus = itemStatus
5900
    self.offset = offset
5901
    self.limit = limit
5902
 
5903
  def read(self, iprot):
5904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5906
      return
5907
    iprot.readStructBegin()
5908
    while True:
5909
      (fname, ftype, fid) = iprot.readFieldBegin()
5910
      if ftype == TType.STOP:
5911
        break
5912
      if fid == 1:
5913
        if ftype == TType.I32:
5914
          self.itemStatus = iprot.readI32();
5915
        else:
5916
          iprot.skip(ftype)
5917
      elif fid == 2:
5918
        if ftype == TType.I64:
5919
          self.offset = iprot.readI64();
5920
        else:
5921
          iprot.skip(ftype)
5922
      elif fid == 3:
5923
        if ftype == TType.I64:
5924
          self.limit = iprot.readI64();
5925
        else:
5926
          iprot.skip(ftype)
5927
      else:
5928
        iprot.skip(ftype)
5929
      iprot.readFieldEnd()
5930
    iprot.readStructEnd()
5931
 
5932
  def write(self, oprot):
5933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5935
      return
5936
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
5937
    if self.itemStatus is not None:
5938
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5939
      oprot.writeI32(self.itemStatus)
5940
      oprot.writeFieldEnd()
5941
    if self.offset is not None:
5942
      oprot.writeFieldBegin('offset', TType.I64, 2)
5943
      oprot.writeI64(self.offset)
5944
      oprot.writeFieldEnd()
5945
    if self.limit is not None:
5946
      oprot.writeFieldBegin('limit', TType.I64, 3)
5947
      oprot.writeI64(self.limit)
5948
      oprot.writeFieldEnd()
5949
    oprot.writeFieldStop()
5950
    oprot.writeStructEnd()
5951
 
5952
  def validate(self):
5953
    return
5954
 
5955
 
5956
  def __repr__(self):
5957
    L = ['%s=%r' % (key, value)
5958
      for key, value in self.__dict__.iteritems()]
5959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5960
 
5961
  def __eq__(self, other):
5962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5963
 
5964
  def __ne__(self, other):
5965
    return not (self == other)
5966
 
5967
class getAllItemsByStatusInRange_result:
5968
  """
5969
  Attributes:
5970
   - success
5971
   - cex
5972
  """
5973
 
5974
  thrift_spec = (
5975
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5976
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5977
  )
5978
 
5979
  def __init__(self, success=None, cex=None,):
5980
    self.success = success
5981
    self.cex = cex
5982
 
5983
  def read(self, iprot):
5984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5986
      return
5987
    iprot.readStructBegin()
5988
    while True:
5989
      (fname, ftype, fid) = iprot.readFieldBegin()
5990
      if ftype == TType.STOP:
5991
        break
5992
      if fid == 0:
5993
        if ftype == TType.LIST:
5994
          self.success = []
5995
          (_etype54, _size51) = iprot.readListBegin()
5996
          for _i55 in xrange(_size51):
5997
            _elem56 = Item()
5998
            _elem56.read(iprot)
5999
            self.success.append(_elem56)
6000
          iprot.readListEnd()
6001
        else:
6002
          iprot.skip(ftype)
6003
      elif fid == 1:
6004
        if ftype == TType.STRUCT:
6005
          self.cex = CatalogServiceException()
6006
          self.cex.read(iprot)
6007
        else:
6008
          iprot.skip(ftype)
6009
      else:
6010
        iprot.skip(ftype)
6011
      iprot.readFieldEnd()
6012
    iprot.readStructEnd()
6013
 
6014
  def write(self, oprot):
6015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6017
      return
6018
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
6019
    if self.success is not None:
6020
      oprot.writeFieldBegin('success', TType.LIST, 0)
6021
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6022
      for iter57 in self.success:
6023
        iter57.write(oprot)
6024
      oprot.writeListEnd()
6025
      oprot.writeFieldEnd()
6026
    if self.cex is not None:
6027
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6028
      self.cex.write(oprot)
6029
      oprot.writeFieldEnd()
6030
    oprot.writeFieldStop()
6031
    oprot.writeStructEnd()
6032
 
6033
  def validate(self):
6034
    return
6035
 
6036
 
6037
  def __repr__(self):
6038
    L = ['%s=%r' % (key, value)
6039
      for key, value in self.__dict__.iteritems()]
6040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6041
 
6042
  def __eq__(self, other):
6043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6044
 
6045
  def __ne__(self, other):
6046
    return not (self == other)
6047
 
6048
class getItemCountByStatus_args:
6049
  """
6050
  Attributes:
6051
   - useStatus
6052
   - itemStatus
6053
  """
6054
 
6055
  thrift_spec = (
6056
    None, # 0
6057
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6058
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6059
  )
6060
 
6061
  def __init__(self, useStatus=None, itemStatus=None,):
6062
    self.useStatus = useStatus
6063
    self.itemStatus = itemStatus
6064
 
6065
  def read(self, iprot):
6066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6068
      return
6069
    iprot.readStructBegin()
6070
    while True:
6071
      (fname, ftype, fid) = iprot.readFieldBegin()
6072
      if ftype == TType.STOP:
6073
        break
6074
      if fid == 1:
6075
        if ftype == TType.BOOL:
6076
          self.useStatus = iprot.readBool();
6077
        else:
6078
          iprot.skip(ftype)
6079
      elif fid == 2:
6080
        if ftype == TType.I32:
6081
          self.itemStatus = iprot.readI32();
6082
        else:
6083
          iprot.skip(ftype)
6084
      else:
6085
        iprot.skip(ftype)
6086
      iprot.readFieldEnd()
6087
    iprot.readStructEnd()
6088
 
6089
  def write(self, oprot):
6090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6092
      return
6093
    oprot.writeStructBegin('getItemCountByStatus_args')
6094
    if self.useStatus is not None:
6095
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6096
      oprot.writeBool(self.useStatus)
6097
      oprot.writeFieldEnd()
6098
    if self.itemStatus is not None:
6099
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6100
      oprot.writeI32(self.itemStatus)
6101
      oprot.writeFieldEnd()
6102
    oprot.writeFieldStop()
6103
    oprot.writeStructEnd()
6104
 
6105
  def validate(self):
6106
    return
6107
 
6108
 
6109
  def __repr__(self):
6110
    L = ['%s=%r' % (key, value)
6111
      for key, value in self.__dict__.iteritems()]
6112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6113
 
6114
  def __eq__(self, other):
6115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6116
 
6117
  def __ne__(self, other):
6118
    return not (self == other)
6119
 
6120
class getItemCountByStatus_result:
6121
  """
6122
  Attributes:
6123
   - success
6124
  """
6125
 
6126
  thrift_spec = (
6127
    (0, TType.I32, 'success', None, None, ), # 0
6128
  )
6129
 
6130
  def __init__(self, success=None,):
6131
    self.success = success
6132
 
6133
  def read(self, iprot):
6134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6136
      return
6137
    iprot.readStructBegin()
6138
    while True:
6139
      (fname, ftype, fid) = iprot.readFieldBegin()
6140
      if ftype == TType.STOP:
6141
        break
6142
      if fid == 0:
6143
        if ftype == TType.I32:
6144
          self.success = iprot.readI32();
6145
        else:
6146
          iprot.skip(ftype)
6147
      else:
6148
        iprot.skip(ftype)
6149
      iprot.readFieldEnd()
6150
    iprot.readStructEnd()
6151
 
6152
  def write(self, oprot):
6153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6155
      return
6156
    oprot.writeStructBegin('getItemCountByStatus_result')
6157
    if self.success is not None:
6158
      oprot.writeFieldBegin('success', TType.I32, 0)
6159
      oprot.writeI32(self.success)
6160
      oprot.writeFieldEnd()
6161
    oprot.writeFieldStop()
6162
    oprot.writeStructEnd()
6163
 
6164
  def validate(self):
6165
    return
6166
 
6167
 
6168
  def __repr__(self):
6169
    L = ['%s=%r' % (key, value)
6170
      for key, value in self.__dict__.iteritems()]
6171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6172
 
6173
  def __eq__(self, other):
6174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6175
 
6176
  def __ne__(self, other):
6177
    return not (self == other)
6178
 
6179
class getBestSellers_args:
6180
 
6181
  thrift_spec = (
6182
  )
6183
 
6184
  def read(self, iprot):
6185
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6186
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6187
      return
6188
    iprot.readStructBegin()
6189
    while True:
6190
      (fname, ftype, fid) = iprot.readFieldBegin()
6191
      if ftype == TType.STOP:
6192
        break
6193
      else:
6194
        iprot.skip(ftype)
6195
      iprot.readFieldEnd()
6196
    iprot.readStructEnd()
6197
 
6198
  def write(self, oprot):
6199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6201
      return
6202
    oprot.writeStructBegin('getBestSellers_args')
6203
    oprot.writeFieldStop()
6204
    oprot.writeStructEnd()
6205
 
6206
  def validate(self):
6207
    return
6208
 
6209
 
6210
  def __repr__(self):
6211
    L = ['%s=%r' % (key, value)
6212
      for key, value in self.__dict__.iteritems()]
6213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6214
 
6215
  def __eq__(self, other):
6216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6217
 
6218
  def __ne__(self, other):
6219
    return not (self == other)
6220
 
6221
class getBestSellers_result:
6222
  """
6223
  Attributes:
6224
   - success
6225
   - isex
6226
  """
6227
 
6228
  thrift_spec = (
6229
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6230
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6231
  )
6232
 
6233
  def __init__(self, success=None, isex=None,):
6234
    self.success = success
6235
    self.isex = isex
6236
 
6237
  def read(self, iprot):
6238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6240
      return
6241
    iprot.readStructBegin()
6242
    while True:
6243
      (fname, ftype, fid) = iprot.readFieldBegin()
6244
      if ftype == TType.STOP:
6245
        break
6246
      if fid == 0:
6247
        if ftype == TType.LIST:
6248
          self.success = []
6249
          (_etype61, _size58) = iprot.readListBegin()
6250
          for _i62 in xrange(_size58):
6251
            _elem63 = Item()
6252
            _elem63.read(iprot)
6253
            self.success.append(_elem63)
6254
          iprot.readListEnd()
6255
        else:
6256
          iprot.skip(ftype)
6257
      elif fid == 1:
6258
        if ftype == TType.STRUCT:
6259
          self.isex = CatalogServiceException()
6260
          self.isex.read(iprot)
6261
        else:
6262
          iprot.skip(ftype)
6263
      else:
6264
        iprot.skip(ftype)
6265
      iprot.readFieldEnd()
6266
    iprot.readStructEnd()
6267
 
6268
  def write(self, oprot):
6269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6271
      return
6272
    oprot.writeStructBegin('getBestSellers_result')
6273
    if self.success is not None:
6274
      oprot.writeFieldBegin('success', TType.LIST, 0)
6275
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6276
      for iter64 in self.success:
6277
        iter64.write(oprot)
6278
      oprot.writeListEnd()
6279
      oprot.writeFieldEnd()
6280
    if self.isex is not None:
6281
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6282
      self.isex.write(oprot)
6283
      oprot.writeFieldEnd()
6284
    oprot.writeFieldStop()
6285
    oprot.writeStructEnd()
6286
 
6287
  def validate(self):
6288
    return
6289
 
6290
 
6291
  def __repr__(self):
6292
    L = ['%s=%r' % (key, value)
6293
      for key, value in self.__dict__.iteritems()]
6294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6295
 
6296
  def __eq__(self, other):
6297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6298
 
6299
  def __ne__(self, other):
6300
    return not (self == other)
6301
 
6302
class getBestSellersCatalogIds_args:
6303
  """
6304
  Attributes:
6305
   - beginIndex
6306
   - totalItems
6307
   - brand
6308
   - category
6309
  """
6310
 
6311
  thrift_spec = (
6312
    None, # 0
6313
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6314
    (2, TType.I64, 'totalItems', None, None, ), # 2
6315
    (3, TType.STRING, 'brand', None, None, ), # 3
6316
    (4, TType.I64, 'category', None, None, ), # 4
6317
  )
6318
 
6319
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6320
    self.beginIndex = beginIndex
6321
    self.totalItems = totalItems
6322
    self.brand = brand
6323
    self.category = category
6324
 
6325
  def read(self, iprot):
6326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6328
      return
6329
    iprot.readStructBegin()
6330
    while True:
6331
      (fname, ftype, fid) = iprot.readFieldBegin()
6332
      if ftype == TType.STOP:
6333
        break
6334
      if fid == 1:
6335
        if ftype == TType.I64:
6336
          self.beginIndex = iprot.readI64();
6337
        else:
6338
          iprot.skip(ftype)
6339
      elif fid == 2:
6340
        if ftype == TType.I64:
6341
          self.totalItems = iprot.readI64();
6342
        else:
6343
          iprot.skip(ftype)
6344
      elif fid == 3:
6345
        if ftype == TType.STRING:
6346
          self.brand = iprot.readString();
6347
        else:
6348
          iprot.skip(ftype)
6349
      elif fid == 4:
6350
        if ftype == TType.I64:
6351
          self.category = iprot.readI64();
6352
        else:
6353
          iprot.skip(ftype)
6354
      else:
6355
        iprot.skip(ftype)
6356
      iprot.readFieldEnd()
6357
    iprot.readStructEnd()
6358
 
6359
  def write(self, oprot):
6360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6362
      return
6363
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6364
    if self.beginIndex is not None:
6365
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6366
      oprot.writeI64(self.beginIndex)
6367
      oprot.writeFieldEnd()
6368
    if self.totalItems is not None:
6369
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6370
      oprot.writeI64(self.totalItems)
6371
      oprot.writeFieldEnd()
6372
    if self.brand is not None:
6373
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6374
      oprot.writeString(self.brand)
6375
      oprot.writeFieldEnd()
6376
    if self.category is not None:
6377
      oprot.writeFieldBegin('category', TType.I64, 4)
6378
      oprot.writeI64(self.category)
6379
      oprot.writeFieldEnd()
6380
    oprot.writeFieldStop()
6381
    oprot.writeStructEnd()
6382
 
6383
  def validate(self):
6384
    return
6385
 
6386
 
6387
  def __repr__(self):
6388
    L = ['%s=%r' % (key, value)
6389
      for key, value in self.__dict__.iteritems()]
6390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6391
 
6392
  def __eq__(self, other):
6393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6394
 
6395
  def __ne__(self, other):
6396
    return not (self == other)
6397
 
6398
class getBestSellersCatalogIds_result:
6399
  """
6400
  Attributes:
6401
   - success
6402
   - cex
6403
  """
6404
 
6405
  thrift_spec = (
6406
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6407
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6408
  )
6409
 
6410
  def __init__(self, success=None, cex=None,):
6411
    self.success = success
6412
    self.cex = cex
6413
 
6414
  def read(self, iprot):
6415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6417
      return
6418
    iprot.readStructBegin()
6419
    while True:
6420
      (fname, ftype, fid) = iprot.readFieldBegin()
6421
      if ftype == TType.STOP:
6422
        break
6423
      if fid == 0:
6424
        if ftype == TType.LIST:
6425
          self.success = []
6426
          (_etype68, _size65) = iprot.readListBegin()
6427
          for _i69 in xrange(_size65):
6428
            _elem70 = iprot.readI64();
6429
            self.success.append(_elem70)
6430
          iprot.readListEnd()
6431
        else:
6432
          iprot.skip(ftype)
6433
      elif fid == 1:
6434
        if ftype == TType.STRUCT:
6435
          self.cex = CatalogServiceException()
6436
          self.cex.read(iprot)
6437
        else:
6438
          iprot.skip(ftype)
6439
      else:
6440
        iprot.skip(ftype)
6441
      iprot.readFieldEnd()
6442
    iprot.readStructEnd()
6443
 
6444
  def write(self, oprot):
6445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6447
      return
6448
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
6449
    if self.success is not None:
6450
      oprot.writeFieldBegin('success', TType.LIST, 0)
6451
      oprot.writeListBegin(TType.I64, len(self.success))
6452
      for iter71 in self.success:
6453
        oprot.writeI64(iter71)
6454
      oprot.writeListEnd()
6455
      oprot.writeFieldEnd()
6456
    if self.cex is not None:
6457
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6458
      self.cex.write(oprot)
6459
      oprot.writeFieldEnd()
6460
    oprot.writeFieldStop()
6461
    oprot.writeStructEnd()
6462
 
6463
  def validate(self):
6464
    return
6465
 
6466
 
6467
  def __repr__(self):
6468
    L = ['%s=%r' % (key, value)
6469
      for key, value in self.__dict__.iteritems()]
6470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6471
 
6472
  def __eq__(self, other):
6473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6474
 
6475
  def __ne__(self, other):
6476
    return not (self == other)
6477
 
6478
class getBestSellersCount_args:
6479
 
6480
  thrift_spec = (
6481
  )
6482
 
6483
  def read(self, iprot):
6484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6486
      return
6487
    iprot.readStructBegin()
6488
    while True:
6489
      (fname, ftype, fid) = iprot.readFieldBegin()
6490
      if ftype == TType.STOP:
6491
        break
6492
      else:
6493
        iprot.skip(ftype)
6494
      iprot.readFieldEnd()
6495
    iprot.readStructEnd()
6496
 
6497
  def write(self, oprot):
6498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6500
      return
6501
    oprot.writeStructBegin('getBestSellersCount_args')
6502
    oprot.writeFieldStop()
6503
    oprot.writeStructEnd()
6504
 
6505
  def validate(self):
6506
    return
6507
 
6508
 
6509
  def __repr__(self):
6510
    L = ['%s=%r' % (key, value)
6511
      for key, value in self.__dict__.iteritems()]
6512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6513
 
6514
  def __eq__(self, other):
6515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6516
 
6517
  def __ne__(self, other):
6518
    return not (self == other)
6519
 
6520
class getBestSellersCount_result:
6521
  """
6522
  Attributes:
6523
   - success
6524
   - cex
6525
  """
6526
 
6527
  thrift_spec = (
6528
    (0, TType.I64, 'success', None, None, ), # 0
6529
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6530
  )
6531
 
6532
  def __init__(self, success=None, cex=None,):
6533
    self.success = success
6534
    self.cex = cex
6535
 
6536
  def read(self, iprot):
6537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6539
      return
6540
    iprot.readStructBegin()
6541
    while True:
6542
      (fname, ftype, fid) = iprot.readFieldBegin()
6543
      if ftype == TType.STOP:
6544
        break
6545
      if fid == 0:
6546
        if ftype == TType.I64:
6547
          self.success = iprot.readI64();
6548
        else:
6549
          iprot.skip(ftype)
6550
      elif fid == 1:
6551
        if ftype == TType.STRUCT:
6552
          self.cex = CatalogServiceException()
6553
          self.cex.read(iprot)
6554
        else:
6555
          iprot.skip(ftype)
6556
      else:
6557
        iprot.skip(ftype)
6558
      iprot.readFieldEnd()
6559
    iprot.readStructEnd()
6560
 
6561
  def write(self, oprot):
6562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6564
      return
6565
    oprot.writeStructBegin('getBestSellersCount_result')
6566
    if self.success is not None:
6567
      oprot.writeFieldBegin('success', TType.I64, 0)
6568
      oprot.writeI64(self.success)
6569
      oprot.writeFieldEnd()
6570
    if self.cex is not None:
6571
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6572
      self.cex.write(oprot)
6573
      oprot.writeFieldEnd()
6574
    oprot.writeFieldStop()
6575
    oprot.writeStructEnd()
6576
 
6577
  def validate(self):
6578
    return
6579
 
6580
 
6581
  def __repr__(self):
6582
    L = ['%s=%r' % (key, value)
6583
      for key, value in self.__dict__.iteritems()]
6584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6585
 
6586
  def __eq__(self, other):
6587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6588
 
6589
  def __ne__(self, other):
6590
    return not (self == other)
6591
 
6592
class getBestDeals_args:
6593
 
6594
  thrift_spec = (
6595
  )
6596
 
6597
  def read(self, iprot):
6598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6600
      return
6601
    iprot.readStructBegin()
6602
    while True:
6603
      (fname, ftype, fid) = iprot.readFieldBegin()
6604
      if ftype == TType.STOP:
6605
        break
6606
      else:
6607
        iprot.skip(ftype)
6608
      iprot.readFieldEnd()
6609
    iprot.readStructEnd()
6610
 
6611
  def write(self, oprot):
6612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6614
      return
6615
    oprot.writeStructBegin('getBestDeals_args')
6616
    oprot.writeFieldStop()
6617
    oprot.writeStructEnd()
6618
 
6619
  def validate(self):
6620
    return
6621
 
6622
 
6623
  def __repr__(self):
6624
    L = ['%s=%r' % (key, value)
6625
      for key, value in self.__dict__.iteritems()]
6626
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6627
 
6628
  def __eq__(self, other):
6629
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6630
 
6631
  def __ne__(self, other):
6632
    return not (self == other)
6633
 
6634
class getBestDeals_result:
6635
  """
6636
  Attributes:
6637
   - success
6638
   - isex
6639
  """
6640
 
6641
  thrift_spec = (
6642
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6643
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6644
  )
6645
 
6646
  def __init__(self, success=None, isex=None,):
6647
    self.success = success
6648
    self.isex = isex
6649
 
6650
  def read(self, iprot):
6651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6653
      return
6654
    iprot.readStructBegin()
6655
    while True:
6656
      (fname, ftype, fid) = iprot.readFieldBegin()
6657
      if ftype == TType.STOP:
6658
        break
6659
      if fid == 0:
6660
        if ftype == TType.LIST:
6661
          self.success = []
6662
          (_etype75, _size72) = iprot.readListBegin()
6663
          for _i76 in xrange(_size72):
6664
            _elem77 = Item()
6665
            _elem77.read(iprot)
6666
            self.success.append(_elem77)
6667
          iprot.readListEnd()
6668
        else:
6669
          iprot.skip(ftype)
6670
      elif fid == 1:
6671
        if ftype == TType.STRUCT:
6672
          self.isex = CatalogServiceException()
6673
          self.isex.read(iprot)
6674
        else:
6675
          iprot.skip(ftype)
6676
      else:
6677
        iprot.skip(ftype)
6678
      iprot.readFieldEnd()
6679
    iprot.readStructEnd()
6680
 
6681
  def write(self, oprot):
6682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6684
      return
6685
    oprot.writeStructBegin('getBestDeals_result')
6686
    if self.success is not None:
6687
      oprot.writeFieldBegin('success', TType.LIST, 0)
6688
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6689
      for iter78 in self.success:
6690
        iter78.write(oprot)
6691
      oprot.writeListEnd()
6692
      oprot.writeFieldEnd()
6693
    if self.isex is not None:
6694
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6695
      self.isex.write(oprot)
6696
      oprot.writeFieldEnd()
6697
    oprot.writeFieldStop()
6698
    oprot.writeStructEnd()
6699
 
6700
  def validate(self):
6701
    return
6702
 
6703
 
6704
  def __repr__(self):
6705
    L = ['%s=%r' % (key, value)
6706
      for key, value in self.__dict__.iteritems()]
6707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6708
 
6709
  def __eq__(self, other):
6710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6711
 
6712
  def __ne__(self, other):
6713
    return not (self == other)
6714
 
6715
class getBestDealsCatalogIds_args:
6716
  """
6717
  Attributes:
6718
   - beginIndex
6719
   - totalItems
6720
   - brand
6721
   - category
6722
  """
6723
 
6724
  thrift_spec = (
6725
    None, # 0
6726
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6727
    (2, TType.I64, 'totalItems', None, None, ), # 2
6728
    (3, TType.STRING, 'brand', None, None, ), # 3
6729
    (4, TType.I64, 'category', None, None, ), # 4
6730
  )
6731
 
6732
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6733
    self.beginIndex = beginIndex
6734
    self.totalItems = totalItems
6735
    self.brand = brand
6736
    self.category = category
6737
 
6738
  def read(self, iprot):
6739
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6740
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6741
      return
6742
    iprot.readStructBegin()
6743
    while True:
6744
      (fname, ftype, fid) = iprot.readFieldBegin()
6745
      if ftype == TType.STOP:
6746
        break
6747
      if fid == 1:
6748
        if ftype == TType.I64:
6749
          self.beginIndex = iprot.readI64();
6750
        else:
6751
          iprot.skip(ftype)
6752
      elif fid == 2:
6753
        if ftype == TType.I64:
6754
          self.totalItems = iprot.readI64();
6755
        else:
6756
          iprot.skip(ftype)
6757
      elif fid == 3:
6758
        if ftype == TType.STRING:
6759
          self.brand = iprot.readString();
6760
        else:
6761
          iprot.skip(ftype)
6762
      elif fid == 4:
6763
        if ftype == TType.I64:
6764
          self.category = iprot.readI64();
6765
        else:
6766
          iprot.skip(ftype)
6767
      else:
6768
        iprot.skip(ftype)
6769
      iprot.readFieldEnd()
6770
    iprot.readStructEnd()
6771
 
6772
  def write(self, oprot):
6773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6775
      return
6776
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
6777
    if self.beginIndex is not None:
6778
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6779
      oprot.writeI64(self.beginIndex)
6780
      oprot.writeFieldEnd()
6781
    if self.totalItems is not None:
6782
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6783
      oprot.writeI64(self.totalItems)
6784
      oprot.writeFieldEnd()
6785
    if self.brand is not None:
6786
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6787
      oprot.writeString(self.brand)
6788
      oprot.writeFieldEnd()
6789
    if self.category is not None:
6790
      oprot.writeFieldBegin('category', TType.I64, 4)
6791
      oprot.writeI64(self.category)
6792
      oprot.writeFieldEnd()
6793
    oprot.writeFieldStop()
6794
    oprot.writeStructEnd()
6795
 
6796
  def validate(self):
6797
    return
6798
 
6799
 
6800
  def __repr__(self):
6801
    L = ['%s=%r' % (key, value)
6802
      for key, value in self.__dict__.iteritems()]
6803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6804
 
6805
  def __eq__(self, other):
6806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6807
 
6808
  def __ne__(self, other):
6809
    return not (self == other)
6810
 
6811
class getBestDealsCatalogIds_result:
6812
  """
6813
  Attributes:
6814
   - success
6815
   - cex
6816
  """
6817
 
6818
  thrift_spec = (
6819
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6820
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6821
  )
6822
 
6823
  def __init__(self, success=None, cex=None,):
6824
    self.success = success
6825
    self.cex = cex
6826
 
6827
  def read(self, iprot):
6828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6830
      return
6831
    iprot.readStructBegin()
6832
    while True:
6833
      (fname, ftype, fid) = iprot.readFieldBegin()
6834
      if ftype == TType.STOP:
6835
        break
6836
      if fid == 0:
6837
        if ftype == TType.LIST:
6838
          self.success = []
6839
          (_etype82, _size79) = iprot.readListBegin()
6840
          for _i83 in xrange(_size79):
6841
            _elem84 = iprot.readI64();
6842
            self.success.append(_elem84)
6843
          iprot.readListEnd()
6844
        else:
6845
          iprot.skip(ftype)
6846
      elif fid == 1:
6847
        if ftype == TType.STRUCT:
6848
          self.cex = CatalogServiceException()
6849
          self.cex.read(iprot)
6850
        else:
6851
          iprot.skip(ftype)
6852
      else:
6853
        iprot.skip(ftype)
6854
      iprot.readFieldEnd()
6855
    iprot.readStructEnd()
6856
 
6857
  def write(self, oprot):
6858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6860
      return
6861
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
6862
    if self.success is not None:
6863
      oprot.writeFieldBegin('success', TType.LIST, 0)
6864
      oprot.writeListBegin(TType.I64, len(self.success))
6865
      for iter85 in self.success:
6866
        oprot.writeI64(iter85)
6867
      oprot.writeListEnd()
6868
      oprot.writeFieldEnd()
6869
    if self.cex is not None:
6870
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6871
      self.cex.write(oprot)
6872
      oprot.writeFieldEnd()
6873
    oprot.writeFieldStop()
6874
    oprot.writeStructEnd()
6875
 
6876
  def validate(self):
6877
    return
6878
 
6879
 
6880
  def __repr__(self):
6881
    L = ['%s=%r' % (key, value)
6882
      for key, value in self.__dict__.iteritems()]
6883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6884
 
6885
  def __eq__(self, other):
6886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6887
 
6888
  def __ne__(self, other):
6889
    return not (self == other)
6890
 
6891
class getBestDealsCount_args:
6892
 
6893
  thrift_spec = (
6894
  )
6895
 
6896
  def read(self, iprot):
6897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6899
      return
6900
    iprot.readStructBegin()
6901
    while True:
6902
      (fname, ftype, fid) = iprot.readFieldBegin()
6903
      if ftype == TType.STOP:
6904
        break
6905
      else:
6906
        iprot.skip(ftype)
6907
      iprot.readFieldEnd()
6908
    iprot.readStructEnd()
6909
 
6910
  def write(self, oprot):
6911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6913
      return
6914
    oprot.writeStructBegin('getBestDealsCount_args')
6915
    oprot.writeFieldStop()
6916
    oprot.writeStructEnd()
6917
 
6918
  def validate(self):
6919
    return
6920
 
6921
 
6922
  def __repr__(self):
6923
    L = ['%s=%r' % (key, value)
6924
      for key, value in self.__dict__.iteritems()]
6925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6926
 
6927
  def __eq__(self, other):
6928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6929
 
6930
  def __ne__(self, other):
6931
    return not (self == other)
6932
 
6933
class getBestDealsCount_result:
6934
  """
6935
  Attributes:
6936
   - success
6937
   - cex
6938
  """
6939
 
6940
  thrift_spec = (
6941
    (0, TType.I64, 'success', None, None, ), # 0
6942
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6943
  )
6944
 
6945
  def __init__(self, success=None, cex=None,):
6946
    self.success = success
6947
    self.cex = cex
6948
 
6949
  def read(self, iprot):
6950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6952
      return
6953
    iprot.readStructBegin()
6954
    while True:
6955
      (fname, ftype, fid) = iprot.readFieldBegin()
6956
      if ftype == TType.STOP:
6957
        break
6958
      if fid == 0:
6959
        if ftype == TType.I64:
6960
          self.success = iprot.readI64();
6961
        else:
6962
          iprot.skip(ftype)
6963
      elif fid == 1:
6964
        if ftype == TType.STRUCT:
6965
          self.cex = CatalogServiceException()
6966
          self.cex.read(iprot)
6967
        else:
6968
          iprot.skip(ftype)
6969
      else:
6970
        iprot.skip(ftype)
6971
      iprot.readFieldEnd()
6972
    iprot.readStructEnd()
6973
 
6974
  def write(self, oprot):
6975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6977
      return
6978
    oprot.writeStructBegin('getBestDealsCount_result')
6979
    if self.success is not None:
6980
      oprot.writeFieldBegin('success', TType.I64, 0)
6981
      oprot.writeI64(self.success)
6982
      oprot.writeFieldEnd()
6983
    if self.cex is not None:
6984
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6985
      self.cex.write(oprot)
6986
      oprot.writeFieldEnd()
6987
    oprot.writeFieldStop()
6988
    oprot.writeStructEnd()
6989
 
6990
  def validate(self):
6991
    return
6992
 
6993
 
6994
  def __repr__(self):
6995
    L = ['%s=%r' % (key, value)
6996
      for key, value in self.__dict__.iteritems()]
6997
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6998
 
6999
  def __eq__(self, other):
7000
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7001
 
7002
  def __ne__(self, other):
7003
    return not (self == other)
7004
 
7005
class getComingSoon_args:
7006
 
7007
  thrift_spec = (
7008
  )
7009
 
7010
  def read(self, iprot):
7011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7013
      return
7014
    iprot.readStructBegin()
7015
    while True:
7016
      (fname, ftype, fid) = iprot.readFieldBegin()
7017
      if ftype == TType.STOP:
7018
        break
7019
      else:
7020
        iprot.skip(ftype)
7021
      iprot.readFieldEnd()
7022
    iprot.readStructEnd()
7023
 
7024
  def write(self, oprot):
7025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7027
      return
7028
    oprot.writeStructBegin('getComingSoon_args')
7029
    oprot.writeFieldStop()
7030
    oprot.writeStructEnd()
7031
 
7032
  def validate(self):
7033
    return
7034
 
7035
 
7036
  def __repr__(self):
7037
    L = ['%s=%r' % (key, value)
7038
      for key, value in self.__dict__.iteritems()]
7039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7040
 
7041
  def __eq__(self, other):
7042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7043
 
7044
  def __ne__(self, other):
7045
    return not (self == other)
7046
 
7047
class getComingSoon_result:
7048
  """
7049
  Attributes:
7050
   - success
7051
   - isex
7052
  """
7053
 
7054
  thrift_spec = (
7055
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7056
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7057
  )
7058
 
7059
  def __init__(self, success=None, isex=None,):
7060
    self.success = success
7061
    self.isex = isex
7062
 
7063
  def read(self, iprot):
7064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7066
      return
7067
    iprot.readStructBegin()
7068
    while True:
7069
      (fname, ftype, fid) = iprot.readFieldBegin()
7070
      if ftype == TType.STOP:
7071
        break
7072
      if fid == 0:
7073
        if ftype == TType.LIST:
7074
          self.success = []
7075
          (_etype89, _size86) = iprot.readListBegin()
7076
          for _i90 in xrange(_size86):
7077
            _elem91 = Item()
7078
            _elem91.read(iprot)
7079
            self.success.append(_elem91)
7080
          iprot.readListEnd()
7081
        else:
7082
          iprot.skip(ftype)
7083
      elif fid == 1:
7084
        if ftype == TType.STRUCT:
7085
          self.isex = CatalogServiceException()
7086
          self.isex.read(iprot)
7087
        else:
7088
          iprot.skip(ftype)
7089
      else:
7090
        iprot.skip(ftype)
7091
      iprot.readFieldEnd()
7092
    iprot.readStructEnd()
7093
 
7094
  def write(self, oprot):
7095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7097
      return
7098
    oprot.writeStructBegin('getComingSoon_result')
7099
    if self.success is not None:
7100
      oprot.writeFieldBegin('success', TType.LIST, 0)
7101
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7102
      for iter92 in self.success:
7103
        iter92.write(oprot)
7104
      oprot.writeListEnd()
7105
      oprot.writeFieldEnd()
7106
    if self.isex is not None:
7107
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7108
      self.isex.write(oprot)
7109
      oprot.writeFieldEnd()
7110
    oprot.writeFieldStop()
7111
    oprot.writeStructEnd()
7112
 
7113
  def validate(self):
7114
    return
7115
 
7116
 
7117
  def __repr__(self):
7118
    L = ['%s=%r' % (key, value)
7119
      for key, value in self.__dict__.iteritems()]
7120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7121
 
7122
  def __eq__(self, other):
7123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7124
 
7125
  def __ne__(self, other):
7126
    return not (self == other)
7127
 
7128
class getComingSoonCatalogIds_args:
7129
  """
7130
  Attributes:
7131
   - beginIndex
7132
   - totalItems
7133
   - brand
7134
   - category
7135
  """
7136
 
7137
  thrift_spec = (
7138
    None, # 0
7139
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7140
    (2, TType.I64, 'totalItems', None, None, ), # 2
7141
    (3, TType.STRING, 'brand', None, None, ), # 3
7142
    (4, TType.I64, 'category', None, None, ), # 4
7143
  )
7144
 
7145
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7146
    self.beginIndex = beginIndex
7147
    self.totalItems = totalItems
7148
    self.brand = brand
7149
    self.category = category
7150
 
7151
  def read(self, iprot):
7152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7154
      return
7155
    iprot.readStructBegin()
7156
    while True:
7157
      (fname, ftype, fid) = iprot.readFieldBegin()
7158
      if ftype == TType.STOP:
7159
        break
7160
      if fid == 1:
7161
        if ftype == TType.I64:
7162
          self.beginIndex = iprot.readI64();
7163
        else:
7164
          iprot.skip(ftype)
7165
      elif fid == 2:
7166
        if ftype == TType.I64:
7167
          self.totalItems = iprot.readI64();
7168
        else:
7169
          iprot.skip(ftype)
7170
      elif fid == 3:
7171
        if ftype == TType.STRING:
7172
          self.brand = iprot.readString();
7173
        else:
7174
          iprot.skip(ftype)
7175
      elif fid == 4:
7176
        if ftype == TType.I64:
7177
          self.category = iprot.readI64();
7178
        else:
7179
          iprot.skip(ftype)
7180
      else:
7181
        iprot.skip(ftype)
7182
      iprot.readFieldEnd()
7183
    iprot.readStructEnd()
7184
 
7185
  def write(self, oprot):
7186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7188
      return
7189
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7190
    if self.beginIndex is not None:
7191
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7192
      oprot.writeI64(self.beginIndex)
7193
      oprot.writeFieldEnd()
7194
    if self.totalItems is not None:
7195
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7196
      oprot.writeI64(self.totalItems)
7197
      oprot.writeFieldEnd()
7198
    if self.brand is not None:
7199
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7200
      oprot.writeString(self.brand)
7201
      oprot.writeFieldEnd()
7202
    if self.category is not None:
7203
      oprot.writeFieldBegin('category', TType.I64, 4)
7204
      oprot.writeI64(self.category)
7205
      oprot.writeFieldEnd()
7206
    oprot.writeFieldStop()
7207
    oprot.writeStructEnd()
7208
 
7209
  def validate(self):
7210
    return
7211
 
7212
 
7213
  def __repr__(self):
7214
    L = ['%s=%r' % (key, value)
7215
      for key, value in self.__dict__.iteritems()]
7216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7217
 
7218
  def __eq__(self, other):
7219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7220
 
7221
  def __ne__(self, other):
7222
    return not (self == other)
7223
 
7224
class getComingSoonCatalogIds_result:
7225
  """
7226
  Attributes:
7227
   - success
7228
   - cex
7229
  """
7230
 
7231
  thrift_spec = (
7232
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7233
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7234
  )
7235
 
7236
  def __init__(self, success=None, cex=None,):
7237
    self.success = success
7238
    self.cex = cex
7239
 
7240
  def read(self, iprot):
7241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7243
      return
7244
    iprot.readStructBegin()
7245
    while True:
7246
      (fname, ftype, fid) = iprot.readFieldBegin()
7247
      if ftype == TType.STOP:
7248
        break
7249
      if fid == 0:
7250
        if ftype == TType.LIST:
7251
          self.success = []
7252
          (_etype96, _size93) = iprot.readListBegin()
7253
          for _i97 in xrange(_size93):
7254
            _elem98 = iprot.readI64();
7255
            self.success.append(_elem98)
7256
          iprot.readListEnd()
7257
        else:
7258
          iprot.skip(ftype)
7259
      elif fid == 1:
7260
        if ftype == TType.STRUCT:
7261
          self.cex = CatalogServiceException()
7262
          self.cex.read(iprot)
7263
        else:
7264
          iprot.skip(ftype)
7265
      else:
7266
        iprot.skip(ftype)
7267
      iprot.readFieldEnd()
7268
    iprot.readStructEnd()
7269
 
7270
  def write(self, oprot):
7271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7273
      return
7274
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7275
    if self.success is not None:
7276
      oprot.writeFieldBegin('success', TType.LIST, 0)
7277
      oprot.writeListBegin(TType.I64, len(self.success))
7278
      for iter99 in self.success:
7279
        oprot.writeI64(iter99)
7280
      oprot.writeListEnd()
7281
      oprot.writeFieldEnd()
7282
    if self.cex is not None:
7283
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7284
      self.cex.write(oprot)
7285
      oprot.writeFieldEnd()
7286
    oprot.writeFieldStop()
7287
    oprot.writeStructEnd()
7288
 
7289
  def validate(self):
7290
    return
7291
 
7292
 
7293
  def __repr__(self):
7294
    L = ['%s=%r' % (key, value)
7295
      for key, value in self.__dict__.iteritems()]
7296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7297
 
7298
  def __eq__(self, other):
7299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7300
 
7301
  def __ne__(self, other):
7302
    return not (self == other)
7303
 
7304
class getComingSoonCount_args:
7305
 
7306
  thrift_spec = (
7307
  )
7308
 
7309
  def read(self, iprot):
7310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7312
      return
7313
    iprot.readStructBegin()
7314
    while True:
7315
      (fname, ftype, fid) = iprot.readFieldBegin()
7316
      if ftype == TType.STOP:
7317
        break
7318
      else:
7319
        iprot.skip(ftype)
7320
      iprot.readFieldEnd()
7321
    iprot.readStructEnd()
7322
 
7323
  def write(self, oprot):
7324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7326
      return
7327
    oprot.writeStructBegin('getComingSoonCount_args')
7328
    oprot.writeFieldStop()
7329
    oprot.writeStructEnd()
7330
 
7331
  def validate(self):
7332
    return
7333
 
7334
 
7335
  def __repr__(self):
7336
    L = ['%s=%r' % (key, value)
7337
      for key, value in self.__dict__.iteritems()]
7338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7339
 
7340
  def __eq__(self, other):
7341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7342
 
7343
  def __ne__(self, other):
7344
    return not (self == other)
7345
 
7346
class getComingSoonCount_result:
7347
  """
7348
  Attributes:
7349
   - success
7350
   - cex
7351
  """
7352
 
7353
  thrift_spec = (
7354
    (0, TType.I64, 'success', None, None, ), # 0
7355
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7356
  )
7357
 
7358
  def __init__(self, success=None, cex=None,):
7359
    self.success = success
7360
    self.cex = cex
7361
 
7362
  def read(self, iprot):
7363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7365
      return
7366
    iprot.readStructBegin()
7367
    while True:
7368
      (fname, ftype, fid) = iprot.readFieldBegin()
7369
      if ftype == TType.STOP:
7370
        break
7371
      if fid == 0:
7372
        if ftype == TType.I64:
7373
          self.success = iprot.readI64();
7374
        else:
7375
          iprot.skip(ftype)
7376
      elif fid == 1:
7377
        if ftype == TType.STRUCT:
7378
          self.cex = CatalogServiceException()
7379
          self.cex.read(iprot)
7380
        else:
7381
          iprot.skip(ftype)
7382
      else:
7383
        iprot.skip(ftype)
7384
      iprot.readFieldEnd()
7385
    iprot.readStructEnd()
7386
 
7387
  def write(self, oprot):
7388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7390
      return
7391
    oprot.writeStructBegin('getComingSoonCount_result')
7392
    if self.success is not None:
7393
      oprot.writeFieldBegin('success', TType.I64, 0)
7394
      oprot.writeI64(self.success)
7395
      oprot.writeFieldEnd()
7396
    if self.cex is not None:
7397
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7398
      self.cex.write(oprot)
7399
      oprot.writeFieldEnd()
7400
    oprot.writeFieldStop()
7401
    oprot.writeStructEnd()
7402
 
7403
  def validate(self):
7404
    return
7405
 
7406
 
7407
  def __repr__(self):
7408
    L = ['%s=%r' % (key, value)
7409
      for key, value in self.__dict__.iteritems()]
7410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7411
 
7412
  def __eq__(self, other):
7413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7414
 
7415
  def __ne__(self, other):
7416
    return not (self == other)
7417
 
7418
class getLatestArrivals_args:
7419
 
7420
  thrift_spec = (
7421
  )
7422
 
7423
  def read(self, iprot):
7424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7426
      return
7427
    iprot.readStructBegin()
7428
    while True:
7429
      (fname, ftype, fid) = iprot.readFieldBegin()
7430
      if ftype == TType.STOP:
7431
        break
7432
      else:
7433
        iprot.skip(ftype)
7434
      iprot.readFieldEnd()
7435
    iprot.readStructEnd()
7436
 
7437
  def write(self, oprot):
7438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7440
      return
7441
    oprot.writeStructBegin('getLatestArrivals_args')
7442
    oprot.writeFieldStop()
7443
    oprot.writeStructEnd()
7444
 
7445
  def validate(self):
7446
    return
7447
 
7448
 
7449
  def __repr__(self):
7450
    L = ['%s=%r' % (key, value)
7451
      for key, value in self.__dict__.iteritems()]
7452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7453
 
7454
  def __eq__(self, other):
7455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7456
 
7457
  def __ne__(self, other):
7458
    return not (self == other)
7459
 
7460
class getLatestArrivals_result:
7461
  """
7462
  Attributes:
7463
   - success
7464
   - isex
7465
  """
7466
 
7467
  thrift_spec = (
7468
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7469
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7470
  )
7471
 
7472
  def __init__(self, success=None, isex=None,):
7473
    self.success = success
7474
    self.isex = isex
7475
 
7476
  def read(self, iprot):
7477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7479
      return
7480
    iprot.readStructBegin()
7481
    while True:
7482
      (fname, ftype, fid) = iprot.readFieldBegin()
7483
      if ftype == TType.STOP:
7484
        break
7485
      if fid == 0:
7486
        if ftype == TType.LIST:
7487
          self.success = []
7488
          (_etype103, _size100) = iprot.readListBegin()
7489
          for _i104 in xrange(_size100):
7490
            _elem105 = Item()
7491
            _elem105.read(iprot)
7492
            self.success.append(_elem105)
7493
          iprot.readListEnd()
7494
        else:
7495
          iprot.skip(ftype)
7496
      elif fid == 1:
7497
        if ftype == TType.STRUCT:
7498
          self.isex = CatalogServiceException()
7499
          self.isex.read(iprot)
7500
        else:
7501
          iprot.skip(ftype)
7502
      else:
7503
        iprot.skip(ftype)
7504
      iprot.readFieldEnd()
7505
    iprot.readStructEnd()
7506
 
7507
  def write(self, oprot):
7508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7510
      return
7511
    oprot.writeStructBegin('getLatestArrivals_result')
7512
    if self.success is not None:
7513
      oprot.writeFieldBegin('success', TType.LIST, 0)
7514
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7515
      for iter106 in self.success:
7516
        iter106.write(oprot)
7517
      oprot.writeListEnd()
7518
      oprot.writeFieldEnd()
7519
    if self.isex is not None:
7520
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7521
      self.isex.write(oprot)
7522
      oprot.writeFieldEnd()
7523
    oprot.writeFieldStop()
7524
    oprot.writeStructEnd()
7525
 
7526
  def validate(self):
7527
    return
7528
 
7529
 
7530
  def __repr__(self):
7531
    L = ['%s=%r' % (key, value)
7532
      for key, value in self.__dict__.iteritems()]
7533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7534
 
7535
  def __eq__(self, other):
7536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7537
 
7538
  def __ne__(self, other):
7539
    return not (self == other)
7540
 
7541
class getLatestArrivalsCatalogIds_args:
7542
  """
7543
  Attributes:
7544
   - beginIndex
7545
   - totalItems
7546
   - brand
7547
   - categories
7548
  """
7549
 
7550
  thrift_spec = (
7551
    None, # 0
7552
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7553
    (2, TType.I64, 'totalItems', None, None, ), # 2
7554
    (3, TType.STRING, 'brand', None, None, ), # 3
7555
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
7556
  )
7557
 
7558
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
7559
    self.beginIndex = beginIndex
7560
    self.totalItems = totalItems
7561
    self.brand = brand
7562
    self.categories = categories
7563
 
7564
  def read(self, iprot):
7565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7567
      return
7568
    iprot.readStructBegin()
7569
    while True:
7570
      (fname, ftype, fid) = iprot.readFieldBegin()
7571
      if ftype == TType.STOP:
7572
        break
7573
      if fid == 1:
7574
        if ftype == TType.I64:
7575
          self.beginIndex = iprot.readI64();
7576
        else:
7577
          iprot.skip(ftype)
7578
      elif fid == 2:
7579
        if ftype == TType.I64:
7580
          self.totalItems = iprot.readI64();
7581
        else:
7582
          iprot.skip(ftype)
7583
      elif fid == 3:
7584
        if ftype == TType.STRING:
7585
          self.brand = iprot.readString();
7586
        else:
7587
          iprot.skip(ftype)
7588
      elif fid == 4:
7589
        if ftype == TType.LIST:
7590
          self.categories = []
7591
          (_etype110, _size107) = iprot.readListBegin()
7592
          for _i111 in xrange(_size107):
7593
            _elem112 = iprot.readI64();
7594
            self.categories.append(_elem112)
7595
          iprot.readListEnd()
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('getLatestArrivalsCatalogIds_args')
7608
    if self.beginIndex is not None:
7609
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7610
      oprot.writeI64(self.beginIndex)
7611
      oprot.writeFieldEnd()
7612
    if self.totalItems is not None:
7613
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7614
      oprot.writeI64(self.totalItems)
7615
      oprot.writeFieldEnd()
7616
    if self.brand is not None:
7617
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7618
      oprot.writeString(self.brand)
7619
      oprot.writeFieldEnd()
7620
    if self.categories is not None:
7621
      oprot.writeFieldBegin('categories', TType.LIST, 4)
7622
      oprot.writeListBegin(TType.I64, len(self.categories))
7623
      for iter113 in self.categories:
7624
        oprot.writeI64(iter113)
7625
      oprot.writeListEnd()
7626
      oprot.writeFieldEnd()
7627
    oprot.writeFieldStop()
7628
    oprot.writeStructEnd()
7629
 
7630
  def validate(self):
7631
    return
7632
 
7633
 
7634
  def __repr__(self):
7635
    L = ['%s=%r' % (key, value)
7636
      for key, value in self.__dict__.iteritems()]
7637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7638
 
7639
  def __eq__(self, other):
7640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7641
 
7642
  def __ne__(self, other):
7643
    return not (self == other)
7644
 
7645
class getLatestArrivalsCatalogIds_result:
7646
  """
7647
  Attributes:
7648
   - success
7649
   - cex
7650
  """
7651
 
7652
  thrift_spec = (
7653
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7654
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7655
  )
7656
 
7657
  def __init__(self, success=None, cex=None,):
7658
    self.success = success
7659
    self.cex = cex
7660
 
7661
  def read(self, iprot):
7662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7664
      return
7665
    iprot.readStructBegin()
7666
    while True:
7667
      (fname, ftype, fid) = iprot.readFieldBegin()
7668
      if ftype == TType.STOP:
7669
        break
7670
      if fid == 0:
7671
        if ftype == TType.LIST:
7672
          self.success = []
7673
          (_etype117, _size114) = iprot.readListBegin()
7674
          for _i118 in xrange(_size114):
7675
            _elem119 = iprot.readI64();
7676
            self.success.append(_elem119)
7677
          iprot.readListEnd()
7678
        else:
7679
          iprot.skip(ftype)
7680
      elif fid == 1:
7681
        if ftype == TType.STRUCT:
7682
          self.cex = CatalogServiceException()
7683
          self.cex.read(iprot)
7684
        else:
7685
          iprot.skip(ftype)
7686
      else:
7687
        iprot.skip(ftype)
7688
      iprot.readFieldEnd()
7689
    iprot.readStructEnd()
7690
 
7691
  def write(self, oprot):
7692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7694
      return
7695
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
7696
    if self.success is not None:
7697
      oprot.writeFieldBegin('success', TType.LIST, 0)
7698
      oprot.writeListBegin(TType.I64, len(self.success))
7699
      for iter120 in self.success:
7700
        oprot.writeI64(iter120)
7701
      oprot.writeListEnd()
7702
      oprot.writeFieldEnd()
7703
    if self.cex is not None:
7704
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7705
      self.cex.write(oprot)
7706
      oprot.writeFieldEnd()
7707
    oprot.writeFieldStop()
7708
    oprot.writeStructEnd()
7709
 
7710
  def validate(self):
7711
    return
7712
 
7713
 
7714
  def __repr__(self):
7715
    L = ['%s=%r' % (key, value)
7716
      for key, value in self.__dict__.iteritems()]
7717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7718
 
7719
  def __eq__(self, other):
7720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7721
 
7722
  def __ne__(self, other):
7723
    return not (self == other)
7724
 
7725
class getLatestArrivalsCount_args:
7726
 
7727
  thrift_spec = (
7728
  )
7729
 
7730
  def read(self, iprot):
7731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7733
      return
7734
    iprot.readStructBegin()
7735
    while True:
7736
      (fname, ftype, fid) = iprot.readFieldBegin()
7737
      if ftype == TType.STOP:
7738
        break
7739
      else:
7740
        iprot.skip(ftype)
7741
      iprot.readFieldEnd()
7742
    iprot.readStructEnd()
7743
 
7744
  def write(self, oprot):
7745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7747
      return
7748
    oprot.writeStructBegin('getLatestArrivalsCount_args')
7749
    oprot.writeFieldStop()
7750
    oprot.writeStructEnd()
7751
 
7752
  def validate(self):
7753
    return
7754
 
7755
 
7756
  def __repr__(self):
7757
    L = ['%s=%r' % (key, value)
7758
      for key, value in self.__dict__.iteritems()]
7759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7760
 
7761
  def __eq__(self, other):
7762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7763
 
7764
  def __ne__(self, other):
7765
    return not (self == other)
7766
 
7767
class getLatestArrivalsCount_result:
7768
  """
7769
  Attributes:
7770
   - success
7771
   - cex
7772
  """
7773
 
7774
  thrift_spec = (
7775
    (0, TType.I64, 'success', None, None, ), # 0
7776
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7777
  )
7778
 
7779
  def __init__(self, success=None, cex=None,):
7780
    self.success = success
7781
    self.cex = cex
7782
 
7783
  def read(self, iprot):
7784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7786
      return
7787
    iprot.readStructBegin()
7788
    while True:
7789
      (fname, ftype, fid) = iprot.readFieldBegin()
7790
      if ftype == TType.STOP:
7791
        break
7792
      if fid == 0:
7793
        if ftype == TType.I64:
7794
          self.success = iprot.readI64();
7795
        else:
7796
          iprot.skip(ftype)
7797
      elif fid == 1:
7798
        if ftype == TType.STRUCT:
7799
          self.cex = CatalogServiceException()
7800
          self.cex.read(iprot)
7801
        else:
7802
          iprot.skip(ftype)
7803
      else:
7804
        iprot.skip(ftype)
7805
      iprot.readFieldEnd()
7806
    iprot.readStructEnd()
7807
 
7808
  def write(self, oprot):
7809
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7810
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7811
      return
7812
    oprot.writeStructBegin('getLatestArrivalsCount_result')
7813
    if self.success is not None:
7814
      oprot.writeFieldBegin('success', TType.I64, 0)
7815
      oprot.writeI64(self.success)
7816
      oprot.writeFieldEnd()
7817
    if self.cex is not None:
7818
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7819
      self.cex.write(oprot)
7820
      oprot.writeFieldEnd()
7821
    oprot.writeFieldStop()
7822
    oprot.writeStructEnd()
7823
 
7824
  def validate(self):
7825
    return
7826
 
7827
 
7828
  def __repr__(self):
7829
    L = ['%s=%r' % (key, value)
7830
      for key, value in self.__dict__.iteritems()]
7831
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7832
 
7833
  def __eq__(self, other):
7834
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7835
 
7836
  def __ne__(self, other):
7837
    return not (self == other)
7838
 
7839
class generateNewEntityID_args:
7840
 
7841
  thrift_spec = (
7842
  )
7843
 
7844
  def read(self, iprot):
7845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7847
      return
7848
    iprot.readStructBegin()
7849
    while True:
7850
      (fname, ftype, fid) = iprot.readFieldBegin()
7851
      if ftype == TType.STOP:
7852
        break
7853
      else:
7854
        iprot.skip(ftype)
7855
      iprot.readFieldEnd()
7856
    iprot.readStructEnd()
7857
 
7858
  def write(self, oprot):
7859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7861
      return
7862
    oprot.writeStructBegin('generateNewEntityID_args')
7863
    oprot.writeFieldStop()
7864
    oprot.writeStructEnd()
7865
 
7866
  def validate(self):
7867
    return
7868
 
7869
 
7870
  def __repr__(self):
7871
    L = ['%s=%r' % (key, value)
7872
      for key, value in self.__dict__.iteritems()]
7873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7874
 
7875
  def __eq__(self, other):
7876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7877
 
7878
  def __ne__(self, other):
7879
    return not (self == other)
7880
 
7881
class generateNewEntityID_result:
7882
  """
7883
  Attributes:
7884
   - success
7885
  """
7886
 
7887
  thrift_spec = (
7888
    (0, TType.I64, 'success', None, None, ), # 0
7889
  )
7890
 
7891
  def __init__(self, success=None,):
7892
    self.success = success
7893
 
7894
  def read(self, iprot):
7895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7897
      return
7898
    iprot.readStructBegin()
7899
    while True:
7900
      (fname, ftype, fid) = iprot.readFieldBegin()
7901
      if ftype == TType.STOP:
7902
        break
7903
      if fid == 0:
7904
        if ftype == TType.I64:
7905
          self.success = iprot.readI64();
7906
        else:
7907
          iprot.skip(ftype)
7908
      else:
7909
        iprot.skip(ftype)
7910
      iprot.readFieldEnd()
7911
    iprot.readStructEnd()
7912
 
7913
  def write(self, oprot):
7914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7916
      return
7917
    oprot.writeStructBegin('generateNewEntityID_result')
7918
    if self.success is not None:
7919
      oprot.writeFieldBegin('success', TType.I64, 0)
7920
      oprot.writeI64(self.success)
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 addCategory_args:
7941
  """
7942
  Attributes:
7943
   - category
7944
  """
7945
 
7946
  thrift_spec = (
7947
    None, # 0
7948
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
7949
  )
7950
 
7951
  def __init__(self, category=None,):
7952
    self.category = category
7953
 
7954
  def read(self, iprot):
7955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7957
      return
7958
    iprot.readStructBegin()
7959
    while True:
7960
      (fname, ftype, fid) = iprot.readFieldBegin()
7961
      if ftype == TType.STOP:
7962
        break
7963
      if fid == 1:
7964
        if ftype == TType.STRUCT:
7965
          self.category = Category()
7966
          self.category.read(iprot)
7967
        else:
7968
          iprot.skip(ftype)
7969
      else:
7970
        iprot.skip(ftype)
7971
      iprot.readFieldEnd()
7972
    iprot.readStructEnd()
7973
 
7974
  def write(self, oprot):
7975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7977
      return
7978
    oprot.writeStructBegin('addCategory_args')
7979
    if self.category is not None:
7980
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
7981
      self.category.write(oprot)
7982
      oprot.writeFieldEnd()
7983
    oprot.writeFieldStop()
7984
    oprot.writeStructEnd()
7985
 
7986
  def validate(self):
7987
    return
7988
 
7989
 
7990
  def __repr__(self):
7991
    L = ['%s=%r' % (key, value)
7992
      for key, value in self.__dict__.iteritems()]
7993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7994
 
7995
  def __eq__(self, other):
7996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7997
 
7998
  def __ne__(self, other):
7999
    return not (self == other)
8000
 
8001
class addCategory_result:
8002
  """
8003
  Attributes:
8004
   - success
8005
  """
8006
 
8007
  thrift_spec = (
8008
    (0, TType.BOOL, 'success', None, None, ), # 0
8009
  )
8010
 
8011
  def __init__(self, success=None,):
8012
    self.success = success
8013
 
8014
  def read(self, iprot):
8015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8017
      return
8018
    iprot.readStructBegin()
8019
    while True:
8020
      (fname, ftype, fid) = iprot.readFieldBegin()
8021
      if ftype == TType.STOP:
8022
        break
8023
      if fid == 0:
8024
        if ftype == TType.BOOL:
8025
          self.success = iprot.readBool();
8026
        else:
8027
          iprot.skip(ftype)
8028
      else:
8029
        iprot.skip(ftype)
8030
      iprot.readFieldEnd()
8031
    iprot.readStructEnd()
8032
 
8033
  def write(self, oprot):
8034
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8035
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8036
      return
8037
    oprot.writeStructBegin('addCategory_result')
8038
    if self.success is not None:
8039
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8040
      oprot.writeBool(self.success)
8041
      oprot.writeFieldEnd()
8042
    oprot.writeFieldStop()
8043
    oprot.writeStructEnd()
8044
 
8045
  def validate(self):
8046
    return
8047
 
8048
 
8049
  def __repr__(self):
8050
    L = ['%s=%r' % (key, value)
8051
      for key, value in self.__dict__.iteritems()]
8052
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8053
 
8054
  def __eq__(self, other):
8055
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8056
 
8057
  def __ne__(self, other):
8058
    return not (self == other)
8059
 
8060
class getCategory_args:
8061
  """
8062
  Attributes:
8063
   - id
8064
  """
8065
 
8066
  thrift_spec = (
8067
    None, # 0
8068
    (1, TType.I64, 'id', None, None, ), # 1
8069
  )
8070
 
8071
  def __init__(self, id=None,):
8072
    self.id = id
8073
 
8074
  def read(self, iprot):
8075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8077
      return
8078
    iprot.readStructBegin()
8079
    while True:
8080
      (fname, ftype, fid) = iprot.readFieldBegin()
8081
      if ftype == TType.STOP:
8082
        break
8083
      if fid == 1:
8084
        if ftype == TType.I64:
8085
          self.id = iprot.readI64();
8086
        else:
8087
          iprot.skip(ftype)
8088
      else:
8089
        iprot.skip(ftype)
8090
      iprot.readFieldEnd()
8091
    iprot.readStructEnd()
8092
 
8093
  def write(self, oprot):
8094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8096
      return
8097
    oprot.writeStructBegin('getCategory_args')
8098
    if self.id is not None:
8099
      oprot.writeFieldBegin('id', TType.I64, 1)
8100
      oprot.writeI64(self.id)
8101
      oprot.writeFieldEnd()
8102
    oprot.writeFieldStop()
8103
    oprot.writeStructEnd()
8104
 
8105
  def validate(self):
8106
    return
8107
 
8108
 
8109
  def __repr__(self):
8110
    L = ['%s=%r' % (key, value)
8111
      for key, value in self.__dict__.iteritems()]
8112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8113
 
8114
  def __eq__(self, other):
8115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8116
 
8117
  def __ne__(self, other):
8118
    return not (self == other)
8119
 
8120
class getCategory_result:
8121
  """
8122
  Attributes:
8123
   - success
8124
  """
8125
 
8126
  thrift_spec = (
8127
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8128
  )
8129
 
8130
  def __init__(self, success=None,):
8131
    self.success = success
8132
 
8133
  def read(self, iprot):
8134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8136
      return
8137
    iprot.readStructBegin()
8138
    while True:
8139
      (fname, ftype, fid) = iprot.readFieldBegin()
8140
      if ftype == TType.STOP:
8141
        break
8142
      if fid == 0:
8143
        if ftype == TType.STRUCT:
8144
          self.success = Category()
8145
          self.success.read(iprot)
8146
        else:
8147
          iprot.skip(ftype)
8148
      else:
8149
        iprot.skip(ftype)
8150
      iprot.readFieldEnd()
8151
    iprot.readStructEnd()
8152
 
8153
  def write(self, oprot):
8154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8156
      return
8157
    oprot.writeStructBegin('getCategory_result')
8158
    if self.success is not None:
8159
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8160
      self.success.write(oprot)
8161
      oprot.writeFieldEnd()
8162
    oprot.writeFieldStop()
8163
    oprot.writeStructEnd()
8164
 
8165
  def validate(self):
8166
    return
8167
 
8168
 
8169
  def __repr__(self):
8170
    L = ['%s=%r' % (key, value)
8171
      for key, value in self.__dict__.iteritems()]
8172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8173
 
8174
  def __eq__(self, other):
8175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8176
 
8177
  def __ne__(self, other):
8178
    return not (self == other)
8179
 
8180
class getAllCategories_args:
8181
 
8182
  thrift_spec = (
8183
  )
8184
 
8185
  def read(self, iprot):
8186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8188
      return
8189
    iprot.readStructBegin()
8190
    while True:
8191
      (fname, ftype, fid) = iprot.readFieldBegin()
8192
      if ftype == TType.STOP:
8193
        break
8194
      else:
8195
        iprot.skip(ftype)
8196
      iprot.readFieldEnd()
8197
    iprot.readStructEnd()
8198
 
8199
  def write(self, oprot):
8200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8202
      return
8203
    oprot.writeStructBegin('getAllCategories_args')
8204
    oprot.writeFieldStop()
8205
    oprot.writeStructEnd()
8206
 
8207
  def validate(self):
8208
    return
8209
 
8210
 
8211
  def __repr__(self):
8212
    L = ['%s=%r' % (key, value)
8213
      for key, value in self.__dict__.iteritems()]
8214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8215
 
8216
  def __eq__(self, other):
8217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8218
 
8219
  def __ne__(self, other):
8220
    return not (self == other)
8221
 
8222
class getAllCategories_result:
8223
  """
8224
  Attributes:
8225
   - success
8226
  """
8227
 
8228
  thrift_spec = (
8229
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8230
  )
8231
 
8232
  def __init__(self, success=None,):
8233
    self.success = success
8234
 
8235
  def read(self, iprot):
8236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8238
      return
8239
    iprot.readStructBegin()
8240
    while True:
8241
      (fname, ftype, fid) = iprot.readFieldBegin()
8242
      if ftype == TType.STOP:
8243
        break
8244
      if fid == 0:
8245
        if ftype == TType.LIST:
8246
          self.success = []
8247
          (_etype124, _size121) = iprot.readListBegin()
8248
          for _i125 in xrange(_size121):
8249
            _elem126 = Category()
8250
            _elem126.read(iprot)
8251
            self.success.append(_elem126)
8252
          iprot.readListEnd()
8253
        else:
8254
          iprot.skip(ftype)
8255
      else:
8256
        iprot.skip(ftype)
8257
      iprot.readFieldEnd()
8258
    iprot.readStructEnd()
8259
 
8260
  def write(self, oprot):
8261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8263
      return
8264
    oprot.writeStructBegin('getAllCategories_result')
8265
    if self.success is not None:
8266
      oprot.writeFieldBegin('success', TType.LIST, 0)
8267
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8268
      for iter127 in self.success:
8269
        iter127.write(oprot)
8270
      oprot.writeListEnd()
8271
      oprot.writeFieldEnd()
8272
    oprot.writeFieldStop()
8273
    oprot.writeStructEnd()
8274
 
8275
  def validate(self):
8276
    return
8277
 
8278
 
8279
  def __repr__(self):
8280
    L = ['%s=%r' % (key, value)
8281
      for key, value in self.__dict__.iteritems()]
8282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8283
 
8284
  def __eq__(self, other):
8285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8286
 
8287
  def __ne__(self, other):
8288
    return not (self == other)
8289
 
8290
class getAllSimilarItems_args:
8291
  """
8292
  Attributes:
8293
   - itemId
8294
  """
8295
 
8296
  thrift_spec = (
8297
    None, # 0
8298
    (1, TType.I64, 'itemId', None, None, ), # 1
8299
  )
8300
 
8301
  def __init__(self, itemId=None,):
8302
    self.itemId = itemId
8303
 
8304
  def read(self, iprot):
8305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8307
      return
8308
    iprot.readStructBegin()
8309
    while True:
8310
      (fname, ftype, fid) = iprot.readFieldBegin()
8311
      if ftype == TType.STOP:
8312
        break
8313
      if fid == 1:
8314
        if ftype == TType.I64:
8315
          self.itemId = iprot.readI64();
8316
        else:
8317
          iprot.skip(ftype)
8318
      else:
8319
        iprot.skip(ftype)
8320
      iprot.readFieldEnd()
8321
    iprot.readStructEnd()
8322
 
8323
  def write(self, oprot):
8324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8326
      return
8327
    oprot.writeStructBegin('getAllSimilarItems_args')
8328
    if self.itemId is not None:
8329
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8330
      oprot.writeI64(self.itemId)
8331
      oprot.writeFieldEnd()
8332
    oprot.writeFieldStop()
8333
    oprot.writeStructEnd()
8334
 
8335
  def validate(self):
8336
    return
8337
 
8338
 
8339
  def __repr__(self):
8340
    L = ['%s=%r' % (key, value)
8341
      for key, value in self.__dict__.iteritems()]
8342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8343
 
8344
  def __eq__(self, other):
8345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8346
 
8347
  def __ne__(self, other):
8348
    return not (self == other)
8349
 
8350
class getAllSimilarItems_result:
8351
  """
8352
  Attributes:
8353
   - success
8354
  """
8355
 
8356
  thrift_spec = (
8357
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8358
  )
8359
 
8360
  def __init__(self, success=None,):
8361
    self.success = success
8362
 
8363
  def read(self, iprot):
8364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8366
      return
8367
    iprot.readStructBegin()
8368
    while True:
8369
      (fname, ftype, fid) = iprot.readFieldBegin()
8370
      if ftype == TType.STOP:
8371
        break
8372
      if fid == 0:
8373
        if ftype == TType.LIST:
8374
          self.success = []
8375
          (_etype131, _size128) = iprot.readListBegin()
8376
          for _i132 in xrange(_size128):
8377
            _elem133 = Item()
8378
            _elem133.read(iprot)
8379
            self.success.append(_elem133)
8380
          iprot.readListEnd()
8381
        else:
8382
          iprot.skip(ftype)
8383
      else:
8384
        iprot.skip(ftype)
8385
      iprot.readFieldEnd()
8386
    iprot.readStructEnd()
8387
 
8388
  def write(self, oprot):
8389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8391
      return
8392
    oprot.writeStructBegin('getAllSimilarItems_result')
8393
    if self.success is not None:
8394
      oprot.writeFieldBegin('success', TType.LIST, 0)
8395
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8396
      for iter134 in self.success:
8397
        iter134.write(oprot)
8398
      oprot.writeListEnd()
8399
      oprot.writeFieldEnd()
8400
    oprot.writeFieldStop()
8401
    oprot.writeStructEnd()
8402
 
8403
  def validate(self):
8404
    return
8405
 
8406
 
8407
  def __repr__(self):
8408
    L = ['%s=%r' % (key, value)
8409
      for key, value in self.__dict__.iteritems()]
8410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8411
 
8412
  def __eq__(self, other):
8413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8414
 
8415
  def __ne__(self, other):
8416
    return not (self == other)
8417
 
8418
class addSimilarItem_args:
8419
  """
8420
  Attributes:
8421
   - itemId
8422
   - catalogItemId
8423
  """
8424
 
8425
  thrift_spec = (
8426
    None, # 0
8427
    (1, TType.I64, 'itemId', None, None, ), # 1
8428
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
8429
  )
8430
 
8431
  def __init__(self, itemId=None, catalogItemId=None,):
8432
    self.itemId = itemId
8433
    self.catalogItemId = catalogItemId
8434
 
8435
  def read(self, iprot):
8436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8438
      return
8439
    iprot.readStructBegin()
8440
    while True:
8441
      (fname, ftype, fid) = iprot.readFieldBegin()
8442
      if ftype == TType.STOP:
8443
        break
8444
      if fid == 1:
8445
        if ftype == TType.I64:
8446
          self.itemId = iprot.readI64();
8447
        else:
8448
          iprot.skip(ftype)
8449
      elif fid == 2:
8450
        if ftype == TType.I64:
8451
          self.catalogItemId = iprot.readI64();
8452
        else:
8453
          iprot.skip(ftype)
8454
      else:
8455
        iprot.skip(ftype)
8456
      iprot.readFieldEnd()
8457
    iprot.readStructEnd()
8458
 
8459
  def write(self, oprot):
8460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8462
      return
8463
    oprot.writeStructBegin('addSimilarItem_args')
8464
    if self.itemId is not None:
8465
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8466
      oprot.writeI64(self.itemId)
8467
      oprot.writeFieldEnd()
8468
    if self.catalogItemId is not None:
8469
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
8470
      oprot.writeI64(self.catalogItemId)
8471
      oprot.writeFieldEnd()
8472
    oprot.writeFieldStop()
8473
    oprot.writeStructEnd()
8474
 
8475
  def validate(self):
8476
    return
8477
 
8478
 
8479
  def __repr__(self):
8480
    L = ['%s=%r' % (key, value)
8481
      for key, value in self.__dict__.iteritems()]
8482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8483
 
8484
  def __eq__(self, other):
8485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8486
 
8487
  def __ne__(self, other):
8488
    return not (self == other)
8489
 
8490
class addSimilarItem_result:
8491
  """
8492
  Attributes:
8493
   - success
8494
   - cex
8495
  """
8496
 
8497
  thrift_spec = (
8498
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8499
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8500
  )
8501
 
8502
  def __init__(self, success=None, cex=None,):
8503
    self.success = success
8504
    self.cex = cex
8505
 
8506
  def read(self, iprot):
8507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8509
      return
8510
    iprot.readStructBegin()
8511
    while True:
8512
      (fname, ftype, fid) = iprot.readFieldBegin()
8513
      if ftype == TType.STOP:
8514
        break
8515
      if fid == 0:
8516
        if ftype == TType.STRUCT:
8517
          self.success = Item()
8518
          self.success.read(iprot)
8519
        else:
8520
          iprot.skip(ftype)
8521
      elif fid == 1:
8522
        if ftype == TType.STRUCT:
8523
          self.cex = CatalogServiceException()
8524
          self.cex.read(iprot)
8525
        else:
8526
          iprot.skip(ftype)
8527
      else:
8528
        iprot.skip(ftype)
8529
      iprot.readFieldEnd()
8530
    iprot.readStructEnd()
8531
 
8532
  def write(self, oprot):
8533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8535
      return
8536
    oprot.writeStructBegin('addSimilarItem_result')
8537
    if self.success is not None:
8538
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8539
      self.success.write(oprot)
8540
      oprot.writeFieldEnd()
8541
    if self.cex is not None:
8542
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8543
      self.cex.write(oprot)
8544
      oprot.writeFieldEnd()
8545
    oprot.writeFieldStop()
8546
    oprot.writeStructEnd()
8547
 
8548
  def validate(self):
8549
    return
8550
 
8551
 
8552
  def __repr__(self):
8553
    L = ['%s=%r' % (key, value)
8554
      for key, value in self.__dict__.iteritems()]
8555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8556
 
8557
  def __eq__(self, other):
8558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8559
 
8560
  def __ne__(self, other):
8561
    return not (self == other)
8562
 
6512 kshitij.so 8563
class addTag_args:
8564
  """
8565
  Attributes:
8566
   - displayName
8567
   - itemId
8568
  """
8569
 
8570
  thrift_spec = (
8571
    None, # 0
8572
    (1, TType.STRING, 'displayName', None, None, ), # 1
8573
    (2, TType.I64, 'itemId', None, None, ), # 2
8574
  )
8575
 
8576
  def __init__(self, displayName=None, itemId=None,):
8577
    self.displayName = displayName
8578
    self.itemId = itemId
8579
 
8580
  def read(self, iprot):
8581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8583
      return
8584
    iprot.readStructBegin()
8585
    while True:
8586
      (fname, ftype, fid) = iprot.readFieldBegin()
8587
      if ftype == TType.STOP:
8588
        break
8589
      if fid == 1:
8590
        if ftype == TType.STRING:
8591
          self.displayName = iprot.readString();
8592
        else:
8593
          iprot.skip(ftype)
8594
      elif fid == 2:
8595
        if ftype == TType.I64:
8596
          self.itemId = iprot.readI64();
8597
        else:
8598
          iprot.skip(ftype)
8599
      else:
8600
        iprot.skip(ftype)
8601
      iprot.readFieldEnd()
8602
    iprot.readStructEnd()
8603
 
8604
  def write(self, oprot):
8605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8607
      return
8608
    oprot.writeStructBegin('addTag_args')
8609
    if self.displayName is not None:
8610
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8611
      oprot.writeString(self.displayName)
8612
      oprot.writeFieldEnd()
8613
    if self.itemId is not None:
8614
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8615
      oprot.writeI64(self.itemId)
8616
      oprot.writeFieldEnd()
8617
    oprot.writeFieldStop()
8618
    oprot.writeStructEnd()
8619
 
8620
  def validate(self):
8621
    return
8622
 
8623
 
8624
  def __repr__(self):
8625
    L = ['%s=%r' % (key, value)
8626
      for key, value in self.__dict__.iteritems()]
8627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8628
 
8629
  def __eq__(self, other):
8630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8631
 
8632
  def __ne__(self, other):
8633
    return not (self == other)
8634
 
8635
class addTag_result:
8636
  """
8637
  Attributes:
8638
   - success
8639
  """
8640
 
8641
  thrift_spec = (
8642
    (0, TType.BOOL, 'success', None, None, ), # 0
8643
  )
8644
 
8645
  def __init__(self, success=None,):
8646
    self.success = success
8647
 
8648
  def read(self, iprot):
8649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8651
      return
8652
    iprot.readStructBegin()
8653
    while True:
8654
      (fname, ftype, fid) = iprot.readFieldBegin()
8655
      if ftype == TType.STOP:
8656
        break
8657
      if fid == 0:
8658
        if ftype == TType.BOOL:
8659
          self.success = iprot.readBool();
8660
        else:
8661
          iprot.skip(ftype)
8662
      else:
8663
        iprot.skip(ftype)
8664
      iprot.readFieldEnd()
8665
    iprot.readStructEnd()
8666
 
8667
  def write(self, oprot):
8668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8670
      return
8671
    oprot.writeStructBegin('addTag_result')
8672
    if self.success is not None:
8673
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8674
      oprot.writeBool(self.success)
8675
      oprot.writeFieldEnd()
8676
    oprot.writeFieldStop()
8677
    oprot.writeStructEnd()
8678
 
8679
  def validate(self):
8680
    return
8681
 
8682
 
8683
  def __repr__(self):
8684
    L = ['%s=%r' % (key, value)
8685
      for key, value in self.__dict__.iteritems()]
8686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8687
 
8688
  def __eq__(self, other):
8689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8690
 
8691
  def __ne__(self, other):
8692
    return not (self == other)
8693
 
8694
class deleteEntityTag_args:
8695
  """
8696
  Attributes:
8697
   - displayName
8698
   - itemId
8699
  """
8700
 
8701
  thrift_spec = (
8702
    None, # 0
8703
    (1, TType.STRING, 'displayName', None, None, ), # 1
8704
    (2, TType.I64, 'itemId', None, None, ), # 2
8705
  )
8706
 
8707
  def __init__(self, displayName=None, itemId=None,):
8708
    self.displayName = displayName
8709
    self.itemId = itemId
8710
 
8711
  def read(self, iprot):
8712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8714
      return
8715
    iprot.readStructBegin()
8716
    while True:
8717
      (fname, ftype, fid) = iprot.readFieldBegin()
8718
      if ftype == TType.STOP:
8719
        break
8720
      if fid == 1:
8721
        if ftype == TType.STRING:
8722
          self.displayName = iprot.readString();
8723
        else:
8724
          iprot.skip(ftype)
8725
      elif fid == 2:
8726
        if ftype == TType.I64:
8727
          self.itemId = iprot.readI64();
8728
        else:
8729
          iprot.skip(ftype)
8730
      else:
8731
        iprot.skip(ftype)
8732
      iprot.readFieldEnd()
8733
    iprot.readStructEnd()
8734
 
8735
  def write(self, oprot):
8736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8738
      return
8739
    oprot.writeStructBegin('deleteEntityTag_args')
8740
    if self.displayName is not None:
8741
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8742
      oprot.writeString(self.displayName)
8743
      oprot.writeFieldEnd()
8744
    if self.itemId is not None:
8745
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8746
      oprot.writeI64(self.itemId)
8747
      oprot.writeFieldEnd()
8748
    oprot.writeFieldStop()
8749
    oprot.writeStructEnd()
8750
 
8751
  def validate(self):
8752
    return
8753
 
8754
 
8755
  def __repr__(self):
8756
    L = ['%s=%r' % (key, value)
8757
      for key, value in self.__dict__.iteritems()]
8758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8759
 
8760
  def __eq__(self, other):
8761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8762
 
8763
  def __ne__(self, other):
8764
    return not (self == other)
8765
 
8766
class deleteEntityTag_result:
8767
  """
8768
  Attributes:
8769
   - success
8770
  """
8771
 
8772
  thrift_spec = (
8773
    (0, TType.BOOL, 'success', None, None, ), # 0
8774
  )
8775
 
8776
  def __init__(self, success=None,):
8777
    self.success = success
8778
 
8779
  def read(self, iprot):
8780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8782
      return
8783
    iprot.readStructBegin()
8784
    while True:
8785
      (fname, ftype, fid) = iprot.readFieldBegin()
8786
      if ftype == TType.STOP:
8787
        break
8788
      if fid == 0:
8789
        if ftype == TType.BOOL:
8790
          self.success = iprot.readBool();
8791
        else:
8792
          iprot.skip(ftype)
8793
      else:
8794
        iprot.skip(ftype)
8795
      iprot.readFieldEnd()
8796
    iprot.readStructEnd()
8797
 
8798
  def write(self, oprot):
8799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8801
      return
8802
    oprot.writeStructBegin('deleteEntityTag_result')
8803
    if self.success is not None:
8804
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8805
      oprot.writeBool(self.success)
8806
      oprot.writeFieldEnd()
8807
    oprot.writeFieldStop()
8808
    oprot.writeStructEnd()
8809
 
8810
  def validate(self):
8811
    return
8812
 
8813
 
8814
  def __repr__(self):
8815
    L = ['%s=%r' % (key, value)
8816
      for key, value in self.__dict__.iteritems()]
8817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8818
 
8819
  def __eq__(self, other):
8820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8821
 
8822
  def __ne__(self, other):
8823
    return not (self == other)
8824
 
8825
class deleteTag_args:
8826
  """
8827
  Attributes:
8828
   - displayName
8829
  """
8830
 
8831
  thrift_spec = (
8832
    None, # 0
8833
    (1, TType.STRING, 'displayName', None, None, ), # 1
8834
  )
8835
 
8836
  def __init__(self, displayName=None,):
8837
    self.displayName = displayName
8838
 
8839
  def read(self, iprot):
8840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8842
      return
8843
    iprot.readStructBegin()
8844
    while True:
8845
      (fname, ftype, fid) = iprot.readFieldBegin()
8846
      if ftype == TType.STOP:
8847
        break
8848
      if fid == 1:
8849
        if ftype == TType.STRING:
8850
          self.displayName = iprot.readString();
8851
        else:
8852
          iprot.skip(ftype)
8853
      else:
8854
        iprot.skip(ftype)
8855
      iprot.readFieldEnd()
8856
    iprot.readStructEnd()
8857
 
8858
  def write(self, oprot):
8859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8861
      return
8862
    oprot.writeStructBegin('deleteTag_args')
8863
    if self.displayName is not None:
8864
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8865
      oprot.writeString(self.displayName)
8866
      oprot.writeFieldEnd()
8867
    oprot.writeFieldStop()
8868
    oprot.writeStructEnd()
8869
 
8870
  def validate(self):
8871
    return
8872
 
8873
 
8874
  def __repr__(self):
8875
    L = ['%s=%r' % (key, value)
8876
      for key, value in self.__dict__.iteritems()]
8877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8878
 
8879
  def __eq__(self, other):
8880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8881
 
8882
  def __ne__(self, other):
8883
    return not (self == other)
8884
 
8885
class deleteTag_result:
8886
  """
8887
  Attributes:
8888
   - success
8889
  """
8890
 
8891
  thrift_spec = (
8892
    (0, TType.BOOL, 'success', None, None, ), # 0
8893
  )
8894
 
8895
  def __init__(self, success=None,):
8896
    self.success = success
8897
 
8898
  def read(self, iprot):
8899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8901
      return
8902
    iprot.readStructBegin()
8903
    while True:
8904
      (fname, ftype, fid) = iprot.readFieldBegin()
8905
      if ftype == TType.STOP:
8906
        break
8907
      if fid == 0:
8908
        if ftype == TType.BOOL:
8909
          self.success = iprot.readBool();
8910
        else:
8911
          iprot.skip(ftype)
8912
      else:
8913
        iprot.skip(ftype)
8914
      iprot.readFieldEnd()
8915
    iprot.readStructEnd()
8916
 
8917
  def write(self, oprot):
8918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8920
      return
8921
    oprot.writeStructBegin('deleteTag_result')
8922
    if self.success is not None:
8923
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8924
      oprot.writeBool(self.success)
8925
      oprot.writeFieldEnd()
8926
    oprot.writeFieldStop()
8927
    oprot.writeStructEnd()
8928
 
8929
  def validate(self):
8930
    return
8931
 
8932
 
8933
  def __repr__(self):
8934
    L = ['%s=%r' % (key, value)
8935
      for key, value in self.__dict__.iteritems()]
8936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8937
 
8938
  def __eq__(self, other):
8939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8940
 
8941
  def __ne__(self, other):
8942
    return not (self == other)
8943
 
8944
class getAllTags_args:
8945
 
8946
  thrift_spec = (
8947
  )
8948
 
8949
  def read(self, iprot):
8950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8952
      return
8953
    iprot.readStructBegin()
8954
    while True:
8955
      (fname, ftype, fid) = iprot.readFieldBegin()
8956
      if ftype == TType.STOP:
8957
        break
8958
      else:
8959
        iprot.skip(ftype)
8960
      iprot.readFieldEnd()
8961
    iprot.readStructEnd()
8962
 
8963
  def write(self, oprot):
8964
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8965
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8966
      return
8967
    oprot.writeStructBegin('getAllTags_args')
8968
    oprot.writeFieldStop()
8969
    oprot.writeStructEnd()
8970
 
8971
  def validate(self):
8972
    return
8973
 
8974
 
8975
  def __repr__(self):
8976
    L = ['%s=%r' % (key, value)
8977
      for key, value in self.__dict__.iteritems()]
8978
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8979
 
8980
  def __eq__(self, other):
8981
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8982
 
8983
  def __ne__(self, other):
8984
    return not (self == other)
8985
 
8986
class getAllTags_result:
8987
  """
8988
  Attributes:
8989
   - success
8990
  """
8991
 
8992
  thrift_spec = (
8993
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
8994
  )
8995
 
8996
  def __init__(self, success=None,):
8997
    self.success = success
8998
 
8999
  def read(self, iprot):
9000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9002
      return
9003
    iprot.readStructBegin()
9004
    while True:
9005
      (fname, ftype, fid) = iprot.readFieldBegin()
9006
      if ftype == TType.STOP:
9007
        break
9008
      if fid == 0:
9009
        if ftype == TType.LIST:
9010
          self.success = []
9011
          (_etype138, _size135) = iprot.readListBegin()
9012
          for _i139 in xrange(_size135):
9013
            _elem140 = iprot.readString();
9014
            self.success.append(_elem140)
9015
          iprot.readListEnd()
9016
        else:
9017
          iprot.skip(ftype)
9018
      else:
9019
        iprot.skip(ftype)
9020
      iprot.readFieldEnd()
9021
    iprot.readStructEnd()
9022
 
9023
  def write(self, oprot):
9024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9026
      return
9027
    oprot.writeStructBegin('getAllTags_result')
9028
    if self.success is not None:
9029
      oprot.writeFieldBegin('success', TType.LIST, 0)
9030
      oprot.writeListBegin(TType.STRING, len(self.success))
9031
      for iter141 in self.success:
9032
        oprot.writeString(iter141)
9033
      oprot.writeListEnd()
9034
      oprot.writeFieldEnd()
9035
    oprot.writeFieldStop()
9036
    oprot.writeStructEnd()
9037
 
9038
  def validate(self):
9039
    return
9040
 
9041
 
9042
  def __repr__(self):
9043
    L = ['%s=%r' % (key, value)
9044
      for key, value in self.__dict__.iteritems()]
9045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9046
 
9047
  def __eq__(self, other):
9048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9049
 
9050
  def __ne__(self, other):
9051
    return not (self == other)
9052
 
9053
class getAllEntitiesByTagName_args:
9054
  """
9055
  Attributes:
9056
   - displayName
9057
  """
9058
 
9059
  thrift_spec = (
9060
    None, # 0
9061
    (1, TType.STRING, 'displayName', None, None, ), # 1
9062
  )
9063
 
9064
  def __init__(self, displayName=None,):
9065
    self.displayName = displayName
9066
 
9067
  def read(self, iprot):
9068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9070
      return
9071
    iprot.readStructBegin()
9072
    while True:
9073
      (fname, ftype, fid) = iprot.readFieldBegin()
9074
      if ftype == TType.STOP:
9075
        break
9076
      if fid == 1:
9077
        if ftype == TType.STRING:
9078
          self.displayName = iprot.readString();
9079
        else:
9080
          iprot.skip(ftype)
9081
      else:
9082
        iprot.skip(ftype)
9083
      iprot.readFieldEnd()
9084
    iprot.readStructEnd()
9085
 
9086
  def write(self, oprot):
9087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9089
      return
9090
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9091
    if self.displayName is not None:
9092
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9093
      oprot.writeString(self.displayName)
9094
      oprot.writeFieldEnd()
9095
    oprot.writeFieldStop()
9096
    oprot.writeStructEnd()
9097
 
9098
  def validate(self):
9099
    return
9100
 
9101
 
9102
  def __repr__(self):
9103
    L = ['%s=%r' % (key, value)
9104
      for key, value in self.__dict__.iteritems()]
9105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9106
 
9107
  def __eq__(self, other):
9108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9109
 
9110
  def __ne__(self, other):
9111
    return not (self == other)
9112
 
9113
class getAllEntitiesByTagName_result:
9114
  """
9115
  Attributes:
9116
   - success
9117
  """
9118
 
9119
  thrift_spec = (
9120
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9121
  )
9122
 
9123
  def __init__(self, success=None,):
9124
    self.success = success
9125
 
9126
  def read(self, iprot):
9127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9129
      return
9130
    iprot.readStructBegin()
9131
    while True:
9132
      (fname, ftype, fid) = iprot.readFieldBegin()
9133
      if ftype == TType.STOP:
9134
        break
9135
      if fid == 0:
9136
        if ftype == TType.LIST:
9137
          self.success = []
9138
          (_etype145, _size142) = iprot.readListBegin()
9139
          for _i146 in xrange(_size142):
9140
            _elem147 = iprot.readI64();
9141
            self.success.append(_elem147)
9142
          iprot.readListEnd()
9143
        else:
9144
          iprot.skip(ftype)
9145
      else:
9146
        iprot.skip(ftype)
9147
      iprot.readFieldEnd()
9148
    iprot.readStructEnd()
9149
 
9150
  def write(self, oprot):
9151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9153
      return
9154
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9155
    if self.success is not None:
9156
      oprot.writeFieldBegin('success', TType.LIST, 0)
9157
      oprot.writeListBegin(TType.I64, len(self.success))
9158
      for iter148 in self.success:
9159
        oprot.writeI64(iter148)
9160
      oprot.writeListEnd()
9161
      oprot.writeFieldEnd()
9162
    oprot.writeFieldStop()
9163
    oprot.writeStructEnd()
9164
 
9165
  def validate(self):
9166
    return
9167
 
9168
 
9169
  def __repr__(self):
9170
    L = ['%s=%r' % (key, value)
9171
      for key, value in self.__dict__.iteritems()]
9172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9173
 
9174
  def __eq__(self, other):
9175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9176
 
9177
  def __ne__(self, other):
9178
    return not (self == other)
9179
 
5944 mandeep.dh 9180
class deleteSimilarItem_args:
9181
  """
9182
  Attributes:
9183
   - itemId
9184
   - catalogItemId
9185
  """
9186
 
9187
  thrift_spec = (
9188
    None, # 0
9189
    (1, TType.I64, 'itemId', None, None, ), # 1
9190
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
9191
  )
9192
 
9193
  def __init__(self, itemId=None, catalogItemId=None,):
9194
    self.itemId = itemId
9195
    self.catalogItemId = catalogItemId
9196
 
9197
  def read(self, iprot):
9198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9200
      return
9201
    iprot.readStructBegin()
9202
    while True:
9203
      (fname, ftype, fid) = iprot.readFieldBegin()
9204
      if ftype == TType.STOP:
9205
        break
9206
      if fid == 1:
9207
        if ftype == TType.I64:
9208
          self.itemId = iprot.readI64();
9209
        else:
9210
          iprot.skip(ftype)
9211
      elif fid == 2:
9212
        if ftype == TType.I64:
9213
          self.catalogItemId = iprot.readI64();
9214
        else:
9215
          iprot.skip(ftype)
9216
      else:
9217
        iprot.skip(ftype)
9218
      iprot.readFieldEnd()
9219
    iprot.readStructEnd()
9220
 
9221
  def write(self, oprot):
9222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9224
      return
9225
    oprot.writeStructBegin('deleteSimilarItem_args')
9226
    if self.itemId is not None:
9227
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9228
      oprot.writeI64(self.itemId)
9229
      oprot.writeFieldEnd()
9230
    if self.catalogItemId is not None:
9231
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
9232
      oprot.writeI64(self.catalogItemId)
9233
      oprot.writeFieldEnd()
9234
    oprot.writeFieldStop()
9235
    oprot.writeStructEnd()
9236
 
9237
  def validate(self):
9238
    return
9239
 
9240
 
9241
  def __repr__(self):
9242
    L = ['%s=%r' % (key, value)
9243
      for key, value in self.__dict__.iteritems()]
9244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9245
 
9246
  def __eq__(self, other):
9247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9248
 
9249
  def __ne__(self, other):
9250
    return not (self == other)
9251
 
9252
class deleteSimilarItem_result:
9253
  """
9254
  Attributes:
9255
   - success
9256
   - cex
9257
  """
9258
 
9259
  thrift_spec = (
9260
    (0, TType.BOOL, 'success', None, None, ), # 0
9261
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9262
  )
9263
 
9264
  def __init__(self, success=None, cex=None,):
9265
    self.success = success
9266
    self.cex = cex
9267
 
9268
  def read(self, iprot):
9269
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9270
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9271
      return
9272
    iprot.readStructBegin()
9273
    while True:
9274
      (fname, ftype, fid) = iprot.readFieldBegin()
9275
      if ftype == TType.STOP:
9276
        break
9277
      if fid == 0:
9278
        if ftype == TType.BOOL:
9279
          self.success = iprot.readBool();
9280
        else:
9281
          iprot.skip(ftype)
9282
      elif fid == 1:
9283
        if ftype == TType.STRUCT:
9284
          self.cex = CatalogServiceException()
9285
          self.cex.read(iprot)
9286
        else:
9287
          iprot.skip(ftype)
9288
      else:
9289
        iprot.skip(ftype)
9290
      iprot.readFieldEnd()
9291
    iprot.readStructEnd()
9292
 
9293
  def write(self, oprot):
9294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9296
      return
9297
    oprot.writeStructBegin('deleteSimilarItem_result')
9298
    if self.success is not None:
9299
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9300
      oprot.writeBool(self.success)
9301
      oprot.writeFieldEnd()
9302
    if self.cex is not None:
9303
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9304
      self.cex.write(oprot)
9305
      oprot.writeFieldEnd()
9306
    oprot.writeFieldStop()
9307
    oprot.writeStructEnd()
9308
 
9309
  def validate(self):
9310
    return
9311
 
9312
 
9313
  def __repr__(self):
9314
    L = ['%s=%r' % (key, value)
9315
      for key, value in self.__dict__.iteritems()]
9316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9317
 
9318
  def __eq__(self, other):
9319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9320
 
9321
  def __ne__(self, other):
9322
    return not (self == other)
9323
 
9324
class checkSimilarItem_args:
9325
  """
9326
  Attributes:
9327
   - brand
9328
   - modelNumber
9329
   - modelName
9330
   - color
9331
  """
9332
 
9333
  thrift_spec = (
9334
    None, # 0
9335
    (1, TType.STRING, 'brand', None, None, ), # 1
9336
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
9337
    (3, TType.STRING, 'modelName', None, None, ), # 3
9338
    (4, TType.STRING, 'color', None, None, ), # 4
9339
  )
9340
 
9341
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
9342
    self.brand = brand
9343
    self.modelNumber = modelNumber
9344
    self.modelName = modelName
9345
    self.color = color
9346
 
9347
  def read(self, iprot):
9348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9350
      return
9351
    iprot.readStructBegin()
9352
    while True:
9353
      (fname, ftype, fid) = iprot.readFieldBegin()
9354
      if ftype == TType.STOP:
9355
        break
9356
      if fid == 1:
9357
        if ftype == TType.STRING:
9358
          self.brand = iprot.readString();
9359
        else:
9360
          iprot.skip(ftype)
9361
      elif fid == 2:
9362
        if ftype == TType.STRING:
9363
          self.modelNumber = iprot.readString();
9364
        else:
9365
          iprot.skip(ftype)
9366
      elif fid == 3:
9367
        if ftype == TType.STRING:
9368
          self.modelName = iprot.readString();
9369
        else:
9370
          iprot.skip(ftype)
9371
      elif fid == 4:
9372
        if ftype == TType.STRING:
9373
          self.color = iprot.readString();
9374
        else:
9375
          iprot.skip(ftype)
9376
      else:
9377
        iprot.skip(ftype)
9378
      iprot.readFieldEnd()
9379
    iprot.readStructEnd()
9380
 
9381
  def write(self, oprot):
9382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9384
      return
9385
    oprot.writeStructBegin('checkSimilarItem_args')
9386
    if self.brand is not None:
9387
      oprot.writeFieldBegin('brand', TType.STRING, 1)
9388
      oprot.writeString(self.brand)
9389
      oprot.writeFieldEnd()
9390
    if self.modelNumber is not None:
9391
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
9392
      oprot.writeString(self.modelNumber)
9393
      oprot.writeFieldEnd()
9394
    if self.modelName is not None:
9395
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
9396
      oprot.writeString(self.modelName)
9397
      oprot.writeFieldEnd()
9398
    if self.color is not None:
9399
      oprot.writeFieldBegin('color', TType.STRING, 4)
9400
      oprot.writeString(self.color)
9401
      oprot.writeFieldEnd()
9402
    oprot.writeFieldStop()
9403
    oprot.writeStructEnd()
9404
 
9405
  def validate(self):
9406
    return
9407
 
9408
 
9409
  def __repr__(self):
9410
    L = ['%s=%r' % (key, value)
9411
      for key, value in self.__dict__.iteritems()]
9412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9413
 
9414
  def __eq__(self, other):
9415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9416
 
9417
  def __ne__(self, other):
9418
    return not (self == other)
9419
 
9420
class checkSimilarItem_result:
9421
  """
9422
  Attributes:
9423
   - success
9424
  """
9425
 
9426
  thrift_spec = (
9427
    (0, TType.I64, 'success', None, None, ), # 0
9428
  )
9429
 
9430
  def __init__(self, success=None,):
9431
    self.success = success
9432
 
9433
  def read(self, iprot):
9434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9436
      return
9437
    iprot.readStructBegin()
9438
    while True:
9439
      (fname, ftype, fid) = iprot.readFieldBegin()
9440
      if ftype == TType.STOP:
9441
        break
9442
      if fid == 0:
9443
        if ftype == TType.I64:
9444
          self.success = iprot.readI64();
9445
        else:
9446
          iprot.skip(ftype)
9447
      else:
9448
        iprot.skip(ftype)
9449
      iprot.readFieldEnd()
9450
    iprot.readStructEnd()
9451
 
9452
  def write(self, oprot):
9453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9455
      return
9456
    oprot.writeStructBegin('checkSimilarItem_result')
9457
    if self.success is not None:
9458
      oprot.writeFieldBegin('success', TType.I64, 0)
9459
      oprot.writeI64(self.success)
9460
      oprot.writeFieldEnd()
9461
    oprot.writeFieldStop()
9462
    oprot.writeStructEnd()
9463
 
9464
  def validate(self):
9465
    return
9466
 
9467
 
9468
  def __repr__(self):
9469
    L = ['%s=%r' % (key, value)
9470
      for key, value in self.__dict__.iteritems()]
9471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9472
 
9473
  def __eq__(self, other):
9474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9475
 
9476
  def __ne__(self, other):
9477
    return not (self == other)
9478
 
9479
class validateRiskyStatus_args:
9480
  """
9481
  Attributes:
9482
   - itemId
9483
  """
9484
 
9485
  thrift_spec = (
9486
    None, # 0
9487
    (1, TType.I64, 'itemId', None, None, ), # 1
9488
  )
9489
 
9490
  def __init__(self, itemId=None,):
9491
    self.itemId = itemId
9492
 
9493
  def read(self, iprot):
9494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9496
      return
9497
    iprot.readStructBegin()
9498
    while True:
9499
      (fname, ftype, fid) = iprot.readFieldBegin()
9500
      if ftype == TType.STOP:
9501
        break
9502
      if fid == 1:
9503
        if ftype == TType.I64:
9504
          self.itemId = iprot.readI64();
9505
        else:
9506
          iprot.skip(ftype)
9507
      else:
9508
        iprot.skip(ftype)
9509
      iprot.readFieldEnd()
9510
    iprot.readStructEnd()
9511
 
9512
  def write(self, oprot):
9513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9515
      return
9516
    oprot.writeStructBegin('validateRiskyStatus_args')
9517
    if self.itemId is not None:
9518
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9519
      oprot.writeI64(self.itemId)
9520
      oprot.writeFieldEnd()
9521
    oprot.writeFieldStop()
9522
    oprot.writeStructEnd()
9523
 
9524
  def validate(self):
9525
    return
9526
 
9527
 
9528
  def __repr__(self):
9529
    L = ['%s=%r' % (key, value)
9530
      for key, value in self.__dict__.iteritems()]
9531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9532
 
9533
  def __eq__(self, other):
9534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9535
 
9536
  def __ne__(self, other):
9537
    return not (self == other)
9538
 
9539
class validateRiskyStatus_result:
9540
 
9541
  thrift_spec = (
9542
  )
9543
 
9544
  def read(self, iprot):
9545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9547
      return
9548
    iprot.readStructBegin()
9549
    while True:
9550
      (fname, ftype, fid) = iprot.readFieldBegin()
9551
      if ftype == TType.STOP:
9552
        break
9553
      else:
9554
        iprot.skip(ftype)
9555
      iprot.readFieldEnd()
9556
    iprot.readStructEnd()
9557
 
9558
  def write(self, oprot):
9559
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9560
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9561
      return
9562
    oprot.writeStructBegin('validateRiskyStatus_result')
9563
    oprot.writeFieldStop()
9564
    oprot.writeStructEnd()
9565
 
9566
  def validate(self):
9567
    return
9568
 
9569
 
9570
  def __repr__(self):
9571
    L = ['%s=%r' % (key, value)
9572
      for key, value in self.__dict__.iteritems()]
9573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9574
 
9575
  def __eq__(self, other):
9576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9577
 
9578
  def __ne__(self, other):
9579
    return not (self == other)
9580
 
9581
class changeItemRiskyFlag_args:
9582
  """
9583
  Attributes:
9584
   - itemId
9585
   - risky
9586
  """
9587
 
9588
  thrift_spec = (
9589
    None, # 0
9590
    (1, TType.I64, 'itemId', None, None, ), # 1
9591
    (2, TType.BOOL, 'risky', None, None, ), # 2
9592
  )
9593
 
9594
  def __init__(self, itemId=None, risky=None,):
9595
    self.itemId = itemId
9596
    self.risky = risky
9597
 
9598
  def read(self, iprot):
9599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9601
      return
9602
    iprot.readStructBegin()
9603
    while True:
9604
      (fname, ftype, fid) = iprot.readFieldBegin()
9605
      if ftype == TType.STOP:
9606
        break
9607
      if fid == 1:
9608
        if ftype == TType.I64:
9609
          self.itemId = iprot.readI64();
9610
        else:
9611
          iprot.skip(ftype)
9612
      elif fid == 2:
9613
        if ftype == TType.BOOL:
9614
          self.risky = iprot.readBool();
9615
        else:
9616
          iprot.skip(ftype)
9617
      else:
9618
        iprot.skip(ftype)
9619
      iprot.readFieldEnd()
9620
    iprot.readStructEnd()
9621
 
9622
  def write(self, oprot):
9623
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9624
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9625
      return
9626
    oprot.writeStructBegin('changeItemRiskyFlag_args')
9627
    if self.itemId is not None:
9628
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9629
      oprot.writeI64(self.itemId)
9630
      oprot.writeFieldEnd()
9631
    if self.risky is not None:
9632
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
9633
      oprot.writeBool(self.risky)
9634
      oprot.writeFieldEnd()
9635
    oprot.writeFieldStop()
9636
    oprot.writeStructEnd()
9637
 
9638
  def validate(self):
9639
    return
9640
 
9641
 
9642
  def __repr__(self):
9643
    L = ['%s=%r' % (key, value)
9644
      for key, value in self.__dict__.iteritems()]
9645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9646
 
9647
  def __eq__(self, other):
9648
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9649
 
9650
  def __ne__(self, other):
9651
    return not (self == other)
9652
 
9653
class changeItemRiskyFlag_result:
9654
 
9655
  thrift_spec = (
9656
  )
9657
 
9658
  def read(self, iprot):
9659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9661
      return
9662
    iprot.readStructBegin()
9663
    while True:
9664
      (fname, ftype, fid) = iprot.readFieldBegin()
9665
      if ftype == TType.STOP:
9666
        break
9667
      else:
9668
        iprot.skip(ftype)
9669
      iprot.readFieldEnd()
9670
    iprot.readStructEnd()
9671
 
9672
  def write(self, oprot):
9673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9675
      return
9676
    oprot.writeStructBegin('changeItemRiskyFlag_result')
9677
    oprot.writeFieldStop()
9678
    oprot.writeStructEnd()
9679
 
9680
  def validate(self):
9681
    return
9682
 
9683
 
9684
  def __repr__(self):
9685
    L = ['%s=%r' % (key, value)
9686
      for key, value in self.__dict__.iteritems()]
9687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9688
 
9689
  def __eq__(self, other):
9690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9691
 
9692
  def __ne__(self, other):
9693
    return not (self == other)
9694
 
9695
class getItemsByRiskyFlag_args:
9696
 
9697
  thrift_spec = (
9698
  )
9699
 
9700
  def read(self, iprot):
9701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9703
      return
9704
    iprot.readStructBegin()
9705
    while True:
9706
      (fname, ftype, fid) = iprot.readFieldBegin()
9707
      if ftype == TType.STOP:
9708
        break
9709
      else:
9710
        iprot.skip(ftype)
9711
      iprot.readFieldEnd()
9712
    iprot.readStructEnd()
9713
 
9714
  def write(self, oprot):
9715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9717
      return
9718
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
9719
    oprot.writeFieldStop()
9720
    oprot.writeStructEnd()
9721
 
9722
  def validate(self):
9723
    return
9724
 
9725
 
9726
  def __repr__(self):
9727
    L = ['%s=%r' % (key, value)
9728
      for key, value in self.__dict__.iteritems()]
9729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9730
 
9731
  def __eq__(self, other):
9732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9733
 
9734
  def __ne__(self, other):
9735
    return not (self == other)
9736
 
9737
class getItemsByRiskyFlag_result:
9738
  """
9739
  Attributes:
9740
   - success
9741
  """
9742
 
9743
  thrift_spec = (
9744
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9745
  )
9746
 
9747
  def __init__(self, success=None,):
9748
    self.success = success
9749
 
9750
  def read(self, iprot):
9751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9753
      return
9754
    iprot.readStructBegin()
9755
    while True:
9756
      (fname, ftype, fid) = iprot.readFieldBegin()
9757
      if ftype == TType.STOP:
9758
        break
9759
      if fid == 0:
9760
        if ftype == TType.LIST:
9761
          self.success = []
6512 kshitij.so 9762
          (_etype152, _size149) = iprot.readListBegin()
9763
          for _i153 in xrange(_size149):
9764
            _elem154 = Item()
9765
            _elem154.read(iprot)
9766
            self.success.append(_elem154)
5944 mandeep.dh 9767
          iprot.readListEnd()
9768
        else:
9769
          iprot.skip(ftype)
9770
      else:
9771
        iprot.skip(ftype)
9772
      iprot.readFieldEnd()
9773
    iprot.readStructEnd()
9774
 
9775
  def write(self, oprot):
9776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9778
      return
9779
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
9780
    if self.success is not None:
9781
      oprot.writeFieldBegin('success', TType.LIST, 0)
9782
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 9783
      for iter155 in self.success:
9784
        iter155.write(oprot)
5944 mandeep.dh 9785
      oprot.writeListEnd()
9786
      oprot.writeFieldEnd()
9787
    oprot.writeFieldStop()
9788
    oprot.writeStructEnd()
9789
 
9790
  def validate(self):
9791
    return
9792
 
9793
 
9794
  def __repr__(self):
9795
    L = ['%s=%r' % (key, value)
9796
      for key, value in self.__dict__.iteritems()]
9797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9798
 
9799
  def __eq__(self, other):
9800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9801
 
9802
  def __ne__(self, other):
9803
    return not (self == other)
9804
 
9805
class getItemsForMasterSheet_args:
9806
  """
9807
  Attributes:
9808
   - category
9809
   - brand
9810
  """
9811
 
9812
  thrift_spec = (
9813
    None, # 0
9814
    (1, TType.STRING, 'category', None, None, ), # 1
9815
    (2, TType.STRING, 'brand', None, None, ), # 2
9816
  )
9817
 
9818
  def __init__(self, category=None, brand=None,):
9819
    self.category = category
9820
    self.brand = brand
9821
 
9822
  def read(self, iprot):
9823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9825
      return
9826
    iprot.readStructBegin()
9827
    while True:
9828
      (fname, ftype, fid) = iprot.readFieldBegin()
9829
      if ftype == TType.STOP:
9830
        break
9831
      if fid == 1:
9832
        if ftype == TType.STRING:
9833
          self.category = iprot.readString();
9834
        else:
9835
          iprot.skip(ftype)
9836
      elif fid == 2:
9837
        if ftype == TType.STRING:
9838
          self.brand = iprot.readString();
9839
        else:
9840
          iprot.skip(ftype)
9841
      else:
9842
        iprot.skip(ftype)
9843
      iprot.readFieldEnd()
9844
    iprot.readStructEnd()
9845
 
9846
  def write(self, oprot):
9847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9849
      return
9850
    oprot.writeStructBegin('getItemsForMasterSheet_args')
9851
    if self.category is not None:
9852
      oprot.writeFieldBegin('category', TType.STRING, 1)
9853
      oprot.writeString(self.category)
9854
      oprot.writeFieldEnd()
9855
    if self.brand is not None:
9856
      oprot.writeFieldBegin('brand', TType.STRING, 2)
9857
      oprot.writeString(self.brand)
9858
      oprot.writeFieldEnd()
9859
    oprot.writeFieldStop()
9860
    oprot.writeStructEnd()
9861
 
9862
  def validate(self):
9863
    return
9864
 
9865
 
9866
  def __repr__(self):
9867
    L = ['%s=%r' % (key, value)
9868
      for key, value in self.__dict__.iteritems()]
9869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9870
 
9871
  def __eq__(self, other):
9872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9873
 
9874
  def __ne__(self, other):
9875
    return not (self == other)
9876
 
9877
class getItemsForMasterSheet_result:
9878
  """
9879
  Attributes:
9880
   - success
9881
  """
9882
 
9883
  thrift_spec = (
9884
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9885
  )
9886
 
9887
  def __init__(self, success=None,):
9888
    self.success = success
9889
 
9890
  def read(self, iprot):
9891
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9892
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9893
      return
9894
    iprot.readStructBegin()
9895
    while True:
9896
      (fname, ftype, fid) = iprot.readFieldBegin()
9897
      if ftype == TType.STOP:
9898
        break
9899
      if fid == 0:
9900
        if ftype == TType.LIST:
9901
          self.success = []
6512 kshitij.so 9902
          (_etype159, _size156) = iprot.readListBegin()
9903
          for _i160 in xrange(_size156):
9904
            _elem161 = Item()
9905
            _elem161.read(iprot)
9906
            self.success.append(_elem161)
5944 mandeep.dh 9907
          iprot.readListEnd()
9908
        else:
9909
          iprot.skip(ftype)
9910
      else:
9911
        iprot.skip(ftype)
9912
      iprot.readFieldEnd()
9913
    iprot.readStructEnd()
9914
 
9915
  def write(self, oprot):
9916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9918
      return
9919
    oprot.writeStructBegin('getItemsForMasterSheet_result')
9920
    if self.success is not None:
9921
      oprot.writeFieldBegin('success', TType.LIST, 0)
9922
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 9923
      for iter162 in self.success:
9924
        iter162.write(oprot)
5944 mandeep.dh 9925
      oprot.writeListEnd()
9926
      oprot.writeFieldEnd()
9927
    oprot.writeFieldStop()
9928
    oprot.writeStructEnd()
9929
 
9930
  def validate(self):
9931
    return
9932
 
9933
 
9934
  def __repr__(self):
9935
    L = ['%s=%r' % (key, value)
9936
      for key, value in self.__dict__.iteritems()]
9937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9938
 
9939
  def __eq__(self, other):
9940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9941
 
9942
  def __ne__(self, other):
9943
    return not (self == other)
9944
 
9945
class getSimilarItemsCatalogIds_args:
9946
  """
9947
  Attributes:
9948
   - beginIndex
9949
   - totalItems
9950
   - itemId
9951
  """
9952
 
9953
  thrift_spec = (
9954
    None, # 0
9955
    (1, TType.I64, 'beginIndex', None, None, ), # 1
9956
    (2, TType.I64, 'totalItems', None, None, ), # 2
9957
    (3, TType.I64, 'itemId', None, None, ), # 3
9958
  )
9959
 
9960
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
9961
    self.beginIndex = beginIndex
9962
    self.totalItems = totalItems
9963
    self.itemId = itemId
9964
 
9965
  def read(self, iprot):
9966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9968
      return
9969
    iprot.readStructBegin()
9970
    while True:
9971
      (fname, ftype, fid) = iprot.readFieldBegin()
9972
      if ftype == TType.STOP:
9973
        break
9974
      if fid == 1:
9975
        if ftype == TType.I64:
9976
          self.beginIndex = iprot.readI64();
9977
        else:
9978
          iprot.skip(ftype)
9979
      elif fid == 2:
9980
        if ftype == TType.I64:
9981
          self.totalItems = iprot.readI64();
9982
        else:
9983
          iprot.skip(ftype)
9984
      elif fid == 3:
9985
        if ftype == TType.I64:
9986
          self.itemId = iprot.readI64();
9987
        else:
9988
          iprot.skip(ftype)
9989
      else:
9990
        iprot.skip(ftype)
9991
      iprot.readFieldEnd()
9992
    iprot.readStructEnd()
9993
 
9994
  def write(self, oprot):
9995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9997
      return
9998
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
9999
    if self.beginIndex is not None:
10000
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10001
      oprot.writeI64(self.beginIndex)
10002
      oprot.writeFieldEnd()
10003
    if self.totalItems is not None:
10004
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10005
      oprot.writeI64(self.totalItems)
10006
      oprot.writeFieldEnd()
10007
    if self.itemId is not None:
10008
      oprot.writeFieldBegin('itemId', TType.I64, 3)
10009
      oprot.writeI64(self.itemId)
10010
      oprot.writeFieldEnd()
10011
    oprot.writeFieldStop()
10012
    oprot.writeStructEnd()
10013
 
10014
  def validate(self):
10015
    return
10016
 
10017
 
10018
  def __repr__(self):
10019
    L = ['%s=%r' % (key, value)
10020
      for key, value in self.__dict__.iteritems()]
10021
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10022
 
10023
  def __eq__(self, other):
10024
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10025
 
10026
  def __ne__(self, other):
10027
    return not (self == other)
10028
 
10029
class getSimilarItemsCatalogIds_result:
10030
  """
10031
  Attributes:
10032
   - success
10033
  """
10034
 
10035
  thrift_spec = (
10036
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10037
  )
10038
 
10039
  def __init__(self, success=None,):
10040
    self.success = success
10041
 
10042
  def read(self, iprot):
10043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10045
      return
10046
    iprot.readStructBegin()
10047
    while True:
10048
      (fname, ftype, fid) = iprot.readFieldBegin()
10049
      if ftype == TType.STOP:
10050
        break
10051
      if fid == 0:
10052
        if ftype == TType.LIST:
10053
          self.success = []
6512 kshitij.so 10054
          (_etype166, _size163) = iprot.readListBegin()
10055
          for _i167 in xrange(_size163):
10056
            _elem168 = iprot.readI64();
10057
            self.success.append(_elem168)
5944 mandeep.dh 10058
          iprot.readListEnd()
10059
        else:
10060
          iprot.skip(ftype)
10061
      else:
10062
        iprot.skip(ftype)
10063
      iprot.readFieldEnd()
10064
    iprot.readStructEnd()
10065
 
10066
  def write(self, oprot):
10067
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10068
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10069
      return
10070
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
10071
    if self.success is not None:
10072
      oprot.writeFieldBegin('success', TType.LIST, 0)
10073
      oprot.writeListBegin(TType.I64, len(self.success))
6512 kshitij.so 10074
      for iter169 in self.success:
10075
        oprot.writeI64(iter169)
5944 mandeep.dh 10076
      oprot.writeListEnd()
10077
      oprot.writeFieldEnd()
10078
    oprot.writeFieldStop()
10079
    oprot.writeStructEnd()
10080
 
10081
  def validate(self):
10082
    return
10083
 
10084
 
10085
  def __repr__(self):
10086
    L = ['%s=%r' % (key, value)
10087
      for key, value in self.__dict__.iteritems()]
10088
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10089
 
10090
  def __eq__(self, other):
10091
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10092
 
10093
  def __ne__(self, other):
10094
    return not (self == other)
10095
 
10096
class addProductNotification_args:
10097
  """
10098
  Attributes:
10099
   - itemId
10100
   - email
10101
  """
10102
 
10103
  thrift_spec = None
10104
  def __init__(self, itemId=None, email=None,):
10105
    self.itemId = itemId
10106
    self.email = email
10107
 
10108
  def read(self, iprot):
10109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10111
      return
10112
    iprot.readStructBegin()
10113
    while True:
10114
      (fname, ftype, fid) = iprot.readFieldBegin()
10115
      if ftype == TType.STOP:
10116
        break
10117
      if fid == -1:
10118
        if ftype == TType.I64:
10119
          self.itemId = iprot.readI64();
10120
        else:
10121
          iprot.skip(ftype)
10122
      elif fid == -2:
10123
        if ftype == TType.STRING:
10124
          self.email = iprot.readString();
10125
        else:
10126
          iprot.skip(ftype)
10127
      else:
10128
        iprot.skip(ftype)
10129
      iprot.readFieldEnd()
10130
    iprot.readStructEnd()
10131
 
10132
  def write(self, oprot):
10133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10135
      return
10136
    oprot.writeStructBegin('addProductNotification_args')
10137
    if self.email is not None:
10138
      oprot.writeFieldBegin('email', TType.STRING, -2)
10139
      oprot.writeString(self.email)
10140
      oprot.writeFieldEnd()
10141
    if self.itemId is not None:
10142
      oprot.writeFieldBegin('itemId', TType.I64, -1)
10143
      oprot.writeI64(self.itemId)
10144
      oprot.writeFieldEnd()
10145
    oprot.writeFieldStop()
10146
    oprot.writeStructEnd()
10147
 
10148
  def validate(self):
10149
    return
10150
 
10151
 
10152
  def __repr__(self):
10153
    L = ['%s=%r' % (key, value)
10154
      for key, value in self.__dict__.iteritems()]
10155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10156
 
10157
  def __eq__(self, other):
10158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10159
 
10160
  def __ne__(self, other):
10161
    return not (self == other)
10162
 
10163
class addProductNotification_result:
10164
  """
10165
  Attributes:
10166
   - success
10167
  """
10168
 
10169
  thrift_spec = (
10170
    (0, TType.BOOL, 'success', None, None, ), # 0
10171
  )
10172
 
10173
  def __init__(self, success=None,):
10174
    self.success = success
10175
 
10176
  def read(self, iprot):
10177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10179
      return
10180
    iprot.readStructBegin()
10181
    while True:
10182
      (fname, ftype, fid) = iprot.readFieldBegin()
10183
      if ftype == TType.STOP:
10184
        break
10185
      if fid == 0:
10186
        if ftype == TType.BOOL:
10187
          self.success = iprot.readBool();
10188
        else:
10189
          iprot.skip(ftype)
10190
      else:
10191
        iprot.skip(ftype)
10192
      iprot.readFieldEnd()
10193
    iprot.readStructEnd()
10194
 
10195
  def write(self, oprot):
10196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10198
      return
10199
    oprot.writeStructBegin('addProductNotification_result')
10200
    if self.success is not None:
10201
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10202
      oprot.writeBool(self.success)
10203
      oprot.writeFieldEnd()
10204
    oprot.writeFieldStop()
10205
    oprot.writeStructEnd()
10206
 
10207
  def validate(self):
10208
    return
10209
 
10210
 
10211
  def __repr__(self):
10212
    L = ['%s=%r' % (key, value)
10213
      for key, value in self.__dict__.iteritems()]
10214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10215
 
10216
  def __eq__(self, other):
10217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10218
 
10219
  def __ne__(self, other):
10220
    return not (self == other)
10221
 
10222
class sendProductNotifications_args:
10223
 
10224
  thrift_spec = (
10225
  )
10226
 
10227
  def read(self, iprot):
10228
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10229
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10230
      return
10231
    iprot.readStructBegin()
10232
    while True:
10233
      (fname, ftype, fid) = iprot.readFieldBegin()
10234
      if ftype == TType.STOP:
10235
        break
10236
      else:
10237
        iprot.skip(ftype)
10238
      iprot.readFieldEnd()
10239
    iprot.readStructEnd()
10240
 
10241
  def write(self, oprot):
10242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10244
      return
10245
    oprot.writeStructBegin('sendProductNotifications_args')
10246
    oprot.writeFieldStop()
10247
    oprot.writeStructEnd()
10248
 
10249
  def validate(self):
10250
    return
10251
 
10252
 
10253
  def __repr__(self):
10254
    L = ['%s=%r' % (key, value)
10255
      for key, value in self.__dict__.iteritems()]
10256
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10257
 
10258
  def __eq__(self, other):
10259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10260
 
10261
  def __ne__(self, other):
10262
    return not (self == other)
10263
 
10264
class sendProductNotifications_result:
10265
  """
10266
  Attributes:
10267
   - success
10268
  """
10269
 
10270
  thrift_spec = (
10271
    (0, TType.BOOL, 'success', None, None, ), # 0
10272
  )
10273
 
10274
  def __init__(self, success=None,):
10275
    self.success = success
10276
 
10277
  def read(self, iprot):
10278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10280
      return
10281
    iprot.readStructBegin()
10282
    while True:
10283
      (fname, ftype, fid) = iprot.readFieldBegin()
10284
      if ftype == TType.STOP:
10285
        break
10286
      if fid == 0:
10287
        if ftype == TType.BOOL:
10288
          self.success = iprot.readBool();
10289
        else:
10290
          iprot.skip(ftype)
10291
      else:
10292
        iprot.skip(ftype)
10293
      iprot.readFieldEnd()
10294
    iprot.readStructEnd()
10295
 
10296
  def write(self, oprot):
10297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10299
      return
10300
    oprot.writeStructBegin('sendProductNotifications_result')
10301
    if self.success is not None:
10302
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10303
      oprot.writeBool(self.success)
10304
      oprot.writeFieldEnd()
10305
    oprot.writeFieldStop()
10306
    oprot.writeStructEnd()
10307
 
10308
  def validate(self):
10309
    return
10310
 
10311
 
10312
  def __repr__(self):
10313
    L = ['%s=%r' % (key, value)
10314
      for key, value in self.__dict__.iteritems()]
10315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10316
 
10317
  def __eq__(self, other):
10318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10319
 
10320
  def __ne__(self, other):
10321
    return not (self == other)
10322
 
10323
class getAllBrandsByCategory_args:
10324
  """
10325
  Attributes:
10326
   - categoryId
10327
  """
10328
 
10329
  thrift_spec = (
10330
    None, # 0
10331
    (1, TType.I64, 'categoryId', None, None, ), # 1
10332
  )
10333
 
10334
  def __init__(self, categoryId=None,):
10335
    self.categoryId = categoryId
10336
 
10337
  def read(self, iprot):
10338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10340
      return
10341
    iprot.readStructBegin()
10342
    while True:
10343
      (fname, ftype, fid) = iprot.readFieldBegin()
10344
      if ftype == TType.STOP:
10345
        break
10346
      if fid == 1:
10347
        if ftype == TType.I64:
10348
          self.categoryId = iprot.readI64();
10349
        else:
10350
          iprot.skip(ftype)
10351
      else:
10352
        iprot.skip(ftype)
10353
      iprot.readFieldEnd()
10354
    iprot.readStructEnd()
10355
 
10356
  def write(self, oprot):
10357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10359
      return
10360
    oprot.writeStructBegin('getAllBrandsByCategory_args')
10361
    if self.categoryId is not None:
10362
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
10363
      oprot.writeI64(self.categoryId)
10364
      oprot.writeFieldEnd()
10365
    oprot.writeFieldStop()
10366
    oprot.writeStructEnd()
10367
 
10368
  def validate(self):
10369
    return
10370
 
10371
 
10372
  def __repr__(self):
10373
    L = ['%s=%r' % (key, value)
10374
      for key, value in self.__dict__.iteritems()]
10375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10376
 
10377
  def __eq__(self, other):
10378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10379
 
10380
  def __ne__(self, other):
10381
    return not (self == other)
10382
 
10383
class getAllBrandsByCategory_result:
10384
  """
10385
  Attributes:
10386
   - success
10387
  """
10388
 
10389
  thrift_spec = (
10390
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10391
  )
10392
 
10393
  def __init__(self, success=None,):
10394
    self.success = success
10395
 
10396
  def read(self, iprot):
10397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10399
      return
10400
    iprot.readStructBegin()
10401
    while True:
10402
      (fname, ftype, fid) = iprot.readFieldBegin()
10403
      if ftype == TType.STOP:
10404
        break
10405
      if fid == 0:
10406
        if ftype == TType.LIST:
10407
          self.success = []
6512 kshitij.so 10408
          (_etype173, _size170) = iprot.readListBegin()
10409
          for _i174 in xrange(_size170):
10410
            _elem175 = iprot.readString();
10411
            self.success.append(_elem175)
5944 mandeep.dh 10412
          iprot.readListEnd()
10413
        else:
10414
          iprot.skip(ftype)
10415
      else:
10416
        iprot.skip(ftype)
10417
      iprot.readFieldEnd()
10418
    iprot.readStructEnd()
10419
 
10420
  def write(self, oprot):
10421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10423
      return
10424
    oprot.writeStructBegin('getAllBrandsByCategory_result')
10425
    if self.success is not None:
10426
      oprot.writeFieldBegin('success', TType.LIST, 0)
10427
      oprot.writeListBegin(TType.STRING, len(self.success))
6512 kshitij.so 10428
      for iter176 in self.success:
10429
        oprot.writeString(iter176)
5944 mandeep.dh 10430
      oprot.writeListEnd()
10431
      oprot.writeFieldEnd()
10432
    oprot.writeFieldStop()
10433
    oprot.writeStructEnd()
10434
 
10435
  def validate(self):
10436
    return
10437
 
10438
 
10439
  def __repr__(self):
10440
    L = ['%s=%r' % (key, value)
10441
      for key, value in self.__dict__.iteritems()]
10442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10443
 
10444
  def __eq__(self, other):
10445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10446
 
10447
  def __ne__(self, other):
10448
    return not (self == other)
10449
 
10450
class getAllBrands_args:
10451
 
10452
  thrift_spec = (
10453
  )
10454
 
10455
  def read(self, iprot):
10456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10458
      return
10459
    iprot.readStructBegin()
10460
    while True:
10461
      (fname, ftype, fid) = iprot.readFieldBegin()
10462
      if ftype == TType.STOP:
10463
        break
10464
      else:
10465
        iprot.skip(ftype)
10466
      iprot.readFieldEnd()
10467
    iprot.readStructEnd()
10468
 
10469
  def write(self, oprot):
10470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10472
      return
10473
    oprot.writeStructBegin('getAllBrands_args')
10474
    oprot.writeFieldStop()
10475
    oprot.writeStructEnd()
10476
 
10477
  def validate(self):
10478
    return
10479
 
10480
 
10481
  def __repr__(self):
10482
    L = ['%s=%r' % (key, value)
10483
      for key, value in self.__dict__.iteritems()]
10484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10485
 
10486
  def __eq__(self, other):
10487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10488
 
10489
  def __ne__(self, other):
10490
    return not (self == other)
10491
 
10492
class getAllBrands_result:
10493
  """
10494
  Attributes:
10495
   - success
10496
  """
10497
 
10498
  thrift_spec = (
10499
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10500
  )
10501
 
10502
  def __init__(self, success=None,):
10503
    self.success = success
10504
 
10505
  def read(self, iprot):
10506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10508
      return
10509
    iprot.readStructBegin()
10510
    while True:
10511
      (fname, ftype, fid) = iprot.readFieldBegin()
10512
      if ftype == TType.STOP:
10513
        break
10514
      if fid == 0:
10515
        if ftype == TType.LIST:
10516
          self.success = []
6512 kshitij.so 10517
          (_etype180, _size177) = iprot.readListBegin()
10518
          for _i181 in xrange(_size177):
10519
            _elem182 = iprot.readString();
10520
            self.success.append(_elem182)
5944 mandeep.dh 10521
          iprot.readListEnd()
10522
        else:
10523
          iprot.skip(ftype)
10524
      else:
10525
        iprot.skip(ftype)
10526
      iprot.readFieldEnd()
10527
    iprot.readStructEnd()
10528
 
10529
  def write(self, oprot):
10530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10532
      return
10533
    oprot.writeStructBegin('getAllBrands_result')
10534
    if self.success is not None:
10535
      oprot.writeFieldBegin('success', TType.LIST, 0)
10536
      oprot.writeListBegin(TType.STRING, len(self.success))
6512 kshitij.so 10537
      for iter183 in self.success:
10538
        oprot.writeString(iter183)
5944 mandeep.dh 10539
      oprot.writeListEnd()
10540
      oprot.writeFieldEnd()
10541
    oprot.writeFieldStop()
10542
    oprot.writeStructEnd()
10543
 
10544
  def validate(self):
10545
    return
10546
 
10547
 
10548
  def __repr__(self):
10549
    L = ['%s=%r' % (key, value)
10550
      for key, value in self.__dict__.iteritems()]
10551
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10552
 
10553
  def __eq__(self, other):
10554
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10555
 
10556
  def __ne__(self, other):
10557
    return not (self == other)
10558
 
10559
class getAllSources_args:
10560
 
10561
  thrift_spec = (
10562
  )
10563
 
10564
  def read(self, iprot):
10565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10567
      return
10568
    iprot.readStructBegin()
10569
    while True:
10570
      (fname, ftype, fid) = iprot.readFieldBegin()
10571
      if ftype == TType.STOP:
10572
        break
10573
      else:
10574
        iprot.skip(ftype)
10575
      iprot.readFieldEnd()
10576
    iprot.readStructEnd()
10577
 
10578
  def write(self, oprot):
10579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10581
      return
10582
    oprot.writeStructBegin('getAllSources_args')
10583
    oprot.writeFieldStop()
10584
    oprot.writeStructEnd()
10585
 
10586
  def validate(self):
10587
    return
10588
 
10589
 
10590
  def __repr__(self):
10591
    L = ['%s=%r' % (key, value)
10592
      for key, value in self.__dict__.iteritems()]
10593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10594
 
10595
  def __eq__(self, other):
10596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10597
 
10598
  def __ne__(self, other):
10599
    return not (self == other)
10600
 
10601
class getAllSources_result:
10602
  """
10603
  Attributes:
10604
   - success
10605
  """
10606
 
10607
  thrift_spec = (
10608
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
10609
  )
10610
 
10611
  def __init__(self, success=None,):
10612
    self.success = success
10613
 
10614
  def read(self, iprot):
10615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10617
      return
10618
    iprot.readStructBegin()
10619
    while True:
10620
      (fname, ftype, fid) = iprot.readFieldBegin()
10621
      if ftype == TType.STOP:
10622
        break
10623
      if fid == 0:
10624
        if ftype == TType.LIST:
10625
          self.success = []
6512 kshitij.so 10626
          (_etype187, _size184) = iprot.readListBegin()
10627
          for _i188 in xrange(_size184):
10628
            _elem189 = Source()
10629
            _elem189.read(iprot)
10630
            self.success.append(_elem189)
5944 mandeep.dh 10631
          iprot.readListEnd()
10632
        else:
10633
          iprot.skip(ftype)
10634
      else:
10635
        iprot.skip(ftype)
10636
      iprot.readFieldEnd()
10637
    iprot.readStructEnd()
10638
 
10639
  def write(self, oprot):
10640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10642
      return
10643
    oprot.writeStructBegin('getAllSources_result')
10644
    if self.success is not None:
10645
      oprot.writeFieldBegin('success', TType.LIST, 0)
10646
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 10647
      for iter190 in self.success:
10648
        iter190.write(oprot)
5944 mandeep.dh 10649
      oprot.writeListEnd()
10650
      oprot.writeFieldEnd()
10651
    oprot.writeFieldStop()
10652
    oprot.writeStructEnd()
10653
 
10654
  def validate(self):
10655
    return
10656
 
10657
 
10658
  def __repr__(self):
10659
    L = ['%s=%r' % (key, value)
10660
      for key, value in self.__dict__.iteritems()]
10661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10662
 
10663
  def __eq__(self, other):
10664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10665
 
10666
  def __ne__(self, other):
10667
    return not (self == other)
10668
 
10669
class getItemPricingBySource_args:
10670
  """
10671
  Attributes:
10672
   - itemId
10673
   - sourceId
10674
  """
10675
 
10676
  thrift_spec = (
10677
    None, # 0
10678
    (1, TType.I64, 'itemId', None, None, ), # 1
10679
    (2, TType.I64, 'sourceId', None, None, ), # 2
10680
  )
10681
 
10682
  def __init__(self, itemId=None, sourceId=None,):
10683
    self.itemId = itemId
10684
    self.sourceId = sourceId
10685
 
10686
  def read(self, iprot):
10687
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10688
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10689
      return
10690
    iprot.readStructBegin()
10691
    while True:
10692
      (fname, ftype, fid) = iprot.readFieldBegin()
10693
      if ftype == TType.STOP:
10694
        break
10695
      if fid == 1:
10696
        if ftype == TType.I64:
10697
          self.itemId = iprot.readI64();
10698
        else:
10699
          iprot.skip(ftype)
10700
      elif fid == 2:
10701
        if ftype == TType.I64:
10702
          self.sourceId = iprot.readI64();
10703
        else:
10704
          iprot.skip(ftype)
10705
      else:
10706
        iprot.skip(ftype)
10707
      iprot.readFieldEnd()
10708
    iprot.readStructEnd()
10709
 
10710
  def write(self, oprot):
10711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10713
      return
10714
    oprot.writeStructBegin('getItemPricingBySource_args')
10715
    if self.itemId is not None:
10716
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10717
      oprot.writeI64(self.itemId)
10718
      oprot.writeFieldEnd()
10719
    if self.sourceId is not None:
10720
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
10721
      oprot.writeI64(self.sourceId)
10722
      oprot.writeFieldEnd()
10723
    oprot.writeFieldStop()
10724
    oprot.writeStructEnd()
10725
 
10726
  def validate(self):
10727
    return
10728
 
10729
 
10730
  def __repr__(self):
10731
    L = ['%s=%r' % (key, value)
10732
      for key, value in self.__dict__.iteritems()]
10733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10734
 
10735
  def __eq__(self, other):
10736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10737
 
10738
  def __ne__(self, other):
10739
    return not (self == other)
10740
 
10741
class getItemPricingBySource_result:
10742
  """
10743
  Attributes:
10744
   - success
10745
   - cex
10746
  """
10747
 
10748
  thrift_spec = (
10749
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
10750
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10751
  )
10752
 
10753
  def __init__(self, success=None, cex=None,):
10754
    self.success = success
10755
    self.cex = cex
10756
 
10757
  def read(self, iprot):
10758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10760
      return
10761
    iprot.readStructBegin()
10762
    while True:
10763
      (fname, ftype, fid) = iprot.readFieldBegin()
10764
      if ftype == TType.STOP:
10765
        break
10766
      if fid == 0:
10767
        if ftype == TType.STRUCT:
10768
          self.success = SourceItemPricing()
10769
          self.success.read(iprot)
10770
        else:
10771
          iprot.skip(ftype)
10772
      elif fid == 1:
10773
        if ftype == TType.STRUCT:
10774
          self.cex = CatalogServiceException()
10775
          self.cex.read(iprot)
10776
        else:
10777
          iprot.skip(ftype)
10778
      else:
10779
        iprot.skip(ftype)
10780
      iprot.readFieldEnd()
10781
    iprot.readStructEnd()
10782
 
10783
  def write(self, oprot):
10784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10786
      return
10787
    oprot.writeStructBegin('getItemPricingBySource_result')
10788
    if self.success is not None:
10789
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10790
      self.success.write(oprot)
10791
      oprot.writeFieldEnd()
10792
    if self.cex is not None:
10793
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10794
      self.cex.write(oprot)
10795
      oprot.writeFieldEnd()
10796
    oprot.writeFieldStop()
10797
    oprot.writeStructEnd()
10798
 
10799
  def validate(self):
10800
    return
10801
 
10802
 
10803
  def __repr__(self):
10804
    L = ['%s=%r' % (key, value)
10805
      for key, value in self.__dict__.iteritems()]
10806
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10807
 
10808
  def __eq__(self, other):
10809
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10810
 
10811
  def __ne__(self, other):
10812
    return not (self == other)
10813
 
10814
class addSourceItemPricing_args:
10815
  """
10816
  Attributes:
10817
   - sourceItemPricing
10818
  """
10819
 
10820
  thrift_spec = (
10821
    None, # 0
10822
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
10823
  )
10824
 
10825
  def __init__(self, sourceItemPricing=None,):
10826
    self.sourceItemPricing = sourceItemPricing
10827
 
10828
  def read(self, iprot):
10829
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10830
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10831
      return
10832
    iprot.readStructBegin()
10833
    while True:
10834
      (fname, ftype, fid) = iprot.readFieldBegin()
10835
      if ftype == TType.STOP:
10836
        break
10837
      if fid == 1:
10838
        if ftype == TType.STRUCT:
10839
          self.sourceItemPricing = SourceItemPricing()
10840
          self.sourceItemPricing.read(iprot)
10841
        else:
10842
          iprot.skip(ftype)
10843
      else:
10844
        iprot.skip(ftype)
10845
      iprot.readFieldEnd()
10846
    iprot.readStructEnd()
10847
 
10848
  def write(self, oprot):
10849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10851
      return
10852
    oprot.writeStructBegin('addSourceItemPricing_args')
10853
    if self.sourceItemPricing is not None:
10854
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
10855
      self.sourceItemPricing.write(oprot)
10856
      oprot.writeFieldEnd()
10857
    oprot.writeFieldStop()
10858
    oprot.writeStructEnd()
10859
 
10860
  def validate(self):
10861
    return
10862
 
10863
 
10864
  def __repr__(self):
10865
    L = ['%s=%r' % (key, value)
10866
      for key, value in self.__dict__.iteritems()]
10867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10868
 
10869
  def __eq__(self, other):
10870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10871
 
10872
  def __ne__(self, other):
10873
    return not (self == other)
10874
 
10875
class addSourceItemPricing_result:
10876
  """
10877
  Attributes:
10878
   - cex
10879
  """
10880
 
10881
  thrift_spec = (
10882
    None, # 0
10883
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10884
  )
10885
 
10886
  def __init__(self, cex=None,):
10887
    self.cex = cex
10888
 
10889
  def read(self, iprot):
10890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10892
      return
10893
    iprot.readStructBegin()
10894
    while True:
10895
      (fname, ftype, fid) = iprot.readFieldBegin()
10896
      if ftype == TType.STOP:
10897
        break
10898
      if fid == 1:
10899
        if ftype == TType.STRUCT:
10900
          self.cex = CatalogServiceException()
10901
          self.cex.read(iprot)
10902
        else:
10903
          iprot.skip(ftype)
10904
      else:
10905
        iprot.skip(ftype)
10906
      iprot.readFieldEnd()
10907
    iprot.readStructEnd()
10908
 
10909
  def write(self, oprot):
10910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10912
      return
10913
    oprot.writeStructBegin('addSourceItemPricing_result')
10914
    if self.cex is not None:
10915
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10916
      self.cex.write(oprot)
10917
      oprot.writeFieldEnd()
10918
    oprot.writeFieldStop()
10919
    oprot.writeStructEnd()
10920
 
10921
  def validate(self):
10922
    return
10923
 
10924
 
10925
  def __repr__(self):
10926
    L = ['%s=%r' % (key, value)
10927
      for key, value in self.__dict__.iteritems()]
10928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10929
 
10930
  def __eq__(self, other):
10931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10932
 
10933
  def __ne__(self, other):
10934
    return not (self == other)
10935
 
10936
class getAllSourcePricing_args:
10937
  """
10938
  Attributes:
10939
   - itemId
10940
  """
10941
 
10942
  thrift_spec = (
10943
    None, # 0
10944
    (1, TType.I64, 'itemId', None, None, ), # 1
10945
  )
10946
 
10947
  def __init__(self, itemId=None,):
10948
    self.itemId = itemId
10949
 
10950
  def read(self, iprot):
10951
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10952
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10953
      return
10954
    iprot.readStructBegin()
10955
    while True:
10956
      (fname, ftype, fid) = iprot.readFieldBegin()
10957
      if ftype == TType.STOP:
10958
        break
10959
      if fid == 1:
10960
        if ftype == TType.I64:
10961
          self.itemId = iprot.readI64();
10962
        else:
10963
          iprot.skip(ftype)
10964
      else:
10965
        iprot.skip(ftype)
10966
      iprot.readFieldEnd()
10967
    iprot.readStructEnd()
10968
 
10969
  def write(self, oprot):
10970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10972
      return
10973
    oprot.writeStructBegin('getAllSourcePricing_args')
10974
    if self.itemId is not None:
10975
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10976
      oprot.writeI64(self.itemId)
10977
      oprot.writeFieldEnd()
10978
    oprot.writeFieldStop()
10979
    oprot.writeStructEnd()
10980
 
10981
  def validate(self):
10982
    return
10983
 
10984
 
10985
  def __repr__(self):
10986
    L = ['%s=%r' % (key, value)
10987
      for key, value in self.__dict__.iteritems()]
10988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10989
 
10990
  def __eq__(self, other):
10991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10992
 
10993
  def __ne__(self, other):
10994
    return not (self == other)
10995
 
10996
class getAllSourcePricing_result:
10997
  """
10998
  Attributes:
10999
   - success
11000
   - cex
11001
  """
11002
 
11003
  thrift_spec = (
11004
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
11005
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11006
  )
11007
 
11008
  def __init__(self, success=None, cex=None,):
11009
    self.success = success
11010
    self.cex = cex
11011
 
11012
  def read(self, iprot):
11013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11015
      return
11016
    iprot.readStructBegin()
11017
    while True:
11018
      (fname, ftype, fid) = iprot.readFieldBegin()
11019
      if ftype == TType.STOP:
11020
        break
11021
      if fid == 0:
11022
        if ftype == TType.LIST:
11023
          self.success = []
6512 kshitij.so 11024
          (_etype194, _size191) = iprot.readListBegin()
11025
          for _i195 in xrange(_size191):
11026
            _elem196 = SourceItemPricing()
11027
            _elem196.read(iprot)
11028
            self.success.append(_elem196)
5944 mandeep.dh 11029
          iprot.readListEnd()
11030
        else:
11031
          iprot.skip(ftype)
11032
      elif fid == 1:
11033
        if ftype == TType.STRUCT:
11034
          self.cex = CatalogServiceException()
11035
          self.cex.read(iprot)
11036
        else:
11037
          iprot.skip(ftype)
11038
      else:
11039
        iprot.skip(ftype)
11040
      iprot.readFieldEnd()
11041
    iprot.readStructEnd()
11042
 
11043
  def write(self, oprot):
11044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11046
      return
11047
    oprot.writeStructBegin('getAllSourcePricing_result')
11048
    if self.success is not None:
11049
      oprot.writeFieldBegin('success', TType.LIST, 0)
11050
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11051
      for iter197 in self.success:
11052
        iter197.write(oprot)
5944 mandeep.dh 11053
      oprot.writeListEnd()
11054
      oprot.writeFieldEnd()
11055
    if self.cex is not None:
11056
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11057
      self.cex.write(oprot)
11058
      oprot.writeFieldEnd()
11059
    oprot.writeFieldStop()
11060
    oprot.writeStructEnd()
11061
 
11062
  def validate(self):
11063
    return
11064
 
11065
 
11066
  def __repr__(self):
11067
    L = ['%s=%r' % (key, value)
11068
      for key, value in self.__dict__.iteritems()]
11069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11070
 
11071
  def __eq__(self, other):
11072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11073
 
11074
  def __ne__(self, other):
11075
    return not (self == other)
11076
 
11077
class getItemForSource_args:
11078
  """
11079
  Attributes:
11080
   - item_id
11081
   - sourceId
11082
  """
11083
 
11084
  thrift_spec = (
11085
    None, # 0
11086
    (1, TType.I64, 'item_id', None, None, ), # 1
11087
    (2, TType.I64, 'sourceId', None, None, ), # 2
11088
  )
11089
 
11090
  def __init__(self, item_id=None, sourceId=None,):
11091
    self.item_id = item_id
11092
    self.sourceId = sourceId
11093
 
11094
  def read(self, iprot):
11095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11097
      return
11098
    iprot.readStructBegin()
11099
    while True:
11100
      (fname, ftype, fid) = iprot.readFieldBegin()
11101
      if ftype == TType.STOP:
11102
        break
11103
      if fid == 1:
11104
        if ftype == TType.I64:
11105
          self.item_id = iprot.readI64();
11106
        else:
11107
          iprot.skip(ftype)
11108
      elif fid == 2:
11109
        if ftype == TType.I64:
11110
          self.sourceId = iprot.readI64();
11111
        else:
11112
          iprot.skip(ftype)
11113
      else:
11114
        iprot.skip(ftype)
11115
      iprot.readFieldEnd()
11116
    iprot.readStructEnd()
11117
 
11118
  def write(self, oprot):
11119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11121
      return
11122
    oprot.writeStructBegin('getItemForSource_args')
11123
    if self.item_id is not None:
11124
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11125
      oprot.writeI64(self.item_id)
11126
      oprot.writeFieldEnd()
11127
    if self.sourceId is not None:
11128
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11129
      oprot.writeI64(self.sourceId)
11130
      oprot.writeFieldEnd()
11131
    oprot.writeFieldStop()
11132
    oprot.writeStructEnd()
11133
 
11134
  def validate(self):
11135
    return
11136
 
11137
 
11138
  def __repr__(self):
11139
    L = ['%s=%r' % (key, value)
11140
      for key, value in self.__dict__.iteritems()]
11141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11142
 
11143
  def __eq__(self, other):
11144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11145
 
11146
  def __ne__(self, other):
11147
    return not (self == other)
11148
 
11149
class getItemForSource_result:
11150
  """
11151
  Attributes:
11152
   - success
11153
   - cex
11154
  """
11155
 
11156
  thrift_spec = (
11157
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
11158
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11159
  )
11160
 
11161
  def __init__(self, success=None, cex=None,):
11162
    self.success = success
11163
    self.cex = cex
11164
 
11165
  def read(self, iprot):
11166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11168
      return
11169
    iprot.readStructBegin()
11170
    while True:
11171
      (fname, ftype, fid) = iprot.readFieldBegin()
11172
      if ftype == TType.STOP:
11173
        break
11174
      if fid == 0:
11175
        if ftype == TType.STRUCT:
11176
          self.success = Item()
11177
          self.success.read(iprot)
11178
        else:
11179
          iprot.skip(ftype)
11180
      elif fid == 1:
11181
        if ftype == TType.STRUCT:
11182
          self.cex = CatalogServiceException()
11183
          self.cex.read(iprot)
11184
        else:
11185
          iprot.skip(ftype)
11186
      else:
11187
        iprot.skip(ftype)
11188
      iprot.readFieldEnd()
11189
    iprot.readStructEnd()
11190
 
11191
  def write(self, oprot):
11192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11194
      return
11195
    oprot.writeStructBegin('getItemForSource_result')
11196
    if self.success is not None:
11197
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11198
      self.success.write(oprot)
11199
      oprot.writeFieldEnd()
11200
    if self.cex is not None:
11201
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11202
      self.cex.write(oprot)
11203
      oprot.writeFieldEnd()
11204
    oprot.writeFieldStop()
11205
    oprot.writeStructEnd()
11206
 
11207
  def validate(self):
11208
    return
11209
 
11210
 
11211
  def __repr__(self):
11212
    L = ['%s=%r' % (key, value)
11213
      for key, value in self.__dict__.iteritems()]
11214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11215
 
11216
  def __eq__(self, other):
11217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11218
 
11219
  def __ne__(self, other):
11220
    return not (self == other)
11221
 
11222
class searchItemsInRange_args:
11223
  """
11224
  Attributes:
11225
   - searchTerms
11226
   - offset
11227
   - limit
11228
  """
11229
 
11230
  thrift_spec = (
11231
    None, # 0
11232
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11233
    (2, TType.I64, 'offset', None, None, ), # 2
11234
    (3, TType.I64, 'limit', None, None, ), # 3
11235
  )
11236
 
11237
  def __init__(self, searchTerms=None, offset=None, limit=None,):
11238
    self.searchTerms = searchTerms
11239
    self.offset = offset
11240
    self.limit = limit
11241
 
11242
  def read(self, iprot):
11243
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11244
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11245
      return
11246
    iprot.readStructBegin()
11247
    while True:
11248
      (fname, ftype, fid) = iprot.readFieldBegin()
11249
      if ftype == TType.STOP:
11250
        break
11251
      if fid == 1:
11252
        if ftype == TType.LIST:
11253
          self.searchTerms = []
6512 kshitij.so 11254
          (_etype201, _size198) = iprot.readListBegin()
11255
          for _i202 in xrange(_size198):
11256
            _elem203 = iprot.readString();
11257
            self.searchTerms.append(_elem203)
5944 mandeep.dh 11258
          iprot.readListEnd()
11259
        else:
11260
          iprot.skip(ftype)
11261
      elif fid == 2:
11262
        if ftype == TType.I64:
11263
          self.offset = iprot.readI64();
11264
        else:
11265
          iprot.skip(ftype)
11266
      elif fid == 3:
11267
        if ftype == TType.I64:
11268
          self.limit = iprot.readI64();
11269
        else:
11270
          iprot.skip(ftype)
11271
      else:
11272
        iprot.skip(ftype)
11273
      iprot.readFieldEnd()
11274
    iprot.readStructEnd()
11275
 
11276
  def write(self, oprot):
11277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11279
      return
11280
    oprot.writeStructBegin('searchItemsInRange_args')
11281
    if self.searchTerms is not None:
11282
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11283
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6512 kshitij.so 11284
      for iter204 in self.searchTerms:
11285
        oprot.writeString(iter204)
5944 mandeep.dh 11286
      oprot.writeListEnd()
11287
      oprot.writeFieldEnd()
11288
    if self.offset is not None:
11289
      oprot.writeFieldBegin('offset', TType.I64, 2)
11290
      oprot.writeI64(self.offset)
11291
      oprot.writeFieldEnd()
11292
    if self.limit is not None:
11293
      oprot.writeFieldBegin('limit', TType.I64, 3)
11294
      oprot.writeI64(self.limit)
11295
      oprot.writeFieldEnd()
11296
    oprot.writeFieldStop()
11297
    oprot.writeStructEnd()
11298
 
11299
  def validate(self):
11300
    return
11301
 
11302
 
11303
  def __repr__(self):
11304
    L = ['%s=%r' % (key, value)
11305
      for key, value in self.__dict__.iteritems()]
11306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11307
 
11308
  def __eq__(self, other):
11309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11310
 
11311
  def __ne__(self, other):
11312
    return not (self == other)
11313
 
11314
class searchItemsInRange_result:
11315
  """
11316
  Attributes:
11317
   - success
11318
  """
11319
 
11320
  thrift_spec = (
11321
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11322
  )
11323
 
11324
  def __init__(self, success=None,):
11325
    self.success = success
11326
 
11327
  def read(self, iprot):
11328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11330
      return
11331
    iprot.readStructBegin()
11332
    while True:
11333
      (fname, ftype, fid) = iprot.readFieldBegin()
11334
      if ftype == TType.STOP:
11335
        break
11336
      if fid == 0:
11337
        if ftype == TType.LIST:
11338
          self.success = []
6512 kshitij.so 11339
          (_etype208, _size205) = iprot.readListBegin()
11340
          for _i209 in xrange(_size205):
11341
            _elem210 = Item()
11342
            _elem210.read(iprot)
11343
            self.success.append(_elem210)
5944 mandeep.dh 11344
          iprot.readListEnd()
11345
        else:
11346
          iprot.skip(ftype)
11347
      else:
11348
        iprot.skip(ftype)
11349
      iprot.readFieldEnd()
11350
    iprot.readStructEnd()
11351
 
11352
  def write(self, oprot):
11353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11355
      return
11356
    oprot.writeStructBegin('searchItemsInRange_result')
11357
    if self.success is not None:
11358
      oprot.writeFieldBegin('success', TType.LIST, 0)
11359
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11360
      for iter211 in self.success:
11361
        iter211.write(oprot)
5944 mandeep.dh 11362
      oprot.writeListEnd()
11363
      oprot.writeFieldEnd()
11364
    oprot.writeFieldStop()
11365
    oprot.writeStructEnd()
11366
 
11367
  def validate(self):
11368
    return
11369
 
11370
 
11371
  def __repr__(self):
11372
    L = ['%s=%r' % (key, value)
11373
      for key, value in self.__dict__.iteritems()]
11374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11375
 
11376
  def __eq__(self, other):
11377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11378
 
11379
  def __ne__(self, other):
11380
    return not (self == other)
11381
 
11382
class getSearchResultCount_args:
11383
  """
11384
  Attributes:
11385
   - searchTerms
11386
  """
11387
 
11388
  thrift_spec = (
11389
    None, # 0
11390
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11391
  )
11392
 
11393
  def __init__(self, searchTerms=None,):
11394
    self.searchTerms = searchTerms
11395
 
11396
  def read(self, iprot):
11397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11399
      return
11400
    iprot.readStructBegin()
11401
    while True:
11402
      (fname, ftype, fid) = iprot.readFieldBegin()
11403
      if ftype == TType.STOP:
11404
        break
11405
      if fid == 1:
11406
        if ftype == TType.LIST:
11407
          self.searchTerms = []
6512 kshitij.so 11408
          (_etype215, _size212) = iprot.readListBegin()
11409
          for _i216 in xrange(_size212):
11410
            _elem217 = iprot.readString();
11411
            self.searchTerms.append(_elem217)
5944 mandeep.dh 11412
          iprot.readListEnd()
11413
        else:
11414
          iprot.skip(ftype)
11415
      else:
11416
        iprot.skip(ftype)
11417
      iprot.readFieldEnd()
11418
    iprot.readStructEnd()
11419
 
11420
  def write(self, oprot):
11421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11423
      return
11424
    oprot.writeStructBegin('getSearchResultCount_args')
11425
    if self.searchTerms is not None:
11426
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11427
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6512 kshitij.so 11428
      for iter218 in self.searchTerms:
11429
        oprot.writeString(iter218)
5944 mandeep.dh 11430
      oprot.writeListEnd()
11431
      oprot.writeFieldEnd()
11432
    oprot.writeFieldStop()
11433
    oprot.writeStructEnd()
11434
 
11435
  def validate(self):
11436
    return
11437
 
11438
 
11439
  def __repr__(self):
11440
    L = ['%s=%r' % (key, value)
11441
      for key, value in self.__dict__.iteritems()]
11442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11443
 
11444
  def __eq__(self, other):
11445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11446
 
11447
  def __ne__(self, other):
11448
    return not (self == other)
11449
 
11450
class getSearchResultCount_result:
11451
  """
11452
  Attributes:
11453
   - success
11454
  """
11455
 
11456
  thrift_spec = (
11457
    (0, TType.I32, 'success', None, None, ), # 0
11458
  )
11459
 
11460
  def __init__(self, success=None,):
11461
    self.success = success
11462
 
11463
  def read(self, iprot):
11464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11466
      return
11467
    iprot.readStructBegin()
11468
    while True:
11469
      (fname, ftype, fid) = iprot.readFieldBegin()
11470
      if ftype == TType.STOP:
11471
        break
11472
      if fid == 0:
11473
        if ftype == TType.I32:
11474
          self.success = iprot.readI32();
11475
        else:
11476
          iprot.skip(ftype)
11477
      else:
11478
        iprot.skip(ftype)
11479
      iprot.readFieldEnd()
11480
    iprot.readStructEnd()
11481
 
11482
  def write(self, oprot):
11483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11485
      return
11486
    oprot.writeStructBegin('getSearchResultCount_result')
11487
    if self.success is not None:
11488
      oprot.writeFieldBegin('success', TType.I32, 0)
11489
      oprot.writeI32(self.success)
11490
      oprot.writeFieldEnd()
11491
    oprot.writeFieldStop()
11492
    oprot.writeStructEnd()
11493
 
11494
  def validate(self):
11495
    return
11496
 
11497
 
11498
  def __repr__(self):
11499
    L = ['%s=%r' % (key, value)
11500
      for key, value in self.__dict__.iteritems()]
11501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11502
 
11503
  def __eq__(self, other):
11504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11505
 
11506
  def __ne__(self, other):
11507
    return not (self == other)
11508
 
11509
class getProductNotifications_args:
11510
  """
11511
  Attributes:
11512
   - startDateTime
11513
  """
11514
 
11515
  thrift_spec = (
11516
    None, # 0
11517
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11518
  )
11519
 
11520
  def __init__(self, startDateTime=None,):
11521
    self.startDateTime = startDateTime
11522
 
11523
  def read(self, iprot):
11524
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11525
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11526
      return
11527
    iprot.readStructBegin()
11528
    while True:
11529
      (fname, ftype, fid) = iprot.readFieldBegin()
11530
      if ftype == TType.STOP:
11531
        break
11532
      if fid == 1:
11533
        if ftype == TType.I64:
11534
          self.startDateTime = iprot.readI64();
11535
        else:
11536
          iprot.skip(ftype)
11537
      else:
11538
        iprot.skip(ftype)
11539
      iprot.readFieldEnd()
11540
    iprot.readStructEnd()
11541
 
11542
  def write(self, oprot):
11543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11545
      return
11546
    oprot.writeStructBegin('getProductNotifications_args')
11547
    if self.startDateTime is not None:
11548
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11549
      oprot.writeI64(self.startDateTime)
11550
      oprot.writeFieldEnd()
11551
    oprot.writeFieldStop()
11552
    oprot.writeStructEnd()
11553
 
11554
  def validate(self):
11555
    return
11556
 
11557
 
11558
  def __repr__(self):
11559
    L = ['%s=%r' % (key, value)
11560
      for key, value in self.__dict__.iteritems()]
11561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11562
 
11563
  def __eq__(self, other):
11564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11565
 
11566
  def __ne__(self, other):
11567
    return not (self == other)
11568
 
11569
class getProductNotifications_result:
11570
  """
11571
  Attributes:
11572
   - success
11573
  """
11574
 
11575
  thrift_spec = (
11576
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
11577
  )
11578
 
11579
  def __init__(self, success=None,):
11580
    self.success = success
11581
 
11582
  def read(self, iprot):
11583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11585
      return
11586
    iprot.readStructBegin()
11587
    while True:
11588
      (fname, ftype, fid) = iprot.readFieldBegin()
11589
      if ftype == TType.STOP:
11590
        break
11591
      if fid == 0:
11592
        if ftype == TType.LIST:
11593
          self.success = []
6512 kshitij.so 11594
          (_etype222, _size219) = iprot.readListBegin()
11595
          for _i223 in xrange(_size219):
11596
            _elem224 = ProductNotificationRequest()
11597
            _elem224.read(iprot)
11598
            self.success.append(_elem224)
5944 mandeep.dh 11599
          iprot.readListEnd()
11600
        else:
11601
          iprot.skip(ftype)
11602
      else:
11603
        iprot.skip(ftype)
11604
      iprot.readFieldEnd()
11605
    iprot.readStructEnd()
11606
 
11607
  def write(self, oprot):
11608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11610
      return
11611
    oprot.writeStructBegin('getProductNotifications_result')
11612
    if self.success is not None:
11613
      oprot.writeFieldBegin('success', TType.LIST, 0)
11614
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11615
      for iter225 in self.success:
11616
        iter225.write(oprot)
5944 mandeep.dh 11617
      oprot.writeListEnd()
11618
      oprot.writeFieldEnd()
11619
    oprot.writeFieldStop()
11620
    oprot.writeStructEnd()
11621
 
11622
  def validate(self):
11623
    return
11624
 
11625
 
11626
  def __repr__(self):
11627
    L = ['%s=%r' % (key, value)
11628
      for key, value in self.__dict__.iteritems()]
11629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11630
 
11631
  def __eq__(self, other):
11632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11633
 
11634
  def __ne__(self, other):
11635
    return not (self == other)
11636
 
11637
class getProductNotificationRequestCount_args:
11638
  """
11639
  Attributes:
11640
   - startDateTime
11641
  """
11642
 
11643
  thrift_spec = (
11644
    None, # 0
11645
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11646
  )
11647
 
11648
  def __init__(self, startDateTime=None,):
11649
    self.startDateTime = startDateTime
11650
 
11651
  def read(self, iprot):
11652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11654
      return
11655
    iprot.readStructBegin()
11656
    while True:
11657
      (fname, ftype, fid) = iprot.readFieldBegin()
11658
      if ftype == TType.STOP:
11659
        break
11660
      if fid == 1:
11661
        if ftype == TType.I64:
11662
          self.startDateTime = iprot.readI64();
11663
        else:
11664
          iprot.skip(ftype)
11665
      else:
11666
        iprot.skip(ftype)
11667
      iprot.readFieldEnd()
11668
    iprot.readStructEnd()
11669
 
11670
  def write(self, oprot):
11671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11673
      return
11674
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
11675
    if self.startDateTime is not None:
11676
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11677
      oprot.writeI64(self.startDateTime)
11678
      oprot.writeFieldEnd()
11679
    oprot.writeFieldStop()
11680
    oprot.writeStructEnd()
11681
 
11682
  def validate(self):
11683
    return
11684
 
11685
 
11686
  def __repr__(self):
11687
    L = ['%s=%r' % (key, value)
11688
      for key, value in self.__dict__.iteritems()]
11689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11690
 
11691
  def __eq__(self, other):
11692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11693
 
11694
  def __ne__(self, other):
11695
    return not (self == other)
11696
 
11697
class getProductNotificationRequestCount_result:
11698
  """
11699
  Attributes:
11700
   - success
11701
  """
11702
 
11703
  thrift_spec = (
11704
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
11705
  )
11706
 
11707
  def __init__(self, success=None,):
11708
    self.success = success
11709
 
11710
  def read(self, iprot):
11711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11713
      return
11714
    iprot.readStructBegin()
11715
    while True:
11716
      (fname, ftype, fid) = iprot.readFieldBegin()
11717
      if ftype == TType.STOP:
11718
        break
11719
      if fid == 0:
11720
        if ftype == TType.LIST:
11721
          self.success = []
6512 kshitij.so 11722
          (_etype229, _size226) = iprot.readListBegin()
11723
          for _i230 in xrange(_size226):
11724
            _elem231 = ProductNotificationRequestCount()
11725
            _elem231.read(iprot)
11726
            self.success.append(_elem231)
5944 mandeep.dh 11727
          iprot.readListEnd()
11728
        else:
11729
          iprot.skip(ftype)
11730
      else:
11731
        iprot.skip(ftype)
11732
      iprot.readFieldEnd()
11733
    iprot.readStructEnd()
11734
 
11735
  def write(self, oprot):
11736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11738
      return
11739
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
11740
    if self.success is not None:
11741
      oprot.writeFieldBegin('success', TType.LIST, 0)
11742
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11743
      for iter232 in self.success:
11744
        iter232.write(oprot)
5944 mandeep.dh 11745
      oprot.writeListEnd()
11746
      oprot.writeFieldEnd()
11747
    oprot.writeFieldStop()
11748
    oprot.writeStructEnd()
11749
 
11750
  def validate(self):
11751
    return
11752
 
11753
 
11754
  def __repr__(self):
11755
    L = ['%s=%r' % (key, value)
11756
      for key, value in self.__dict__.iteritems()]
11757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11758
 
11759
  def __eq__(self, other):
11760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11761
 
11762
  def __ne__(self, other):
11763
    return not (self == other)
11764
 
11765
class addAuthorizationLog_args:
11766
  """
11767
  Attributes:
11768
   - itemId
11769
   - username
11770
   - reason
11771
  """
11772
 
11773
  thrift_spec = (
11774
    None, # 0
11775
    (1, TType.I64, 'itemId', None, None, ), # 1
11776
    (2, TType.STRING, 'username', None, None, ), # 2
11777
    (3, TType.STRING, 'reason', None, None, ), # 3
11778
  )
11779
 
11780
  def __init__(self, itemId=None, username=None, reason=None,):
11781
    self.itemId = itemId
11782
    self.username = username
11783
    self.reason = reason
11784
 
11785
  def read(self, iprot):
11786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11788
      return
11789
    iprot.readStructBegin()
11790
    while True:
11791
      (fname, ftype, fid) = iprot.readFieldBegin()
11792
      if ftype == TType.STOP:
11793
        break
11794
      if fid == 1:
11795
        if ftype == TType.I64:
11796
          self.itemId = iprot.readI64();
11797
        else:
11798
          iprot.skip(ftype)
11799
      elif fid == 2:
11800
        if ftype == TType.STRING:
11801
          self.username = iprot.readString();
11802
        else:
11803
          iprot.skip(ftype)
11804
      elif fid == 3:
11805
        if ftype == TType.STRING:
11806
          self.reason = iprot.readString();
11807
        else:
11808
          iprot.skip(ftype)
11809
      else:
11810
        iprot.skip(ftype)
11811
      iprot.readFieldEnd()
11812
    iprot.readStructEnd()
11813
 
11814
  def write(self, oprot):
11815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11817
      return
11818
    oprot.writeStructBegin('addAuthorizationLog_args')
11819
    if self.itemId is not None:
11820
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11821
      oprot.writeI64(self.itemId)
11822
      oprot.writeFieldEnd()
11823
    if self.username is not None:
11824
      oprot.writeFieldBegin('username', TType.STRING, 2)
11825
      oprot.writeString(self.username)
11826
      oprot.writeFieldEnd()
11827
    if self.reason is not None:
11828
      oprot.writeFieldBegin('reason', TType.STRING, 3)
11829
      oprot.writeString(self.reason)
11830
      oprot.writeFieldEnd()
11831
    oprot.writeFieldStop()
11832
    oprot.writeStructEnd()
11833
 
11834
  def validate(self):
11835
    return
11836
 
11837
 
11838
  def __repr__(self):
11839
    L = ['%s=%r' % (key, value)
11840
      for key, value in self.__dict__.iteritems()]
11841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11842
 
11843
  def __eq__(self, other):
11844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11845
 
11846
  def __ne__(self, other):
11847
    return not (self == other)
11848
 
11849
class addAuthorizationLog_result:
11850
  """
11851
  Attributes:
11852
   - success
11853
   - cex
11854
  """
11855
 
11856
  thrift_spec = (
11857
    (0, TType.BOOL, 'success', None, None, ), # 0
11858
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11859
  )
11860
 
11861
  def __init__(self, success=None, cex=None,):
11862
    self.success = success
11863
    self.cex = cex
11864
 
11865
  def read(self, iprot):
11866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11868
      return
11869
    iprot.readStructBegin()
11870
    while True:
11871
      (fname, ftype, fid) = iprot.readFieldBegin()
11872
      if ftype == TType.STOP:
11873
        break
11874
      if fid == 0:
11875
        if ftype == TType.BOOL:
11876
          self.success = iprot.readBool();
11877
        else:
11878
          iprot.skip(ftype)
11879
      elif fid == 1:
11880
        if ftype == TType.STRUCT:
11881
          self.cex = CatalogServiceException()
11882
          self.cex.read(iprot)
11883
        else:
11884
          iprot.skip(ftype)
11885
      else:
11886
        iprot.skip(ftype)
11887
      iprot.readFieldEnd()
11888
    iprot.readStructEnd()
11889
 
11890
  def write(self, oprot):
11891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11893
      return
11894
    oprot.writeStructBegin('addAuthorizationLog_result')
11895
    if self.success is not None:
11896
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11897
      oprot.writeBool(self.success)
11898
      oprot.writeFieldEnd()
11899
    if self.cex is not None:
11900
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11901
      self.cex.write(oprot)
11902
      oprot.writeFieldEnd()
11903
    oprot.writeFieldStop()
11904
    oprot.writeStructEnd()
11905
 
11906
  def validate(self):
11907
    return
11908
 
11909
 
11910
  def __repr__(self):
11911
    L = ['%s=%r' % (key, value)
11912
      for key, value in self.__dict__.iteritems()]
11913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11914
 
11915
  def __eq__(self, other):
11916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11917
 
11918
  def __ne__(self, other):
11919
    return not (self == other)
11920
 
11921
class getClearanceSaleCatalogIds_args:
11922
 
11923
  thrift_spec = (
11924
  )
11925
 
11926
  def read(self, iprot):
11927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11929
      return
11930
    iprot.readStructBegin()
11931
    while True:
11932
      (fname, ftype, fid) = iprot.readFieldBegin()
11933
      if ftype == TType.STOP:
11934
        break
11935
      else:
11936
        iprot.skip(ftype)
11937
      iprot.readFieldEnd()
11938
    iprot.readStructEnd()
11939
 
11940
  def write(self, oprot):
11941
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11942
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11943
      return
11944
    oprot.writeStructBegin('getClearanceSaleCatalogIds_args')
11945
    oprot.writeFieldStop()
11946
    oprot.writeStructEnd()
11947
 
11948
  def validate(self):
11949
    return
11950
 
11951
 
11952
  def __repr__(self):
11953
    L = ['%s=%r' % (key, value)
11954
      for key, value in self.__dict__.iteritems()]
11955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11956
 
11957
  def __eq__(self, other):
11958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11959
 
11960
  def __ne__(self, other):
11961
    return not (self == other)
11962
 
11963
class getClearanceSaleCatalogIds_result:
11964
  """
11965
  Attributes:
11966
   - success
11967
   - cex
11968
  """
11969
 
11970
  thrift_spec = (
11971
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11972
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11973
  )
11974
 
11975
  def __init__(self, success=None, cex=None,):
11976
    self.success = success
11977
    self.cex = cex
11978
 
11979
  def read(self, iprot):
11980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11982
      return
11983
    iprot.readStructBegin()
11984
    while True:
11985
      (fname, ftype, fid) = iprot.readFieldBegin()
11986
      if ftype == TType.STOP:
11987
        break
11988
      if fid == 0:
11989
        if ftype == TType.LIST:
11990
          self.success = []
6512 kshitij.so 11991
          (_etype236, _size233) = iprot.readListBegin()
11992
          for _i237 in xrange(_size233):
11993
            _elem238 = iprot.readI64();
11994
            self.success.append(_elem238)
5944 mandeep.dh 11995
          iprot.readListEnd()
11996
        else:
11997
          iprot.skip(ftype)
11998
      elif fid == 1:
11999
        if ftype == TType.STRUCT:
12000
          self.cex = CatalogServiceException()
12001
          self.cex.read(iprot)
12002
        else:
12003
          iprot.skip(ftype)
12004
      else:
12005
        iprot.skip(ftype)
12006
      iprot.readFieldEnd()
12007
    iprot.readStructEnd()
12008
 
12009
  def write(self, oprot):
12010
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12011
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12012
      return
12013
    oprot.writeStructBegin('getClearanceSaleCatalogIds_result')
12014
    if self.success is not None:
12015
      oprot.writeFieldBegin('success', TType.LIST, 0)
12016
      oprot.writeListBegin(TType.I64, len(self.success))
6512 kshitij.so 12017
      for iter239 in self.success:
12018
        oprot.writeI64(iter239)
5944 mandeep.dh 12019
      oprot.writeListEnd()
12020
      oprot.writeFieldEnd()
12021
    if self.cex is not None:
12022
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12023
      self.cex.write(oprot)
12024
      oprot.writeFieldEnd()
12025
    oprot.writeFieldStop()
12026
    oprot.writeStructEnd()
12027
 
12028
  def validate(self):
12029
    return
12030
 
12031
 
12032
  def __repr__(self):
12033
    L = ['%s=%r' % (key, value)
12034
      for key, value in self.__dict__.iteritems()]
12035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12036
 
12037
  def __eq__(self, other):
12038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12039
 
12040
  def __ne__(self, other):
12041
    return not (self == other)
12042
 
12043
class addupdateVoucherForItem_args:
12044
  """
12045
  Attributes:
12046
   - catalog_item_id
12047
   - voucherType
12048
   - voucherAmount
12049
  """
12050
 
12051
  thrift_spec = (
12052
    None, # 0
12053
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12054
    (2, TType.I64, 'voucherType', None, None, ), # 2
12055
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
12056
  )
12057
 
12058
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
12059
    self.catalog_item_id = catalog_item_id
12060
    self.voucherType = voucherType
12061
    self.voucherAmount = voucherAmount
12062
 
12063
  def read(self, iprot):
12064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12066
      return
12067
    iprot.readStructBegin()
12068
    while True:
12069
      (fname, ftype, fid) = iprot.readFieldBegin()
12070
      if ftype == TType.STOP:
12071
        break
12072
      if fid == 1:
12073
        if ftype == TType.I64:
12074
          self.catalog_item_id = iprot.readI64();
12075
        else:
12076
          iprot.skip(ftype)
12077
      elif fid == 2:
12078
        if ftype == TType.I64:
12079
          self.voucherType = iprot.readI64();
12080
        else:
12081
          iprot.skip(ftype)
12082
      elif fid == 3:
12083
        if ftype == TType.I64:
12084
          self.voucherAmount = iprot.readI64();
12085
        else:
12086
          iprot.skip(ftype)
12087
      else:
12088
        iprot.skip(ftype)
12089
      iprot.readFieldEnd()
12090
    iprot.readStructEnd()
12091
 
12092
  def write(self, oprot):
12093
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12094
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12095
      return
12096
    oprot.writeStructBegin('addupdateVoucherForItem_args')
12097
    if self.catalog_item_id is not None:
12098
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12099
      oprot.writeI64(self.catalog_item_id)
12100
      oprot.writeFieldEnd()
12101
    if self.voucherType is not None:
12102
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12103
      oprot.writeI64(self.voucherType)
12104
      oprot.writeFieldEnd()
12105
    if self.voucherAmount is not None:
12106
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
12107
      oprot.writeI64(self.voucherAmount)
12108
      oprot.writeFieldEnd()
12109
    oprot.writeFieldStop()
12110
    oprot.writeStructEnd()
12111
 
12112
  def validate(self):
12113
    return
12114
 
12115
 
12116
  def __repr__(self):
12117
    L = ['%s=%r' % (key, value)
12118
      for key, value in self.__dict__.iteritems()]
12119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12120
 
12121
  def __eq__(self, other):
12122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12123
 
12124
  def __ne__(self, other):
12125
    return not (self == other)
12126
 
12127
class addupdateVoucherForItem_result:
12128
  """
12129
  Attributes:
12130
   - success
12131
   - cex
12132
  """
12133
 
12134
  thrift_spec = (
12135
    (0, TType.BOOL, 'success', None, None, ), # 0
12136
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12137
  )
12138
 
12139
  def __init__(self, success=None, cex=None,):
12140
    self.success = success
12141
    self.cex = cex
12142
 
12143
  def read(self, iprot):
12144
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12145
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12146
      return
12147
    iprot.readStructBegin()
12148
    while True:
12149
      (fname, ftype, fid) = iprot.readFieldBegin()
12150
      if ftype == TType.STOP:
12151
        break
12152
      if fid == 0:
12153
        if ftype == TType.BOOL:
12154
          self.success = iprot.readBool();
12155
        else:
12156
          iprot.skip(ftype)
12157
      elif fid == 1:
12158
        if ftype == TType.STRUCT:
12159
          self.cex = CatalogServiceException()
12160
          self.cex.read(iprot)
12161
        else:
12162
          iprot.skip(ftype)
12163
      else:
12164
        iprot.skip(ftype)
12165
      iprot.readFieldEnd()
12166
    iprot.readStructEnd()
12167
 
12168
  def write(self, oprot):
12169
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12170
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12171
      return
12172
    oprot.writeStructBegin('addupdateVoucherForItem_result')
12173
    if self.success is not None:
12174
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12175
      oprot.writeBool(self.success)
12176
      oprot.writeFieldEnd()
12177
    if self.cex is not None:
12178
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12179
      self.cex.write(oprot)
12180
      oprot.writeFieldEnd()
12181
    oprot.writeFieldStop()
12182
    oprot.writeStructEnd()
12183
 
12184
  def validate(self):
12185
    return
12186
 
12187
 
12188
  def __repr__(self):
12189
    L = ['%s=%r' % (key, value)
12190
      for key, value in self.__dict__.iteritems()]
12191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12192
 
12193
  def __eq__(self, other):
12194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12195
 
12196
  def __ne__(self, other):
12197
    return not (self == other)
12198
 
12199
class deleteVoucherForItem_args:
12200
  """
12201
  Attributes:
12202
   - catalog_item_id
12203
   - voucherType
12204
  """
12205
 
12206
  thrift_spec = (
12207
    None, # 0
12208
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12209
    (2, TType.I64, 'voucherType', None, None, ), # 2
12210
  )
12211
 
12212
  def __init__(self, catalog_item_id=None, voucherType=None,):
12213
    self.catalog_item_id = catalog_item_id
12214
    self.voucherType = voucherType
12215
 
12216
  def read(self, iprot):
12217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12219
      return
12220
    iprot.readStructBegin()
12221
    while True:
12222
      (fname, ftype, fid) = iprot.readFieldBegin()
12223
      if ftype == TType.STOP:
12224
        break
12225
      if fid == 1:
12226
        if ftype == TType.I64:
12227
          self.catalog_item_id = iprot.readI64();
12228
        else:
12229
          iprot.skip(ftype)
12230
      elif fid == 2:
12231
        if ftype == TType.I64:
12232
          self.voucherType = iprot.readI64();
12233
        else:
12234
          iprot.skip(ftype)
12235
      else:
12236
        iprot.skip(ftype)
12237
      iprot.readFieldEnd()
12238
    iprot.readStructEnd()
12239
 
12240
  def write(self, oprot):
12241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12243
      return
12244
    oprot.writeStructBegin('deleteVoucherForItem_args')
12245
    if self.catalog_item_id is not None:
12246
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12247
      oprot.writeI64(self.catalog_item_id)
12248
      oprot.writeFieldEnd()
12249
    if self.voucherType is not None:
12250
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12251
      oprot.writeI64(self.voucherType)
12252
      oprot.writeFieldEnd()
12253
    oprot.writeFieldStop()
12254
    oprot.writeStructEnd()
12255
 
12256
  def validate(self):
12257
    return
12258
 
12259
 
12260
  def __repr__(self):
12261
    L = ['%s=%r' % (key, value)
12262
      for key, value in self.__dict__.iteritems()]
12263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12264
 
12265
  def __eq__(self, other):
12266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12267
 
12268
  def __ne__(self, other):
12269
    return not (self == other)
12270
 
12271
class deleteVoucherForItem_result:
12272
  """
12273
  Attributes:
12274
   - success
12275
   - cex
12276
  """
12277
 
12278
  thrift_spec = (
12279
    (0, TType.BOOL, 'success', None, None, ), # 0
12280
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12281
  )
12282
 
12283
  def __init__(self, success=None, cex=None,):
12284
    self.success = success
12285
    self.cex = cex
12286
 
12287
  def read(self, iprot):
12288
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12289
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12290
      return
12291
    iprot.readStructBegin()
12292
    while True:
12293
      (fname, ftype, fid) = iprot.readFieldBegin()
12294
      if ftype == TType.STOP:
12295
        break
12296
      if fid == 0:
12297
        if ftype == TType.BOOL:
12298
          self.success = iprot.readBool();
12299
        else:
12300
          iprot.skip(ftype)
12301
      elif fid == 1:
12302
        if ftype == TType.STRUCT:
12303
          self.cex = CatalogServiceException()
12304
          self.cex.read(iprot)
12305
        else:
12306
          iprot.skip(ftype)
12307
      else:
12308
        iprot.skip(ftype)
12309
      iprot.readFieldEnd()
12310
    iprot.readStructEnd()
12311
 
12312
  def write(self, oprot):
12313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12315
      return
12316
    oprot.writeStructBegin('deleteVoucherForItem_result')
12317
    if self.success is not None:
12318
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12319
      oprot.writeBool(self.success)
12320
      oprot.writeFieldEnd()
12321
    if self.cex is not None:
12322
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12323
      self.cex.write(oprot)
12324
      oprot.writeFieldEnd()
12325
    oprot.writeFieldStop()
12326
    oprot.writeStructEnd()
12327
 
12328
  def validate(self):
12329
    return
12330
 
12331
 
12332
  def __repr__(self):
12333
    L = ['%s=%r' % (key, value)
12334
      for key, value in self.__dict__.iteritems()]
12335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12336
 
12337
  def __eq__(self, other):
12338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12339
 
12340
  def __ne__(self, other):
12341
    return not (self == other)
12342
 
12343
class getVoucherAmount_args:
12344
  """
12345
  Attributes:
12346
   - itemId
12347
   - voucherType
12348
  """
12349
 
12350
  thrift_spec = (
12351
    None, # 0
12352
    (1, TType.I64, 'itemId', None, None, ), # 1
12353
    (2, TType.I64, 'voucherType', None, None, ), # 2
12354
  )
12355
 
12356
  def __init__(self, itemId=None, voucherType=None,):
12357
    self.itemId = itemId
12358
    self.voucherType = voucherType
12359
 
12360
  def read(self, iprot):
12361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12363
      return
12364
    iprot.readStructBegin()
12365
    while True:
12366
      (fname, ftype, fid) = iprot.readFieldBegin()
12367
      if ftype == TType.STOP:
12368
        break
12369
      if fid == 1:
12370
        if ftype == TType.I64:
12371
          self.itemId = iprot.readI64();
12372
        else:
12373
          iprot.skip(ftype)
12374
      elif fid == 2:
12375
        if ftype == TType.I64:
12376
          self.voucherType = iprot.readI64();
12377
        else:
12378
          iprot.skip(ftype)
12379
      else:
12380
        iprot.skip(ftype)
12381
      iprot.readFieldEnd()
12382
    iprot.readStructEnd()
12383
 
12384
  def write(self, oprot):
12385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12387
      return
12388
    oprot.writeStructBegin('getVoucherAmount_args')
12389
    if self.itemId is not None:
12390
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12391
      oprot.writeI64(self.itemId)
12392
      oprot.writeFieldEnd()
12393
    if self.voucherType is not None:
12394
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12395
      oprot.writeI64(self.voucherType)
12396
      oprot.writeFieldEnd()
12397
    oprot.writeFieldStop()
12398
    oprot.writeStructEnd()
12399
 
12400
  def validate(self):
12401
    return
12402
 
12403
 
12404
  def __repr__(self):
12405
    L = ['%s=%r' % (key, value)
12406
      for key, value in self.__dict__.iteritems()]
12407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12408
 
12409
  def __eq__(self, other):
12410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12411
 
12412
  def __ne__(self, other):
12413
    return not (self == other)
12414
 
12415
class getVoucherAmount_result:
12416
  """
12417
  Attributes:
12418
   - success
12419
  """
12420
 
12421
  thrift_spec = (
12422
    (0, TType.I64, 'success', None, None, ), # 0
12423
  )
12424
 
12425
  def __init__(self, success=None,):
12426
    self.success = success
12427
 
12428
  def read(self, iprot):
12429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12431
      return
12432
    iprot.readStructBegin()
12433
    while True:
12434
      (fname, ftype, fid) = iprot.readFieldBegin()
12435
      if ftype == TType.STOP:
12436
        break
12437
      if fid == 0:
12438
        if ftype == TType.I64:
12439
          self.success = iprot.readI64();
12440
        else:
12441
          iprot.skip(ftype)
12442
      else:
12443
        iprot.skip(ftype)
12444
      iprot.readFieldEnd()
12445
    iprot.readStructEnd()
12446
 
12447
  def write(self, oprot):
12448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12450
      return
12451
    oprot.writeStructBegin('getVoucherAmount_result')
12452
    if self.success is not None:
12453
      oprot.writeFieldBegin('success', TType.I64, 0)
12454
      oprot.writeI64(self.success)
12455
      oprot.writeFieldEnd()
12456
    oprot.writeFieldStop()
12457
    oprot.writeStructEnd()
12458
 
12459
  def validate(self):
12460
    return
12461
 
12462
 
12463
  def __repr__(self):
12464
    L = ['%s=%r' % (key, value)
12465
      for key, value in self.__dict__.iteritems()]
12466
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12467
 
12468
  def __eq__(self, other):
12469
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12470
 
12471
  def __ne__(self, other):
12472
    return not (self == other)
12473
 
12474
class getAllItemVouchers_args:
12475
  """
12476
  Attributes:
12477
   - itemId
12478
  """
12479
 
12480
  thrift_spec = (
12481
    None, # 0
12482
    (1, TType.I64, 'itemId', None, None, ), # 1
12483
  )
12484
 
12485
  def __init__(self, itemId=None,):
12486
    self.itemId = itemId
12487
 
12488
  def read(self, iprot):
12489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12491
      return
12492
    iprot.readStructBegin()
12493
    while True:
12494
      (fname, ftype, fid) = iprot.readFieldBegin()
12495
      if ftype == TType.STOP:
12496
        break
12497
      if fid == 1:
12498
        if ftype == TType.I64:
12499
          self.itemId = iprot.readI64();
12500
        else:
12501
          iprot.skip(ftype)
12502
      else:
12503
        iprot.skip(ftype)
12504
      iprot.readFieldEnd()
12505
    iprot.readStructEnd()
12506
 
12507
  def write(self, oprot):
12508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12510
      return
12511
    oprot.writeStructBegin('getAllItemVouchers_args')
12512
    if self.itemId is not None:
12513
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12514
      oprot.writeI64(self.itemId)
12515
      oprot.writeFieldEnd()
12516
    oprot.writeFieldStop()
12517
    oprot.writeStructEnd()
12518
 
12519
  def validate(self):
12520
    return
12521
 
12522
 
12523
  def __repr__(self):
12524
    L = ['%s=%r' % (key, value)
12525
      for key, value in self.__dict__.iteritems()]
12526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12527
 
12528
  def __eq__(self, other):
12529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12530
 
12531
  def __ne__(self, other):
12532
    return not (self == other)
12533
 
12534
class getAllItemVouchers_result:
12535
  """
12536
  Attributes:
12537
   - success
12538
  """
12539
 
12540
  thrift_spec = (
12541
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
12542
  )
12543
 
12544
  def __init__(self, success=None,):
12545
    self.success = success
12546
 
12547
  def read(self, iprot):
12548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12550
      return
12551
    iprot.readStructBegin()
12552
    while True:
12553
      (fname, ftype, fid) = iprot.readFieldBegin()
12554
      if ftype == TType.STOP:
12555
        break
12556
      if fid == 0:
12557
        if ftype == TType.LIST:
12558
          self.success = []
6512 kshitij.so 12559
          (_etype243, _size240) = iprot.readListBegin()
12560
          for _i244 in xrange(_size240):
12561
            _elem245 = VoucherItemMapping()
12562
            _elem245.read(iprot)
12563
            self.success.append(_elem245)
5944 mandeep.dh 12564
          iprot.readListEnd()
12565
        else:
12566
          iprot.skip(ftype)
12567
      else:
12568
        iprot.skip(ftype)
12569
      iprot.readFieldEnd()
12570
    iprot.readStructEnd()
12571
 
12572
  def write(self, oprot):
12573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12575
      return
12576
    oprot.writeStructBegin('getAllItemVouchers_result')
12577
    if self.success is not None:
12578
      oprot.writeFieldBegin('success', TType.LIST, 0)
12579
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 12580
      for iter246 in self.success:
12581
        iter246.write(oprot)
5944 mandeep.dh 12582
      oprot.writeListEnd()
12583
      oprot.writeFieldEnd()
12584
    oprot.writeFieldStop()
12585
    oprot.writeStructEnd()
12586
 
12587
  def validate(self):
12588
    return
12589
 
12590
 
12591
  def __repr__(self):
12592
    L = ['%s=%r' % (key, value)
12593
      for key, value in self.__dict__.iteritems()]
12594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12595
 
12596
  def __eq__(self, other):
12597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12598
 
12599
  def __ne__(self, other):
12600
    return not (self == other)
12601
 
12602
class isValidCatalogItemId_args:
12603
  """
12604
  Attributes:
12605
   - catalog_item_id
12606
  """
12607
 
12608
  thrift_spec = (
12609
    None, # 0
12610
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12611
  )
12612
 
12613
  def __init__(self, catalog_item_id=None,):
12614
    self.catalog_item_id = catalog_item_id
12615
 
12616
  def read(self, iprot):
12617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12619
      return
12620
    iprot.readStructBegin()
12621
    while True:
12622
      (fname, ftype, fid) = iprot.readFieldBegin()
12623
      if ftype == TType.STOP:
12624
        break
12625
      if fid == 1:
12626
        if ftype == TType.I64:
12627
          self.catalog_item_id = iprot.readI64();
12628
        else:
12629
          iprot.skip(ftype)
12630
      else:
12631
        iprot.skip(ftype)
12632
      iprot.readFieldEnd()
12633
    iprot.readStructEnd()
12634
 
12635
  def write(self, oprot):
12636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12638
      return
12639
    oprot.writeStructBegin('isValidCatalogItemId_args')
12640
    if self.catalog_item_id is not None:
12641
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12642
      oprot.writeI64(self.catalog_item_id)
12643
      oprot.writeFieldEnd()
12644
    oprot.writeFieldStop()
12645
    oprot.writeStructEnd()
12646
 
12647
  def validate(self):
12648
    return
12649
 
12650
 
12651
  def __repr__(self):
12652
    L = ['%s=%r' % (key, value)
12653
      for key, value in self.__dict__.iteritems()]
12654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12655
 
12656
  def __eq__(self, other):
12657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12658
 
12659
  def __ne__(self, other):
12660
    return not (self == other)
12661
 
12662
class isValidCatalogItemId_result:
12663
  """
12664
  Attributes:
12665
   - success
12666
  """
12667
 
12668
  thrift_spec = (
12669
    (0, TType.BOOL, 'success', None, None, ), # 0
12670
  )
12671
 
12672
  def __init__(self, success=None,):
12673
    self.success = success
12674
 
12675
  def read(self, iprot):
12676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12678
      return
12679
    iprot.readStructBegin()
12680
    while True:
12681
      (fname, ftype, fid) = iprot.readFieldBegin()
12682
      if ftype == TType.STOP:
12683
        break
12684
      if fid == 0:
12685
        if ftype == TType.BOOL:
12686
          self.success = iprot.readBool();
12687
        else:
12688
          iprot.skip(ftype)
12689
      else:
12690
        iprot.skip(ftype)
12691
      iprot.readFieldEnd()
12692
    iprot.readStructEnd()
12693
 
12694
  def write(self, oprot):
12695
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12696
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12697
      return
12698
    oprot.writeStructBegin('isValidCatalogItemId_result')
12699
    if self.success is not None:
12700
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12701
      oprot.writeBool(self.success)
12702
      oprot.writeFieldEnd()
12703
    oprot.writeFieldStop()
12704
    oprot.writeStructEnd()
12705
 
12706
  def validate(self):
12707
    return
12708
 
12709
 
12710
  def __repr__(self):
12711
    L = ['%s=%r' % (key, value)
12712
      for key, value in self.__dict__.iteritems()]
12713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12714
 
12715
  def __eq__(self, other):
12716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12717
 
12718
  def __ne__(self, other):
12719
    return not (self == other)
6039 amit.gupta 12720
 
12721
class getVatPercentageForItem_args:
12722
  """
12723
  Attributes:
12724
   - itemId
12725
   - price
12726
  """
12727
 
12728
  thrift_spec = (
12729
    None, # 0
12730
    (1, TType.I64, 'itemId', None, None, ), # 1
12731
    (2, TType.DOUBLE, 'price', None, None, ), # 2
12732
  )
12733
 
12734
  def __init__(self, itemId=None, price=None,):
12735
    self.itemId = itemId
12736
    self.price = price
12737
 
12738
  def read(self, iprot):
12739
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12740
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12741
      return
12742
    iprot.readStructBegin()
12743
    while True:
12744
      (fname, ftype, fid) = iprot.readFieldBegin()
12745
      if ftype == TType.STOP:
12746
        break
12747
      if fid == 1:
12748
        if ftype == TType.I64:
12749
          self.itemId = iprot.readI64();
12750
        else:
12751
          iprot.skip(ftype)
12752
      elif fid == 2:
12753
        if ftype == TType.DOUBLE:
12754
          self.price = iprot.readDouble();
12755
        else:
12756
          iprot.skip(ftype)
12757
      else:
12758
        iprot.skip(ftype)
12759
      iprot.readFieldEnd()
12760
    iprot.readStructEnd()
12761
 
12762
  def write(self, oprot):
12763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12765
      return
12766
    oprot.writeStructBegin('getVatPercentageForItem_args')
12767
    if self.itemId is not None:
12768
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12769
      oprot.writeI64(self.itemId)
12770
      oprot.writeFieldEnd()
12771
    if self.price is not None:
12772
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
12773
      oprot.writeDouble(self.price)
12774
      oprot.writeFieldEnd()
12775
    oprot.writeFieldStop()
12776
    oprot.writeStructEnd()
12777
 
12778
  def validate(self):
12779
    return
12780
 
12781
 
12782
  def __repr__(self):
12783
    L = ['%s=%r' % (key, value)
12784
      for key, value in self.__dict__.iteritems()]
12785
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12786
 
12787
  def __eq__(self, other):
12788
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12789
 
12790
  def __ne__(self, other):
12791
    return not (self == other)
12792
 
12793
class getVatPercentageForItem_result:
12794
  """
12795
  Attributes:
12796
   - success
12797
  """
12798
 
12799
  thrift_spec = (
12800
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12801
  )
12802
 
12803
  def __init__(self, success=None,):
12804
    self.success = success
12805
 
12806
  def read(self, iprot):
12807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12809
      return
12810
    iprot.readStructBegin()
12811
    while True:
12812
      (fname, ftype, fid) = iprot.readFieldBegin()
12813
      if ftype == TType.STOP:
12814
        break
12815
      if fid == 0:
12816
        if ftype == TType.DOUBLE:
12817
          self.success = iprot.readDouble();
12818
        else:
12819
          iprot.skip(ftype)
12820
      else:
12821
        iprot.skip(ftype)
12822
      iprot.readFieldEnd()
12823
    iprot.readStructEnd()
12824
 
12825
  def write(self, oprot):
12826
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12827
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12828
      return
12829
    oprot.writeStructBegin('getVatPercentageForItem_result')
12830
    if self.success is not None:
12831
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12832
      oprot.writeDouble(self.success)
12833
      oprot.writeFieldEnd()
12834
    oprot.writeFieldStop()
12835
    oprot.writeStructEnd()
12836
 
12837
  def validate(self):
12838
    return
12839
 
12840
 
12841
  def __repr__(self):
12842
    L = ['%s=%r' % (key, value)
12843
      for key, value in self.__dict__.iteritems()]
12844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12845
 
12846
  def __eq__(self, other):
12847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12848
 
12849
  def __ne__(self, other):
12850
    return not (self == other)
12851
 
12852
class getVatAmountForItem_args:
12853
  """
12854
  Attributes:
12855
   - itemId
12856
   - price
12857
  """
12858
 
12859
  thrift_spec = (
12860
    None, # 0
12861
    (1, TType.I64, 'itemId', None, None, ), # 1
12862
    (2, TType.DOUBLE, 'price', None, None, ), # 2
12863
  )
12864
 
12865
  def __init__(self, itemId=None, price=None,):
12866
    self.itemId = itemId
12867
    self.price = price
12868
 
12869
  def read(self, iprot):
12870
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12871
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12872
      return
12873
    iprot.readStructBegin()
12874
    while True:
12875
      (fname, ftype, fid) = iprot.readFieldBegin()
12876
      if ftype == TType.STOP:
12877
        break
12878
      if fid == 1:
12879
        if ftype == TType.I64:
12880
          self.itemId = iprot.readI64();
12881
        else:
12882
          iprot.skip(ftype)
12883
      elif fid == 2:
12884
        if ftype == TType.DOUBLE:
12885
          self.price = iprot.readDouble();
12886
        else:
12887
          iprot.skip(ftype)
12888
      else:
12889
        iprot.skip(ftype)
12890
      iprot.readFieldEnd()
12891
    iprot.readStructEnd()
12892
 
12893
  def write(self, oprot):
12894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12896
      return
12897
    oprot.writeStructBegin('getVatAmountForItem_args')
12898
    if self.itemId is not None:
12899
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12900
      oprot.writeI64(self.itemId)
12901
      oprot.writeFieldEnd()
12902
    if self.price is not None:
12903
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
12904
      oprot.writeDouble(self.price)
12905
      oprot.writeFieldEnd()
12906
    oprot.writeFieldStop()
12907
    oprot.writeStructEnd()
12908
 
12909
  def validate(self):
12910
    return
12911
 
12912
 
12913
  def __repr__(self):
12914
    L = ['%s=%r' % (key, value)
12915
      for key, value in self.__dict__.iteritems()]
12916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12917
 
12918
  def __eq__(self, other):
12919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12920
 
12921
  def __ne__(self, other):
12922
    return not (self == other)
12923
 
12924
class getVatAmountForItem_result:
12925
  """
12926
  Attributes:
12927
   - success
12928
  """
12929
 
12930
  thrift_spec = (
12931
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12932
  )
12933
 
12934
  def __init__(self, success=None,):
12935
    self.success = success
12936
 
12937
  def read(self, iprot):
12938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12940
      return
12941
    iprot.readStructBegin()
12942
    while True:
12943
      (fname, ftype, fid) = iprot.readFieldBegin()
12944
      if ftype == TType.STOP:
12945
        break
12946
      if fid == 0:
12947
        if ftype == TType.DOUBLE:
12948
          self.success = iprot.readDouble();
12949
        else:
12950
          iprot.skip(ftype)
12951
      else:
12952
        iprot.skip(ftype)
12953
      iprot.readFieldEnd()
12954
    iprot.readStructEnd()
12955
 
12956
  def write(self, oprot):
12957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12959
      return
12960
    oprot.writeStructBegin('getVatAmountForItem_result')
12961
    if self.success is not None:
12962
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12963
      oprot.writeDouble(self.success)
12964
      oprot.writeFieldEnd()
12965
    oprot.writeFieldStop()
12966
    oprot.writeStructEnd()
12967
 
12968
  def validate(self):
12969
    return
12970
 
12971
 
12972
  def __repr__(self):
12973
    L = ['%s=%r' % (key, value)
12974
      for key, value in self.__dict__.iteritems()]
12975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12976
 
12977
  def __eq__(self, other):
12978
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12979
 
12980
  def __ne__(self, other):
12981
    return not (self == other)
6531 vikram.rag 12982
 
12983
class getAllIgnoredInventoryUpdateItemsList_args:
12984
  """
12985
  Attributes:
12986
   - offset
12987
   - limit
12988
  """
12989
 
12990
  thrift_spec = (
12991
    None, # 0
12992
    (1, TType.I32, 'offset', None, None, ), # 1
12993
    (2, TType.I32, 'limit', None, None, ), # 2
12994
  )
12995
 
12996
  def __init__(self, offset=None, limit=None,):
12997
    self.offset = offset
12998
    self.limit = limit
12999
 
13000
  def read(self, iprot):
13001
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13002
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13003
      return
13004
    iprot.readStructBegin()
13005
    while True:
13006
      (fname, ftype, fid) = iprot.readFieldBegin()
13007
      if ftype == TType.STOP:
13008
        break
13009
      if fid == 1:
13010
        if ftype == TType.I32:
13011
          self.offset = iprot.readI32();
13012
        else:
13013
          iprot.skip(ftype)
13014
      elif fid == 2:
13015
        if ftype == TType.I32:
13016
          self.limit = iprot.readI32();
13017
        else:
13018
          iprot.skip(ftype)
13019
      else:
13020
        iprot.skip(ftype)
13021
      iprot.readFieldEnd()
13022
    iprot.readStructEnd()
13023
 
13024
  def write(self, oprot):
13025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13027
      return
13028
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
13029
    if self.offset is not None:
13030
      oprot.writeFieldBegin('offset', TType.I32, 1)
13031
      oprot.writeI32(self.offset)
13032
      oprot.writeFieldEnd()
13033
    if self.limit is not None:
13034
      oprot.writeFieldBegin('limit', TType.I32, 2)
13035
      oprot.writeI32(self.limit)
13036
      oprot.writeFieldEnd()
13037
    oprot.writeFieldStop()
13038
    oprot.writeStructEnd()
13039
 
13040
  def validate(self):
13041
    return
13042
 
13043
 
13044
  def __repr__(self):
13045
    L = ['%s=%r' % (key, value)
13046
      for key, value in self.__dict__.iteritems()]
13047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13048
 
13049
  def __eq__(self, other):
13050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13051
 
13052
  def __ne__(self, other):
13053
    return not (self == other)
13054
 
13055
class getAllIgnoredInventoryUpdateItemsList_result:
13056
  """
13057
  Attributes:
13058
   - success
13059
  """
13060
 
13061
  thrift_spec = (
13062
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13063
  )
13064
 
13065
  def __init__(self, success=None,):
13066
    self.success = success
13067
 
13068
  def read(self, iprot):
13069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13071
      return
13072
    iprot.readStructBegin()
13073
    while True:
13074
      (fname, ftype, fid) = iprot.readFieldBegin()
13075
      if ftype == TType.STOP:
13076
        break
13077
      if fid == 0:
13078
        if ftype == TType.LIST:
13079
          self.success = []
13080
          (_etype250, _size247) = iprot.readListBegin()
13081
          for _i251 in xrange(_size247):
13082
            _elem252 = Item()
13083
            _elem252.read(iprot)
13084
            self.success.append(_elem252)
13085
          iprot.readListEnd()
13086
        else:
13087
          iprot.skip(ftype)
13088
      else:
13089
        iprot.skip(ftype)
13090
      iprot.readFieldEnd()
13091
    iprot.readStructEnd()
13092
 
13093
  def write(self, oprot):
13094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13096
      return
13097
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
13098
    if self.success is not None:
13099
      oprot.writeFieldBegin('success', TType.LIST, 0)
13100
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13101
      for iter253 in self.success:
13102
        iter253.write(oprot)
13103
      oprot.writeListEnd()
13104
      oprot.writeFieldEnd()
13105
    oprot.writeFieldStop()
13106
    oprot.writeStructEnd()
13107
 
13108
  def validate(self):
13109
    return
13110
 
13111
 
13112
  def __repr__(self):
13113
    L = ['%s=%r' % (key, value)
13114
      for key, value in self.__dict__.iteritems()]
13115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13116
 
13117
  def __eq__(self, other):
13118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13119
 
13120
  def __ne__(self, other):
13121
    return not (self == other)
6805 anupam.sin 13122
 
6821 amar.kumar 13123
class getAllAliveItems_args:
13124
 
13125
  thrift_spec = (
13126
  )
13127
 
13128
  def read(self, iprot):
13129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13131
      return
13132
    iprot.readStructBegin()
13133
    while True:
13134
      (fname, ftype, fid) = iprot.readFieldBegin()
13135
      if ftype == TType.STOP:
13136
        break
13137
      else:
13138
        iprot.skip(ftype)
13139
      iprot.readFieldEnd()
13140
    iprot.readStructEnd()
13141
 
13142
  def write(self, oprot):
13143
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13144
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13145
      return
13146
    oprot.writeStructBegin('getAllAliveItems_args')
13147
    oprot.writeFieldStop()
13148
    oprot.writeStructEnd()
13149
 
13150
  def validate(self):
13151
    return
13152
 
13153
 
13154
  def __repr__(self):
13155
    L = ['%s=%r' % (key, value)
13156
      for key, value in self.__dict__.iteritems()]
13157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13158
 
13159
  def __eq__(self, other):
13160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13161
 
13162
  def __ne__(self, other):
13163
    return not (self == other)
13164
 
13165
class getAllAliveItems_result:
13166
  """
13167
  Attributes:
13168
   - success
13169
  """
13170
 
13171
  thrift_spec = (
13172
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13173
  )
13174
 
13175
  def __init__(self, success=None,):
13176
    self.success = success
13177
 
13178
  def read(self, iprot):
13179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13181
      return
13182
    iprot.readStructBegin()
13183
    while True:
13184
      (fname, ftype, fid) = iprot.readFieldBegin()
13185
      if ftype == TType.STOP:
13186
        break
13187
      if fid == 0:
13188
        if ftype == TType.LIST:
13189
          self.success = []
13190
          (_etype257, _size254) = iprot.readListBegin()
13191
          for _i258 in xrange(_size254):
13192
            _elem259 = Item()
13193
            _elem259.read(iprot)
13194
            self.success.append(_elem259)
13195
          iprot.readListEnd()
13196
        else:
13197
          iprot.skip(ftype)
13198
      else:
13199
        iprot.skip(ftype)
13200
      iprot.readFieldEnd()
13201
    iprot.readStructEnd()
13202
 
13203
  def write(self, oprot):
13204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13206
      return
13207
    oprot.writeStructBegin('getAllAliveItems_result')
13208
    if self.success is not None:
13209
      oprot.writeFieldBegin('success', TType.LIST, 0)
13210
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13211
      for iter260 in self.success:
13212
        iter260.write(oprot)
13213
      oprot.writeListEnd()
13214
      oprot.writeFieldEnd()
13215
    oprot.writeFieldStop()
13216
    oprot.writeStructEnd()
13217
 
13218
  def validate(self):
13219
    return
13220
 
13221
 
13222
  def __repr__(self):
13223
    L = ['%s=%r' % (key, value)
13224
      for key, value in self.__dict__.iteritems()]
13225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13226
 
13227
  def __eq__(self, other):
13228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13229
 
13230
  def __ne__(self, other):
13231
    return not (self == other)
13232
 
6805 anupam.sin 13233
class getInsuranceAmount_args:
13234
  """
13235
  Attributes:
13236
   - itemId
13237
   - insurerId
13238
   - quantity
13239
  """
13240
 
13241
  thrift_spec = (
13242
    None, # 0
13243
    (1, TType.I64, 'itemId', None, None, ), # 1
13244
    (2, TType.I64, 'insurerId', None, None, ), # 2
13245
    (3, TType.I64, 'quantity', None, None, ), # 3
13246
  )
13247
 
13248
  def __init__(self, itemId=None, insurerId=None, quantity=None,):
13249
    self.itemId = itemId
13250
    self.insurerId = insurerId
13251
    self.quantity = quantity
13252
 
13253
  def read(self, iprot):
13254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13256
      return
13257
    iprot.readStructBegin()
13258
    while True:
13259
      (fname, ftype, fid) = iprot.readFieldBegin()
13260
      if ftype == TType.STOP:
13261
        break
13262
      if fid == 1:
13263
        if ftype == TType.I64:
13264
          self.itemId = iprot.readI64();
13265
        else:
13266
          iprot.skip(ftype)
13267
      elif fid == 2:
13268
        if ftype == TType.I64:
13269
          self.insurerId = iprot.readI64();
13270
        else:
13271
          iprot.skip(ftype)
13272
      elif fid == 3:
13273
        if ftype == TType.I64:
13274
          self.quantity = iprot.readI64();
13275
        else:
13276
          iprot.skip(ftype)
13277
      else:
13278
        iprot.skip(ftype)
13279
      iprot.readFieldEnd()
13280
    iprot.readStructEnd()
13281
 
13282
  def write(self, oprot):
13283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13285
      return
13286
    oprot.writeStructBegin('getInsuranceAmount_args')
13287
    if self.itemId is not None:
13288
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13289
      oprot.writeI64(self.itemId)
13290
      oprot.writeFieldEnd()
13291
    if self.insurerId is not None:
13292
      oprot.writeFieldBegin('insurerId', TType.I64, 2)
13293
      oprot.writeI64(self.insurerId)
13294
      oprot.writeFieldEnd()
13295
    if self.quantity is not None:
13296
      oprot.writeFieldBegin('quantity', TType.I64, 3)
13297
      oprot.writeI64(self.quantity)
13298
      oprot.writeFieldEnd()
13299
    oprot.writeFieldStop()
13300
    oprot.writeStructEnd()
13301
 
13302
  def validate(self):
13303
    return
13304
 
13305
 
13306
  def __repr__(self):
13307
    L = ['%s=%r' % (key, value)
13308
      for key, value in self.__dict__.iteritems()]
13309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13310
 
13311
  def __eq__(self, other):
13312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13313
 
13314
  def __ne__(self, other):
13315
    return not (self == other)
13316
 
13317
class getInsuranceAmount_result:
13318
  """
13319
  Attributes:
13320
   - success
13321
  """
13322
 
13323
  thrift_spec = (
13324
    (0, TType.I64, 'success', None, None, ), # 0
13325
  )
13326
 
13327
  def __init__(self, success=None,):
13328
    self.success = success
13329
 
13330
  def read(self, iprot):
13331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13333
      return
13334
    iprot.readStructBegin()
13335
    while True:
13336
      (fname, ftype, fid) = iprot.readFieldBegin()
13337
      if ftype == TType.STOP:
13338
        break
13339
      if fid == 0:
13340
        if ftype == TType.I64:
13341
          self.success = iprot.readI64();
13342
        else:
13343
          iprot.skip(ftype)
13344
      else:
13345
        iprot.skip(ftype)
13346
      iprot.readFieldEnd()
13347
    iprot.readStructEnd()
13348
 
13349
  def write(self, oprot):
13350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13352
      return
13353
    oprot.writeStructBegin('getInsuranceAmount_result')
13354
    if self.success is not None:
13355
      oprot.writeFieldBegin('success', TType.I64, 0)
13356
      oprot.writeI64(self.success)
13357
      oprot.writeFieldEnd()
13358
    oprot.writeFieldStop()
13359
    oprot.writeStructEnd()
13360
 
13361
  def validate(self):
13362
    return
13363
 
13364
 
13365
  def __repr__(self):
13366
    L = ['%s=%r' % (key, value)
13367
      for key, value in self.__dict__.iteritems()]
13368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13369
 
13370
  def __eq__(self, other):
13371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13372
 
13373
  def __ne__(self, other):
13374
    return not (self == other)
13375
 
13376
class getInsurer_args:
13377
  """
13378
  Attributes:
13379
   - insurerId
13380
  """
13381
 
13382
  thrift_spec = (
13383
    None, # 0
13384
    (1, TType.I64, 'insurerId', None, None, ), # 1
13385
  )
13386
 
13387
  def __init__(self, insurerId=None,):
13388
    self.insurerId = insurerId
13389
 
13390
  def read(self, iprot):
13391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13393
      return
13394
    iprot.readStructBegin()
13395
    while True:
13396
      (fname, ftype, fid) = iprot.readFieldBegin()
13397
      if ftype == TType.STOP:
13398
        break
13399
      if fid == 1:
13400
        if ftype == TType.I64:
13401
          self.insurerId = iprot.readI64();
13402
        else:
13403
          iprot.skip(ftype)
13404
      else:
13405
        iprot.skip(ftype)
13406
      iprot.readFieldEnd()
13407
    iprot.readStructEnd()
13408
 
13409
  def write(self, oprot):
13410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13412
      return
13413
    oprot.writeStructBegin('getInsurer_args')
13414
    if self.insurerId is not None:
13415
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
13416
      oprot.writeI64(self.insurerId)
13417
      oprot.writeFieldEnd()
13418
    oprot.writeFieldStop()
13419
    oprot.writeStructEnd()
13420
 
13421
  def validate(self):
13422
    return
13423
 
13424
 
13425
  def __repr__(self):
13426
    L = ['%s=%r' % (key, value)
13427
      for key, value in self.__dict__.iteritems()]
13428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13429
 
13430
  def __eq__(self, other):
13431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13432
 
13433
  def __ne__(self, other):
13434
    return not (self == other)
13435
 
13436
class getInsurer_result:
13437
  """
13438
  Attributes:
13439
   - success
13440
  """
13441
 
13442
  thrift_spec = (
13443
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
13444
  )
13445
 
13446
  def __init__(self, success=None,):
13447
    self.success = success
13448
 
13449
  def read(self, iprot):
13450
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13451
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13452
      return
13453
    iprot.readStructBegin()
13454
    while True:
13455
      (fname, ftype, fid) = iprot.readFieldBegin()
13456
      if ftype == TType.STOP:
13457
        break
13458
      if fid == 0:
13459
        if ftype == TType.STRUCT:
13460
          self.success = Insurer()
13461
          self.success.read(iprot)
13462
        else:
13463
          iprot.skip(ftype)
13464
      else:
13465
        iprot.skip(ftype)
13466
      iprot.readFieldEnd()
13467
    iprot.readStructEnd()
13468
 
13469
  def write(self, oprot):
13470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13472
      return
13473
    oprot.writeStructBegin('getInsurer_result')
13474
    if self.success is not None:
13475
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13476
      self.success.write(oprot)
13477
      oprot.writeFieldEnd()
13478
    oprot.writeFieldStop()
13479
    oprot.writeStructEnd()
13480
 
13481
  def validate(self):
13482
    return
13483
 
13484
 
13485
  def __repr__(self):
13486
    L = ['%s=%r' % (key, value)
13487
      for key, value in self.__dict__.iteritems()]
13488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13489
 
13490
  def __eq__(self, other):
13491
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13492
 
13493
  def __ne__(self, other):
13494
    return not (self == other)