Subversion Repositories SmartDukaan

Rev

Rev 6531 | Rev 6821 | 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
 
6805 anupam.sin 567
  def getInsuranceAmount(self, itemId, insurerId, quantity):
568
    """
569
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 570
 
6805 anupam.sin 571
    Parameters:
572
     - itemId
573
     - insurerId
574
     - quantity
575
    """
576
    pass
577
 
578
  def getInsurer(self, insurerId):
579
    """
580
    Parameters:
581
     - insurerId
582
    """
583
    pass
584
 
585
 
5944 mandeep.dh 586
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
587
  def __init__(self, iprot, oprot=None):
588
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
589
 
590
  def addItem(self, item):
591
    """
592
    Availability and inventory attributes
593
 
594
    Parameters:
595
     - item
596
    """
597
    self.send_addItem(item)
598
    return self.recv_addItem()
599
 
600
  def send_addItem(self, item):
601
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
602
    args = addItem_args()
603
    args.item = item
604
    args.write(self._oprot)
605
    self._oprot.writeMessageEnd()
606
    self._oprot.trans.flush()
607
 
608
  def recv_addItem(self, ):
609
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
610
    if mtype == TMessageType.EXCEPTION:
611
      x = TApplicationException()
612
      x.read(self._iprot)
613
      self._iprot.readMessageEnd()
614
      raise x
615
    result = addItem_result()
616
    result.read(self._iprot)
617
    self._iprot.readMessageEnd()
618
    if result.success is not None:
619
      return result.success
620
    if result.cex is not None:
621
      raise result.cex
622
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
623
 
624
  def updateItem(self, item):
625
    """
626
    Parameters:
627
     - item
628
    """
629
    self.send_updateItem(item)
630
    return self.recv_updateItem()
631
 
632
  def send_updateItem(self, item):
633
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
634
    args = updateItem_args()
635
    args.item = item
636
    args.write(self._oprot)
637
    self._oprot.writeMessageEnd()
638
    self._oprot.trans.flush()
639
 
640
  def recv_updateItem(self, ):
641
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
642
    if mtype == TMessageType.EXCEPTION:
643
      x = TApplicationException()
644
      x.read(self._iprot)
645
      self._iprot.readMessageEnd()
646
      raise x
647
    result = updateItem_result()
648
    result.read(self._iprot)
649
    self._iprot.readMessageEnd()
650
    if result.success is not None:
651
      return result.success
652
    if result.cex is not None:
653
      raise result.cex
654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
655
 
656
  def isActive(self, itemId):
657
    """
658
    Checks if the item given to the corresponding itemId is active. If it's active,
659
    whether it's risky and if it's risky, its inventory position.
660
 
661
    Parameters:
662
     - itemId
663
    """
664
    self.send_isActive(itemId)
665
    return self.recv_isActive()
666
 
667
  def send_isActive(self, itemId):
668
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
669
    args = isActive_args()
670
    args.itemId = itemId
671
    args.write(self._oprot)
672
    self._oprot.writeMessageEnd()
673
    self._oprot.trans.flush()
674
 
675
  def recv_isActive(self, ):
676
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
677
    if mtype == TMessageType.EXCEPTION:
678
      x = TApplicationException()
679
      x.read(self._iprot)
680
      self._iprot.readMessageEnd()
681
      raise x
682
    result = isActive_result()
683
    result.read(self._iprot)
684
    self._iprot.readMessageEnd()
685
    if result.success is not None:
686
      return result.success
687
    if result.isex is not None:
688
      raise result.isex
689
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
690
 
691
  def getItemStatusDescription(self, itemId):
692
    """
693
    Parameters:
694
     - itemId
695
    """
696
    self.send_getItemStatusDescription(itemId)
697
    return self.recv_getItemStatusDescription()
698
 
699
  def send_getItemStatusDescription(self, itemId):
700
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
701
    args = getItemStatusDescription_args()
702
    args.itemId = itemId
703
    args.write(self._oprot)
704
    self._oprot.writeMessageEnd()
705
    self._oprot.trans.flush()
706
 
707
  def recv_getItemStatusDescription(self, ):
708
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
709
    if mtype == TMessageType.EXCEPTION:
710
      x = TApplicationException()
711
      x.read(self._iprot)
712
      self._iprot.readMessageEnd()
713
      raise x
714
    result = getItemStatusDescription_result()
715
    result.read(self._iprot)
716
    self._iprot.readMessageEnd()
717
    if result.success is not None:
718
      return result.success
719
    if result.isex is not None:
720
      raise result.isex
721
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
722
 
723
  def startItemOn(self, item_id, timestamp):
724
    """
725
    Parameters:
726
     - item_id
727
     - timestamp
728
    """
729
    self.send_startItemOn(item_id, timestamp)
730
    self.recv_startItemOn()
731
 
732
  def send_startItemOn(self, item_id, timestamp):
733
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
734
    args = startItemOn_args()
735
    args.item_id = item_id
736
    args.timestamp = timestamp
737
    args.write(self._oprot)
738
    self._oprot.writeMessageEnd()
739
    self._oprot.trans.flush()
740
 
741
  def recv_startItemOn(self, ):
742
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
743
    if mtype == TMessageType.EXCEPTION:
744
      x = TApplicationException()
745
      x.read(self._iprot)
746
      self._iprot.readMessageEnd()
747
      raise x
748
    result = startItemOn_result()
749
    result.read(self._iprot)
750
    self._iprot.readMessageEnd()
751
    if result.cex is not None:
752
      raise result.cex
753
    return
754
 
755
  def retireItemOn(self, item_id, timestamp):
756
    """
757
    Parameters:
758
     - item_id
759
     - timestamp
760
    """
761
    self.send_retireItemOn(item_id, timestamp)
762
    self.recv_retireItemOn()
763
 
764
  def send_retireItemOn(self, item_id, timestamp):
765
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
766
    args = retireItemOn_args()
767
    args.item_id = item_id
768
    args.timestamp = timestamp
769
    args.write(self._oprot)
770
    self._oprot.writeMessageEnd()
771
    self._oprot.trans.flush()
772
 
773
  def recv_retireItemOn(self, ):
774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
775
    if mtype == TMessageType.EXCEPTION:
776
      x = TApplicationException()
777
      x.read(self._iprot)
778
      self._iprot.readMessageEnd()
779
      raise x
780
    result = retireItemOn_result()
781
    result.read(self._iprot)
782
    self._iprot.readMessageEnd()
783
    if result.cex is not None:
784
      raise result.cex
785
    return
786
 
787
  def changeItemStatus(self, item_id, timestamp, newstatus):
788
    """
789
    Parameters:
790
     - item_id
791
     - timestamp
792
     - newstatus
793
    """
794
    self.send_changeItemStatus(item_id, timestamp, newstatus)
795
    self.recv_changeItemStatus()
796
 
797
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
798
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
799
    args = changeItemStatus_args()
800
    args.item_id = item_id
801
    args.timestamp = timestamp
802
    args.newstatus = newstatus
803
    args.write(self._oprot)
804
    self._oprot.writeMessageEnd()
805
    self._oprot.trans.flush()
806
 
807
  def recv_changeItemStatus(self, ):
808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
809
    if mtype == TMessageType.EXCEPTION:
810
      x = TApplicationException()
811
      x.read(self._iprot)
812
      self._iprot.readMessageEnd()
813
      raise x
814
    result = changeItemStatus_result()
815
    result.read(self._iprot)
816
    self._iprot.readMessageEnd()
817
    if result.cex is not None:
818
      raise result.cex
819
    return
820
 
821
  def getItem(self, item_id):
822
    """
823
    Parameters:
824
     - item_id
825
    """
826
    self.send_getItem(item_id)
827
    return self.recv_getItem()
828
 
829
  def send_getItem(self, item_id):
830
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
831
    args = getItem_args()
832
    args.item_id = item_id
833
    args.write(self._oprot)
834
    self._oprot.writeMessageEnd()
835
    self._oprot.trans.flush()
836
 
837
  def recv_getItem(self, ):
838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
839
    if mtype == TMessageType.EXCEPTION:
840
      x = TApplicationException()
841
      x.read(self._iprot)
842
      self._iprot.readMessageEnd()
843
      raise x
844
    result = getItem_result()
845
    result.read(self._iprot)
846
    self._iprot.readMessageEnd()
847
    if result.success is not None:
848
      return result.success
849
    if result.cex is not None:
850
      raise result.cex
851
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
852
 
853
  def getItemsByCatalogId(self, catalog_item_id):
854
    """
855
    Parameters:
856
     - catalog_item_id
857
    """
858
    self.send_getItemsByCatalogId(catalog_item_id)
859
    return self.recv_getItemsByCatalogId()
860
 
861
  def send_getItemsByCatalogId(self, catalog_item_id):
862
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
863
    args = getItemsByCatalogId_args()
864
    args.catalog_item_id = catalog_item_id
865
    args.write(self._oprot)
866
    self._oprot.writeMessageEnd()
867
    self._oprot.trans.flush()
868
 
869
  def recv_getItemsByCatalogId(self, ):
870
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
871
    if mtype == TMessageType.EXCEPTION:
872
      x = TApplicationException()
873
      x.read(self._iprot)
874
      self._iprot.readMessageEnd()
875
      raise x
876
    result = getItemsByCatalogId_result()
877
    result.read(self._iprot)
878
    self._iprot.readMessageEnd()
879
    if result.success is not None:
880
      return result.success
881
    if result.cex is not None:
882
      raise result.cex
883
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
884
 
885
  def getValidItemsByCatalogId(self, catalog_item_id):
886
    """
887
    Parameters:
888
     - catalog_item_id
889
    """
890
    self.send_getValidItemsByCatalogId(catalog_item_id)
891
    return self.recv_getValidItemsByCatalogId()
892
 
893
  def send_getValidItemsByCatalogId(self, catalog_item_id):
894
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
895
    args = getValidItemsByCatalogId_args()
896
    args.catalog_item_id = catalog_item_id
897
    args.write(self._oprot)
898
    self._oprot.writeMessageEnd()
899
    self._oprot.trans.flush()
900
 
901
  def recv_getValidItemsByCatalogId(self, ):
902
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
903
    if mtype == TMessageType.EXCEPTION:
904
      x = TApplicationException()
905
      x.read(self._iprot)
906
      self._iprot.readMessageEnd()
907
      raise x
908
    result = getValidItemsByCatalogId_result()
909
    result.read(self._iprot)
910
    self._iprot.readMessageEnd()
911
    if result.success is not None:
912
      return result.success
913
    if result.cex is not None:
914
      raise result.cex
915
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
916
 
917
  def getAllItems(self, isActive):
918
    """
919
    Parameters:
920
     - isActive
921
    """
922
    self.send_getAllItems(isActive)
923
    return self.recv_getAllItems()
924
 
925
  def send_getAllItems(self, isActive):
926
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
927
    args = getAllItems_args()
928
    args.isActive = isActive
929
    args.write(self._oprot)
930
    self._oprot.writeMessageEnd()
931
    self._oprot.trans.flush()
932
 
933
  def recv_getAllItems(self, ):
934
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
935
    if mtype == TMessageType.EXCEPTION:
936
      x = TApplicationException()
937
      x.read(self._iprot)
938
      self._iprot.readMessageEnd()
939
      raise x
940
    result = getAllItems_result()
941
    result.read(self._iprot)
942
    self._iprot.readMessageEnd()
943
    if result.success is not None:
944
      return result.success
945
    if result.cex is not None:
946
      raise result.cex
947
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
948
 
949
  def getAllItemsByStatus(self, itemStatus):
950
    """
951
    Parameters:
952
     - itemStatus
953
    """
954
    self.send_getAllItemsByStatus(itemStatus)
955
    return self.recv_getAllItemsByStatus()
956
 
957
  def send_getAllItemsByStatus(self, itemStatus):
958
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
959
    args = getAllItemsByStatus_args()
960
    args.itemStatus = itemStatus
961
    args.write(self._oprot)
962
    self._oprot.writeMessageEnd()
963
    self._oprot.trans.flush()
964
 
965
  def recv_getAllItemsByStatus(self, ):
966
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
967
    if mtype == TMessageType.EXCEPTION:
968
      x = TApplicationException()
969
      x.read(self._iprot)
970
      self._iprot.readMessageEnd()
971
      raise x
972
    result = getAllItemsByStatus_result()
973
    result.read(self._iprot)
974
    self._iprot.readMessageEnd()
975
    if result.success is not None:
976
      return result.success
977
    if result.cex is not None:
978
      raise result.cex
979
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
980
 
981
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
982
    """
983
    Parameters:
984
     - entityId
985
     - category
986
     - brand
987
     - modelName
988
     - modelNumber
989
    """
990
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
991
    return self.recv_markItemAsContentComplete()
992
 
993
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
994
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
995
    args = markItemAsContentComplete_args()
996
    args.entityId = entityId
997
    args.category = category
998
    args.brand = brand
999
    args.modelName = modelName
1000
    args.modelNumber = modelNumber
1001
    args.write(self._oprot)
1002
    self._oprot.writeMessageEnd()
1003
    self._oprot.trans.flush()
1004
 
1005
  def recv_markItemAsContentComplete(self, ):
1006
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1007
    if mtype == TMessageType.EXCEPTION:
1008
      x = TApplicationException()
1009
      x.read(self._iprot)
1010
      self._iprot.readMessageEnd()
1011
      raise x
1012
    result = markItemAsContentComplete_result()
1013
    result.read(self._iprot)
1014
    self._iprot.readMessageEnd()
1015
    if result.success is not None:
1016
      return result.success
1017
    if result.cex is not None:
1018
      raise result.cex
1019
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1020
 
1021
  def getAllItemsInRange(self, offset, limit):
1022
    """
1023
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1024
 
1025
    Parameters:
1026
     - offset
1027
     - limit
1028
    """
1029
    self.send_getAllItemsInRange(offset, limit)
1030
    return self.recv_getAllItemsInRange()
1031
 
1032
  def send_getAllItemsInRange(self, offset, limit):
1033
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1034
    args = getAllItemsInRange_args()
1035
    args.offset = offset
1036
    args.limit = limit
1037
    args.write(self._oprot)
1038
    self._oprot.writeMessageEnd()
1039
    self._oprot.trans.flush()
1040
 
1041
  def recv_getAllItemsInRange(self, ):
1042
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1043
    if mtype == TMessageType.EXCEPTION:
1044
      x = TApplicationException()
1045
      x.read(self._iprot)
1046
      self._iprot.readMessageEnd()
1047
      raise x
1048
    result = getAllItemsInRange_result()
1049
    result.read(self._iprot)
1050
    self._iprot.readMessageEnd()
1051
    if result.success is not None:
1052
      return result.success
1053
    if result.cex is not None:
1054
      raise result.cex
1055
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1056
 
1057
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1058
    """
1059
    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.
1060
 
1061
    Parameters:
1062
     - itemStatus
1063
     - offset
1064
     - limit
1065
    """
1066
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1067
    return self.recv_getAllItemsByStatusInRange()
1068
 
1069
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1070
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1071
    args = getAllItemsByStatusInRange_args()
1072
    args.itemStatus = itemStatus
1073
    args.offset = offset
1074
    args.limit = limit
1075
    args.write(self._oprot)
1076
    self._oprot.writeMessageEnd()
1077
    self._oprot.trans.flush()
1078
 
1079
  def recv_getAllItemsByStatusInRange(self, ):
1080
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1081
    if mtype == TMessageType.EXCEPTION:
1082
      x = TApplicationException()
1083
      x.read(self._iprot)
1084
      self._iprot.readMessageEnd()
1085
      raise x
1086
    result = getAllItemsByStatusInRange_result()
1087
    result.read(self._iprot)
1088
    self._iprot.readMessageEnd()
1089
    if result.success is not None:
1090
      return result.success
1091
    if result.cex is not None:
1092
      raise result.cex
1093
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1094
 
1095
  def getItemCountByStatus(self, useStatus, itemStatus):
1096
    """
1097
    Gets a count of all items by status
1098
 
1099
    Parameters:
1100
     - useStatus
1101
     - itemStatus
1102
    """
1103
    self.send_getItemCountByStatus(useStatus, itemStatus)
1104
    return self.recv_getItemCountByStatus()
1105
 
1106
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1107
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1108
    args = getItemCountByStatus_args()
1109
    args.useStatus = useStatus
1110
    args.itemStatus = itemStatus
1111
    args.write(self._oprot)
1112
    self._oprot.writeMessageEnd()
1113
    self._oprot.trans.flush()
1114
 
1115
  def recv_getItemCountByStatus(self, ):
1116
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1117
    if mtype == TMessageType.EXCEPTION:
1118
      x = TApplicationException()
1119
      x.read(self._iprot)
1120
      self._iprot.readMessageEnd()
1121
      raise x
1122
    result = getItemCountByStatus_result()
1123
    result.read(self._iprot)
1124
    self._iprot.readMessageEnd()
1125
    if result.success is not None:
1126
      return result.success
1127
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1128
 
1129
  def getBestSellers(self, ):
1130
    self.send_getBestSellers()
1131
    return self.recv_getBestSellers()
1132
 
1133
  def send_getBestSellers(self, ):
1134
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1135
    args = getBestSellers_args()
1136
    args.write(self._oprot)
1137
    self._oprot.writeMessageEnd()
1138
    self._oprot.trans.flush()
1139
 
1140
  def recv_getBestSellers(self, ):
1141
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1142
    if mtype == TMessageType.EXCEPTION:
1143
      x = TApplicationException()
1144
      x.read(self._iprot)
1145
      self._iprot.readMessageEnd()
1146
      raise x
1147
    result = getBestSellers_result()
1148
    result.read(self._iprot)
1149
    self._iprot.readMessageEnd()
1150
    if result.success is not None:
1151
      return result.success
1152
    if result.isex is not None:
1153
      raise result.isex
1154
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1155
 
1156
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1157
    """
1158
    Parameters:
1159
     - beginIndex
1160
     - totalItems
1161
     - brand
1162
     - category
1163
    """
1164
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1165
    return self.recv_getBestSellersCatalogIds()
1166
 
1167
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1168
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1169
    args = getBestSellersCatalogIds_args()
1170
    args.beginIndex = beginIndex
1171
    args.totalItems = totalItems
1172
    args.brand = brand
1173
    args.category = category
1174
    args.write(self._oprot)
1175
    self._oprot.writeMessageEnd()
1176
    self._oprot.trans.flush()
1177
 
1178
  def recv_getBestSellersCatalogIds(self, ):
1179
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1180
    if mtype == TMessageType.EXCEPTION:
1181
      x = TApplicationException()
1182
      x.read(self._iprot)
1183
      self._iprot.readMessageEnd()
1184
      raise x
1185
    result = getBestSellersCatalogIds_result()
1186
    result.read(self._iprot)
1187
    self._iprot.readMessageEnd()
1188
    if result.success is not None:
1189
      return result.success
1190
    if result.cex is not None:
1191
      raise result.cex
1192
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1193
 
1194
  def getBestSellersCount(self, ):
1195
    self.send_getBestSellersCount()
1196
    return self.recv_getBestSellersCount()
1197
 
1198
  def send_getBestSellersCount(self, ):
1199
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1200
    args = getBestSellersCount_args()
1201
    args.write(self._oprot)
1202
    self._oprot.writeMessageEnd()
1203
    self._oprot.trans.flush()
1204
 
1205
  def recv_getBestSellersCount(self, ):
1206
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1207
    if mtype == TMessageType.EXCEPTION:
1208
      x = TApplicationException()
1209
      x.read(self._iprot)
1210
      self._iprot.readMessageEnd()
1211
      raise x
1212
    result = getBestSellersCount_result()
1213
    result.read(self._iprot)
1214
    self._iprot.readMessageEnd()
1215
    if result.success is not None:
1216
      return result.success
1217
    if result.cex is not None:
1218
      raise result.cex
1219
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1220
 
1221
  def getBestDeals(self, ):
1222
    self.send_getBestDeals()
1223
    return self.recv_getBestDeals()
1224
 
1225
  def send_getBestDeals(self, ):
1226
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1227
    args = getBestDeals_args()
1228
    args.write(self._oprot)
1229
    self._oprot.writeMessageEnd()
1230
    self._oprot.trans.flush()
1231
 
1232
  def recv_getBestDeals(self, ):
1233
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1234
    if mtype == TMessageType.EXCEPTION:
1235
      x = TApplicationException()
1236
      x.read(self._iprot)
1237
      self._iprot.readMessageEnd()
1238
      raise x
1239
    result = getBestDeals_result()
1240
    result.read(self._iprot)
1241
    self._iprot.readMessageEnd()
1242
    if result.success is not None:
1243
      return result.success
1244
    if result.isex is not None:
1245
      raise result.isex
1246
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1247
 
1248
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1249
    """
1250
    Parameters:
1251
     - beginIndex
1252
     - totalItems
1253
     - brand
1254
     - category
1255
    """
1256
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1257
    return self.recv_getBestDealsCatalogIds()
1258
 
1259
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1260
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1261
    args = getBestDealsCatalogIds_args()
1262
    args.beginIndex = beginIndex
1263
    args.totalItems = totalItems
1264
    args.brand = brand
1265
    args.category = category
1266
    args.write(self._oprot)
1267
    self._oprot.writeMessageEnd()
1268
    self._oprot.trans.flush()
1269
 
1270
  def recv_getBestDealsCatalogIds(self, ):
1271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1272
    if mtype == TMessageType.EXCEPTION:
1273
      x = TApplicationException()
1274
      x.read(self._iprot)
1275
      self._iprot.readMessageEnd()
1276
      raise x
1277
    result = getBestDealsCatalogIds_result()
1278
    result.read(self._iprot)
1279
    self._iprot.readMessageEnd()
1280
    if result.success is not None:
1281
      return result.success
1282
    if result.cex is not None:
1283
      raise result.cex
1284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1285
 
1286
  def getBestDealsCount(self, ):
1287
    self.send_getBestDealsCount()
1288
    return self.recv_getBestDealsCount()
1289
 
1290
  def send_getBestDealsCount(self, ):
1291
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1292
    args = getBestDealsCount_args()
1293
    args.write(self._oprot)
1294
    self._oprot.writeMessageEnd()
1295
    self._oprot.trans.flush()
1296
 
1297
  def recv_getBestDealsCount(self, ):
1298
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1299
    if mtype == TMessageType.EXCEPTION:
1300
      x = TApplicationException()
1301
      x.read(self._iprot)
1302
      self._iprot.readMessageEnd()
1303
      raise x
1304
    result = getBestDealsCount_result()
1305
    result.read(self._iprot)
1306
    self._iprot.readMessageEnd()
1307
    if result.success is not None:
1308
      return result.success
1309
    if result.cex is not None:
1310
      raise result.cex
1311
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1312
 
1313
  def getComingSoon(self, ):
1314
    self.send_getComingSoon()
1315
    return self.recv_getComingSoon()
1316
 
1317
  def send_getComingSoon(self, ):
1318
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1319
    args = getComingSoon_args()
1320
    args.write(self._oprot)
1321
    self._oprot.writeMessageEnd()
1322
    self._oprot.trans.flush()
1323
 
1324
  def recv_getComingSoon(self, ):
1325
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1326
    if mtype == TMessageType.EXCEPTION:
1327
      x = TApplicationException()
1328
      x.read(self._iprot)
1329
      self._iprot.readMessageEnd()
1330
      raise x
1331
    result = getComingSoon_result()
1332
    result.read(self._iprot)
1333
    self._iprot.readMessageEnd()
1334
    if result.success is not None:
1335
      return result.success
1336
    if result.isex is not None:
1337
      raise result.isex
1338
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1339
 
1340
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1341
    """
1342
    Parameters:
1343
     - beginIndex
1344
     - totalItems
1345
     - brand
1346
     - category
1347
    """
1348
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1349
    return self.recv_getComingSoonCatalogIds()
1350
 
1351
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1352
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1353
    args = getComingSoonCatalogIds_args()
1354
    args.beginIndex = beginIndex
1355
    args.totalItems = totalItems
1356
    args.brand = brand
1357
    args.category = category
1358
    args.write(self._oprot)
1359
    self._oprot.writeMessageEnd()
1360
    self._oprot.trans.flush()
1361
 
1362
  def recv_getComingSoonCatalogIds(self, ):
1363
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1364
    if mtype == TMessageType.EXCEPTION:
1365
      x = TApplicationException()
1366
      x.read(self._iprot)
1367
      self._iprot.readMessageEnd()
1368
      raise x
1369
    result = getComingSoonCatalogIds_result()
1370
    result.read(self._iprot)
1371
    self._iprot.readMessageEnd()
1372
    if result.success is not None:
1373
      return result.success
1374
    if result.cex is not None:
1375
      raise result.cex
1376
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1377
 
1378
  def getComingSoonCount(self, ):
1379
    self.send_getComingSoonCount()
1380
    return self.recv_getComingSoonCount()
1381
 
1382
  def send_getComingSoonCount(self, ):
1383
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1384
    args = getComingSoonCount_args()
1385
    args.write(self._oprot)
1386
    self._oprot.writeMessageEnd()
1387
    self._oprot.trans.flush()
1388
 
1389
  def recv_getComingSoonCount(self, ):
1390
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1391
    if mtype == TMessageType.EXCEPTION:
1392
      x = TApplicationException()
1393
      x.read(self._iprot)
1394
      self._iprot.readMessageEnd()
1395
      raise x
1396
    result = getComingSoonCount_result()
1397
    result.read(self._iprot)
1398
    self._iprot.readMessageEnd()
1399
    if result.success is not None:
1400
      return result.success
1401
    if result.cex is not None:
1402
      raise result.cex
1403
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1404
 
1405
  def getLatestArrivals(self, ):
1406
    """
1407
    Returns a list of items sorted in the descending order by start date.
1408
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1409
    """
1410
    self.send_getLatestArrivals()
1411
    return self.recv_getLatestArrivals()
1412
 
1413
  def send_getLatestArrivals(self, ):
1414
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1415
    args = getLatestArrivals_args()
1416
    args.write(self._oprot)
1417
    self._oprot.writeMessageEnd()
1418
    self._oprot.trans.flush()
1419
 
1420
  def recv_getLatestArrivals(self, ):
1421
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1422
    if mtype == TMessageType.EXCEPTION:
1423
      x = TApplicationException()
1424
      x.read(self._iprot)
1425
      self._iprot.readMessageEnd()
1426
      raise x
1427
    result = getLatestArrivals_result()
1428
    result.read(self._iprot)
1429
    self._iprot.readMessageEnd()
1430
    if result.success is not None:
1431
      return result.success
1432
    if result.isex is not None:
1433
      raise result.isex
1434
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1435
 
1436
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1437
    """
1438
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1439
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1440
 
1441
    Parameters:
1442
     - beginIndex
1443
     - totalItems
1444
     - brand
1445
     - categories
1446
    """
1447
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1448
    return self.recv_getLatestArrivalsCatalogIds()
1449
 
1450
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1451
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1452
    args = getLatestArrivalsCatalogIds_args()
1453
    args.beginIndex = beginIndex
1454
    args.totalItems = totalItems
1455
    args.brand = brand
1456
    args.categories = categories
1457
    args.write(self._oprot)
1458
    self._oprot.writeMessageEnd()
1459
    self._oprot.trans.flush()
1460
 
1461
  def recv_getLatestArrivalsCatalogIds(self, ):
1462
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1463
    if mtype == TMessageType.EXCEPTION:
1464
      x = TApplicationException()
1465
      x.read(self._iprot)
1466
      self._iprot.readMessageEnd()
1467
      raise x
1468
    result = getLatestArrivalsCatalogIds_result()
1469
    result.read(self._iprot)
1470
    self._iprot.readMessageEnd()
1471
    if result.success is not None:
1472
      return result.success
1473
    if result.cex is not None:
1474
      raise result.cex
1475
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1476
 
1477
  def getLatestArrivalsCount(self, ):
1478
    """
1479
    Get the total number of latest arrivals we are willing to show.
1480
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1481
    """
1482
    self.send_getLatestArrivalsCount()
1483
    return self.recv_getLatestArrivalsCount()
1484
 
1485
  def send_getLatestArrivalsCount(self, ):
1486
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1487
    args = getLatestArrivalsCount_args()
1488
    args.write(self._oprot)
1489
    self._oprot.writeMessageEnd()
1490
    self._oprot.trans.flush()
1491
 
1492
  def recv_getLatestArrivalsCount(self, ):
1493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1494
    if mtype == TMessageType.EXCEPTION:
1495
      x = TApplicationException()
1496
      x.read(self._iprot)
1497
      self._iprot.readMessageEnd()
1498
      raise x
1499
    result = getLatestArrivalsCount_result()
1500
    result.read(self._iprot)
1501
    self._iprot.readMessageEnd()
1502
    if result.success is not None:
1503
      return result.success
1504
    if result.cex is not None:
1505
      raise result.cex
1506
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1507
 
1508
  def generateNewEntityID(self, ):
1509
    self.send_generateNewEntityID()
1510
    return self.recv_generateNewEntityID()
1511
 
1512
  def send_generateNewEntityID(self, ):
1513
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1514
    args = generateNewEntityID_args()
1515
    args.write(self._oprot)
1516
    self._oprot.writeMessageEnd()
1517
    self._oprot.trans.flush()
1518
 
1519
  def recv_generateNewEntityID(self, ):
1520
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1521
    if mtype == TMessageType.EXCEPTION:
1522
      x = TApplicationException()
1523
      x.read(self._iprot)
1524
      self._iprot.readMessageEnd()
1525
      raise x
1526
    result = generateNewEntityID_result()
1527
    result.read(self._iprot)
1528
    self._iprot.readMessageEnd()
1529
    if result.success is not None:
1530
      return result.success
1531
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1532
 
1533
  def addCategory(self, category):
1534
    """
1535
    All category related functions
1536
 
1537
    Parameters:
1538
     - category
1539
    """
1540
    self.send_addCategory(category)
1541
    return self.recv_addCategory()
1542
 
1543
  def send_addCategory(self, category):
1544
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1545
    args = addCategory_args()
1546
    args.category = category
1547
    args.write(self._oprot)
1548
    self._oprot.writeMessageEnd()
1549
    self._oprot.trans.flush()
1550
 
1551
  def recv_addCategory(self, ):
1552
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1553
    if mtype == TMessageType.EXCEPTION:
1554
      x = TApplicationException()
1555
      x.read(self._iprot)
1556
      self._iprot.readMessageEnd()
1557
      raise x
1558
    result = addCategory_result()
1559
    result.read(self._iprot)
1560
    self._iprot.readMessageEnd()
1561
    if result.success is not None:
1562
      return result.success
1563
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1564
 
1565
  def getCategory(self, id):
1566
    """
1567
    Parameters:
1568
     - id
1569
    """
1570
    self.send_getCategory(id)
1571
    return self.recv_getCategory()
1572
 
1573
  def send_getCategory(self, id):
1574
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1575
    args = getCategory_args()
1576
    args.id = id
1577
    args.write(self._oprot)
1578
    self._oprot.writeMessageEnd()
1579
    self._oprot.trans.flush()
1580
 
1581
  def recv_getCategory(self, ):
1582
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1583
    if mtype == TMessageType.EXCEPTION:
1584
      x = TApplicationException()
1585
      x.read(self._iprot)
1586
      self._iprot.readMessageEnd()
1587
      raise x
1588
    result = getCategory_result()
1589
    result.read(self._iprot)
1590
    self._iprot.readMessageEnd()
1591
    if result.success is not None:
1592
      return result.success
1593
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1594
 
1595
  def getAllCategories(self, ):
1596
    self.send_getAllCategories()
1597
    return self.recv_getAllCategories()
1598
 
1599
  def send_getAllCategories(self, ):
1600
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1601
    args = getAllCategories_args()
1602
    args.write(self._oprot)
1603
    self._oprot.writeMessageEnd()
1604
    self._oprot.trans.flush()
1605
 
1606
  def recv_getAllCategories(self, ):
1607
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1608
    if mtype == TMessageType.EXCEPTION:
1609
      x = TApplicationException()
1610
      x.read(self._iprot)
1611
      self._iprot.readMessageEnd()
1612
      raise x
1613
    result = getAllCategories_result()
1614
    result.read(self._iprot)
1615
    self._iprot.readMessageEnd()
1616
    if result.success is not None:
1617
      return result.success
1618
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1619
 
1620
  def getAllSimilarItems(self, itemId):
1621
    """
1622
    Returns the list of similar items.
1623
 
1624
    Parameters:
1625
     - itemId
1626
    """
1627
    self.send_getAllSimilarItems(itemId)
1628
    return self.recv_getAllSimilarItems()
1629
 
1630
  def send_getAllSimilarItems(self, itemId):
1631
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1632
    args = getAllSimilarItems_args()
1633
    args.itemId = itemId
1634
    args.write(self._oprot)
1635
    self._oprot.writeMessageEnd()
1636
    self._oprot.trans.flush()
1637
 
1638
  def recv_getAllSimilarItems(self, ):
1639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1640
    if mtype == TMessageType.EXCEPTION:
1641
      x = TApplicationException()
1642
      x.read(self._iprot)
1643
      self._iprot.readMessageEnd()
1644
      raise x
1645
    result = getAllSimilarItems_result()
1646
    result.read(self._iprot)
1647
    self._iprot.readMessageEnd()
1648
    if result.success is not None:
1649
      return result.success
1650
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1651
 
1652
  def addSimilarItem(self, itemId, catalogItemId):
1653
    """
1654
    Adds similar item.
1655
 
1656
    Parameters:
1657
     - itemId
1658
     - catalogItemId
1659
    """
1660
    self.send_addSimilarItem(itemId, catalogItemId)
1661
    return self.recv_addSimilarItem()
1662
 
1663
  def send_addSimilarItem(self, itemId, catalogItemId):
1664
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1665
    args = addSimilarItem_args()
1666
    args.itemId = itemId
1667
    args.catalogItemId = catalogItemId
1668
    args.write(self._oprot)
1669
    self._oprot.writeMessageEnd()
1670
    self._oprot.trans.flush()
1671
 
1672
  def recv_addSimilarItem(self, ):
1673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1674
    if mtype == TMessageType.EXCEPTION:
1675
      x = TApplicationException()
1676
      x.read(self._iprot)
1677
      self._iprot.readMessageEnd()
1678
      raise x
1679
    result = addSimilarItem_result()
1680
    result.read(self._iprot)
1681
    self._iprot.readMessageEnd()
1682
    if result.success is not None:
1683
      return result.success
1684
    if result.cex is not None:
1685
      raise result.cex
1686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1687
 
6512 kshitij.so 1688
  def addTag(self, displayName, itemId):
1689
    """
1690
    Tag Related
1691
 
1692
    Parameters:
1693
     - displayName
1694
     - itemId
1695
    """
1696
    self.send_addTag(displayName, itemId)
1697
    return self.recv_addTag()
1698
 
1699
  def send_addTag(self, displayName, itemId):
1700
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1701
    args = addTag_args()
1702
    args.displayName = displayName
1703
    args.itemId = itemId
1704
    args.write(self._oprot)
1705
    self._oprot.writeMessageEnd()
1706
    self._oprot.trans.flush()
1707
 
1708
  def recv_addTag(self, ):
1709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1710
    if mtype == TMessageType.EXCEPTION:
1711
      x = TApplicationException()
1712
      x.read(self._iprot)
1713
      self._iprot.readMessageEnd()
1714
      raise x
1715
    result = addTag_result()
1716
    result.read(self._iprot)
1717
    self._iprot.readMessageEnd()
1718
    if result.success is not None:
1719
      return result.success
1720
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1721
 
1722
  def deleteEntityTag(self, displayName, itemId):
1723
    """
1724
    Parameters:
1725
     - displayName
1726
     - itemId
1727
    """
1728
    self.send_deleteEntityTag(displayName, itemId)
1729
    return self.recv_deleteEntityTag()
1730
 
1731
  def send_deleteEntityTag(self, displayName, itemId):
1732
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1733
    args = deleteEntityTag_args()
1734
    args.displayName = displayName
1735
    args.itemId = itemId
1736
    args.write(self._oprot)
1737
    self._oprot.writeMessageEnd()
1738
    self._oprot.trans.flush()
1739
 
1740
  def recv_deleteEntityTag(self, ):
1741
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1742
    if mtype == TMessageType.EXCEPTION:
1743
      x = TApplicationException()
1744
      x.read(self._iprot)
1745
      self._iprot.readMessageEnd()
1746
      raise x
1747
    result = deleteEntityTag_result()
1748
    result.read(self._iprot)
1749
    self._iprot.readMessageEnd()
1750
    if result.success is not None:
1751
      return result.success
1752
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1753
 
1754
  def deleteTag(self, displayName):
1755
    """
1756
    Parameters:
1757
     - displayName
1758
    """
1759
    self.send_deleteTag(displayName)
1760
    return self.recv_deleteTag()
1761
 
1762
  def send_deleteTag(self, displayName):
1763
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1764
    args = deleteTag_args()
1765
    args.displayName = displayName
1766
    args.write(self._oprot)
1767
    self._oprot.writeMessageEnd()
1768
    self._oprot.trans.flush()
1769
 
1770
  def recv_deleteTag(self, ):
1771
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1772
    if mtype == TMessageType.EXCEPTION:
1773
      x = TApplicationException()
1774
      x.read(self._iprot)
1775
      self._iprot.readMessageEnd()
1776
      raise x
1777
    result = deleteTag_result()
1778
    result.read(self._iprot)
1779
    self._iprot.readMessageEnd()
1780
    if result.success is not None:
1781
      return result.success
1782
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1783
 
1784
  def getAllTags(self, ):
1785
    self.send_getAllTags()
1786
    return self.recv_getAllTags()
1787
 
1788
  def send_getAllTags(self, ):
1789
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1790
    args = getAllTags_args()
1791
    args.write(self._oprot)
1792
    self._oprot.writeMessageEnd()
1793
    self._oprot.trans.flush()
1794
 
1795
  def recv_getAllTags(self, ):
1796
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1797
    if mtype == TMessageType.EXCEPTION:
1798
      x = TApplicationException()
1799
      x.read(self._iprot)
1800
      self._iprot.readMessageEnd()
1801
      raise x
1802
    result = getAllTags_result()
1803
    result.read(self._iprot)
1804
    self._iprot.readMessageEnd()
1805
    if result.success is not None:
1806
      return result.success
1807
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1808
 
1809
  def getAllEntitiesByTagName(self, displayName):
1810
    """
1811
    Parameters:
1812
     - displayName
1813
    """
1814
    self.send_getAllEntitiesByTagName(displayName)
1815
    return self.recv_getAllEntitiesByTagName()
1816
 
1817
  def send_getAllEntitiesByTagName(self, displayName):
1818
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1819
    args = getAllEntitiesByTagName_args()
1820
    args.displayName = displayName
1821
    args.write(self._oprot)
1822
    self._oprot.writeMessageEnd()
1823
    self._oprot.trans.flush()
1824
 
1825
  def recv_getAllEntitiesByTagName(self, ):
1826
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1827
    if mtype == TMessageType.EXCEPTION:
1828
      x = TApplicationException()
1829
      x.read(self._iprot)
1830
      self._iprot.readMessageEnd()
1831
      raise x
1832
    result = getAllEntitiesByTagName_result()
1833
    result.read(self._iprot)
1834
    self._iprot.readMessageEnd()
1835
    if result.success is not None:
1836
      return result.success
1837
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1838
 
5944 mandeep.dh 1839
  def deleteSimilarItem(self, itemId, catalogItemId):
1840
    """
1841
    Delete similar item.
1842
 
1843
    Parameters:
1844
     - itemId
1845
     - catalogItemId
1846
    """
1847
    self.send_deleteSimilarItem(itemId, catalogItemId)
1848
    return self.recv_deleteSimilarItem()
1849
 
1850
  def send_deleteSimilarItem(self, itemId, catalogItemId):
1851
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
1852
    args = deleteSimilarItem_args()
1853
    args.itemId = itemId
1854
    args.catalogItemId = catalogItemId
1855
    args.write(self._oprot)
1856
    self._oprot.writeMessageEnd()
1857
    self._oprot.trans.flush()
1858
 
1859
  def recv_deleteSimilarItem(self, ):
1860
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1861
    if mtype == TMessageType.EXCEPTION:
1862
      x = TApplicationException()
1863
      x.read(self._iprot)
1864
      self._iprot.readMessageEnd()
1865
      raise x
1866
    result = deleteSimilarItem_result()
1867
    result.read(self._iprot)
1868
    self._iprot.readMessageEnd()
1869
    if result.success is not None:
1870
      return result.success
1871
    if result.cex is not None:
1872
      raise result.cex
1873
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
1874
 
1875
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
1876
    """
1877
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
1878
    If yes, returns the itemId else returns 0
1879
 
1880
    Parameters:
1881
     - brand
1882
     - modelNumber
1883
     - modelName
1884
     - color
1885
    """
1886
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
1887
    return self.recv_checkSimilarItem()
1888
 
1889
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
1890
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
1891
    args = checkSimilarItem_args()
1892
    args.brand = brand
1893
    args.modelNumber = modelNumber
1894
    args.modelName = modelName
1895
    args.color = color
1896
    args.write(self._oprot)
1897
    self._oprot.writeMessageEnd()
1898
    self._oprot.trans.flush()
1899
 
1900
  def recv_checkSimilarItem(self, ):
1901
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1902
    if mtype == TMessageType.EXCEPTION:
1903
      x = TApplicationException()
1904
      x.read(self._iprot)
1905
      self._iprot.readMessageEnd()
1906
      raise x
1907
    result = checkSimilarItem_result()
1908
    result.read(self._iprot)
1909
    self._iprot.readMessageEnd()
1910
    if result.success is not None:
1911
      return result.success
1912
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
1913
 
1914
  def validateRiskyStatus(self, itemId):
1915
    """
1916
    Check wether item is risky and change status if inventory is not available for risky items
1917
 
1918
    Parameters:
1919
     - itemId
1920
    """
1921
    self.send_validateRiskyStatus(itemId)
1922
    self.recv_validateRiskyStatus()
1923
 
1924
  def send_validateRiskyStatus(self, itemId):
1925
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
1926
    args = validateRiskyStatus_args()
1927
    args.itemId = itemId
1928
    args.write(self._oprot)
1929
    self._oprot.writeMessageEnd()
1930
    self._oprot.trans.flush()
1931
 
1932
  def recv_validateRiskyStatus(self, ):
1933
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1934
    if mtype == TMessageType.EXCEPTION:
1935
      x = TApplicationException()
1936
      x.read(self._iprot)
1937
      self._iprot.readMessageEnd()
1938
      raise x
1939
    result = validateRiskyStatus_result()
1940
    result.read(self._iprot)
1941
    self._iprot.readMessageEnd()
1942
    return
1943
 
1944
  def changeItemRiskyFlag(self, itemId, risky):
1945
    """
1946
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
1947
 
1948
    Parameters:
1949
     - itemId
1950
     - risky
1951
    """
1952
    self.send_changeItemRiskyFlag(itemId, risky)
1953
    self.recv_changeItemRiskyFlag()
1954
 
1955
  def send_changeItemRiskyFlag(self, itemId, risky):
1956
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
1957
    args = changeItemRiskyFlag_args()
1958
    args.itemId = itemId
1959
    args.risky = risky
1960
    args.write(self._oprot)
1961
    self._oprot.writeMessageEnd()
1962
    self._oprot.trans.flush()
1963
 
1964
  def recv_changeItemRiskyFlag(self, ):
1965
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1966
    if mtype == TMessageType.EXCEPTION:
1967
      x = TApplicationException()
1968
      x.read(self._iprot)
1969
      self._iprot.readMessageEnd()
1970
      raise x
1971
    result = changeItemRiskyFlag_result()
1972
    result.read(self._iprot)
1973
    self._iprot.readMessageEnd()
1974
    return
1975
 
1976
  def getItemsByRiskyFlag(self, ):
1977
    """
1978
    Returns list of items marked as risky.
1979
    """
1980
    self.send_getItemsByRiskyFlag()
1981
    return self.recv_getItemsByRiskyFlag()
1982
 
1983
  def send_getItemsByRiskyFlag(self, ):
1984
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
1985
    args = getItemsByRiskyFlag_args()
1986
    args.write(self._oprot)
1987
    self._oprot.writeMessageEnd()
1988
    self._oprot.trans.flush()
1989
 
1990
  def recv_getItemsByRiskyFlag(self, ):
1991
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1992
    if mtype == TMessageType.EXCEPTION:
1993
      x = TApplicationException()
1994
      x.read(self._iprot)
1995
      self._iprot.readMessageEnd()
1996
      raise x
1997
    result = getItemsByRiskyFlag_result()
1998
    result.read(self._iprot)
1999
    self._iprot.readMessageEnd()
2000
    if result.success is not None:
2001
      return result.success
2002
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2003
 
2004
  def getItemsForMasterSheet(self, category, brand):
2005
    """
2006
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2007
 
2008
    Parameters:
2009
     - category
2010
     - brand
2011
    """
2012
    self.send_getItemsForMasterSheet(category, brand)
2013
    return self.recv_getItemsForMasterSheet()
2014
 
2015
  def send_getItemsForMasterSheet(self, category, brand):
2016
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2017
    args = getItemsForMasterSheet_args()
2018
    args.category = category
2019
    args.brand = brand
2020
    args.write(self._oprot)
2021
    self._oprot.writeMessageEnd()
2022
    self._oprot.trans.flush()
2023
 
2024
  def recv_getItemsForMasterSheet(self, ):
2025
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2026
    if mtype == TMessageType.EXCEPTION:
2027
      x = TApplicationException()
2028
      x.read(self._iprot)
2029
      self._iprot.readMessageEnd()
2030
      raise x
2031
    result = getItemsForMasterSheet_result()
2032
    result.read(self._iprot)
2033
    self._iprot.readMessageEnd()
2034
    if result.success is not None:
2035
      return result.success
2036
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2037
 
2038
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2039
    """
2040
    Returns list of catalog ids of items with same similarity index as of the given itemId
2041
 
2042
    Parameters:
2043
     - beginIndex
2044
     - totalItems
2045
     - itemId
2046
    """
2047
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2048
    return self.recv_getSimilarItemsCatalogIds()
2049
 
2050
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2051
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2052
    args = getSimilarItemsCatalogIds_args()
2053
    args.beginIndex = beginIndex
2054
    args.totalItems = totalItems
2055
    args.itemId = itemId
2056
    args.write(self._oprot)
2057
    self._oprot.writeMessageEnd()
2058
    self._oprot.trans.flush()
2059
 
2060
  def recv_getSimilarItemsCatalogIds(self, ):
2061
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2062
    if mtype == TMessageType.EXCEPTION:
2063
      x = TApplicationException()
2064
      x.read(self._iprot)
2065
      self._iprot.readMessageEnd()
2066
      raise x
2067
    result = getSimilarItemsCatalogIds_result()
2068
    result.read(self._iprot)
2069
    self._iprot.readMessageEnd()
2070
    if result.success is not None:
2071
      return result.success
2072
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2073
 
2074
  def addProductNotification(self, itemId, email):
2075
    """
2076
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2077
 
2078
    Parameters:
2079
     - itemId
2080
     - email
2081
    """
2082
    self.send_addProductNotification(itemId, email)
2083
    return self.recv_addProductNotification()
2084
 
2085
  def send_addProductNotification(self, itemId, email):
2086
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2087
    args = addProductNotification_args()
2088
    args.itemId = itemId
2089
    args.email = email
2090
    args.write(self._oprot)
2091
    self._oprot.writeMessageEnd()
2092
    self._oprot.trans.flush()
2093
 
2094
  def recv_addProductNotification(self, ):
2095
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2096
    if mtype == TMessageType.EXCEPTION:
2097
      x = TApplicationException()
2098
      x.read(self._iprot)
2099
      self._iprot.readMessageEnd()
2100
      raise x
2101
    result = addProductNotification_result()
2102
    result.read(self._iprot)
2103
    self._iprot.readMessageEnd()
2104
    if result.success is not None:
2105
      return result.success
2106
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2107
 
2108
  def sendProductNotifications(self, ):
2109
    """
2110
    Send the product notifications to the users for items which has stock.
2111
    """
2112
    self.send_sendProductNotifications()
2113
    return self.recv_sendProductNotifications()
2114
 
2115
  def send_sendProductNotifications(self, ):
2116
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2117
    args = sendProductNotifications_args()
2118
    args.write(self._oprot)
2119
    self._oprot.writeMessageEnd()
2120
    self._oprot.trans.flush()
2121
 
2122
  def recv_sendProductNotifications(self, ):
2123
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2124
    if mtype == TMessageType.EXCEPTION:
2125
      x = TApplicationException()
2126
      x.read(self._iprot)
2127
      self._iprot.readMessageEnd()
2128
      raise x
2129
    result = sendProductNotifications_result()
2130
    result.read(self._iprot)
2131
    self._iprot.readMessageEnd()
2132
    if result.success is not None:
2133
      return result.success
2134
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2135
 
2136
  def getAllBrandsByCategory(self, categoryId):
2137
    """
2138
    Returns list of brand names for a given category Id
2139
 
2140
    Parameters:
2141
     - categoryId
2142
    """
2143
    self.send_getAllBrandsByCategory(categoryId)
2144
    return self.recv_getAllBrandsByCategory()
2145
 
2146
  def send_getAllBrandsByCategory(self, categoryId):
2147
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2148
    args = getAllBrandsByCategory_args()
2149
    args.categoryId = categoryId
2150
    args.write(self._oprot)
2151
    self._oprot.writeMessageEnd()
2152
    self._oprot.trans.flush()
2153
 
2154
  def recv_getAllBrandsByCategory(self, ):
2155
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2156
    if mtype == TMessageType.EXCEPTION:
2157
      x = TApplicationException()
2158
      x.read(self._iprot)
2159
      self._iprot.readMessageEnd()
2160
      raise x
2161
    result = getAllBrandsByCategory_result()
2162
    result.read(self._iprot)
2163
    self._iprot.readMessageEnd()
2164
    if result.success is not None:
2165
      return result.success
2166
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2167
 
2168
  def getAllBrands(self, ):
2169
    """
2170
    Returns list of brand names
2171
    """
2172
    self.send_getAllBrands()
2173
    return self.recv_getAllBrands()
2174
 
2175
  def send_getAllBrands(self, ):
2176
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2177
    args = getAllBrands_args()
2178
    args.write(self._oprot)
2179
    self._oprot.writeMessageEnd()
2180
    self._oprot.trans.flush()
2181
 
2182
  def recv_getAllBrands(self, ):
2183
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2184
    if mtype == TMessageType.EXCEPTION:
2185
      x = TApplicationException()
2186
      x.read(self._iprot)
2187
      self._iprot.readMessageEnd()
2188
      raise x
2189
    result = getAllBrands_result()
2190
    result.read(self._iprot)
2191
    self._iprot.readMessageEnd()
2192
    if result.success is not None:
2193
      return result.success
2194
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2195
 
2196
  def getAllSources(self, ):
2197
    """
2198
    Return list of all sources
2199
    """
2200
    self.send_getAllSources()
2201
    return self.recv_getAllSources()
2202
 
2203
  def send_getAllSources(self, ):
2204
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2205
    args = getAllSources_args()
2206
    args.write(self._oprot)
2207
    self._oprot.writeMessageEnd()
2208
    self._oprot.trans.flush()
2209
 
2210
  def recv_getAllSources(self, ):
2211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2212
    if mtype == TMessageType.EXCEPTION:
2213
      x = TApplicationException()
2214
      x.read(self._iprot)
2215
      self._iprot.readMessageEnd()
2216
      raise x
2217
    result = getAllSources_result()
2218
    result.read(self._iprot)
2219
    self._iprot.readMessageEnd()
2220
    if result.success is not None:
2221
      return result.success
2222
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2223
 
2224
  def getItemPricingBySource(self, itemId, sourceId):
2225
    """
2226
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2227
 
2228
    Parameters:
2229
     - itemId
2230
     - sourceId
2231
    """
2232
    self.send_getItemPricingBySource(itemId, sourceId)
2233
    return self.recv_getItemPricingBySource()
2234
 
2235
  def send_getItemPricingBySource(self, itemId, sourceId):
2236
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2237
    args = getItemPricingBySource_args()
2238
    args.itemId = itemId
2239
    args.sourceId = sourceId
2240
    args.write(self._oprot)
2241
    self._oprot.writeMessageEnd()
2242
    self._oprot.trans.flush()
2243
 
2244
  def recv_getItemPricingBySource(self, ):
2245
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2246
    if mtype == TMessageType.EXCEPTION:
2247
      x = TApplicationException()
2248
      x.read(self._iprot)
2249
      self._iprot.readMessageEnd()
2250
      raise x
2251
    result = getItemPricingBySource_result()
2252
    result.read(self._iprot)
2253
    self._iprot.readMessageEnd()
2254
    if result.success is not None:
2255
      return result.success
2256
    if result.cex is not None:
2257
      raise result.cex
2258
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2259
 
2260
  def addSourceItemPricing(self, sourceItemPricing):
2261
    """
2262
    Adds prices to be displayed corresponding to the item if user comes from a source.
2263
    If item is not found or source is not found, it will throw exception.
2264
 
2265
    Parameters:
2266
     - sourceItemPricing
2267
    """
2268
    self.send_addSourceItemPricing(sourceItemPricing)
2269
    self.recv_addSourceItemPricing()
2270
 
2271
  def send_addSourceItemPricing(self, sourceItemPricing):
2272
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2273
    args = addSourceItemPricing_args()
2274
    args.sourceItemPricing = sourceItemPricing
2275
    args.write(self._oprot)
2276
    self._oprot.writeMessageEnd()
2277
    self._oprot.trans.flush()
2278
 
2279
  def recv_addSourceItemPricing(self, ):
2280
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2281
    if mtype == TMessageType.EXCEPTION:
2282
      x = TApplicationException()
2283
      x.read(self._iprot)
2284
      self._iprot.readMessageEnd()
2285
      raise x
2286
    result = addSourceItemPricing_result()
2287
    result.read(self._iprot)
2288
    self._iprot.readMessageEnd()
2289
    if result.cex is not None:
2290
      raise result.cex
2291
    return
2292
 
2293
  def getAllSourcePricing(self, itemId):
2294
    """
2295
    Returns the list of source pricing information of an item.
2296
    Raises an exception if item not found corresponding to itemId
2297
 
2298
    Parameters:
2299
     - itemId
2300
    """
2301
    self.send_getAllSourcePricing(itemId)
2302
    return self.recv_getAllSourcePricing()
2303
 
2304
  def send_getAllSourcePricing(self, itemId):
2305
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2306
    args = getAllSourcePricing_args()
2307
    args.itemId = itemId
2308
    args.write(self._oprot)
2309
    self._oprot.writeMessageEnd()
2310
    self._oprot.trans.flush()
2311
 
2312
  def recv_getAllSourcePricing(self, ):
2313
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2314
    if mtype == TMessageType.EXCEPTION:
2315
      x = TApplicationException()
2316
      x.read(self._iprot)
2317
      self._iprot.readMessageEnd()
2318
      raise x
2319
    result = getAllSourcePricing_result()
2320
    result.read(self._iprot)
2321
    self._iprot.readMessageEnd()
2322
    if result.success is not None:
2323
      return result.success
2324
    if result.cex is not None:
2325
      raise result.cex
2326
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2327
 
2328
  def getItemForSource(self, item_id, sourceId):
2329
    """
2330
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2331
 
2332
    Parameters:
2333
     - item_id
2334
     - sourceId
2335
    """
2336
    self.send_getItemForSource(item_id, sourceId)
2337
    return self.recv_getItemForSource()
2338
 
2339
  def send_getItemForSource(self, item_id, sourceId):
2340
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2341
    args = getItemForSource_args()
2342
    args.item_id = item_id
2343
    args.sourceId = sourceId
2344
    args.write(self._oprot)
2345
    self._oprot.writeMessageEnd()
2346
    self._oprot.trans.flush()
2347
 
2348
  def recv_getItemForSource(self, ):
2349
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2350
    if mtype == TMessageType.EXCEPTION:
2351
      x = TApplicationException()
2352
      x.read(self._iprot)
2353
      self._iprot.readMessageEnd()
2354
      raise x
2355
    result = getItemForSource_result()
2356
    result.read(self._iprot)
2357
    self._iprot.readMessageEnd()
2358
    if result.success is not None:
2359
      return result.success
2360
    if result.cex is not None:
2361
      raise result.cex
2362
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2363
 
2364
  def searchItemsInRange(self, searchTerms, offset, limit):
2365
    """
2366
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2367
 
2368
    Parameters:
2369
     - searchTerms
2370
     - offset
2371
     - limit
2372
    """
2373
    self.send_searchItemsInRange(searchTerms, offset, limit)
2374
    return self.recv_searchItemsInRange()
2375
 
2376
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2377
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2378
    args = searchItemsInRange_args()
2379
    args.searchTerms = searchTerms
2380
    args.offset = offset
2381
    args.limit = limit
2382
    args.write(self._oprot)
2383
    self._oprot.writeMessageEnd()
2384
    self._oprot.trans.flush()
2385
 
2386
  def recv_searchItemsInRange(self, ):
2387
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2388
    if mtype == TMessageType.EXCEPTION:
2389
      x = TApplicationException()
2390
      x.read(self._iprot)
2391
      self._iprot.readMessageEnd()
2392
      raise x
2393
    result = searchItemsInRange_result()
2394
    result.read(self._iprot)
2395
    self._iprot.readMessageEnd()
2396
    if result.success is not None:
2397
      return result.success
2398
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2399
 
2400
  def getSearchResultCount(self, searchTerms):
2401
    """
2402
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2403
 
2404
    Parameters:
2405
     - searchTerms
2406
    """
2407
    self.send_getSearchResultCount(searchTerms)
2408
    return self.recv_getSearchResultCount()
2409
 
2410
  def send_getSearchResultCount(self, searchTerms):
2411
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2412
    args = getSearchResultCount_args()
2413
    args.searchTerms = searchTerms
2414
    args.write(self._oprot)
2415
    self._oprot.writeMessageEnd()
2416
    self._oprot.trans.flush()
2417
 
2418
  def recv_getSearchResultCount(self, ):
2419
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2420
    if mtype == TMessageType.EXCEPTION:
2421
      x = TApplicationException()
2422
      x.read(self._iprot)
2423
      self._iprot.readMessageEnd()
2424
      raise x
2425
    result = getSearchResultCount_result()
2426
    result.read(self._iprot)
2427
    self._iprot.readMessageEnd()
2428
    if result.success is not None:
2429
      return result.success
2430
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2431
 
2432
  def getProductNotifications(self, startDateTime):
2433
    """
2434
    Returns a list of product notifications added after a supplied datetime
2435
 
2436
    Parameters:
2437
     - startDateTime
2438
    """
2439
    self.send_getProductNotifications(startDateTime)
2440
    return self.recv_getProductNotifications()
2441
 
2442
  def send_getProductNotifications(self, startDateTime):
2443
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2444
    args = getProductNotifications_args()
2445
    args.startDateTime = startDateTime
2446
    args.write(self._oprot)
2447
    self._oprot.writeMessageEnd()
2448
    self._oprot.trans.flush()
2449
 
2450
  def recv_getProductNotifications(self, ):
2451
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2452
    if mtype == TMessageType.EXCEPTION:
2453
      x = TApplicationException()
2454
      x.read(self._iprot)
2455
      self._iprot.readMessageEnd()
2456
      raise x
2457
    result = getProductNotifications_result()
2458
    result.read(self._iprot)
2459
    self._iprot.readMessageEnd()
2460
    if result.success is not None:
2461
      return result.success
2462
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2463
 
2464
  def getProductNotificationRequestCount(self, startDateTime):
2465
    """
2466
    Returns a list of count of requests for product notification against each item
2467
 
2468
    Parameters:
2469
     - startDateTime
2470
    """
2471
    self.send_getProductNotificationRequestCount(startDateTime)
2472
    return self.recv_getProductNotificationRequestCount()
2473
 
2474
  def send_getProductNotificationRequestCount(self, startDateTime):
2475
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2476
    args = getProductNotificationRequestCount_args()
2477
    args.startDateTime = startDateTime
2478
    args.write(self._oprot)
2479
    self._oprot.writeMessageEnd()
2480
    self._oprot.trans.flush()
2481
 
2482
  def recv_getProductNotificationRequestCount(self, ):
2483
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2484
    if mtype == TMessageType.EXCEPTION:
2485
      x = TApplicationException()
2486
      x.read(self._iprot)
2487
      self._iprot.readMessageEnd()
2488
      raise x
2489
    result = getProductNotificationRequestCount_result()
2490
    result.read(self._iprot)
2491
    self._iprot.readMessageEnd()
2492
    if result.success is not None:
2493
      return result.success
2494
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2495
 
2496
  def addAuthorizationLog(self, itemId, username, reason):
2497
    """
2498
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2499
 
2500
    Parameters:
2501
     - itemId
2502
     - username
2503
     - reason
2504
    """
2505
    self.send_addAuthorizationLog(itemId, username, reason)
2506
    return self.recv_addAuthorizationLog()
2507
 
2508
  def send_addAuthorizationLog(self, itemId, username, reason):
2509
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2510
    args = addAuthorizationLog_args()
2511
    args.itemId = itemId
2512
    args.username = username
2513
    args.reason = reason
2514
    args.write(self._oprot)
2515
    self._oprot.writeMessageEnd()
2516
    self._oprot.trans.flush()
2517
 
2518
  def recv_addAuthorizationLog(self, ):
2519
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2520
    if mtype == TMessageType.EXCEPTION:
2521
      x = TApplicationException()
2522
      x.read(self._iprot)
2523
      self._iprot.readMessageEnd()
2524
      raise x
2525
    result = addAuthorizationLog_result()
2526
    result.read(self._iprot)
2527
    self._iprot.readMessageEnd()
2528
    if result.success is not None:
2529
      return result.success
2530
    if result.cex is not None:
2531
      raise result.cex
2532
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2533
 
2534
  def getClearanceSaleCatalogIds(self, ):
2535
    self.send_getClearanceSaleCatalogIds()
2536
    return self.recv_getClearanceSaleCatalogIds()
2537
 
2538
  def send_getClearanceSaleCatalogIds(self, ):
2539
    self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)
2540
    args = getClearanceSaleCatalogIds_args()
2541
    args.write(self._oprot)
2542
    self._oprot.writeMessageEnd()
2543
    self._oprot.trans.flush()
2544
 
2545
  def recv_getClearanceSaleCatalogIds(self, ):
2546
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2547
    if mtype == TMessageType.EXCEPTION:
2548
      x = TApplicationException()
2549
      x.read(self._iprot)
2550
      self._iprot.readMessageEnd()
2551
      raise x
2552
    result = getClearanceSaleCatalogIds_result()
2553
    result.read(self._iprot)
2554
    self._iprot.readMessageEnd()
2555
    if result.success is not None:
2556
      return result.success
2557
    if result.cex is not None:
2558
      raise result.cex
2559
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2560
 
2561
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2562
    """
2563
    Parameters:
2564
     - catalog_item_id
2565
     - voucherType
2566
     - voucherAmount
2567
    """
2568
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2569
    return self.recv_addupdateVoucherForItem()
2570
 
2571
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2572
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2573
    args = addupdateVoucherForItem_args()
2574
    args.catalog_item_id = catalog_item_id
2575
    args.voucherType = voucherType
2576
    args.voucherAmount = voucherAmount
2577
    args.write(self._oprot)
2578
    self._oprot.writeMessageEnd()
2579
    self._oprot.trans.flush()
2580
 
2581
  def recv_addupdateVoucherForItem(self, ):
2582
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2583
    if mtype == TMessageType.EXCEPTION:
2584
      x = TApplicationException()
2585
      x.read(self._iprot)
2586
      self._iprot.readMessageEnd()
2587
      raise x
2588
    result = addupdateVoucherForItem_result()
2589
    result.read(self._iprot)
2590
    self._iprot.readMessageEnd()
2591
    if result.success is not None:
2592
      return result.success
2593
    if result.cex is not None:
2594
      raise result.cex
2595
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2596
 
2597
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2598
    """
2599
    Parameters:
2600
     - catalog_item_id
2601
     - voucherType
2602
    """
2603
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2604
    return self.recv_deleteVoucherForItem()
2605
 
2606
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2607
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2608
    args = deleteVoucherForItem_args()
2609
    args.catalog_item_id = catalog_item_id
2610
    args.voucherType = voucherType
2611
    args.write(self._oprot)
2612
    self._oprot.writeMessageEnd()
2613
    self._oprot.trans.flush()
2614
 
2615
  def recv_deleteVoucherForItem(self, ):
2616
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2617
    if mtype == TMessageType.EXCEPTION:
2618
      x = TApplicationException()
2619
      x.read(self._iprot)
2620
      self._iprot.readMessageEnd()
2621
      raise x
2622
    result = deleteVoucherForItem_result()
2623
    result.read(self._iprot)
2624
    self._iprot.readMessageEnd()
2625
    if result.success is not None:
2626
      return result.success
2627
    if result.cex is not None:
2628
      raise result.cex
2629
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2630
 
2631
  def getVoucherAmount(self, itemId, voucherType):
2632
    """
2633
    Parameters:
2634
     - itemId
2635
     - voucherType
2636
    """
2637
    self.send_getVoucherAmount(itemId, voucherType)
2638
    return self.recv_getVoucherAmount()
2639
 
2640
  def send_getVoucherAmount(self, itemId, voucherType):
2641
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2642
    args = getVoucherAmount_args()
2643
    args.itemId = itemId
2644
    args.voucherType = voucherType
2645
    args.write(self._oprot)
2646
    self._oprot.writeMessageEnd()
2647
    self._oprot.trans.flush()
2648
 
2649
  def recv_getVoucherAmount(self, ):
2650
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2651
    if mtype == TMessageType.EXCEPTION:
2652
      x = TApplicationException()
2653
      x.read(self._iprot)
2654
      self._iprot.readMessageEnd()
2655
      raise x
2656
    result = getVoucherAmount_result()
2657
    result.read(self._iprot)
2658
    self._iprot.readMessageEnd()
2659
    if result.success is not None:
2660
      return result.success
2661
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
2662
 
2663
  def getAllItemVouchers(self, itemId):
2664
    """
2665
    Parameters:
2666
     - itemId
2667
    """
2668
    self.send_getAllItemVouchers(itemId)
2669
    return self.recv_getAllItemVouchers()
2670
 
2671
  def send_getAllItemVouchers(self, itemId):
2672
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
2673
    args = getAllItemVouchers_args()
2674
    args.itemId = itemId
2675
    args.write(self._oprot)
2676
    self._oprot.writeMessageEnd()
2677
    self._oprot.trans.flush()
2678
 
2679
  def recv_getAllItemVouchers(self, ):
2680
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2681
    if mtype == TMessageType.EXCEPTION:
2682
      x = TApplicationException()
2683
      x.read(self._iprot)
2684
      self._iprot.readMessageEnd()
2685
      raise x
2686
    result = getAllItemVouchers_result()
2687
    result.read(self._iprot)
2688
    self._iprot.readMessageEnd()
2689
    if result.success is not None:
2690
      return result.success
2691
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
2692
 
2693
  def isValidCatalogItemId(self, catalog_item_id):
2694
    """
2695
    Parameters:
2696
     - catalog_item_id
2697
    """
2698
    self.send_isValidCatalogItemId(catalog_item_id)
2699
    return self.recv_isValidCatalogItemId()
2700
 
2701
  def send_isValidCatalogItemId(self, catalog_item_id):
2702
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
2703
    args = isValidCatalogItemId_args()
2704
    args.catalog_item_id = catalog_item_id
2705
    args.write(self._oprot)
2706
    self._oprot.writeMessageEnd()
2707
    self._oprot.trans.flush()
2708
 
2709
  def recv_isValidCatalogItemId(self, ):
2710
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2711
    if mtype == TMessageType.EXCEPTION:
2712
      x = TApplicationException()
2713
      x.read(self._iprot)
2714
      self._iprot.readMessageEnd()
2715
      raise x
2716
    result = isValidCatalogItemId_result()
2717
    result.read(self._iprot)
2718
    self._iprot.readMessageEnd()
2719
    if result.success is not None:
2720
      return result.success
2721
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
2722
 
6039 amit.gupta 2723
  def getVatPercentageForItem(self, itemId, price):
2724
    """
2725
    Parameters:
2726
     - itemId
2727
     - price
2728
    """
2729
    self.send_getVatPercentageForItem(itemId, price)
2730
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 2731
 
6039 amit.gupta 2732
  def send_getVatPercentageForItem(self, itemId, price):
2733
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
2734
    args = getVatPercentageForItem_args()
2735
    args.itemId = itemId
2736
    args.price = price
2737
    args.write(self._oprot)
2738
    self._oprot.writeMessageEnd()
2739
    self._oprot.trans.flush()
2740
 
2741
  def recv_getVatPercentageForItem(self, ):
2742
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2743
    if mtype == TMessageType.EXCEPTION:
2744
      x = TApplicationException()
2745
      x.read(self._iprot)
2746
      self._iprot.readMessageEnd()
2747
      raise x
2748
    result = getVatPercentageForItem_result()
2749
    result.read(self._iprot)
2750
    self._iprot.readMessageEnd()
2751
    if result.success is not None:
2752
      return result.success
2753
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
2754
 
2755
  def getVatAmountForItem(self, itemId, price):
2756
    """
2757
    Parameters:
2758
     - itemId
2759
     - price
2760
    """
2761
    self.send_getVatAmountForItem(itemId, price)
2762
    return self.recv_getVatAmountForItem()
2763
 
2764
  def send_getVatAmountForItem(self, itemId, price):
2765
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
2766
    args = getVatAmountForItem_args()
2767
    args.itemId = itemId
2768
    args.price = price
2769
    args.write(self._oprot)
2770
    self._oprot.writeMessageEnd()
2771
    self._oprot.trans.flush()
2772
 
2773
  def recv_getVatAmountForItem(self, ):
2774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2775
    if mtype == TMessageType.EXCEPTION:
2776
      x = TApplicationException()
2777
      x.read(self._iprot)
2778
      self._iprot.readMessageEnd()
2779
      raise x
2780
    result = getVatAmountForItem_result()
2781
    result.read(self._iprot)
2782
    self._iprot.readMessageEnd()
2783
    if result.success is not None:
2784
      return result.success
2785
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
2786
 
6531 vikram.rag 2787
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2788
    """
2789
    Parameters:
2790
     - offset
2791
     - limit
2792
    """
2793
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
2794
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 2795
 
6531 vikram.rag 2796
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2797
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
2798
    args = getAllIgnoredInventoryUpdateItemsList_args()
2799
    args.offset = offset
2800
    args.limit = limit
2801
    args.write(self._oprot)
2802
    self._oprot.writeMessageEnd()
2803
    self._oprot.trans.flush()
2804
 
2805
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
2806
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2807
    if mtype == TMessageType.EXCEPTION:
2808
      x = TApplicationException()
2809
      x.read(self._iprot)
2810
      self._iprot.readMessageEnd()
2811
      raise x
2812
    result = getAllIgnoredInventoryUpdateItemsList_result()
2813
    result.read(self._iprot)
2814
    self._iprot.readMessageEnd()
2815
    if result.success is not None:
2816
      return result.success
2817
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
2818
 
6805 anupam.sin 2819
  def getInsuranceAmount(self, itemId, insurerId, quantity):
2820
    """
2821
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 2822
 
6805 anupam.sin 2823
    Parameters:
2824
     - itemId
2825
     - insurerId
2826
     - quantity
2827
    """
2828
    self.send_getInsuranceAmount(itemId, insurerId, quantity)
2829
    return self.recv_getInsuranceAmount()
2830
 
2831
  def send_getInsuranceAmount(self, itemId, insurerId, quantity):
2832
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
2833
    args = getInsuranceAmount_args()
2834
    args.itemId = itemId
2835
    args.insurerId = insurerId
2836
    args.quantity = quantity
2837
    args.write(self._oprot)
2838
    self._oprot.writeMessageEnd()
2839
    self._oprot.trans.flush()
2840
 
2841
  def recv_getInsuranceAmount(self, ):
2842
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2843
    if mtype == TMessageType.EXCEPTION:
2844
      x = TApplicationException()
2845
      x.read(self._iprot)
2846
      self._iprot.readMessageEnd()
2847
      raise x
2848
    result = getInsuranceAmount_result()
2849
    result.read(self._iprot)
2850
    self._iprot.readMessageEnd()
2851
    if result.success is not None:
2852
      return result.success
2853
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
2854
 
2855
  def getInsurer(self, insurerId):
2856
    """
2857
    Parameters:
2858
     - insurerId
2859
    """
2860
    self.send_getInsurer(insurerId)
2861
    return self.recv_getInsurer()
2862
 
2863
  def send_getInsurer(self, insurerId):
2864
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
2865
    args = getInsurer_args()
2866
    args.insurerId = insurerId
2867
    args.write(self._oprot)
2868
    self._oprot.writeMessageEnd()
2869
    self._oprot.trans.flush()
2870
 
2871
  def recv_getInsurer(self, ):
2872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2873
    if mtype == TMessageType.EXCEPTION:
2874
      x = TApplicationException()
2875
      x.read(self._iprot)
2876
      self._iprot.readMessageEnd()
2877
      raise x
2878
    result = getInsurer_result()
2879
    result.read(self._iprot)
2880
    self._iprot.readMessageEnd()
2881
    if result.success is not None:
2882
      return result.success
2883
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
2884
 
2885
 
5944 mandeep.dh 2886
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2887
  def __init__(self, handler):
2888
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2889
    self._processMap["addItem"] = Processor.process_addItem
2890
    self._processMap["updateItem"] = Processor.process_updateItem
2891
    self._processMap["isActive"] = Processor.process_isActive
2892
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
2893
    self._processMap["startItemOn"] = Processor.process_startItemOn
2894
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
2895
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2896
    self._processMap["getItem"] = Processor.process_getItem
2897
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
2898
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
2899
    self._processMap["getAllItems"] = Processor.process_getAllItems
2900
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
2901
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
2902
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
2903
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
2904
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
2905
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
2906
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
2907
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
2908
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
2909
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
2910
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
2911
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
2912
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
2913
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
2914
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
2915
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
2916
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
2917
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
2918
    self._processMap["addCategory"] = Processor.process_addCategory
2919
    self._processMap["getCategory"] = Processor.process_getCategory
2920
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
2921
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
2922
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 2923
    self._processMap["addTag"] = Processor.process_addTag
2924
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
2925
    self._processMap["deleteTag"] = Processor.process_deleteTag
2926
    self._processMap["getAllTags"] = Processor.process_getAllTags
2927
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
5944 mandeep.dh 2928
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
2929
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
2930
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
2931
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
2932
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
2933
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
2934
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
2935
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
2936
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
2937
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
2938
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
2939
    self._processMap["getAllSources"] = Processor.process_getAllSources
2940
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
2941
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
2942
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
2943
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
2944
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
2945
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
2946
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
2947
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
2948
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
2949
    self._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIds
2950
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
2951
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
2952
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
2953
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
2954
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 2955
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
2956
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 2957
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6805 anupam.sin 2958
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
2959
    self._processMap["getInsurer"] = Processor.process_getInsurer
5944 mandeep.dh 2960
 
2961
  def process(self, iprot, oprot):
2962
    (name, type, seqid) = iprot.readMessageBegin()
2963
    if name not in self._processMap:
2964
      iprot.skip(TType.STRUCT)
2965
      iprot.readMessageEnd()
2966
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2967
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2968
      x.write(oprot)
2969
      oprot.writeMessageEnd()
2970
      oprot.trans.flush()
2971
      return
2972
    else:
2973
      self._processMap[name](self, seqid, iprot, oprot)
2974
    return True
2975
 
2976
  def process_addItem(self, seqid, iprot, oprot):
2977
    args = addItem_args()
2978
    args.read(iprot)
2979
    iprot.readMessageEnd()
2980
    result = addItem_result()
2981
    try:
2982
      result.success = self._handler.addItem(args.item)
2983
    except CatalogServiceException, cex:
2984
      result.cex = cex
2985
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
2986
    result.write(oprot)
2987
    oprot.writeMessageEnd()
2988
    oprot.trans.flush()
2989
 
2990
  def process_updateItem(self, seqid, iprot, oprot):
2991
    args = updateItem_args()
2992
    args.read(iprot)
2993
    iprot.readMessageEnd()
2994
    result = updateItem_result()
2995
    try:
2996
      result.success = self._handler.updateItem(args.item)
2997
    except CatalogServiceException, cex:
2998
      result.cex = cex
2999
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3000
    result.write(oprot)
3001
    oprot.writeMessageEnd()
3002
    oprot.trans.flush()
3003
 
3004
  def process_isActive(self, seqid, iprot, oprot):
3005
    args = isActive_args()
3006
    args.read(iprot)
3007
    iprot.readMessageEnd()
3008
    result = isActive_result()
3009
    try:
3010
      result.success = self._handler.isActive(args.itemId)
3011
    except CatalogServiceException, isex:
3012
      result.isex = isex
3013
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3014
    result.write(oprot)
3015
    oprot.writeMessageEnd()
3016
    oprot.trans.flush()
3017
 
3018
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3019
    args = getItemStatusDescription_args()
3020
    args.read(iprot)
3021
    iprot.readMessageEnd()
3022
    result = getItemStatusDescription_result()
3023
    try:
3024
      result.success = self._handler.getItemStatusDescription(args.itemId)
3025
    except CatalogServiceException, isex:
3026
      result.isex = isex
3027
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3028
    result.write(oprot)
3029
    oprot.writeMessageEnd()
3030
    oprot.trans.flush()
3031
 
3032
  def process_startItemOn(self, seqid, iprot, oprot):
3033
    args = startItemOn_args()
3034
    args.read(iprot)
3035
    iprot.readMessageEnd()
3036
    result = startItemOn_result()
3037
    try:
3038
      self._handler.startItemOn(args.item_id, args.timestamp)
3039
    except CatalogServiceException, cex:
3040
      result.cex = cex
3041
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3042
    result.write(oprot)
3043
    oprot.writeMessageEnd()
3044
    oprot.trans.flush()
3045
 
3046
  def process_retireItemOn(self, seqid, iprot, oprot):
3047
    args = retireItemOn_args()
3048
    args.read(iprot)
3049
    iprot.readMessageEnd()
3050
    result = retireItemOn_result()
3051
    try:
3052
      self._handler.retireItemOn(args.item_id, args.timestamp)
3053
    except CatalogServiceException, cex:
3054
      result.cex = cex
3055
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3056
    result.write(oprot)
3057
    oprot.writeMessageEnd()
3058
    oprot.trans.flush()
3059
 
3060
  def process_changeItemStatus(self, seqid, iprot, oprot):
3061
    args = changeItemStatus_args()
3062
    args.read(iprot)
3063
    iprot.readMessageEnd()
3064
    result = changeItemStatus_result()
3065
    try:
3066
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3067
    except CatalogServiceException, cex:
3068
      result.cex = cex
3069
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3070
    result.write(oprot)
3071
    oprot.writeMessageEnd()
3072
    oprot.trans.flush()
3073
 
3074
  def process_getItem(self, seqid, iprot, oprot):
3075
    args = getItem_args()
3076
    args.read(iprot)
3077
    iprot.readMessageEnd()
3078
    result = getItem_result()
3079
    try:
3080
      result.success = self._handler.getItem(args.item_id)
3081
    except CatalogServiceException, cex:
3082
      result.cex = cex
3083
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3084
    result.write(oprot)
3085
    oprot.writeMessageEnd()
3086
    oprot.trans.flush()
3087
 
3088
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3089
    args = getItemsByCatalogId_args()
3090
    args.read(iprot)
3091
    iprot.readMessageEnd()
3092
    result = getItemsByCatalogId_result()
3093
    try:
3094
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3095
    except CatalogServiceException, cex:
3096
      result.cex = cex
3097
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3098
    result.write(oprot)
3099
    oprot.writeMessageEnd()
3100
    oprot.trans.flush()
3101
 
3102
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3103
    args = getValidItemsByCatalogId_args()
3104
    args.read(iprot)
3105
    iprot.readMessageEnd()
3106
    result = getValidItemsByCatalogId_result()
3107
    try:
3108
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3109
    except CatalogServiceException, cex:
3110
      result.cex = cex
3111
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3112
    result.write(oprot)
3113
    oprot.writeMessageEnd()
3114
    oprot.trans.flush()
3115
 
3116
  def process_getAllItems(self, seqid, iprot, oprot):
3117
    args = getAllItems_args()
3118
    args.read(iprot)
3119
    iprot.readMessageEnd()
3120
    result = getAllItems_result()
3121
    try:
3122
      result.success = self._handler.getAllItems(args.isActive)
3123
    except CatalogServiceException, cex:
3124
      result.cex = cex
3125
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3126
    result.write(oprot)
3127
    oprot.writeMessageEnd()
3128
    oprot.trans.flush()
3129
 
3130
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3131
    args = getAllItemsByStatus_args()
3132
    args.read(iprot)
3133
    iprot.readMessageEnd()
3134
    result = getAllItemsByStatus_result()
3135
    try:
3136
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3137
    except CatalogServiceException, cex:
3138
      result.cex = cex
3139
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3140
    result.write(oprot)
3141
    oprot.writeMessageEnd()
3142
    oprot.trans.flush()
3143
 
3144
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3145
    args = markItemAsContentComplete_args()
3146
    args.read(iprot)
3147
    iprot.readMessageEnd()
3148
    result = markItemAsContentComplete_result()
3149
    try:
3150
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3151
    except CatalogServiceException, cex:
3152
      result.cex = cex
3153
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3154
    result.write(oprot)
3155
    oprot.writeMessageEnd()
3156
    oprot.trans.flush()
3157
 
3158
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3159
    args = getAllItemsInRange_args()
3160
    args.read(iprot)
3161
    iprot.readMessageEnd()
3162
    result = getAllItemsInRange_result()
3163
    try:
3164
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3165
    except CatalogServiceException, cex:
3166
      result.cex = cex
3167
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3168
    result.write(oprot)
3169
    oprot.writeMessageEnd()
3170
    oprot.trans.flush()
3171
 
3172
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3173
    args = getAllItemsByStatusInRange_args()
3174
    args.read(iprot)
3175
    iprot.readMessageEnd()
3176
    result = getAllItemsByStatusInRange_result()
3177
    try:
3178
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3179
    except CatalogServiceException, cex:
3180
      result.cex = cex
3181
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3182
    result.write(oprot)
3183
    oprot.writeMessageEnd()
3184
    oprot.trans.flush()
3185
 
3186
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3187
    args = getItemCountByStatus_args()
3188
    args.read(iprot)
3189
    iprot.readMessageEnd()
3190
    result = getItemCountByStatus_result()
3191
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3192
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3193
    result.write(oprot)
3194
    oprot.writeMessageEnd()
3195
    oprot.trans.flush()
3196
 
3197
  def process_getBestSellers(self, seqid, iprot, oprot):
3198
    args = getBestSellers_args()
3199
    args.read(iprot)
3200
    iprot.readMessageEnd()
3201
    result = getBestSellers_result()
3202
    try:
3203
      result.success = self._handler.getBestSellers()
3204
    except CatalogServiceException, isex:
3205
      result.isex = isex
3206
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3207
    result.write(oprot)
3208
    oprot.writeMessageEnd()
3209
    oprot.trans.flush()
3210
 
3211
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3212
    args = getBestSellersCatalogIds_args()
3213
    args.read(iprot)
3214
    iprot.readMessageEnd()
3215
    result = getBestSellersCatalogIds_result()
3216
    try:
3217
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3218
    except CatalogServiceException, cex:
3219
      result.cex = cex
3220
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3221
    result.write(oprot)
3222
    oprot.writeMessageEnd()
3223
    oprot.trans.flush()
3224
 
3225
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3226
    args = getBestSellersCount_args()
3227
    args.read(iprot)
3228
    iprot.readMessageEnd()
3229
    result = getBestSellersCount_result()
3230
    try:
3231
      result.success = self._handler.getBestSellersCount()
3232
    except CatalogServiceException, cex:
3233
      result.cex = cex
3234
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3235
    result.write(oprot)
3236
    oprot.writeMessageEnd()
3237
    oprot.trans.flush()
3238
 
3239
  def process_getBestDeals(self, seqid, iprot, oprot):
3240
    args = getBestDeals_args()
3241
    args.read(iprot)
3242
    iprot.readMessageEnd()
3243
    result = getBestDeals_result()
3244
    try:
3245
      result.success = self._handler.getBestDeals()
3246
    except CatalogServiceException, isex:
3247
      result.isex = isex
3248
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3249
    result.write(oprot)
3250
    oprot.writeMessageEnd()
3251
    oprot.trans.flush()
3252
 
3253
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3254
    args = getBestDealsCatalogIds_args()
3255
    args.read(iprot)
3256
    iprot.readMessageEnd()
3257
    result = getBestDealsCatalogIds_result()
3258
    try:
3259
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3260
    except CatalogServiceException, cex:
3261
      result.cex = cex
3262
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3263
    result.write(oprot)
3264
    oprot.writeMessageEnd()
3265
    oprot.trans.flush()
3266
 
3267
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3268
    args = getBestDealsCount_args()
3269
    args.read(iprot)
3270
    iprot.readMessageEnd()
3271
    result = getBestDealsCount_result()
3272
    try:
3273
      result.success = self._handler.getBestDealsCount()
3274
    except CatalogServiceException, cex:
3275
      result.cex = cex
3276
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3277
    result.write(oprot)
3278
    oprot.writeMessageEnd()
3279
    oprot.trans.flush()
3280
 
3281
  def process_getComingSoon(self, seqid, iprot, oprot):
3282
    args = getComingSoon_args()
3283
    args.read(iprot)
3284
    iprot.readMessageEnd()
3285
    result = getComingSoon_result()
3286
    try:
3287
      result.success = self._handler.getComingSoon()
3288
    except CatalogServiceException, isex:
3289
      result.isex = isex
3290
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3291
    result.write(oprot)
3292
    oprot.writeMessageEnd()
3293
    oprot.trans.flush()
3294
 
3295
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3296
    args = getComingSoonCatalogIds_args()
3297
    args.read(iprot)
3298
    iprot.readMessageEnd()
3299
    result = getComingSoonCatalogIds_result()
3300
    try:
3301
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3302
    except CatalogServiceException, cex:
3303
      result.cex = cex
3304
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3305
    result.write(oprot)
3306
    oprot.writeMessageEnd()
3307
    oprot.trans.flush()
3308
 
3309
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3310
    args = getComingSoonCount_args()
3311
    args.read(iprot)
3312
    iprot.readMessageEnd()
3313
    result = getComingSoonCount_result()
3314
    try:
3315
      result.success = self._handler.getComingSoonCount()
3316
    except CatalogServiceException, cex:
3317
      result.cex = cex
3318
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3319
    result.write(oprot)
3320
    oprot.writeMessageEnd()
3321
    oprot.trans.flush()
3322
 
3323
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3324
    args = getLatestArrivals_args()
3325
    args.read(iprot)
3326
    iprot.readMessageEnd()
3327
    result = getLatestArrivals_result()
3328
    try:
3329
      result.success = self._handler.getLatestArrivals()
3330
    except CatalogServiceException, isex:
3331
      result.isex = isex
3332
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3333
    result.write(oprot)
3334
    oprot.writeMessageEnd()
3335
    oprot.trans.flush()
3336
 
3337
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3338
    args = getLatestArrivalsCatalogIds_args()
3339
    args.read(iprot)
3340
    iprot.readMessageEnd()
3341
    result = getLatestArrivalsCatalogIds_result()
3342
    try:
3343
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3344
    except CatalogServiceException, cex:
3345
      result.cex = cex
3346
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3347
    result.write(oprot)
3348
    oprot.writeMessageEnd()
3349
    oprot.trans.flush()
3350
 
3351
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3352
    args = getLatestArrivalsCount_args()
3353
    args.read(iprot)
3354
    iprot.readMessageEnd()
3355
    result = getLatestArrivalsCount_result()
3356
    try:
3357
      result.success = self._handler.getLatestArrivalsCount()
3358
    except CatalogServiceException, cex:
3359
      result.cex = cex
3360
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3361
    result.write(oprot)
3362
    oprot.writeMessageEnd()
3363
    oprot.trans.flush()
3364
 
3365
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3366
    args = generateNewEntityID_args()
3367
    args.read(iprot)
3368
    iprot.readMessageEnd()
3369
    result = generateNewEntityID_result()
3370
    result.success = self._handler.generateNewEntityID()
3371
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3372
    result.write(oprot)
3373
    oprot.writeMessageEnd()
3374
    oprot.trans.flush()
3375
 
3376
  def process_addCategory(self, seqid, iprot, oprot):
3377
    args = addCategory_args()
3378
    args.read(iprot)
3379
    iprot.readMessageEnd()
3380
    result = addCategory_result()
3381
    result.success = self._handler.addCategory(args.category)
3382
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3383
    result.write(oprot)
3384
    oprot.writeMessageEnd()
3385
    oprot.trans.flush()
3386
 
3387
  def process_getCategory(self, seqid, iprot, oprot):
3388
    args = getCategory_args()
3389
    args.read(iprot)
3390
    iprot.readMessageEnd()
3391
    result = getCategory_result()
3392
    result.success = self._handler.getCategory(args.id)
3393
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3394
    result.write(oprot)
3395
    oprot.writeMessageEnd()
3396
    oprot.trans.flush()
3397
 
3398
  def process_getAllCategories(self, seqid, iprot, oprot):
3399
    args = getAllCategories_args()
3400
    args.read(iprot)
3401
    iprot.readMessageEnd()
3402
    result = getAllCategories_result()
3403
    result.success = self._handler.getAllCategories()
3404
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3405
    result.write(oprot)
3406
    oprot.writeMessageEnd()
3407
    oprot.trans.flush()
3408
 
3409
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3410
    args = getAllSimilarItems_args()
3411
    args.read(iprot)
3412
    iprot.readMessageEnd()
3413
    result = getAllSimilarItems_result()
3414
    result.success = self._handler.getAllSimilarItems(args.itemId)
3415
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3416
    result.write(oprot)
3417
    oprot.writeMessageEnd()
3418
    oprot.trans.flush()
3419
 
3420
  def process_addSimilarItem(self, seqid, iprot, oprot):
3421
    args = addSimilarItem_args()
3422
    args.read(iprot)
3423
    iprot.readMessageEnd()
3424
    result = addSimilarItem_result()
3425
    try:
3426
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3427
    except CatalogServiceException, cex:
3428
      result.cex = cex
3429
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3430
    result.write(oprot)
3431
    oprot.writeMessageEnd()
3432
    oprot.trans.flush()
3433
 
6512 kshitij.so 3434
  def process_addTag(self, seqid, iprot, oprot):
3435
    args = addTag_args()
3436
    args.read(iprot)
3437
    iprot.readMessageEnd()
3438
    result = addTag_result()
3439
    result.success = self._handler.addTag(args.displayName, args.itemId)
3440
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3441
    result.write(oprot)
3442
    oprot.writeMessageEnd()
3443
    oprot.trans.flush()
3444
 
3445
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3446
    args = deleteEntityTag_args()
3447
    args.read(iprot)
3448
    iprot.readMessageEnd()
3449
    result = deleteEntityTag_result()
3450
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3451
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3452
    result.write(oprot)
3453
    oprot.writeMessageEnd()
3454
    oprot.trans.flush()
3455
 
3456
  def process_deleteTag(self, seqid, iprot, oprot):
3457
    args = deleteTag_args()
3458
    args.read(iprot)
3459
    iprot.readMessageEnd()
3460
    result = deleteTag_result()
3461
    result.success = self._handler.deleteTag(args.displayName)
3462
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3463
    result.write(oprot)
3464
    oprot.writeMessageEnd()
3465
    oprot.trans.flush()
3466
 
3467
  def process_getAllTags(self, seqid, iprot, oprot):
3468
    args = getAllTags_args()
3469
    args.read(iprot)
3470
    iprot.readMessageEnd()
3471
    result = getAllTags_result()
3472
    result.success = self._handler.getAllTags()
3473
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3474
    result.write(oprot)
3475
    oprot.writeMessageEnd()
3476
    oprot.trans.flush()
3477
 
3478
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3479
    args = getAllEntitiesByTagName_args()
3480
    args.read(iprot)
3481
    iprot.readMessageEnd()
3482
    result = getAllEntitiesByTagName_result()
3483
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
3484
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
3485
    result.write(oprot)
3486
    oprot.writeMessageEnd()
3487
    oprot.trans.flush()
3488
 
5944 mandeep.dh 3489
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
3490
    args = deleteSimilarItem_args()
3491
    args.read(iprot)
3492
    iprot.readMessageEnd()
3493
    result = deleteSimilarItem_result()
3494
    try:
3495
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
3496
    except CatalogServiceException, cex:
3497
      result.cex = cex
3498
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
3499
    result.write(oprot)
3500
    oprot.writeMessageEnd()
3501
    oprot.trans.flush()
3502
 
3503
  def process_checkSimilarItem(self, seqid, iprot, oprot):
3504
    args = checkSimilarItem_args()
3505
    args.read(iprot)
3506
    iprot.readMessageEnd()
3507
    result = checkSimilarItem_result()
3508
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
3509
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
3510
    result.write(oprot)
3511
    oprot.writeMessageEnd()
3512
    oprot.trans.flush()
3513
 
3514
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
3515
    args = validateRiskyStatus_args()
3516
    args.read(iprot)
3517
    iprot.readMessageEnd()
3518
    result = validateRiskyStatus_result()
3519
    self._handler.validateRiskyStatus(args.itemId)
3520
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
3521
    result.write(oprot)
3522
    oprot.writeMessageEnd()
3523
    oprot.trans.flush()
3524
 
3525
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
3526
    args = changeItemRiskyFlag_args()
3527
    args.read(iprot)
3528
    iprot.readMessageEnd()
3529
    result = changeItemRiskyFlag_result()
3530
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
3531
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
3532
    result.write(oprot)
3533
    oprot.writeMessageEnd()
3534
    oprot.trans.flush()
3535
 
3536
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
3537
    args = getItemsByRiskyFlag_args()
3538
    args.read(iprot)
3539
    iprot.readMessageEnd()
3540
    result = getItemsByRiskyFlag_result()
3541
    result.success = self._handler.getItemsByRiskyFlag()
3542
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
3543
    result.write(oprot)
3544
    oprot.writeMessageEnd()
3545
    oprot.trans.flush()
3546
 
3547
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
3548
    args = getItemsForMasterSheet_args()
3549
    args.read(iprot)
3550
    iprot.readMessageEnd()
3551
    result = getItemsForMasterSheet_result()
3552
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
3553
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
3554
    result.write(oprot)
3555
    oprot.writeMessageEnd()
3556
    oprot.trans.flush()
3557
 
3558
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
3559
    args = getSimilarItemsCatalogIds_args()
3560
    args.read(iprot)
3561
    iprot.readMessageEnd()
3562
    result = getSimilarItemsCatalogIds_result()
3563
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
3564
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
3565
    result.write(oprot)
3566
    oprot.writeMessageEnd()
3567
    oprot.trans.flush()
3568
 
3569
  def process_addProductNotification(self, seqid, iprot, oprot):
3570
    args = addProductNotification_args()
3571
    args.read(iprot)
3572
    iprot.readMessageEnd()
3573
    result = addProductNotification_result()
3574
    result.success = self._handler.addProductNotification(args.itemId, args.email)
3575
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
3576
    result.write(oprot)
3577
    oprot.writeMessageEnd()
3578
    oprot.trans.flush()
3579
 
3580
  def process_sendProductNotifications(self, seqid, iprot, oprot):
3581
    args = sendProductNotifications_args()
3582
    args.read(iprot)
3583
    iprot.readMessageEnd()
3584
    result = sendProductNotifications_result()
3585
    result.success = self._handler.sendProductNotifications()
3586
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
3587
    result.write(oprot)
3588
    oprot.writeMessageEnd()
3589
    oprot.trans.flush()
3590
 
3591
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
3592
    args = getAllBrandsByCategory_args()
3593
    args.read(iprot)
3594
    iprot.readMessageEnd()
3595
    result = getAllBrandsByCategory_result()
3596
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
3597
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
3598
    result.write(oprot)
3599
    oprot.writeMessageEnd()
3600
    oprot.trans.flush()
3601
 
3602
  def process_getAllBrands(self, seqid, iprot, oprot):
3603
    args = getAllBrands_args()
3604
    args.read(iprot)
3605
    iprot.readMessageEnd()
3606
    result = getAllBrands_result()
3607
    result.success = self._handler.getAllBrands()
3608
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
3609
    result.write(oprot)
3610
    oprot.writeMessageEnd()
3611
    oprot.trans.flush()
3612
 
3613
  def process_getAllSources(self, seqid, iprot, oprot):
3614
    args = getAllSources_args()
3615
    args.read(iprot)
3616
    iprot.readMessageEnd()
3617
    result = getAllSources_result()
3618
    result.success = self._handler.getAllSources()
3619
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
3620
    result.write(oprot)
3621
    oprot.writeMessageEnd()
3622
    oprot.trans.flush()
3623
 
3624
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
3625
    args = getItemPricingBySource_args()
3626
    args.read(iprot)
3627
    iprot.readMessageEnd()
3628
    result = getItemPricingBySource_result()
3629
    try:
3630
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
3631
    except CatalogServiceException, cex:
3632
      result.cex = cex
3633
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
3634
    result.write(oprot)
3635
    oprot.writeMessageEnd()
3636
    oprot.trans.flush()
3637
 
3638
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
3639
    args = addSourceItemPricing_args()
3640
    args.read(iprot)
3641
    iprot.readMessageEnd()
3642
    result = addSourceItemPricing_result()
3643
    try:
3644
      self._handler.addSourceItemPricing(args.sourceItemPricing)
3645
    except CatalogServiceException, cex:
3646
      result.cex = cex
3647
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
3648
    result.write(oprot)
3649
    oprot.writeMessageEnd()
3650
    oprot.trans.flush()
3651
 
3652
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
3653
    args = getAllSourcePricing_args()
3654
    args.read(iprot)
3655
    iprot.readMessageEnd()
3656
    result = getAllSourcePricing_result()
3657
    try:
3658
      result.success = self._handler.getAllSourcePricing(args.itemId)
3659
    except CatalogServiceException, cex:
3660
      result.cex = cex
3661
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
3662
    result.write(oprot)
3663
    oprot.writeMessageEnd()
3664
    oprot.trans.flush()
3665
 
3666
  def process_getItemForSource(self, seqid, iprot, oprot):
3667
    args = getItemForSource_args()
3668
    args.read(iprot)
3669
    iprot.readMessageEnd()
3670
    result = getItemForSource_result()
3671
    try:
3672
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
3673
    except CatalogServiceException, cex:
3674
      result.cex = cex
3675
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
3676
    result.write(oprot)
3677
    oprot.writeMessageEnd()
3678
    oprot.trans.flush()
3679
 
3680
  def process_searchItemsInRange(self, seqid, iprot, oprot):
3681
    args = searchItemsInRange_args()
3682
    args.read(iprot)
3683
    iprot.readMessageEnd()
3684
    result = searchItemsInRange_result()
3685
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
3686
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
3687
    result.write(oprot)
3688
    oprot.writeMessageEnd()
3689
    oprot.trans.flush()
3690
 
3691
  def process_getSearchResultCount(self, seqid, iprot, oprot):
3692
    args = getSearchResultCount_args()
3693
    args.read(iprot)
3694
    iprot.readMessageEnd()
3695
    result = getSearchResultCount_result()
3696
    result.success = self._handler.getSearchResultCount(args.searchTerms)
3697
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
3698
    result.write(oprot)
3699
    oprot.writeMessageEnd()
3700
    oprot.trans.flush()
3701
 
3702
  def process_getProductNotifications(self, seqid, iprot, oprot):
3703
    args = getProductNotifications_args()
3704
    args.read(iprot)
3705
    iprot.readMessageEnd()
3706
    result = getProductNotifications_result()
3707
    result.success = self._handler.getProductNotifications(args.startDateTime)
3708
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
3709
    result.write(oprot)
3710
    oprot.writeMessageEnd()
3711
    oprot.trans.flush()
3712
 
3713
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
3714
    args = getProductNotificationRequestCount_args()
3715
    args.read(iprot)
3716
    iprot.readMessageEnd()
3717
    result = getProductNotificationRequestCount_result()
3718
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
3719
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
3720
    result.write(oprot)
3721
    oprot.writeMessageEnd()
3722
    oprot.trans.flush()
3723
 
3724
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
3725
    args = addAuthorizationLog_args()
3726
    args.read(iprot)
3727
    iprot.readMessageEnd()
3728
    result = addAuthorizationLog_result()
3729
    try:
3730
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
3731
    except CatalogServiceException, cex:
3732
      result.cex = cex
3733
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
3734
    result.write(oprot)
3735
    oprot.writeMessageEnd()
3736
    oprot.trans.flush()
3737
 
3738
  def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):
3739
    args = getClearanceSaleCatalogIds_args()
3740
    args.read(iprot)
3741
    iprot.readMessageEnd()
3742
    result = getClearanceSaleCatalogIds_result()
3743
    try:
3744
      result.success = self._handler.getClearanceSaleCatalogIds()
3745
    except CatalogServiceException, cex:
3746
      result.cex = cex
3747
    oprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)
3748
    result.write(oprot)
3749
    oprot.writeMessageEnd()
3750
    oprot.trans.flush()
3751
 
3752
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
3753
    args = addupdateVoucherForItem_args()
3754
    args.read(iprot)
3755
    iprot.readMessageEnd()
3756
    result = addupdateVoucherForItem_result()
3757
    try:
3758
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
3759
    except CatalogServiceException, cex:
3760
      result.cex = cex
3761
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
3762
    result.write(oprot)
3763
    oprot.writeMessageEnd()
3764
    oprot.trans.flush()
3765
 
3766
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
3767
    args = deleteVoucherForItem_args()
3768
    args.read(iprot)
3769
    iprot.readMessageEnd()
3770
    result = deleteVoucherForItem_result()
3771
    try:
3772
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
3773
    except CatalogServiceException, cex:
3774
      result.cex = cex
3775
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
3776
    result.write(oprot)
3777
    oprot.writeMessageEnd()
3778
    oprot.trans.flush()
3779
 
3780
  def process_getVoucherAmount(self, seqid, iprot, oprot):
3781
    args = getVoucherAmount_args()
3782
    args.read(iprot)
3783
    iprot.readMessageEnd()
3784
    result = getVoucherAmount_result()
3785
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
3786
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
3787
    result.write(oprot)
3788
    oprot.writeMessageEnd()
3789
    oprot.trans.flush()
3790
 
3791
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
3792
    args = getAllItemVouchers_args()
3793
    args.read(iprot)
3794
    iprot.readMessageEnd()
3795
    result = getAllItemVouchers_result()
3796
    result.success = self._handler.getAllItemVouchers(args.itemId)
3797
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
3798
    result.write(oprot)
3799
    oprot.writeMessageEnd()
3800
    oprot.trans.flush()
3801
 
3802
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
3803
    args = isValidCatalogItemId_args()
3804
    args.read(iprot)
3805
    iprot.readMessageEnd()
3806
    result = isValidCatalogItemId_result()
3807
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
3808
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
3809
    result.write(oprot)
3810
    oprot.writeMessageEnd()
3811
    oprot.trans.flush()
3812
 
6039 amit.gupta 3813
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
3814
    args = getVatPercentageForItem_args()
3815
    args.read(iprot)
3816
    iprot.readMessageEnd()
3817
    result = getVatPercentageForItem_result()
3818
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
3819
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
3820
    result.write(oprot)
3821
    oprot.writeMessageEnd()
3822
    oprot.trans.flush()
5944 mandeep.dh 3823
 
6039 amit.gupta 3824
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
3825
    args = getVatAmountForItem_args()
3826
    args.read(iprot)
3827
    iprot.readMessageEnd()
3828
    result = getVatAmountForItem_result()
3829
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
3830
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
3831
    result.write(oprot)
3832
    oprot.writeMessageEnd()
3833
    oprot.trans.flush()
3834
 
6531 vikram.rag 3835
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
3836
    args = getAllIgnoredInventoryUpdateItemsList_args()
3837
    args.read(iprot)
3838
    iprot.readMessageEnd()
3839
    result = getAllIgnoredInventoryUpdateItemsList_result()
3840
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
3841
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
3842
    result.write(oprot)
3843
    oprot.writeMessageEnd()
3844
    oprot.trans.flush()
6039 amit.gupta 3845
 
6805 anupam.sin 3846
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
3847
    args = getInsuranceAmount_args()
3848
    args.read(iprot)
3849
    iprot.readMessageEnd()
3850
    result = getInsuranceAmount_result()
3851
    result.success = self._handler.getInsuranceAmount(args.itemId, args.insurerId, args.quantity)
3852
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
3853
    result.write(oprot)
3854
    oprot.writeMessageEnd()
3855
    oprot.trans.flush()
6531 vikram.rag 3856
 
6805 anupam.sin 3857
  def process_getInsurer(self, seqid, iprot, oprot):
3858
    args = getInsurer_args()
3859
    args.read(iprot)
3860
    iprot.readMessageEnd()
3861
    result = getInsurer_result()
3862
    result.success = self._handler.getInsurer(args.insurerId)
3863
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
3864
    result.write(oprot)
3865
    oprot.writeMessageEnd()
3866
    oprot.trans.flush()
3867
 
3868
 
5944 mandeep.dh 3869
# HELPER FUNCTIONS AND STRUCTURES
3870
 
3871
class addItem_args:
3872
  """
3873
  Attributes:
3874
   - item
3875
  """
3876
 
3877
  thrift_spec = (
3878
    None, # 0
3879
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
3880
  )
3881
 
3882
  def __init__(self, item=None,):
3883
    self.item = item
3884
 
3885
  def read(self, iprot):
3886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3888
      return
3889
    iprot.readStructBegin()
3890
    while True:
3891
      (fname, ftype, fid) = iprot.readFieldBegin()
3892
      if ftype == TType.STOP:
3893
        break
3894
      if fid == 1:
3895
        if ftype == TType.STRUCT:
3896
          self.item = Item()
3897
          self.item.read(iprot)
3898
        else:
3899
          iprot.skip(ftype)
3900
      else:
3901
        iprot.skip(ftype)
3902
      iprot.readFieldEnd()
3903
    iprot.readStructEnd()
3904
 
3905
  def write(self, oprot):
3906
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3907
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3908
      return
3909
    oprot.writeStructBegin('addItem_args')
3910
    if self.item is not None:
3911
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
3912
      self.item.write(oprot)
3913
      oprot.writeFieldEnd()
3914
    oprot.writeFieldStop()
3915
    oprot.writeStructEnd()
3916
 
3917
  def validate(self):
3918
    return
3919
 
3920
 
3921
  def __repr__(self):
3922
    L = ['%s=%r' % (key, value)
3923
      for key, value in self.__dict__.iteritems()]
3924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3925
 
3926
  def __eq__(self, other):
3927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3928
 
3929
  def __ne__(self, other):
3930
    return not (self == other)
3931
 
3932
class addItem_result:
3933
  """
3934
  Attributes:
3935
   - success
3936
   - cex
3937
  """
3938
 
3939
  thrift_spec = (
3940
    (0, TType.I64, 'success', None, None, ), # 0
3941
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
3942
  )
3943
 
3944
  def __init__(self, success=None, cex=None,):
3945
    self.success = success
3946
    self.cex = cex
3947
 
3948
  def read(self, iprot):
3949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3951
      return
3952
    iprot.readStructBegin()
3953
    while True:
3954
      (fname, ftype, fid) = iprot.readFieldBegin()
3955
      if ftype == TType.STOP:
3956
        break
3957
      if fid == 0:
3958
        if ftype == TType.I64:
3959
          self.success = iprot.readI64();
3960
        else:
3961
          iprot.skip(ftype)
3962
      elif fid == 1:
3963
        if ftype == TType.STRUCT:
3964
          self.cex = CatalogServiceException()
3965
          self.cex.read(iprot)
3966
        else:
3967
          iprot.skip(ftype)
3968
      else:
3969
        iprot.skip(ftype)
3970
      iprot.readFieldEnd()
3971
    iprot.readStructEnd()
3972
 
3973
  def write(self, oprot):
3974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3976
      return
3977
    oprot.writeStructBegin('addItem_result')
3978
    if self.success is not None:
3979
      oprot.writeFieldBegin('success', TType.I64, 0)
3980
      oprot.writeI64(self.success)
3981
      oprot.writeFieldEnd()
3982
    if self.cex is not None:
3983
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3984
      self.cex.write(oprot)
3985
      oprot.writeFieldEnd()
3986
    oprot.writeFieldStop()
3987
    oprot.writeStructEnd()
3988
 
3989
  def validate(self):
3990
    return
3991
 
3992
 
3993
  def __repr__(self):
3994
    L = ['%s=%r' % (key, value)
3995
      for key, value in self.__dict__.iteritems()]
3996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3997
 
3998
  def __eq__(self, other):
3999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4000
 
4001
  def __ne__(self, other):
4002
    return not (self == other)
4003
 
4004
class updateItem_args:
4005
  """
4006
  Attributes:
4007
   - item
4008
  """
4009
 
4010
  thrift_spec = (
4011
    None, # 0
4012
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4013
  )
4014
 
4015
  def __init__(self, item=None,):
4016
    self.item = item
4017
 
4018
  def read(self, iprot):
4019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4021
      return
4022
    iprot.readStructBegin()
4023
    while True:
4024
      (fname, ftype, fid) = iprot.readFieldBegin()
4025
      if ftype == TType.STOP:
4026
        break
4027
      if fid == 1:
4028
        if ftype == TType.STRUCT:
4029
          self.item = Item()
4030
          self.item.read(iprot)
4031
        else:
4032
          iprot.skip(ftype)
4033
      else:
4034
        iprot.skip(ftype)
4035
      iprot.readFieldEnd()
4036
    iprot.readStructEnd()
4037
 
4038
  def write(self, oprot):
4039
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4040
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4041
      return
4042
    oprot.writeStructBegin('updateItem_args')
4043
    if self.item is not None:
4044
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4045
      self.item.write(oprot)
4046
      oprot.writeFieldEnd()
4047
    oprot.writeFieldStop()
4048
    oprot.writeStructEnd()
4049
 
4050
  def validate(self):
4051
    return
4052
 
4053
 
4054
  def __repr__(self):
4055
    L = ['%s=%r' % (key, value)
4056
      for key, value in self.__dict__.iteritems()]
4057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4058
 
4059
  def __eq__(self, other):
4060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4061
 
4062
  def __ne__(self, other):
4063
    return not (self == other)
4064
 
4065
class updateItem_result:
4066
  """
4067
  Attributes:
4068
   - success
4069
   - cex
4070
  """
4071
 
4072
  thrift_spec = (
4073
    (0, TType.I64, 'success', None, None, ), # 0
4074
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4075
  )
4076
 
4077
  def __init__(self, success=None, cex=None,):
4078
    self.success = success
4079
    self.cex = cex
4080
 
4081
  def read(self, iprot):
4082
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4083
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4084
      return
4085
    iprot.readStructBegin()
4086
    while True:
4087
      (fname, ftype, fid) = iprot.readFieldBegin()
4088
      if ftype == TType.STOP:
4089
        break
4090
      if fid == 0:
4091
        if ftype == TType.I64:
4092
          self.success = iprot.readI64();
4093
        else:
4094
          iprot.skip(ftype)
4095
      elif fid == 1:
4096
        if ftype == TType.STRUCT:
4097
          self.cex = CatalogServiceException()
4098
          self.cex.read(iprot)
4099
        else:
4100
          iprot.skip(ftype)
4101
      else:
4102
        iprot.skip(ftype)
4103
      iprot.readFieldEnd()
4104
    iprot.readStructEnd()
4105
 
4106
  def write(self, oprot):
4107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4109
      return
4110
    oprot.writeStructBegin('updateItem_result')
4111
    if self.success is not None:
4112
      oprot.writeFieldBegin('success', TType.I64, 0)
4113
      oprot.writeI64(self.success)
4114
      oprot.writeFieldEnd()
4115
    if self.cex is not None:
4116
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4117
      self.cex.write(oprot)
4118
      oprot.writeFieldEnd()
4119
    oprot.writeFieldStop()
4120
    oprot.writeStructEnd()
4121
 
4122
  def validate(self):
4123
    return
4124
 
4125
 
4126
  def __repr__(self):
4127
    L = ['%s=%r' % (key, value)
4128
      for key, value in self.__dict__.iteritems()]
4129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4130
 
4131
  def __eq__(self, other):
4132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4133
 
4134
  def __ne__(self, other):
4135
    return not (self == other)
4136
 
4137
class isActive_args:
4138
  """
4139
  Attributes:
4140
   - itemId
4141
  """
4142
 
4143
  thrift_spec = (
4144
    None, # 0
4145
    (1, TType.I64, 'itemId', None, None, ), # 1
4146
  )
4147
 
4148
  def __init__(self, itemId=None,):
4149
    self.itemId = itemId
4150
 
4151
  def read(self, iprot):
4152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4154
      return
4155
    iprot.readStructBegin()
4156
    while True:
4157
      (fname, ftype, fid) = iprot.readFieldBegin()
4158
      if ftype == TType.STOP:
4159
        break
4160
      if fid == 1:
4161
        if ftype == TType.I64:
4162
          self.itemId = iprot.readI64();
4163
        else:
4164
          iprot.skip(ftype)
4165
      else:
4166
        iprot.skip(ftype)
4167
      iprot.readFieldEnd()
4168
    iprot.readStructEnd()
4169
 
4170
  def write(self, oprot):
4171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4173
      return
4174
    oprot.writeStructBegin('isActive_args')
4175
    if self.itemId is not None:
4176
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4177
      oprot.writeI64(self.itemId)
4178
      oprot.writeFieldEnd()
4179
    oprot.writeFieldStop()
4180
    oprot.writeStructEnd()
4181
 
4182
  def validate(self):
4183
    return
4184
 
4185
 
4186
  def __repr__(self):
4187
    L = ['%s=%r' % (key, value)
4188
      for key, value in self.__dict__.iteritems()]
4189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4190
 
4191
  def __eq__(self, other):
4192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4193
 
4194
  def __ne__(self, other):
4195
    return not (self == other)
4196
 
4197
class isActive_result:
4198
  """
4199
  Attributes:
4200
   - success
4201
   - isex
4202
  """
4203
 
4204
  thrift_spec = (
4205
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4206
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4207
  )
4208
 
4209
  def __init__(self, success=None, isex=None,):
4210
    self.success = success
4211
    self.isex = isex
4212
 
4213
  def read(self, iprot):
4214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4216
      return
4217
    iprot.readStructBegin()
4218
    while True:
4219
      (fname, ftype, fid) = iprot.readFieldBegin()
4220
      if ftype == TType.STOP:
4221
        break
4222
      if fid == 0:
4223
        if ftype == TType.STRUCT:
4224
          self.success = ItemShippingInfo()
4225
          self.success.read(iprot)
4226
        else:
4227
          iprot.skip(ftype)
4228
      elif fid == 1:
4229
        if ftype == TType.STRUCT:
4230
          self.isex = CatalogServiceException()
4231
          self.isex.read(iprot)
4232
        else:
4233
          iprot.skip(ftype)
4234
      else:
4235
        iprot.skip(ftype)
4236
      iprot.readFieldEnd()
4237
    iprot.readStructEnd()
4238
 
4239
  def write(self, oprot):
4240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4242
      return
4243
    oprot.writeStructBegin('isActive_result')
4244
    if self.success is not None:
4245
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4246
      self.success.write(oprot)
4247
      oprot.writeFieldEnd()
4248
    if self.isex is not None:
4249
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4250
      self.isex.write(oprot)
4251
      oprot.writeFieldEnd()
4252
    oprot.writeFieldStop()
4253
    oprot.writeStructEnd()
4254
 
4255
  def validate(self):
4256
    return
4257
 
4258
 
4259
  def __repr__(self):
4260
    L = ['%s=%r' % (key, value)
4261
      for key, value in self.__dict__.iteritems()]
4262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4263
 
4264
  def __eq__(self, other):
4265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4266
 
4267
  def __ne__(self, other):
4268
    return not (self == other)
4269
 
4270
class getItemStatusDescription_args:
4271
  """
4272
  Attributes:
4273
   - itemId
4274
  """
4275
 
4276
  thrift_spec = (
4277
    None, # 0
4278
    (1, TType.I64, 'itemId', None, None, ), # 1
4279
  )
4280
 
4281
  def __init__(self, itemId=None,):
4282
    self.itemId = itemId
4283
 
4284
  def read(self, iprot):
4285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4287
      return
4288
    iprot.readStructBegin()
4289
    while True:
4290
      (fname, ftype, fid) = iprot.readFieldBegin()
4291
      if ftype == TType.STOP:
4292
        break
4293
      if fid == 1:
4294
        if ftype == TType.I64:
4295
          self.itemId = iprot.readI64();
4296
        else:
4297
          iprot.skip(ftype)
4298
      else:
4299
        iprot.skip(ftype)
4300
      iprot.readFieldEnd()
4301
    iprot.readStructEnd()
4302
 
4303
  def write(self, oprot):
4304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4306
      return
4307
    oprot.writeStructBegin('getItemStatusDescription_args')
4308
    if self.itemId is not None:
4309
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4310
      oprot.writeI64(self.itemId)
4311
      oprot.writeFieldEnd()
4312
    oprot.writeFieldStop()
4313
    oprot.writeStructEnd()
4314
 
4315
  def validate(self):
4316
    return
4317
 
4318
 
4319
  def __repr__(self):
4320
    L = ['%s=%r' % (key, value)
4321
      for key, value in self.__dict__.iteritems()]
4322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4323
 
4324
  def __eq__(self, other):
4325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4326
 
4327
  def __ne__(self, other):
4328
    return not (self == other)
4329
 
4330
class getItemStatusDescription_result:
4331
  """
4332
  Attributes:
4333
   - success
4334
   - isex
4335
  """
4336
 
4337
  thrift_spec = (
4338
    (0, TType.STRING, 'success', None, None, ), # 0
4339
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4340
  )
4341
 
4342
  def __init__(self, success=None, isex=None,):
4343
    self.success = success
4344
    self.isex = isex
4345
 
4346
  def read(self, iprot):
4347
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4348
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4349
      return
4350
    iprot.readStructBegin()
4351
    while True:
4352
      (fname, ftype, fid) = iprot.readFieldBegin()
4353
      if ftype == TType.STOP:
4354
        break
4355
      if fid == 0:
4356
        if ftype == TType.STRING:
4357
          self.success = iprot.readString();
4358
        else:
4359
          iprot.skip(ftype)
4360
      elif fid == 1:
4361
        if ftype == TType.STRUCT:
4362
          self.isex = CatalogServiceException()
4363
          self.isex.read(iprot)
4364
        else:
4365
          iprot.skip(ftype)
4366
      else:
4367
        iprot.skip(ftype)
4368
      iprot.readFieldEnd()
4369
    iprot.readStructEnd()
4370
 
4371
  def write(self, oprot):
4372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4374
      return
4375
    oprot.writeStructBegin('getItemStatusDescription_result')
4376
    if self.success is not None:
4377
      oprot.writeFieldBegin('success', TType.STRING, 0)
4378
      oprot.writeString(self.success)
4379
      oprot.writeFieldEnd()
4380
    if self.isex is not None:
4381
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4382
      self.isex.write(oprot)
4383
      oprot.writeFieldEnd()
4384
    oprot.writeFieldStop()
4385
    oprot.writeStructEnd()
4386
 
4387
  def validate(self):
4388
    return
4389
 
4390
 
4391
  def __repr__(self):
4392
    L = ['%s=%r' % (key, value)
4393
      for key, value in self.__dict__.iteritems()]
4394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4395
 
4396
  def __eq__(self, other):
4397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4398
 
4399
  def __ne__(self, other):
4400
    return not (self == other)
4401
 
4402
class startItemOn_args:
4403
  """
4404
  Attributes:
4405
   - item_id
4406
   - timestamp
4407
  """
4408
 
4409
  thrift_spec = (
4410
    None, # 0
4411
    (1, TType.I64, 'item_id', None, None, ), # 1
4412
    (2, TType.I64, 'timestamp', None, None, ), # 2
4413
  )
4414
 
4415
  def __init__(self, item_id=None, timestamp=None,):
4416
    self.item_id = item_id
4417
    self.timestamp = timestamp
4418
 
4419
  def read(self, iprot):
4420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4422
      return
4423
    iprot.readStructBegin()
4424
    while True:
4425
      (fname, ftype, fid) = iprot.readFieldBegin()
4426
      if ftype == TType.STOP:
4427
        break
4428
      if fid == 1:
4429
        if ftype == TType.I64:
4430
          self.item_id = iprot.readI64();
4431
        else:
4432
          iprot.skip(ftype)
4433
      elif fid == 2:
4434
        if ftype == TType.I64:
4435
          self.timestamp = iprot.readI64();
4436
        else:
4437
          iprot.skip(ftype)
4438
      else:
4439
        iprot.skip(ftype)
4440
      iprot.readFieldEnd()
4441
    iprot.readStructEnd()
4442
 
4443
  def write(self, oprot):
4444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4446
      return
4447
    oprot.writeStructBegin('startItemOn_args')
4448
    if self.item_id is not None:
4449
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4450
      oprot.writeI64(self.item_id)
4451
      oprot.writeFieldEnd()
4452
    if self.timestamp is not None:
4453
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4454
      oprot.writeI64(self.timestamp)
4455
      oprot.writeFieldEnd()
4456
    oprot.writeFieldStop()
4457
    oprot.writeStructEnd()
4458
 
4459
  def validate(self):
4460
    return
4461
 
4462
 
4463
  def __repr__(self):
4464
    L = ['%s=%r' % (key, value)
4465
      for key, value in self.__dict__.iteritems()]
4466
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4467
 
4468
  def __eq__(self, other):
4469
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4470
 
4471
  def __ne__(self, other):
4472
    return not (self == other)
4473
 
4474
class startItemOn_result:
4475
  """
4476
  Attributes:
4477
   - cex
4478
  """
4479
 
4480
  thrift_spec = (
4481
    None, # 0
4482
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4483
  )
4484
 
4485
  def __init__(self, cex=None,):
4486
    self.cex = cex
4487
 
4488
  def read(self, iprot):
4489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4491
      return
4492
    iprot.readStructBegin()
4493
    while True:
4494
      (fname, ftype, fid) = iprot.readFieldBegin()
4495
      if ftype == TType.STOP:
4496
        break
4497
      if fid == 1:
4498
        if ftype == TType.STRUCT:
4499
          self.cex = CatalogServiceException()
4500
          self.cex.read(iprot)
4501
        else:
4502
          iprot.skip(ftype)
4503
      else:
4504
        iprot.skip(ftype)
4505
      iprot.readFieldEnd()
4506
    iprot.readStructEnd()
4507
 
4508
  def write(self, oprot):
4509
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4510
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4511
      return
4512
    oprot.writeStructBegin('startItemOn_result')
4513
    if self.cex is not None:
4514
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4515
      self.cex.write(oprot)
4516
      oprot.writeFieldEnd()
4517
    oprot.writeFieldStop()
4518
    oprot.writeStructEnd()
4519
 
4520
  def validate(self):
4521
    return
4522
 
4523
 
4524
  def __repr__(self):
4525
    L = ['%s=%r' % (key, value)
4526
      for key, value in self.__dict__.iteritems()]
4527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4528
 
4529
  def __eq__(self, other):
4530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4531
 
4532
  def __ne__(self, other):
4533
    return not (self == other)
4534
 
4535
class retireItemOn_args:
4536
  """
4537
  Attributes:
4538
   - item_id
4539
   - timestamp
4540
  """
4541
 
4542
  thrift_spec = (
4543
    None, # 0
4544
    (1, TType.I64, 'item_id', None, None, ), # 1
4545
    (2, TType.I64, 'timestamp', None, None, ), # 2
4546
  )
4547
 
4548
  def __init__(self, item_id=None, timestamp=None,):
4549
    self.item_id = item_id
4550
    self.timestamp = timestamp
4551
 
4552
  def read(self, iprot):
4553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4555
      return
4556
    iprot.readStructBegin()
4557
    while True:
4558
      (fname, ftype, fid) = iprot.readFieldBegin()
4559
      if ftype == TType.STOP:
4560
        break
4561
      if fid == 1:
4562
        if ftype == TType.I64:
4563
          self.item_id = iprot.readI64();
4564
        else:
4565
          iprot.skip(ftype)
4566
      elif fid == 2:
4567
        if ftype == TType.I64:
4568
          self.timestamp = iprot.readI64();
4569
        else:
4570
          iprot.skip(ftype)
4571
      else:
4572
        iprot.skip(ftype)
4573
      iprot.readFieldEnd()
4574
    iprot.readStructEnd()
4575
 
4576
  def write(self, oprot):
4577
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4578
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4579
      return
4580
    oprot.writeStructBegin('retireItemOn_args')
4581
    if self.item_id is not None:
4582
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4583
      oprot.writeI64(self.item_id)
4584
      oprot.writeFieldEnd()
4585
    if self.timestamp is not None:
4586
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4587
      oprot.writeI64(self.timestamp)
4588
      oprot.writeFieldEnd()
4589
    oprot.writeFieldStop()
4590
    oprot.writeStructEnd()
4591
 
4592
  def validate(self):
4593
    return
4594
 
4595
 
4596
  def __repr__(self):
4597
    L = ['%s=%r' % (key, value)
4598
      for key, value in self.__dict__.iteritems()]
4599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4600
 
4601
  def __eq__(self, other):
4602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4603
 
4604
  def __ne__(self, other):
4605
    return not (self == other)
4606
 
4607
class retireItemOn_result:
4608
  """
4609
  Attributes:
4610
   - cex
4611
  """
4612
 
4613
  thrift_spec = (
4614
    None, # 0
4615
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4616
  )
4617
 
4618
  def __init__(self, cex=None,):
4619
    self.cex = cex
4620
 
4621
  def read(self, iprot):
4622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4624
      return
4625
    iprot.readStructBegin()
4626
    while True:
4627
      (fname, ftype, fid) = iprot.readFieldBegin()
4628
      if ftype == TType.STOP:
4629
        break
4630
      if fid == 1:
4631
        if ftype == TType.STRUCT:
4632
          self.cex = CatalogServiceException()
4633
          self.cex.read(iprot)
4634
        else:
4635
          iprot.skip(ftype)
4636
      else:
4637
        iprot.skip(ftype)
4638
      iprot.readFieldEnd()
4639
    iprot.readStructEnd()
4640
 
4641
  def write(self, oprot):
4642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4644
      return
4645
    oprot.writeStructBegin('retireItemOn_result')
4646
    if self.cex is not None:
4647
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4648
      self.cex.write(oprot)
4649
      oprot.writeFieldEnd()
4650
    oprot.writeFieldStop()
4651
    oprot.writeStructEnd()
4652
 
4653
  def validate(self):
4654
    return
4655
 
4656
 
4657
  def __repr__(self):
4658
    L = ['%s=%r' % (key, value)
4659
      for key, value in self.__dict__.iteritems()]
4660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4661
 
4662
  def __eq__(self, other):
4663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4664
 
4665
  def __ne__(self, other):
4666
    return not (self == other)
4667
 
4668
class changeItemStatus_args:
4669
  """
4670
  Attributes:
4671
   - item_id
4672
   - timestamp
4673
   - newstatus
4674
  """
4675
 
4676
  thrift_spec = (
4677
    None, # 0
4678
    (1, TType.I64, 'item_id', None, None, ), # 1
4679
    (2, TType.I64, 'timestamp', None, None, ), # 2
4680
    (3, TType.I32, 'newstatus', None, None, ), # 3
4681
  )
4682
 
4683
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
4684
    self.item_id = item_id
4685
    self.timestamp = timestamp
4686
    self.newstatus = newstatus
4687
 
4688
  def read(self, iprot):
4689
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4690
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4691
      return
4692
    iprot.readStructBegin()
4693
    while True:
4694
      (fname, ftype, fid) = iprot.readFieldBegin()
4695
      if ftype == TType.STOP:
4696
        break
4697
      if fid == 1:
4698
        if ftype == TType.I64:
4699
          self.item_id = iprot.readI64();
4700
        else:
4701
          iprot.skip(ftype)
4702
      elif fid == 2:
4703
        if ftype == TType.I64:
4704
          self.timestamp = iprot.readI64();
4705
        else:
4706
          iprot.skip(ftype)
4707
      elif fid == 3:
4708
        if ftype == TType.I32:
4709
          self.newstatus = iprot.readI32();
4710
        else:
4711
          iprot.skip(ftype)
4712
      else:
4713
        iprot.skip(ftype)
4714
      iprot.readFieldEnd()
4715
    iprot.readStructEnd()
4716
 
4717
  def write(self, oprot):
4718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4720
      return
4721
    oprot.writeStructBegin('changeItemStatus_args')
4722
    if self.item_id is not None:
4723
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4724
      oprot.writeI64(self.item_id)
4725
      oprot.writeFieldEnd()
4726
    if self.timestamp is not None:
4727
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4728
      oprot.writeI64(self.timestamp)
4729
      oprot.writeFieldEnd()
4730
    if self.newstatus is not None:
4731
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
4732
      oprot.writeI32(self.newstatus)
4733
      oprot.writeFieldEnd()
4734
    oprot.writeFieldStop()
4735
    oprot.writeStructEnd()
4736
 
4737
  def validate(self):
4738
    return
4739
 
4740
 
4741
  def __repr__(self):
4742
    L = ['%s=%r' % (key, value)
4743
      for key, value in self.__dict__.iteritems()]
4744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4745
 
4746
  def __eq__(self, other):
4747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4748
 
4749
  def __ne__(self, other):
4750
    return not (self == other)
4751
 
4752
class changeItemStatus_result:
4753
  """
4754
  Attributes:
4755
   - cex
4756
  """
4757
 
4758
  thrift_spec = (
4759
    None, # 0
4760
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4761
  )
4762
 
4763
  def __init__(self, cex=None,):
4764
    self.cex = cex
4765
 
4766
  def read(self, iprot):
4767
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4768
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4769
      return
4770
    iprot.readStructBegin()
4771
    while True:
4772
      (fname, ftype, fid) = iprot.readFieldBegin()
4773
      if ftype == TType.STOP:
4774
        break
4775
      if fid == 1:
4776
        if ftype == TType.STRUCT:
4777
          self.cex = CatalogServiceException()
4778
          self.cex.read(iprot)
4779
        else:
4780
          iprot.skip(ftype)
4781
      else:
4782
        iprot.skip(ftype)
4783
      iprot.readFieldEnd()
4784
    iprot.readStructEnd()
4785
 
4786
  def write(self, oprot):
4787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4789
      return
4790
    oprot.writeStructBegin('changeItemStatus_result')
4791
    if self.cex is not None:
4792
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4793
      self.cex.write(oprot)
4794
      oprot.writeFieldEnd()
4795
    oprot.writeFieldStop()
4796
    oprot.writeStructEnd()
4797
 
4798
  def validate(self):
4799
    return
4800
 
4801
 
4802
  def __repr__(self):
4803
    L = ['%s=%r' % (key, value)
4804
      for key, value in self.__dict__.iteritems()]
4805
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4806
 
4807
  def __eq__(self, other):
4808
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4809
 
4810
  def __ne__(self, other):
4811
    return not (self == other)
4812
 
4813
class getItem_args:
4814
  """
4815
  Attributes:
4816
   - item_id
4817
  """
4818
 
4819
  thrift_spec = (
4820
    None, # 0
4821
    (1, TType.I64, 'item_id', None, None, ), # 1
4822
  )
4823
 
4824
  def __init__(self, item_id=None,):
4825
    self.item_id = item_id
4826
 
4827
  def read(self, iprot):
4828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4830
      return
4831
    iprot.readStructBegin()
4832
    while True:
4833
      (fname, ftype, fid) = iprot.readFieldBegin()
4834
      if ftype == TType.STOP:
4835
        break
4836
      if fid == 1:
4837
        if ftype == TType.I64:
4838
          self.item_id = iprot.readI64();
4839
        else:
4840
          iprot.skip(ftype)
4841
      else:
4842
        iprot.skip(ftype)
4843
      iprot.readFieldEnd()
4844
    iprot.readStructEnd()
4845
 
4846
  def write(self, oprot):
4847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4849
      return
4850
    oprot.writeStructBegin('getItem_args')
4851
    if self.item_id is not None:
4852
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4853
      oprot.writeI64(self.item_id)
4854
      oprot.writeFieldEnd()
4855
    oprot.writeFieldStop()
4856
    oprot.writeStructEnd()
4857
 
4858
  def validate(self):
4859
    return
4860
 
4861
 
4862
  def __repr__(self):
4863
    L = ['%s=%r' % (key, value)
4864
      for key, value in self.__dict__.iteritems()]
4865
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4866
 
4867
  def __eq__(self, other):
4868
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4869
 
4870
  def __ne__(self, other):
4871
    return not (self == other)
4872
 
4873
class getItem_result:
4874
  """
4875
  Attributes:
4876
   - success
4877
   - cex
4878
  """
4879
 
4880
  thrift_spec = (
4881
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
4882
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4883
  )
4884
 
4885
  def __init__(self, success=None, cex=None,):
4886
    self.success = success
4887
    self.cex = cex
4888
 
4889
  def read(self, iprot):
4890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4892
      return
4893
    iprot.readStructBegin()
4894
    while True:
4895
      (fname, ftype, fid) = iprot.readFieldBegin()
4896
      if ftype == TType.STOP:
4897
        break
4898
      if fid == 0:
4899
        if ftype == TType.STRUCT:
4900
          self.success = Item()
4901
          self.success.read(iprot)
4902
        else:
4903
          iprot.skip(ftype)
4904
      elif fid == 1:
4905
        if ftype == TType.STRUCT:
4906
          self.cex = CatalogServiceException()
4907
          self.cex.read(iprot)
4908
        else:
4909
          iprot.skip(ftype)
4910
      else:
4911
        iprot.skip(ftype)
4912
      iprot.readFieldEnd()
4913
    iprot.readStructEnd()
4914
 
4915
  def write(self, oprot):
4916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4918
      return
4919
    oprot.writeStructBegin('getItem_result')
4920
    if self.success is not None:
4921
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4922
      self.success.write(oprot)
4923
      oprot.writeFieldEnd()
4924
    if self.cex is not None:
4925
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4926
      self.cex.write(oprot)
4927
      oprot.writeFieldEnd()
4928
    oprot.writeFieldStop()
4929
    oprot.writeStructEnd()
4930
 
4931
  def validate(self):
4932
    return
4933
 
4934
 
4935
  def __repr__(self):
4936
    L = ['%s=%r' % (key, value)
4937
      for key, value in self.__dict__.iteritems()]
4938
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4939
 
4940
  def __eq__(self, other):
4941
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4942
 
4943
  def __ne__(self, other):
4944
    return not (self == other)
4945
 
4946
class getItemsByCatalogId_args:
4947
  """
4948
  Attributes:
4949
   - catalog_item_id
4950
  """
4951
 
4952
  thrift_spec = (
4953
    None, # 0
4954
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
4955
  )
4956
 
4957
  def __init__(self, catalog_item_id=None,):
4958
    self.catalog_item_id = catalog_item_id
4959
 
4960
  def read(self, iprot):
4961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4963
      return
4964
    iprot.readStructBegin()
4965
    while True:
4966
      (fname, ftype, fid) = iprot.readFieldBegin()
4967
      if ftype == TType.STOP:
4968
        break
4969
      if fid == 1:
4970
        if ftype == TType.I64:
4971
          self.catalog_item_id = iprot.readI64();
4972
        else:
4973
          iprot.skip(ftype)
4974
      else:
4975
        iprot.skip(ftype)
4976
      iprot.readFieldEnd()
4977
    iprot.readStructEnd()
4978
 
4979
  def write(self, oprot):
4980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4982
      return
4983
    oprot.writeStructBegin('getItemsByCatalogId_args')
4984
    if self.catalog_item_id is not None:
4985
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
4986
      oprot.writeI64(self.catalog_item_id)
4987
      oprot.writeFieldEnd()
4988
    oprot.writeFieldStop()
4989
    oprot.writeStructEnd()
4990
 
4991
  def validate(self):
4992
    return
4993
 
4994
 
4995
  def __repr__(self):
4996
    L = ['%s=%r' % (key, value)
4997
      for key, value in self.__dict__.iteritems()]
4998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4999
 
5000
  def __eq__(self, other):
5001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5002
 
5003
  def __ne__(self, other):
5004
    return not (self == other)
5005
 
5006
class getItemsByCatalogId_result:
5007
  """
5008
  Attributes:
5009
   - success
5010
   - cex
5011
  """
5012
 
5013
  thrift_spec = (
5014
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5015
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5016
  )
5017
 
5018
  def __init__(self, success=None, cex=None,):
5019
    self.success = success
5020
    self.cex = cex
5021
 
5022
  def read(self, iprot):
5023
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5024
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5025
      return
5026
    iprot.readStructBegin()
5027
    while True:
5028
      (fname, ftype, fid) = iprot.readFieldBegin()
5029
      if ftype == TType.STOP:
5030
        break
5031
      if fid == 0:
5032
        if ftype == TType.LIST:
5033
          self.success = []
5034
          (_etype19, _size16) = iprot.readListBegin()
5035
          for _i20 in xrange(_size16):
5036
            _elem21 = Item()
5037
            _elem21.read(iprot)
5038
            self.success.append(_elem21)
5039
          iprot.readListEnd()
5040
        else:
5041
          iprot.skip(ftype)
5042
      elif fid == 1:
5043
        if ftype == TType.STRUCT:
5044
          self.cex = CatalogServiceException()
5045
          self.cex.read(iprot)
5046
        else:
5047
          iprot.skip(ftype)
5048
      else:
5049
        iprot.skip(ftype)
5050
      iprot.readFieldEnd()
5051
    iprot.readStructEnd()
5052
 
5053
  def write(self, oprot):
5054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5056
      return
5057
    oprot.writeStructBegin('getItemsByCatalogId_result')
5058
    if self.success is not None:
5059
      oprot.writeFieldBegin('success', TType.LIST, 0)
5060
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5061
      for iter22 in self.success:
5062
        iter22.write(oprot)
5063
      oprot.writeListEnd()
5064
      oprot.writeFieldEnd()
5065
    if self.cex is not None:
5066
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5067
      self.cex.write(oprot)
5068
      oprot.writeFieldEnd()
5069
    oprot.writeFieldStop()
5070
    oprot.writeStructEnd()
5071
 
5072
  def validate(self):
5073
    return
5074
 
5075
 
5076
  def __repr__(self):
5077
    L = ['%s=%r' % (key, value)
5078
      for key, value in self.__dict__.iteritems()]
5079
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5080
 
5081
  def __eq__(self, other):
5082
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5083
 
5084
  def __ne__(self, other):
5085
    return not (self == other)
5086
 
5087
class getValidItemsByCatalogId_args:
5088
  """
5089
  Attributes:
5090
   - catalog_item_id
5091
  """
5092
 
5093
  thrift_spec = (
5094
    None, # 0
5095
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5096
  )
5097
 
5098
  def __init__(self, catalog_item_id=None,):
5099
    self.catalog_item_id = catalog_item_id
5100
 
5101
  def read(self, iprot):
5102
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5103
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5104
      return
5105
    iprot.readStructBegin()
5106
    while True:
5107
      (fname, ftype, fid) = iprot.readFieldBegin()
5108
      if ftype == TType.STOP:
5109
        break
5110
      if fid == 1:
5111
        if ftype == TType.I64:
5112
          self.catalog_item_id = iprot.readI64();
5113
        else:
5114
          iprot.skip(ftype)
5115
      else:
5116
        iprot.skip(ftype)
5117
      iprot.readFieldEnd()
5118
    iprot.readStructEnd()
5119
 
5120
  def write(self, oprot):
5121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5123
      return
5124
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5125
    if self.catalog_item_id is not None:
5126
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5127
      oprot.writeI64(self.catalog_item_id)
5128
      oprot.writeFieldEnd()
5129
    oprot.writeFieldStop()
5130
    oprot.writeStructEnd()
5131
 
5132
  def validate(self):
5133
    return
5134
 
5135
 
5136
  def __repr__(self):
5137
    L = ['%s=%r' % (key, value)
5138
      for key, value in self.__dict__.iteritems()]
5139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5140
 
5141
  def __eq__(self, other):
5142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5143
 
5144
  def __ne__(self, other):
5145
    return not (self == other)
5146
 
5147
class getValidItemsByCatalogId_result:
5148
  """
5149
  Attributes:
5150
   - success
5151
   - cex
5152
  """
5153
 
5154
  thrift_spec = (
5155
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5156
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5157
  )
5158
 
5159
  def __init__(self, success=None, cex=None,):
5160
    self.success = success
5161
    self.cex = cex
5162
 
5163
  def read(self, iprot):
5164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5166
      return
5167
    iprot.readStructBegin()
5168
    while True:
5169
      (fname, ftype, fid) = iprot.readFieldBegin()
5170
      if ftype == TType.STOP:
5171
        break
5172
      if fid == 0:
5173
        if ftype == TType.LIST:
5174
          self.success = []
5175
          (_etype26, _size23) = iprot.readListBegin()
5176
          for _i27 in xrange(_size23):
5177
            _elem28 = Item()
5178
            _elem28.read(iprot)
5179
            self.success.append(_elem28)
5180
          iprot.readListEnd()
5181
        else:
5182
          iprot.skip(ftype)
5183
      elif fid == 1:
5184
        if ftype == TType.STRUCT:
5185
          self.cex = CatalogServiceException()
5186
          self.cex.read(iprot)
5187
        else:
5188
          iprot.skip(ftype)
5189
      else:
5190
        iprot.skip(ftype)
5191
      iprot.readFieldEnd()
5192
    iprot.readStructEnd()
5193
 
5194
  def write(self, oprot):
5195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5197
      return
5198
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5199
    if self.success is not None:
5200
      oprot.writeFieldBegin('success', TType.LIST, 0)
5201
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5202
      for iter29 in self.success:
5203
        iter29.write(oprot)
5204
      oprot.writeListEnd()
5205
      oprot.writeFieldEnd()
5206
    if self.cex is not None:
5207
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5208
      self.cex.write(oprot)
5209
      oprot.writeFieldEnd()
5210
    oprot.writeFieldStop()
5211
    oprot.writeStructEnd()
5212
 
5213
  def validate(self):
5214
    return
5215
 
5216
 
5217
  def __repr__(self):
5218
    L = ['%s=%r' % (key, value)
5219
      for key, value in self.__dict__.iteritems()]
5220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5221
 
5222
  def __eq__(self, other):
5223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5224
 
5225
  def __ne__(self, other):
5226
    return not (self == other)
5227
 
5228
class getAllItems_args:
5229
  """
5230
  Attributes:
5231
   - isActive
5232
  """
5233
 
5234
  thrift_spec = (
5235
    None, # 0
5236
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5237
  )
5238
 
5239
  def __init__(self, isActive=None,):
5240
    self.isActive = isActive
5241
 
5242
  def read(self, iprot):
5243
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5244
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5245
      return
5246
    iprot.readStructBegin()
5247
    while True:
5248
      (fname, ftype, fid) = iprot.readFieldBegin()
5249
      if ftype == TType.STOP:
5250
        break
5251
      if fid == 1:
5252
        if ftype == TType.BOOL:
5253
          self.isActive = iprot.readBool();
5254
        else:
5255
          iprot.skip(ftype)
5256
      else:
5257
        iprot.skip(ftype)
5258
      iprot.readFieldEnd()
5259
    iprot.readStructEnd()
5260
 
5261
  def write(self, oprot):
5262
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5263
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5264
      return
5265
    oprot.writeStructBegin('getAllItems_args')
5266
    if self.isActive is not None:
5267
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5268
      oprot.writeBool(self.isActive)
5269
      oprot.writeFieldEnd()
5270
    oprot.writeFieldStop()
5271
    oprot.writeStructEnd()
5272
 
5273
  def validate(self):
5274
    return
5275
 
5276
 
5277
  def __repr__(self):
5278
    L = ['%s=%r' % (key, value)
5279
      for key, value in self.__dict__.iteritems()]
5280
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5281
 
5282
  def __eq__(self, other):
5283
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5284
 
5285
  def __ne__(self, other):
5286
    return not (self == other)
5287
 
5288
class getAllItems_result:
5289
  """
5290
  Attributes:
5291
   - success
5292
   - cex
5293
  """
5294
 
5295
  thrift_spec = (
5296
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5297
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5298
  )
5299
 
5300
  def __init__(self, success=None, cex=None,):
5301
    self.success = success
5302
    self.cex = cex
5303
 
5304
  def read(self, iprot):
5305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5307
      return
5308
    iprot.readStructBegin()
5309
    while True:
5310
      (fname, ftype, fid) = iprot.readFieldBegin()
5311
      if ftype == TType.STOP:
5312
        break
5313
      if fid == 0:
5314
        if ftype == TType.LIST:
5315
          self.success = []
5316
          (_etype33, _size30) = iprot.readListBegin()
5317
          for _i34 in xrange(_size30):
5318
            _elem35 = Item()
5319
            _elem35.read(iprot)
5320
            self.success.append(_elem35)
5321
          iprot.readListEnd()
5322
        else:
5323
          iprot.skip(ftype)
5324
      elif fid == 1:
5325
        if ftype == TType.STRUCT:
5326
          self.cex = CatalogServiceException()
5327
          self.cex.read(iprot)
5328
        else:
5329
          iprot.skip(ftype)
5330
      else:
5331
        iprot.skip(ftype)
5332
      iprot.readFieldEnd()
5333
    iprot.readStructEnd()
5334
 
5335
  def write(self, oprot):
5336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5338
      return
5339
    oprot.writeStructBegin('getAllItems_result')
5340
    if self.success is not None:
5341
      oprot.writeFieldBegin('success', TType.LIST, 0)
5342
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5343
      for iter36 in self.success:
5344
        iter36.write(oprot)
5345
      oprot.writeListEnd()
5346
      oprot.writeFieldEnd()
5347
    if self.cex is not None:
5348
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5349
      self.cex.write(oprot)
5350
      oprot.writeFieldEnd()
5351
    oprot.writeFieldStop()
5352
    oprot.writeStructEnd()
5353
 
5354
  def validate(self):
5355
    return
5356
 
5357
 
5358
  def __repr__(self):
5359
    L = ['%s=%r' % (key, value)
5360
      for key, value in self.__dict__.iteritems()]
5361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5362
 
5363
  def __eq__(self, other):
5364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5365
 
5366
  def __ne__(self, other):
5367
    return not (self == other)
5368
 
5369
class getAllItemsByStatus_args:
5370
  """
5371
  Attributes:
5372
   - itemStatus
5373
  """
5374
 
5375
  thrift_spec = (
5376
    None, # 0
5377
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5378
  )
5379
 
5380
  def __init__(self, itemStatus=None,):
5381
    self.itemStatus = itemStatus
5382
 
5383
  def read(self, iprot):
5384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5386
      return
5387
    iprot.readStructBegin()
5388
    while True:
5389
      (fname, ftype, fid) = iprot.readFieldBegin()
5390
      if ftype == TType.STOP:
5391
        break
5392
      if fid == 1:
5393
        if ftype == TType.I32:
5394
          self.itemStatus = iprot.readI32();
5395
        else:
5396
          iprot.skip(ftype)
5397
      else:
5398
        iprot.skip(ftype)
5399
      iprot.readFieldEnd()
5400
    iprot.readStructEnd()
5401
 
5402
  def write(self, oprot):
5403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5405
      return
5406
    oprot.writeStructBegin('getAllItemsByStatus_args')
5407
    if self.itemStatus is not None:
5408
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5409
      oprot.writeI32(self.itemStatus)
5410
      oprot.writeFieldEnd()
5411
    oprot.writeFieldStop()
5412
    oprot.writeStructEnd()
5413
 
5414
  def validate(self):
5415
    return
5416
 
5417
 
5418
  def __repr__(self):
5419
    L = ['%s=%r' % (key, value)
5420
      for key, value in self.__dict__.iteritems()]
5421
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5422
 
5423
  def __eq__(self, other):
5424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5425
 
5426
  def __ne__(self, other):
5427
    return not (self == other)
5428
 
5429
class getAllItemsByStatus_result:
5430
  """
5431
  Attributes:
5432
   - success
5433
   - cex
5434
  """
5435
 
5436
  thrift_spec = (
5437
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5438
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5439
  )
5440
 
5441
  def __init__(self, success=None, cex=None,):
5442
    self.success = success
5443
    self.cex = cex
5444
 
5445
  def read(self, iprot):
5446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5448
      return
5449
    iprot.readStructBegin()
5450
    while True:
5451
      (fname, ftype, fid) = iprot.readFieldBegin()
5452
      if ftype == TType.STOP:
5453
        break
5454
      if fid == 0:
5455
        if ftype == TType.LIST:
5456
          self.success = []
5457
          (_etype40, _size37) = iprot.readListBegin()
5458
          for _i41 in xrange(_size37):
5459
            _elem42 = Item()
5460
            _elem42.read(iprot)
5461
            self.success.append(_elem42)
5462
          iprot.readListEnd()
5463
        else:
5464
          iprot.skip(ftype)
5465
      elif fid == 1:
5466
        if ftype == TType.STRUCT:
5467
          self.cex = CatalogServiceException()
5468
          self.cex.read(iprot)
5469
        else:
5470
          iprot.skip(ftype)
5471
      else:
5472
        iprot.skip(ftype)
5473
      iprot.readFieldEnd()
5474
    iprot.readStructEnd()
5475
 
5476
  def write(self, oprot):
5477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5479
      return
5480
    oprot.writeStructBegin('getAllItemsByStatus_result')
5481
    if self.success is not None:
5482
      oprot.writeFieldBegin('success', TType.LIST, 0)
5483
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5484
      for iter43 in self.success:
5485
        iter43.write(oprot)
5486
      oprot.writeListEnd()
5487
      oprot.writeFieldEnd()
5488
    if self.cex is not None:
5489
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5490
      self.cex.write(oprot)
5491
      oprot.writeFieldEnd()
5492
    oprot.writeFieldStop()
5493
    oprot.writeStructEnd()
5494
 
5495
  def validate(self):
5496
    return
5497
 
5498
 
5499
  def __repr__(self):
5500
    L = ['%s=%r' % (key, value)
5501
      for key, value in self.__dict__.iteritems()]
5502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5503
 
5504
  def __eq__(self, other):
5505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5506
 
5507
  def __ne__(self, other):
5508
    return not (self == other)
5509
 
5510
class markItemAsContentComplete_args:
5511
  """
5512
  Attributes:
5513
   - entityId
5514
   - category
5515
   - brand
5516
   - modelName
5517
   - modelNumber
5518
  """
5519
 
5520
  thrift_spec = (
5521
    None, # 0
5522
    (1, TType.I64, 'entityId', None, None, ), # 1
5523
    (2, TType.I64, 'category', None, None, ), # 2
5524
    (3, TType.STRING, 'brand', None, None, ), # 3
5525
    (4, TType.STRING, 'modelName', None, None, ), # 4
5526
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
5527
  )
5528
 
5529
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
5530
    self.entityId = entityId
5531
    self.category = category
5532
    self.brand = brand
5533
    self.modelName = modelName
5534
    self.modelNumber = modelNumber
5535
 
5536
  def read(self, iprot):
5537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5539
      return
5540
    iprot.readStructBegin()
5541
    while True:
5542
      (fname, ftype, fid) = iprot.readFieldBegin()
5543
      if ftype == TType.STOP:
5544
        break
5545
      if fid == 1:
5546
        if ftype == TType.I64:
5547
          self.entityId = iprot.readI64();
5548
        else:
5549
          iprot.skip(ftype)
5550
      elif fid == 2:
5551
        if ftype == TType.I64:
5552
          self.category = iprot.readI64();
5553
        else:
5554
          iprot.skip(ftype)
5555
      elif fid == 3:
5556
        if ftype == TType.STRING:
5557
          self.brand = iprot.readString();
5558
        else:
5559
          iprot.skip(ftype)
5560
      elif fid == 4:
5561
        if ftype == TType.STRING:
5562
          self.modelName = iprot.readString();
5563
        else:
5564
          iprot.skip(ftype)
5565
      elif fid == 5:
5566
        if ftype == TType.STRING:
5567
          self.modelNumber = iprot.readString();
5568
        else:
5569
          iprot.skip(ftype)
5570
      else:
5571
        iprot.skip(ftype)
5572
      iprot.readFieldEnd()
5573
    iprot.readStructEnd()
5574
 
5575
  def write(self, oprot):
5576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5578
      return
5579
    oprot.writeStructBegin('markItemAsContentComplete_args')
5580
    if self.entityId is not None:
5581
      oprot.writeFieldBegin('entityId', TType.I64, 1)
5582
      oprot.writeI64(self.entityId)
5583
      oprot.writeFieldEnd()
5584
    if self.category is not None:
5585
      oprot.writeFieldBegin('category', TType.I64, 2)
5586
      oprot.writeI64(self.category)
5587
      oprot.writeFieldEnd()
5588
    if self.brand is not None:
5589
      oprot.writeFieldBegin('brand', TType.STRING, 3)
5590
      oprot.writeString(self.brand)
5591
      oprot.writeFieldEnd()
5592
    if self.modelName is not None:
5593
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
5594
      oprot.writeString(self.modelName)
5595
      oprot.writeFieldEnd()
5596
    if self.modelNumber is not None:
5597
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
5598
      oprot.writeString(self.modelNumber)
5599
      oprot.writeFieldEnd()
5600
    oprot.writeFieldStop()
5601
    oprot.writeStructEnd()
5602
 
5603
  def validate(self):
5604
    return
5605
 
5606
 
5607
  def __repr__(self):
5608
    L = ['%s=%r' % (key, value)
5609
      for key, value in self.__dict__.iteritems()]
5610
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5611
 
5612
  def __eq__(self, other):
5613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5614
 
5615
  def __ne__(self, other):
5616
    return not (self == other)
5617
 
5618
class markItemAsContentComplete_result:
5619
  """
5620
  Attributes:
5621
   - success
5622
   - cex
5623
  """
5624
 
5625
  thrift_spec = (
5626
    (0, TType.BOOL, 'success', None, None, ), # 0
5627
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5628
  )
5629
 
5630
  def __init__(self, success=None, cex=None,):
5631
    self.success = success
5632
    self.cex = cex
5633
 
5634
  def read(self, iprot):
5635
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5636
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5637
      return
5638
    iprot.readStructBegin()
5639
    while True:
5640
      (fname, ftype, fid) = iprot.readFieldBegin()
5641
      if ftype == TType.STOP:
5642
        break
5643
      if fid == 0:
5644
        if ftype == TType.BOOL:
5645
          self.success = iprot.readBool();
5646
        else:
5647
          iprot.skip(ftype)
5648
      elif fid == 1:
5649
        if ftype == TType.STRUCT:
5650
          self.cex = CatalogServiceException()
5651
          self.cex.read(iprot)
5652
        else:
5653
          iprot.skip(ftype)
5654
      else:
5655
        iprot.skip(ftype)
5656
      iprot.readFieldEnd()
5657
    iprot.readStructEnd()
5658
 
5659
  def write(self, oprot):
5660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5662
      return
5663
    oprot.writeStructBegin('markItemAsContentComplete_result')
5664
    if self.success is not None:
5665
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5666
      oprot.writeBool(self.success)
5667
      oprot.writeFieldEnd()
5668
    if self.cex is not None:
5669
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5670
      self.cex.write(oprot)
5671
      oprot.writeFieldEnd()
5672
    oprot.writeFieldStop()
5673
    oprot.writeStructEnd()
5674
 
5675
  def validate(self):
5676
    return
5677
 
5678
 
5679
  def __repr__(self):
5680
    L = ['%s=%r' % (key, value)
5681
      for key, value in self.__dict__.iteritems()]
5682
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5683
 
5684
  def __eq__(self, other):
5685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5686
 
5687
  def __ne__(self, other):
5688
    return not (self == other)
5689
 
5690
class getAllItemsInRange_args:
5691
  """
5692
  Attributes:
5693
   - offset
5694
   - limit
5695
  """
5696
 
5697
  thrift_spec = (
5698
    None, # 0
5699
    (1, TType.I64, 'offset', None, None, ), # 1
5700
    (2, TType.I64, 'limit', None, None, ), # 2
5701
  )
5702
 
5703
  def __init__(self, offset=None, limit=None,):
5704
    self.offset = offset
5705
    self.limit = limit
5706
 
5707
  def read(self, iprot):
5708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5710
      return
5711
    iprot.readStructBegin()
5712
    while True:
5713
      (fname, ftype, fid) = iprot.readFieldBegin()
5714
      if ftype == TType.STOP:
5715
        break
5716
      if fid == 1:
5717
        if ftype == TType.I64:
5718
          self.offset = iprot.readI64();
5719
        else:
5720
          iprot.skip(ftype)
5721
      elif fid == 2:
5722
        if ftype == TType.I64:
5723
          self.limit = iprot.readI64();
5724
        else:
5725
          iprot.skip(ftype)
5726
      else:
5727
        iprot.skip(ftype)
5728
      iprot.readFieldEnd()
5729
    iprot.readStructEnd()
5730
 
5731
  def write(self, oprot):
5732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5734
      return
5735
    oprot.writeStructBegin('getAllItemsInRange_args')
5736
    if self.offset is not None:
5737
      oprot.writeFieldBegin('offset', TType.I64, 1)
5738
      oprot.writeI64(self.offset)
5739
      oprot.writeFieldEnd()
5740
    if self.limit is not None:
5741
      oprot.writeFieldBegin('limit', TType.I64, 2)
5742
      oprot.writeI64(self.limit)
5743
      oprot.writeFieldEnd()
5744
    oprot.writeFieldStop()
5745
    oprot.writeStructEnd()
5746
 
5747
  def validate(self):
5748
    return
5749
 
5750
 
5751
  def __repr__(self):
5752
    L = ['%s=%r' % (key, value)
5753
      for key, value in self.__dict__.iteritems()]
5754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5755
 
5756
  def __eq__(self, other):
5757
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5758
 
5759
  def __ne__(self, other):
5760
    return not (self == other)
5761
 
5762
class getAllItemsInRange_result:
5763
  """
5764
  Attributes:
5765
   - success
5766
   - cex
5767
  """
5768
 
5769
  thrift_spec = (
5770
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5771
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5772
  )
5773
 
5774
  def __init__(self, success=None, cex=None,):
5775
    self.success = success
5776
    self.cex = cex
5777
 
5778
  def read(self, iprot):
5779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5781
      return
5782
    iprot.readStructBegin()
5783
    while True:
5784
      (fname, ftype, fid) = iprot.readFieldBegin()
5785
      if ftype == TType.STOP:
5786
        break
5787
      if fid == 0:
5788
        if ftype == TType.LIST:
5789
          self.success = []
5790
          (_etype47, _size44) = iprot.readListBegin()
5791
          for _i48 in xrange(_size44):
5792
            _elem49 = Item()
5793
            _elem49.read(iprot)
5794
            self.success.append(_elem49)
5795
          iprot.readListEnd()
5796
        else:
5797
          iprot.skip(ftype)
5798
      elif fid == 1:
5799
        if ftype == TType.STRUCT:
5800
          self.cex = CatalogServiceException()
5801
          self.cex.read(iprot)
5802
        else:
5803
          iprot.skip(ftype)
5804
      else:
5805
        iprot.skip(ftype)
5806
      iprot.readFieldEnd()
5807
    iprot.readStructEnd()
5808
 
5809
  def write(self, oprot):
5810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5812
      return
5813
    oprot.writeStructBegin('getAllItemsInRange_result')
5814
    if self.success is not None:
5815
      oprot.writeFieldBegin('success', TType.LIST, 0)
5816
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5817
      for iter50 in self.success:
5818
        iter50.write(oprot)
5819
      oprot.writeListEnd()
5820
      oprot.writeFieldEnd()
5821
    if self.cex is not None:
5822
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5823
      self.cex.write(oprot)
5824
      oprot.writeFieldEnd()
5825
    oprot.writeFieldStop()
5826
    oprot.writeStructEnd()
5827
 
5828
  def validate(self):
5829
    return
5830
 
5831
 
5832
  def __repr__(self):
5833
    L = ['%s=%r' % (key, value)
5834
      for key, value in self.__dict__.iteritems()]
5835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5836
 
5837
  def __eq__(self, other):
5838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5839
 
5840
  def __ne__(self, other):
5841
    return not (self == other)
5842
 
5843
class getAllItemsByStatusInRange_args:
5844
  """
5845
  Attributes:
5846
   - itemStatus
5847
   - offset
5848
   - limit
5849
  """
5850
 
5851
  thrift_spec = (
5852
    None, # 0
5853
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5854
    (2, TType.I64, 'offset', None, None, ), # 2
5855
    (3, TType.I64, 'limit', None, None, ), # 3
5856
  )
5857
 
5858
  def __init__(self, itemStatus=None, offset=None, limit=None,):
5859
    self.itemStatus = itemStatus
5860
    self.offset = offset
5861
    self.limit = limit
5862
 
5863
  def read(self, iprot):
5864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5866
      return
5867
    iprot.readStructBegin()
5868
    while True:
5869
      (fname, ftype, fid) = iprot.readFieldBegin()
5870
      if ftype == TType.STOP:
5871
        break
5872
      if fid == 1:
5873
        if ftype == TType.I32:
5874
          self.itemStatus = iprot.readI32();
5875
        else:
5876
          iprot.skip(ftype)
5877
      elif fid == 2:
5878
        if ftype == TType.I64:
5879
          self.offset = iprot.readI64();
5880
        else:
5881
          iprot.skip(ftype)
5882
      elif fid == 3:
5883
        if ftype == TType.I64:
5884
          self.limit = iprot.readI64();
5885
        else:
5886
          iprot.skip(ftype)
5887
      else:
5888
        iprot.skip(ftype)
5889
      iprot.readFieldEnd()
5890
    iprot.readStructEnd()
5891
 
5892
  def write(self, oprot):
5893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5895
      return
5896
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
5897
    if self.itemStatus is not None:
5898
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5899
      oprot.writeI32(self.itemStatus)
5900
      oprot.writeFieldEnd()
5901
    if self.offset is not None:
5902
      oprot.writeFieldBegin('offset', TType.I64, 2)
5903
      oprot.writeI64(self.offset)
5904
      oprot.writeFieldEnd()
5905
    if self.limit is not None:
5906
      oprot.writeFieldBegin('limit', TType.I64, 3)
5907
      oprot.writeI64(self.limit)
5908
      oprot.writeFieldEnd()
5909
    oprot.writeFieldStop()
5910
    oprot.writeStructEnd()
5911
 
5912
  def validate(self):
5913
    return
5914
 
5915
 
5916
  def __repr__(self):
5917
    L = ['%s=%r' % (key, value)
5918
      for key, value in self.__dict__.iteritems()]
5919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5920
 
5921
  def __eq__(self, other):
5922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5923
 
5924
  def __ne__(self, other):
5925
    return not (self == other)
5926
 
5927
class getAllItemsByStatusInRange_result:
5928
  """
5929
  Attributes:
5930
   - success
5931
   - cex
5932
  """
5933
 
5934
  thrift_spec = (
5935
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5936
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5937
  )
5938
 
5939
  def __init__(self, success=None, cex=None,):
5940
    self.success = success
5941
    self.cex = cex
5942
 
5943
  def read(self, iprot):
5944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5946
      return
5947
    iprot.readStructBegin()
5948
    while True:
5949
      (fname, ftype, fid) = iprot.readFieldBegin()
5950
      if ftype == TType.STOP:
5951
        break
5952
      if fid == 0:
5953
        if ftype == TType.LIST:
5954
          self.success = []
5955
          (_etype54, _size51) = iprot.readListBegin()
5956
          for _i55 in xrange(_size51):
5957
            _elem56 = Item()
5958
            _elem56.read(iprot)
5959
            self.success.append(_elem56)
5960
          iprot.readListEnd()
5961
        else:
5962
          iprot.skip(ftype)
5963
      elif fid == 1:
5964
        if ftype == TType.STRUCT:
5965
          self.cex = CatalogServiceException()
5966
          self.cex.read(iprot)
5967
        else:
5968
          iprot.skip(ftype)
5969
      else:
5970
        iprot.skip(ftype)
5971
      iprot.readFieldEnd()
5972
    iprot.readStructEnd()
5973
 
5974
  def write(self, oprot):
5975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5977
      return
5978
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
5979
    if self.success is not None:
5980
      oprot.writeFieldBegin('success', TType.LIST, 0)
5981
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5982
      for iter57 in self.success:
5983
        iter57.write(oprot)
5984
      oprot.writeListEnd()
5985
      oprot.writeFieldEnd()
5986
    if self.cex is not None:
5987
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5988
      self.cex.write(oprot)
5989
      oprot.writeFieldEnd()
5990
    oprot.writeFieldStop()
5991
    oprot.writeStructEnd()
5992
 
5993
  def validate(self):
5994
    return
5995
 
5996
 
5997
  def __repr__(self):
5998
    L = ['%s=%r' % (key, value)
5999
      for key, value in self.__dict__.iteritems()]
6000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6001
 
6002
  def __eq__(self, other):
6003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6004
 
6005
  def __ne__(self, other):
6006
    return not (self == other)
6007
 
6008
class getItemCountByStatus_args:
6009
  """
6010
  Attributes:
6011
   - useStatus
6012
   - itemStatus
6013
  """
6014
 
6015
  thrift_spec = (
6016
    None, # 0
6017
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6018
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6019
  )
6020
 
6021
  def __init__(self, useStatus=None, itemStatus=None,):
6022
    self.useStatus = useStatus
6023
    self.itemStatus = itemStatus
6024
 
6025
  def read(self, iprot):
6026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6028
      return
6029
    iprot.readStructBegin()
6030
    while True:
6031
      (fname, ftype, fid) = iprot.readFieldBegin()
6032
      if ftype == TType.STOP:
6033
        break
6034
      if fid == 1:
6035
        if ftype == TType.BOOL:
6036
          self.useStatus = iprot.readBool();
6037
        else:
6038
          iprot.skip(ftype)
6039
      elif fid == 2:
6040
        if ftype == TType.I32:
6041
          self.itemStatus = iprot.readI32();
6042
        else:
6043
          iprot.skip(ftype)
6044
      else:
6045
        iprot.skip(ftype)
6046
      iprot.readFieldEnd()
6047
    iprot.readStructEnd()
6048
 
6049
  def write(self, oprot):
6050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6052
      return
6053
    oprot.writeStructBegin('getItemCountByStatus_args')
6054
    if self.useStatus is not None:
6055
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6056
      oprot.writeBool(self.useStatus)
6057
      oprot.writeFieldEnd()
6058
    if self.itemStatus is not None:
6059
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6060
      oprot.writeI32(self.itemStatus)
6061
      oprot.writeFieldEnd()
6062
    oprot.writeFieldStop()
6063
    oprot.writeStructEnd()
6064
 
6065
  def validate(self):
6066
    return
6067
 
6068
 
6069
  def __repr__(self):
6070
    L = ['%s=%r' % (key, value)
6071
      for key, value in self.__dict__.iteritems()]
6072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6073
 
6074
  def __eq__(self, other):
6075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6076
 
6077
  def __ne__(self, other):
6078
    return not (self == other)
6079
 
6080
class getItemCountByStatus_result:
6081
  """
6082
  Attributes:
6083
   - success
6084
  """
6085
 
6086
  thrift_spec = (
6087
    (0, TType.I32, 'success', None, None, ), # 0
6088
  )
6089
 
6090
  def __init__(self, success=None,):
6091
    self.success = success
6092
 
6093
  def read(self, iprot):
6094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6096
      return
6097
    iprot.readStructBegin()
6098
    while True:
6099
      (fname, ftype, fid) = iprot.readFieldBegin()
6100
      if ftype == TType.STOP:
6101
        break
6102
      if fid == 0:
6103
        if ftype == TType.I32:
6104
          self.success = iprot.readI32();
6105
        else:
6106
          iprot.skip(ftype)
6107
      else:
6108
        iprot.skip(ftype)
6109
      iprot.readFieldEnd()
6110
    iprot.readStructEnd()
6111
 
6112
  def write(self, oprot):
6113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6115
      return
6116
    oprot.writeStructBegin('getItemCountByStatus_result')
6117
    if self.success is not None:
6118
      oprot.writeFieldBegin('success', TType.I32, 0)
6119
      oprot.writeI32(self.success)
6120
      oprot.writeFieldEnd()
6121
    oprot.writeFieldStop()
6122
    oprot.writeStructEnd()
6123
 
6124
  def validate(self):
6125
    return
6126
 
6127
 
6128
  def __repr__(self):
6129
    L = ['%s=%r' % (key, value)
6130
      for key, value in self.__dict__.iteritems()]
6131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6132
 
6133
  def __eq__(self, other):
6134
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6135
 
6136
  def __ne__(self, other):
6137
    return not (self == other)
6138
 
6139
class getBestSellers_args:
6140
 
6141
  thrift_spec = (
6142
  )
6143
 
6144
  def read(self, iprot):
6145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6147
      return
6148
    iprot.readStructBegin()
6149
    while True:
6150
      (fname, ftype, fid) = iprot.readFieldBegin()
6151
      if ftype == TType.STOP:
6152
        break
6153
      else:
6154
        iprot.skip(ftype)
6155
      iprot.readFieldEnd()
6156
    iprot.readStructEnd()
6157
 
6158
  def write(self, oprot):
6159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6161
      return
6162
    oprot.writeStructBegin('getBestSellers_args')
6163
    oprot.writeFieldStop()
6164
    oprot.writeStructEnd()
6165
 
6166
  def validate(self):
6167
    return
6168
 
6169
 
6170
  def __repr__(self):
6171
    L = ['%s=%r' % (key, value)
6172
      for key, value in self.__dict__.iteritems()]
6173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6174
 
6175
  def __eq__(self, other):
6176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6177
 
6178
  def __ne__(self, other):
6179
    return not (self == other)
6180
 
6181
class getBestSellers_result:
6182
  """
6183
  Attributes:
6184
   - success
6185
   - isex
6186
  """
6187
 
6188
  thrift_spec = (
6189
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6190
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6191
  )
6192
 
6193
  def __init__(self, success=None, isex=None,):
6194
    self.success = success
6195
    self.isex = isex
6196
 
6197
  def read(self, iprot):
6198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6200
      return
6201
    iprot.readStructBegin()
6202
    while True:
6203
      (fname, ftype, fid) = iprot.readFieldBegin()
6204
      if ftype == TType.STOP:
6205
        break
6206
      if fid == 0:
6207
        if ftype == TType.LIST:
6208
          self.success = []
6209
          (_etype61, _size58) = iprot.readListBegin()
6210
          for _i62 in xrange(_size58):
6211
            _elem63 = Item()
6212
            _elem63.read(iprot)
6213
            self.success.append(_elem63)
6214
          iprot.readListEnd()
6215
        else:
6216
          iprot.skip(ftype)
6217
      elif fid == 1:
6218
        if ftype == TType.STRUCT:
6219
          self.isex = CatalogServiceException()
6220
          self.isex.read(iprot)
6221
        else:
6222
          iprot.skip(ftype)
6223
      else:
6224
        iprot.skip(ftype)
6225
      iprot.readFieldEnd()
6226
    iprot.readStructEnd()
6227
 
6228
  def write(self, oprot):
6229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6231
      return
6232
    oprot.writeStructBegin('getBestSellers_result')
6233
    if self.success is not None:
6234
      oprot.writeFieldBegin('success', TType.LIST, 0)
6235
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6236
      for iter64 in self.success:
6237
        iter64.write(oprot)
6238
      oprot.writeListEnd()
6239
      oprot.writeFieldEnd()
6240
    if self.isex is not None:
6241
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6242
      self.isex.write(oprot)
6243
      oprot.writeFieldEnd()
6244
    oprot.writeFieldStop()
6245
    oprot.writeStructEnd()
6246
 
6247
  def validate(self):
6248
    return
6249
 
6250
 
6251
  def __repr__(self):
6252
    L = ['%s=%r' % (key, value)
6253
      for key, value in self.__dict__.iteritems()]
6254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6255
 
6256
  def __eq__(self, other):
6257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6258
 
6259
  def __ne__(self, other):
6260
    return not (self == other)
6261
 
6262
class getBestSellersCatalogIds_args:
6263
  """
6264
  Attributes:
6265
   - beginIndex
6266
   - totalItems
6267
   - brand
6268
   - category
6269
  """
6270
 
6271
  thrift_spec = (
6272
    None, # 0
6273
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6274
    (2, TType.I64, 'totalItems', None, None, ), # 2
6275
    (3, TType.STRING, 'brand', None, None, ), # 3
6276
    (4, TType.I64, 'category', None, None, ), # 4
6277
  )
6278
 
6279
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6280
    self.beginIndex = beginIndex
6281
    self.totalItems = totalItems
6282
    self.brand = brand
6283
    self.category = category
6284
 
6285
  def read(self, iprot):
6286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6288
      return
6289
    iprot.readStructBegin()
6290
    while True:
6291
      (fname, ftype, fid) = iprot.readFieldBegin()
6292
      if ftype == TType.STOP:
6293
        break
6294
      if fid == 1:
6295
        if ftype == TType.I64:
6296
          self.beginIndex = iprot.readI64();
6297
        else:
6298
          iprot.skip(ftype)
6299
      elif fid == 2:
6300
        if ftype == TType.I64:
6301
          self.totalItems = iprot.readI64();
6302
        else:
6303
          iprot.skip(ftype)
6304
      elif fid == 3:
6305
        if ftype == TType.STRING:
6306
          self.brand = iprot.readString();
6307
        else:
6308
          iprot.skip(ftype)
6309
      elif fid == 4:
6310
        if ftype == TType.I64:
6311
          self.category = iprot.readI64();
6312
        else:
6313
          iprot.skip(ftype)
6314
      else:
6315
        iprot.skip(ftype)
6316
      iprot.readFieldEnd()
6317
    iprot.readStructEnd()
6318
 
6319
  def write(self, oprot):
6320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6322
      return
6323
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6324
    if self.beginIndex is not None:
6325
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6326
      oprot.writeI64(self.beginIndex)
6327
      oprot.writeFieldEnd()
6328
    if self.totalItems is not None:
6329
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6330
      oprot.writeI64(self.totalItems)
6331
      oprot.writeFieldEnd()
6332
    if self.brand is not None:
6333
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6334
      oprot.writeString(self.brand)
6335
      oprot.writeFieldEnd()
6336
    if self.category is not None:
6337
      oprot.writeFieldBegin('category', TType.I64, 4)
6338
      oprot.writeI64(self.category)
6339
      oprot.writeFieldEnd()
6340
    oprot.writeFieldStop()
6341
    oprot.writeStructEnd()
6342
 
6343
  def validate(self):
6344
    return
6345
 
6346
 
6347
  def __repr__(self):
6348
    L = ['%s=%r' % (key, value)
6349
      for key, value in self.__dict__.iteritems()]
6350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6351
 
6352
  def __eq__(self, other):
6353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6354
 
6355
  def __ne__(self, other):
6356
    return not (self == other)
6357
 
6358
class getBestSellersCatalogIds_result:
6359
  """
6360
  Attributes:
6361
   - success
6362
   - cex
6363
  """
6364
 
6365
  thrift_spec = (
6366
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6367
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6368
  )
6369
 
6370
  def __init__(self, success=None, cex=None,):
6371
    self.success = success
6372
    self.cex = cex
6373
 
6374
  def read(self, iprot):
6375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6377
      return
6378
    iprot.readStructBegin()
6379
    while True:
6380
      (fname, ftype, fid) = iprot.readFieldBegin()
6381
      if ftype == TType.STOP:
6382
        break
6383
      if fid == 0:
6384
        if ftype == TType.LIST:
6385
          self.success = []
6386
          (_etype68, _size65) = iprot.readListBegin()
6387
          for _i69 in xrange(_size65):
6388
            _elem70 = iprot.readI64();
6389
            self.success.append(_elem70)
6390
          iprot.readListEnd()
6391
        else:
6392
          iprot.skip(ftype)
6393
      elif fid == 1:
6394
        if ftype == TType.STRUCT:
6395
          self.cex = CatalogServiceException()
6396
          self.cex.read(iprot)
6397
        else:
6398
          iprot.skip(ftype)
6399
      else:
6400
        iprot.skip(ftype)
6401
      iprot.readFieldEnd()
6402
    iprot.readStructEnd()
6403
 
6404
  def write(self, oprot):
6405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6407
      return
6408
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
6409
    if self.success is not None:
6410
      oprot.writeFieldBegin('success', TType.LIST, 0)
6411
      oprot.writeListBegin(TType.I64, len(self.success))
6412
      for iter71 in self.success:
6413
        oprot.writeI64(iter71)
6414
      oprot.writeListEnd()
6415
      oprot.writeFieldEnd()
6416
    if self.cex is not None:
6417
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6418
      self.cex.write(oprot)
6419
      oprot.writeFieldEnd()
6420
    oprot.writeFieldStop()
6421
    oprot.writeStructEnd()
6422
 
6423
  def validate(self):
6424
    return
6425
 
6426
 
6427
  def __repr__(self):
6428
    L = ['%s=%r' % (key, value)
6429
      for key, value in self.__dict__.iteritems()]
6430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6431
 
6432
  def __eq__(self, other):
6433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6434
 
6435
  def __ne__(self, other):
6436
    return not (self == other)
6437
 
6438
class getBestSellersCount_args:
6439
 
6440
  thrift_spec = (
6441
  )
6442
 
6443
  def read(self, iprot):
6444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6446
      return
6447
    iprot.readStructBegin()
6448
    while True:
6449
      (fname, ftype, fid) = iprot.readFieldBegin()
6450
      if ftype == TType.STOP:
6451
        break
6452
      else:
6453
        iprot.skip(ftype)
6454
      iprot.readFieldEnd()
6455
    iprot.readStructEnd()
6456
 
6457
  def write(self, oprot):
6458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6460
      return
6461
    oprot.writeStructBegin('getBestSellersCount_args')
6462
    oprot.writeFieldStop()
6463
    oprot.writeStructEnd()
6464
 
6465
  def validate(self):
6466
    return
6467
 
6468
 
6469
  def __repr__(self):
6470
    L = ['%s=%r' % (key, value)
6471
      for key, value in self.__dict__.iteritems()]
6472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6473
 
6474
  def __eq__(self, other):
6475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6476
 
6477
  def __ne__(self, other):
6478
    return not (self == other)
6479
 
6480
class getBestSellersCount_result:
6481
  """
6482
  Attributes:
6483
   - success
6484
   - cex
6485
  """
6486
 
6487
  thrift_spec = (
6488
    (0, TType.I64, 'success', None, None, ), # 0
6489
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6490
  )
6491
 
6492
  def __init__(self, success=None, cex=None,):
6493
    self.success = success
6494
    self.cex = cex
6495
 
6496
  def read(self, iprot):
6497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6499
      return
6500
    iprot.readStructBegin()
6501
    while True:
6502
      (fname, ftype, fid) = iprot.readFieldBegin()
6503
      if ftype == TType.STOP:
6504
        break
6505
      if fid == 0:
6506
        if ftype == TType.I64:
6507
          self.success = iprot.readI64();
6508
        else:
6509
          iprot.skip(ftype)
6510
      elif fid == 1:
6511
        if ftype == TType.STRUCT:
6512
          self.cex = CatalogServiceException()
6513
          self.cex.read(iprot)
6514
        else:
6515
          iprot.skip(ftype)
6516
      else:
6517
        iprot.skip(ftype)
6518
      iprot.readFieldEnd()
6519
    iprot.readStructEnd()
6520
 
6521
  def write(self, oprot):
6522
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6523
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6524
      return
6525
    oprot.writeStructBegin('getBestSellersCount_result')
6526
    if self.success is not None:
6527
      oprot.writeFieldBegin('success', TType.I64, 0)
6528
      oprot.writeI64(self.success)
6529
      oprot.writeFieldEnd()
6530
    if self.cex is not None:
6531
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6532
      self.cex.write(oprot)
6533
      oprot.writeFieldEnd()
6534
    oprot.writeFieldStop()
6535
    oprot.writeStructEnd()
6536
 
6537
  def validate(self):
6538
    return
6539
 
6540
 
6541
  def __repr__(self):
6542
    L = ['%s=%r' % (key, value)
6543
      for key, value in self.__dict__.iteritems()]
6544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6545
 
6546
  def __eq__(self, other):
6547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6548
 
6549
  def __ne__(self, other):
6550
    return not (self == other)
6551
 
6552
class getBestDeals_args:
6553
 
6554
  thrift_spec = (
6555
  )
6556
 
6557
  def read(self, iprot):
6558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6560
      return
6561
    iprot.readStructBegin()
6562
    while True:
6563
      (fname, ftype, fid) = iprot.readFieldBegin()
6564
      if ftype == TType.STOP:
6565
        break
6566
      else:
6567
        iprot.skip(ftype)
6568
      iprot.readFieldEnd()
6569
    iprot.readStructEnd()
6570
 
6571
  def write(self, oprot):
6572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6574
      return
6575
    oprot.writeStructBegin('getBestDeals_args')
6576
    oprot.writeFieldStop()
6577
    oprot.writeStructEnd()
6578
 
6579
  def validate(self):
6580
    return
6581
 
6582
 
6583
  def __repr__(self):
6584
    L = ['%s=%r' % (key, value)
6585
      for key, value in self.__dict__.iteritems()]
6586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6587
 
6588
  def __eq__(self, other):
6589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6590
 
6591
  def __ne__(self, other):
6592
    return not (self == other)
6593
 
6594
class getBestDeals_result:
6595
  """
6596
  Attributes:
6597
   - success
6598
   - isex
6599
  """
6600
 
6601
  thrift_spec = (
6602
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6603
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6604
  )
6605
 
6606
  def __init__(self, success=None, isex=None,):
6607
    self.success = success
6608
    self.isex = isex
6609
 
6610
  def read(self, iprot):
6611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6613
      return
6614
    iprot.readStructBegin()
6615
    while True:
6616
      (fname, ftype, fid) = iprot.readFieldBegin()
6617
      if ftype == TType.STOP:
6618
        break
6619
      if fid == 0:
6620
        if ftype == TType.LIST:
6621
          self.success = []
6622
          (_etype75, _size72) = iprot.readListBegin()
6623
          for _i76 in xrange(_size72):
6624
            _elem77 = Item()
6625
            _elem77.read(iprot)
6626
            self.success.append(_elem77)
6627
          iprot.readListEnd()
6628
        else:
6629
          iprot.skip(ftype)
6630
      elif fid == 1:
6631
        if ftype == TType.STRUCT:
6632
          self.isex = CatalogServiceException()
6633
          self.isex.read(iprot)
6634
        else:
6635
          iprot.skip(ftype)
6636
      else:
6637
        iprot.skip(ftype)
6638
      iprot.readFieldEnd()
6639
    iprot.readStructEnd()
6640
 
6641
  def write(self, oprot):
6642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6644
      return
6645
    oprot.writeStructBegin('getBestDeals_result')
6646
    if self.success is not None:
6647
      oprot.writeFieldBegin('success', TType.LIST, 0)
6648
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6649
      for iter78 in self.success:
6650
        iter78.write(oprot)
6651
      oprot.writeListEnd()
6652
      oprot.writeFieldEnd()
6653
    if self.isex is not None:
6654
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6655
      self.isex.write(oprot)
6656
      oprot.writeFieldEnd()
6657
    oprot.writeFieldStop()
6658
    oprot.writeStructEnd()
6659
 
6660
  def validate(self):
6661
    return
6662
 
6663
 
6664
  def __repr__(self):
6665
    L = ['%s=%r' % (key, value)
6666
      for key, value in self.__dict__.iteritems()]
6667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6668
 
6669
  def __eq__(self, other):
6670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6671
 
6672
  def __ne__(self, other):
6673
    return not (self == other)
6674
 
6675
class getBestDealsCatalogIds_args:
6676
  """
6677
  Attributes:
6678
   - beginIndex
6679
   - totalItems
6680
   - brand
6681
   - category
6682
  """
6683
 
6684
  thrift_spec = (
6685
    None, # 0
6686
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6687
    (2, TType.I64, 'totalItems', None, None, ), # 2
6688
    (3, TType.STRING, 'brand', None, None, ), # 3
6689
    (4, TType.I64, 'category', None, None, ), # 4
6690
  )
6691
 
6692
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6693
    self.beginIndex = beginIndex
6694
    self.totalItems = totalItems
6695
    self.brand = brand
6696
    self.category = category
6697
 
6698
  def read(self, iprot):
6699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6701
      return
6702
    iprot.readStructBegin()
6703
    while True:
6704
      (fname, ftype, fid) = iprot.readFieldBegin()
6705
      if ftype == TType.STOP:
6706
        break
6707
      if fid == 1:
6708
        if ftype == TType.I64:
6709
          self.beginIndex = iprot.readI64();
6710
        else:
6711
          iprot.skip(ftype)
6712
      elif fid == 2:
6713
        if ftype == TType.I64:
6714
          self.totalItems = iprot.readI64();
6715
        else:
6716
          iprot.skip(ftype)
6717
      elif fid == 3:
6718
        if ftype == TType.STRING:
6719
          self.brand = iprot.readString();
6720
        else:
6721
          iprot.skip(ftype)
6722
      elif fid == 4:
6723
        if ftype == TType.I64:
6724
          self.category = iprot.readI64();
6725
        else:
6726
          iprot.skip(ftype)
6727
      else:
6728
        iprot.skip(ftype)
6729
      iprot.readFieldEnd()
6730
    iprot.readStructEnd()
6731
 
6732
  def write(self, oprot):
6733
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6734
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6735
      return
6736
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
6737
    if self.beginIndex is not None:
6738
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6739
      oprot.writeI64(self.beginIndex)
6740
      oprot.writeFieldEnd()
6741
    if self.totalItems is not None:
6742
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6743
      oprot.writeI64(self.totalItems)
6744
      oprot.writeFieldEnd()
6745
    if self.brand is not None:
6746
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6747
      oprot.writeString(self.brand)
6748
      oprot.writeFieldEnd()
6749
    if self.category is not None:
6750
      oprot.writeFieldBegin('category', TType.I64, 4)
6751
      oprot.writeI64(self.category)
6752
      oprot.writeFieldEnd()
6753
    oprot.writeFieldStop()
6754
    oprot.writeStructEnd()
6755
 
6756
  def validate(self):
6757
    return
6758
 
6759
 
6760
  def __repr__(self):
6761
    L = ['%s=%r' % (key, value)
6762
      for key, value in self.__dict__.iteritems()]
6763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6764
 
6765
  def __eq__(self, other):
6766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6767
 
6768
  def __ne__(self, other):
6769
    return not (self == other)
6770
 
6771
class getBestDealsCatalogIds_result:
6772
  """
6773
  Attributes:
6774
   - success
6775
   - cex
6776
  """
6777
 
6778
  thrift_spec = (
6779
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6780
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6781
  )
6782
 
6783
  def __init__(self, success=None, cex=None,):
6784
    self.success = success
6785
    self.cex = cex
6786
 
6787
  def read(self, iprot):
6788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6790
      return
6791
    iprot.readStructBegin()
6792
    while True:
6793
      (fname, ftype, fid) = iprot.readFieldBegin()
6794
      if ftype == TType.STOP:
6795
        break
6796
      if fid == 0:
6797
        if ftype == TType.LIST:
6798
          self.success = []
6799
          (_etype82, _size79) = iprot.readListBegin()
6800
          for _i83 in xrange(_size79):
6801
            _elem84 = iprot.readI64();
6802
            self.success.append(_elem84)
6803
          iprot.readListEnd()
6804
        else:
6805
          iprot.skip(ftype)
6806
      elif fid == 1:
6807
        if ftype == TType.STRUCT:
6808
          self.cex = CatalogServiceException()
6809
          self.cex.read(iprot)
6810
        else:
6811
          iprot.skip(ftype)
6812
      else:
6813
        iprot.skip(ftype)
6814
      iprot.readFieldEnd()
6815
    iprot.readStructEnd()
6816
 
6817
  def write(self, oprot):
6818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6820
      return
6821
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
6822
    if self.success is not None:
6823
      oprot.writeFieldBegin('success', TType.LIST, 0)
6824
      oprot.writeListBegin(TType.I64, len(self.success))
6825
      for iter85 in self.success:
6826
        oprot.writeI64(iter85)
6827
      oprot.writeListEnd()
6828
      oprot.writeFieldEnd()
6829
    if self.cex is not None:
6830
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6831
      self.cex.write(oprot)
6832
      oprot.writeFieldEnd()
6833
    oprot.writeFieldStop()
6834
    oprot.writeStructEnd()
6835
 
6836
  def validate(self):
6837
    return
6838
 
6839
 
6840
  def __repr__(self):
6841
    L = ['%s=%r' % (key, value)
6842
      for key, value in self.__dict__.iteritems()]
6843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6844
 
6845
  def __eq__(self, other):
6846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6847
 
6848
  def __ne__(self, other):
6849
    return not (self == other)
6850
 
6851
class getBestDealsCount_args:
6852
 
6853
  thrift_spec = (
6854
  )
6855
 
6856
  def read(self, iprot):
6857
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6858
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6859
      return
6860
    iprot.readStructBegin()
6861
    while True:
6862
      (fname, ftype, fid) = iprot.readFieldBegin()
6863
      if ftype == TType.STOP:
6864
        break
6865
      else:
6866
        iprot.skip(ftype)
6867
      iprot.readFieldEnd()
6868
    iprot.readStructEnd()
6869
 
6870
  def write(self, oprot):
6871
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6872
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6873
      return
6874
    oprot.writeStructBegin('getBestDealsCount_args')
6875
    oprot.writeFieldStop()
6876
    oprot.writeStructEnd()
6877
 
6878
  def validate(self):
6879
    return
6880
 
6881
 
6882
  def __repr__(self):
6883
    L = ['%s=%r' % (key, value)
6884
      for key, value in self.__dict__.iteritems()]
6885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6886
 
6887
  def __eq__(self, other):
6888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6889
 
6890
  def __ne__(self, other):
6891
    return not (self == other)
6892
 
6893
class getBestDealsCount_result:
6894
  """
6895
  Attributes:
6896
   - success
6897
   - cex
6898
  """
6899
 
6900
  thrift_spec = (
6901
    (0, TType.I64, 'success', None, None, ), # 0
6902
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6903
  )
6904
 
6905
  def __init__(self, success=None, cex=None,):
6906
    self.success = success
6907
    self.cex = cex
6908
 
6909
  def read(self, iprot):
6910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6912
      return
6913
    iprot.readStructBegin()
6914
    while True:
6915
      (fname, ftype, fid) = iprot.readFieldBegin()
6916
      if ftype == TType.STOP:
6917
        break
6918
      if fid == 0:
6919
        if ftype == TType.I64:
6920
          self.success = iprot.readI64();
6921
        else:
6922
          iprot.skip(ftype)
6923
      elif fid == 1:
6924
        if ftype == TType.STRUCT:
6925
          self.cex = CatalogServiceException()
6926
          self.cex.read(iprot)
6927
        else:
6928
          iprot.skip(ftype)
6929
      else:
6930
        iprot.skip(ftype)
6931
      iprot.readFieldEnd()
6932
    iprot.readStructEnd()
6933
 
6934
  def write(self, oprot):
6935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6937
      return
6938
    oprot.writeStructBegin('getBestDealsCount_result')
6939
    if self.success is not None:
6940
      oprot.writeFieldBegin('success', TType.I64, 0)
6941
      oprot.writeI64(self.success)
6942
      oprot.writeFieldEnd()
6943
    if self.cex is not None:
6944
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6945
      self.cex.write(oprot)
6946
      oprot.writeFieldEnd()
6947
    oprot.writeFieldStop()
6948
    oprot.writeStructEnd()
6949
 
6950
  def validate(self):
6951
    return
6952
 
6953
 
6954
  def __repr__(self):
6955
    L = ['%s=%r' % (key, value)
6956
      for key, value in self.__dict__.iteritems()]
6957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6958
 
6959
  def __eq__(self, other):
6960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6961
 
6962
  def __ne__(self, other):
6963
    return not (self == other)
6964
 
6965
class getComingSoon_args:
6966
 
6967
  thrift_spec = (
6968
  )
6969
 
6970
  def read(self, iprot):
6971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6973
      return
6974
    iprot.readStructBegin()
6975
    while True:
6976
      (fname, ftype, fid) = iprot.readFieldBegin()
6977
      if ftype == TType.STOP:
6978
        break
6979
      else:
6980
        iprot.skip(ftype)
6981
      iprot.readFieldEnd()
6982
    iprot.readStructEnd()
6983
 
6984
  def write(self, oprot):
6985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6987
      return
6988
    oprot.writeStructBegin('getComingSoon_args')
6989
    oprot.writeFieldStop()
6990
    oprot.writeStructEnd()
6991
 
6992
  def validate(self):
6993
    return
6994
 
6995
 
6996
  def __repr__(self):
6997
    L = ['%s=%r' % (key, value)
6998
      for key, value in self.__dict__.iteritems()]
6999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7000
 
7001
  def __eq__(self, other):
7002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7003
 
7004
  def __ne__(self, other):
7005
    return not (self == other)
7006
 
7007
class getComingSoon_result:
7008
  """
7009
  Attributes:
7010
   - success
7011
   - isex
7012
  """
7013
 
7014
  thrift_spec = (
7015
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7016
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7017
  )
7018
 
7019
  def __init__(self, success=None, isex=None,):
7020
    self.success = success
7021
    self.isex = isex
7022
 
7023
  def read(self, iprot):
7024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7026
      return
7027
    iprot.readStructBegin()
7028
    while True:
7029
      (fname, ftype, fid) = iprot.readFieldBegin()
7030
      if ftype == TType.STOP:
7031
        break
7032
      if fid == 0:
7033
        if ftype == TType.LIST:
7034
          self.success = []
7035
          (_etype89, _size86) = iprot.readListBegin()
7036
          for _i90 in xrange(_size86):
7037
            _elem91 = Item()
7038
            _elem91.read(iprot)
7039
            self.success.append(_elem91)
7040
          iprot.readListEnd()
7041
        else:
7042
          iprot.skip(ftype)
7043
      elif fid == 1:
7044
        if ftype == TType.STRUCT:
7045
          self.isex = CatalogServiceException()
7046
          self.isex.read(iprot)
7047
        else:
7048
          iprot.skip(ftype)
7049
      else:
7050
        iprot.skip(ftype)
7051
      iprot.readFieldEnd()
7052
    iprot.readStructEnd()
7053
 
7054
  def write(self, oprot):
7055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7057
      return
7058
    oprot.writeStructBegin('getComingSoon_result')
7059
    if self.success is not None:
7060
      oprot.writeFieldBegin('success', TType.LIST, 0)
7061
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7062
      for iter92 in self.success:
7063
        iter92.write(oprot)
7064
      oprot.writeListEnd()
7065
      oprot.writeFieldEnd()
7066
    if self.isex is not None:
7067
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7068
      self.isex.write(oprot)
7069
      oprot.writeFieldEnd()
7070
    oprot.writeFieldStop()
7071
    oprot.writeStructEnd()
7072
 
7073
  def validate(self):
7074
    return
7075
 
7076
 
7077
  def __repr__(self):
7078
    L = ['%s=%r' % (key, value)
7079
      for key, value in self.__dict__.iteritems()]
7080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7081
 
7082
  def __eq__(self, other):
7083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7084
 
7085
  def __ne__(self, other):
7086
    return not (self == other)
7087
 
7088
class getComingSoonCatalogIds_args:
7089
  """
7090
  Attributes:
7091
   - beginIndex
7092
   - totalItems
7093
   - brand
7094
   - category
7095
  """
7096
 
7097
  thrift_spec = (
7098
    None, # 0
7099
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7100
    (2, TType.I64, 'totalItems', None, None, ), # 2
7101
    (3, TType.STRING, 'brand', None, None, ), # 3
7102
    (4, TType.I64, 'category', None, None, ), # 4
7103
  )
7104
 
7105
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7106
    self.beginIndex = beginIndex
7107
    self.totalItems = totalItems
7108
    self.brand = brand
7109
    self.category = category
7110
 
7111
  def read(self, iprot):
7112
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7113
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7114
      return
7115
    iprot.readStructBegin()
7116
    while True:
7117
      (fname, ftype, fid) = iprot.readFieldBegin()
7118
      if ftype == TType.STOP:
7119
        break
7120
      if fid == 1:
7121
        if ftype == TType.I64:
7122
          self.beginIndex = iprot.readI64();
7123
        else:
7124
          iprot.skip(ftype)
7125
      elif fid == 2:
7126
        if ftype == TType.I64:
7127
          self.totalItems = iprot.readI64();
7128
        else:
7129
          iprot.skip(ftype)
7130
      elif fid == 3:
7131
        if ftype == TType.STRING:
7132
          self.brand = iprot.readString();
7133
        else:
7134
          iprot.skip(ftype)
7135
      elif fid == 4:
7136
        if ftype == TType.I64:
7137
          self.category = iprot.readI64();
7138
        else:
7139
          iprot.skip(ftype)
7140
      else:
7141
        iprot.skip(ftype)
7142
      iprot.readFieldEnd()
7143
    iprot.readStructEnd()
7144
 
7145
  def write(self, oprot):
7146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7148
      return
7149
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7150
    if self.beginIndex is not None:
7151
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7152
      oprot.writeI64(self.beginIndex)
7153
      oprot.writeFieldEnd()
7154
    if self.totalItems is not None:
7155
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7156
      oprot.writeI64(self.totalItems)
7157
      oprot.writeFieldEnd()
7158
    if self.brand is not None:
7159
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7160
      oprot.writeString(self.brand)
7161
      oprot.writeFieldEnd()
7162
    if self.category is not None:
7163
      oprot.writeFieldBegin('category', TType.I64, 4)
7164
      oprot.writeI64(self.category)
7165
      oprot.writeFieldEnd()
7166
    oprot.writeFieldStop()
7167
    oprot.writeStructEnd()
7168
 
7169
  def validate(self):
7170
    return
7171
 
7172
 
7173
  def __repr__(self):
7174
    L = ['%s=%r' % (key, value)
7175
      for key, value in self.__dict__.iteritems()]
7176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7177
 
7178
  def __eq__(self, other):
7179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7180
 
7181
  def __ne__(self, other):
7182
    return not (self == other)
7183
 
7184
class getComingSoonCatalogIds_result:
7185
  """
7186
  Attributes:
7187
   - success
7188
   - cex
7189
  """
7190
 
7191
  thrift_spec = (
7192
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7193
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7194
  )
7195
 
7196
  def __init__(self, success=None, cex=None,):
7197
    self.success = success
7198
    self.cex = cex
7199
 
7200
  def read(self, iprot):
7201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7203
      return
7204
    iprot.readStructBegin()
7205
    while True:
7206
      (fname, ftype, fid) = iprot.readFieldBegin()
7207
      if ftype == TType.STOP:
7208
        break
7209
      if fid == 0:
7210
        if ftype == TType.LIST:
7211
          self.success = []
7212
          (_etype96, _size93) = iprot.readListBegin()
7213
          for _i97 in xrange(_size93):
7214
            _elem98 = iprot.readI64();
7215
            self.success.append(_elem98)
7216
          iprot.readListEnd()
7217
        else:
7218
          iprot.skip(ftype)
7219
      elif fid == 1:
7220
        if ftype == TType.STRUCT:
7221
          self.cex = CatalogServiceException()
7222
          self.cex.read(iprot)
7223
        else:
7224
          iprot.skip(ftype)
7225
      else:
7226
        iprot.skip(ftype)
7227
      iprot.readFieldEnd()
7228
    iprot.readStructEnd()
7229
 
7230
  def write(self, oprot):
7231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7233
      return
7234
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7235
    if self.success is not None:
7236
      oprot.writeFieldBegin('success', TType.LIST, 0)
7237
      oprot.writeListBegin(TType.I64, len(self.success))
7238
      for iter99 in self.success:
7239
        oprot.writeI64(iter99)
7240
      oprot.writeListEnd()
7241
      oprot.writeFieldEnd()
7242
    if self.cex is not None:
7243
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7244
      self.cex.write(oprot)
7245
      oprot.writeFieldEnd()
7246
    oprot.writeFieldStop()
7247
    oprot.writeStructEnd()
7248
 
7249
  def validate(self):
7250
    return
7251
 
7252
 
7253
  def __repr__(self):
7254
    L = ['%s=%r' % (key, value)
7255
      for key, value in self.__dict__.iteritems()]
7256
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7257
 
7258
  def __eq__(self, other):
7259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7260
 
7261
  def __ne__(self, other):
7262
    return not (self == other)
7263
 
7264
class getComingSoonCount_args:
7265
 
7266
  thrift_spec = (
7267
  )
7268
 
7269
  def read(self, iprot):
7270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7272
      return
7273
    iprot.readStructBegin()
7274
    while True:
7275
      (fname, ftype, fid) = iprot.readFieldBegin()
7276
      if ftype == TType.STOP:
7277
        break
7278
      else:
7279
        iprot.skip(ftype)
7280
      iprot.readFieldEnd()
7281
    iprot.readStructEnd()
7282
 
7283
  def write(self, oprot):
7284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7286
      return
7287
    oprot.writeStructBegin('getComingSoonCount_args')
7288
    oprot.writeFieldStop()
7289
    oprot.writeStructEnd()
7290
 
7291
  def validate(self):
7292
    return
7293
 
7294
 
7295
  def __repr__(self):
7296
    L = ['%s=%r' % (key, value)
7297
      for key, value in self.__dict__.iteritems()]
7298
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7299
 
7300
  def __eq__(self, other):
7301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7302
 
7303
  def __ne__(self, other):
7304
    return not (self == other)
7305
 
7306
class getComingSoonCount_result:
7307
  """
7308
  Attributes:
7309
   - success
7310
   - cex
7311
  """
7312
 
7313
  thrift_spec = (
7314
    (0, TType.I64, 'success', None, None, ), # 0
7315
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7316
  )
7317
 
7318
  def __init__(self, success=None, cex=None,):
7319
    self.success = success
7320
    self.cex = cex
7321
 
7322
  def read(self, iprot):
7323
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7324
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7325
      return
7326
    iprot.readStructBegin()
7327
    while True:
7328
      (fname, ftype, fid) = iprot.readFieldBegin()
7329
      if ftype == TType.STOP:
7330
        break
7331
      if fid == 0:
7332
        if ftype == TType.I64:
7333
          self.success = iprot.readI64();
7334
        else:
7335
          iprot.skip(ftype)
7336
      elif fid == 1:
7337
        if ftype == TType.STRUCT:
7338
          self.cex = CatalogServiceException()
7339
          self.cex.read(iprot)
7340
        else:
7341
          iprot.skip(ftype)
7342
      else:
7343
        iprot.skip(ftype)
7344
      iprot.readFieldEnd()
7345
    iprot.readStructEnd()
7346
 
7347
  def write(self, oprot):
7348
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7349
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7350
      return
7351
    oprot.writeStructBegin('getComingSoonCount_result')
7352
    if self.success is not None:
7353
      oprot.writeFieldBegin('success', TType.I64, 0)
7354
      oprot.writeI64(self.success)
7355
      oprot.writeFieldEnd()
7356
    if self.cex is not None:
7357
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7358
      self.cex.write(oprot)
7359
      oprot.writeFieldEnd()
7360
    oprot.writeFieldStop()
7361
    oprot.writeStructEnd()
7362
 
7363
  def validate(self):
7364
    return
7365
 
7366
 
7367
  def __repr__(self):
7368
    L = ['%s=%r' % (key, value)
7369
      for key, value in self.__dict__.iteritems()]
7370
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7371
 
7372
  def __eq__(self, other):
7373
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7374
 
7375
  def __ne__(self, other):
7376
    return not (self == other)
7377
 
7378
class getLatestArrivals_args:
7379
 
7380
  thrift_spec = (
7381
  )
7382
 
7383
  def read(self, iprot):
7384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7386
      return
7387
    iprot.readStructBegin()
7388
    while True:
7389
      (fname, ftype, fid) = iprot.readFieldBegin()
7390
      if ftype == TType.STOP:
7391
        break
7392
      else:
7393
        iprot.skip(ftype)
7394
      iprot.readFieldEnd()
7395
    iprot.readStructEnd()
7396
 
7397
  def write(self, oprot):
7398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7400
      return
7401
    oprot.writeStructBegin('getLatestArrivals_args')
7402
    oprot.writeFieldStop()
7403
    oprot.writeStructEnd()
7404
 
7405
  def validate(self):
7406
    return
7407
 
7408
 
7409
  def __repr__(self):
7410
    L = ['%s=%r' % (key, value)
7411
      for key, value in self.__dict__.iteritems()]
7412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7413
 
7414
  def __eq__(self, other):
7415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7416
 
7417
  def __ne__(self, other):
7418
    return not (self == other)
7419
 
7420
class getLatestArrivals_result:
7421
  """
7422
  Attributes:
7423
   - success
7424
   - isex
7425
  """
7426
 
7427
  thrift_spec = (
7428
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7429
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7430
  )
7431
 
7432
  def __init__(self, success=None, isex=None,):
7433
    self.success = success
7434
    self.isex = isex
7435
 
7436
  def read(self, iprot):
7437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7439
      return
7440
    iprot.readStructBegin()
7441
    while True:
7442
      (fname, ftype, fid) = iprot.readFieldBegin()
7443
      if ftype == TType.STOP:
7444
        break
7445
      if fid == 0:
7446
        if ftype == TType.LIST:
7447
          self.success = []
7448
          (_etype103, _size100) = iprot.readListBegin()
7449
          for _i104 in xrange(_size100):
7450
            _elem105 = Item()
7451
            _elem105.read(iprot)
7452
            self.success.append(_elem105)
7453
          iprot.readListEnd()
7454
        else:
7455
          iprot.skip(ftype)
7456
      elif fid == 1:
7457
        if ftype == TType.STRUCT:
7458
          self.isex = CatalogServiceException()
7459
          self.isex.read(iprot)
7460
        else:
7461
          iprot.skip(ftype)
7462
      else:
7463
        iprot.skip(ftype)
7464
      iprot.readFieldEnd()
7465
    iprot.readStructEnd()
7466
 
7467
  def write(self, oprot):
7468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7470
      return
7471
    oprot.writeStructBegin('getLatestArrivals_result')
7472
    if self.success is not None:
7473
      oprot.writeFieldBegin('success', TType.LIST, 0)
7474
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7475
      for iter106 in self.success:
7476
        iter106.write(oprot)
7477
      oprot.writeListEnd()
7478
      oprot.writeFieldEnd()
7479
    if self.isex is not None:
7480
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7481
      self.isex.write(oprot)
7482
      oprot.writeFieldEnd()
7483
    oprot.writeFieldStop()
7484
    oprot.writeStructEnd()
7485
 
7486
  def validate(self):
7487
    return
7488
 
7489
 
7490
  def __repr__(self):
7491
    L = ['%s=%r' % (key, value)
7492
      for key, value in self.__dict__.iteritems()]
7493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7494
 
7495
  def __eq__(self, other):
7496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7497
 
7498
  def __ne__(self, other):
7499
    return not (self == other)
7500
 
7501
class getLatestArrivalsCatalogIds_args:
7502
  """
7503
  Attributes:
7504
   - beginIndex
7505
   - totalItems
7506
   - brand
7507
   - categories
7508
  """
7509
 
7510
  thrift_spec = (
7511
    None, # 0
7512
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7513
    (2, TType.I64, 'totalItems', None, None, ), # 2
7514
    (3, TType.STRING, 'brand', None, None, ), # 3
7515
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
7516
  )
7517
 
7518
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
7519
    self.beginIndex = beginIndex
7520
    self.totalItems = totalItems
7521
    self.brand = brand
7522
    self.categories = categories
7523
 
7524
  def read(self, iprot):
7525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7527
      return
7528
    iprot.readStructBegin()
7529
    while True:
7530
      (fname, ftype, fid) = iprot.readFieldBegin()
7531
      if ftype == TType.STOP:
7532
        break
7533
      if fid == 1:
7534
        if ftype == TType.I64:
7535
          self.beginIndex = iprot.readI64();
7536
        else:
7537
          iprot.skip(ftype)
7538
      elif fid == 2:
7539
        if ftype == TType.I64:
7540
          self.totalItems = iprot.readI64();
7541
        else:
7542
          iprot.skip(ftype)
7543
      elif fid == 3:
7544
        if ftype == TType.STRING:
7545
          self.brand = iprot.readString();
7546
        else:
7547
          iprot.skip(ftype)
7548
      elif fid == 4:
7549
        if ftype == TType.LIST:
7550
          self.categories = []
7551
          (_etype110, _size107) = iprot.readListBegin()
7552
          for _i111 in xrange(_size107):
7553
            _elem112 = iprot.readI64();
7554
            self.categories.append(_elem112)
7555
          iprot.readListEnd()
7556
        else:
7557
          iprot.skip(ftype)
7558
      else:
7559
        iprot.skip(ftype)
7560
      iprot.readFieldEnd()
7561
    iprot.readStructEnd()
7562
 
7563
  def write(self, oprot):
7564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7566
      return
7567
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
7568
    if self.beginIndex is not None:
7569
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7570
      oprot.writeI64(self.beginIndex)
7571
      oprot.writeFieldEnd()
7572
    if self.totalItems is not None:
7573
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7574
      oprot.writeI64(self.totalItems)
7575
      oprot.writeFieldEnd()
7576
    if self.brand is not None:
7577
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7578
      oprot.writeString(self.brand)
7579
      oprot.writeFieldEnd()
7580
    if self.categories is not None:
7581
      oprot.writeFieldBegin('categories', TType.LIST, 4)
7582
      oprot.writeListBegin(TType.I64, len(self.categories))
7583
      for iter113 in self.categories:
7584
        oprot.writeI64(iter113)
7585
      oprot.writeListEnd()
7586
      oprot.writeFieldEnd()
7587
    oprot.writeFieldStop()
7588
    oprot.writeStructEnd()
7589
 
7590
  def validate(self):
7591
    return
7592
 
7593
 
7594
  def __repr__(self):
7595
    L = ['%s=%r' % (key, value)
7596
      for key, value in self.__dict__.iteritems()]
7597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7598
 
7599
  def __eq__(self, other):
7600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7601
 
7602
  def __ne__(self, other):
7603
    return not (self == other)
7604
 
7605
class getLatestArrivalsCatalogIds_result:
7606
  """
7607
  Attributes:
7608
   - success
7609
   - cex
7610
  """
7611
 
7612
  thrift_spec = (
7613
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7614
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7615
  )
7616
 
7617
  def __init__(self, success=None, cex=None,):
7618
    self.success = success
7619
    self.cex = cex
7620
 
7621
  def read(self, iprot):
7622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7624
      return
7625
    iprot.readStructBegin()
7626
    while True:
7627
      (fname, ftype, fid) = iprot.readFieldBegin()
7628
      if ftype == TType.STOP:
7629
        break
7630
      if fid == 0:
7631
        if ftype == TType.LIST:
7632
          self.success = []
7633
          (_etype117, _size114) = iprot.readListBegin()
7634
          for _i118 in xrange(_size114):
7635
            _elem119 = iprot.readI64();
7636
            self.success.append(_elem119)
7637
          iprot.readListEnd()
7638
        else:
7639
          iprot.skip(ftype)
7640
      elif fid == 1:
7641
        if ftype == TType.STRUCT:
7642
          self.cex = CatalogServiceException()
7643
          self.cex.read(iprot)
7644
        else:
7645
          iprot.skip(ftype)
7646
      else:
7647
        iprot.skip(ftype)
7648
      iprot.readFieldEnd()
7649
    iprot.readStructEnd()
7650
 
7651
  def write(self, oprot):
7652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7654
      return
7655
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
7656
    if self.success is not None:
7657
      oprot.writeFieldBegin('success', TType.LIST, 0)
7658
      oprot.writeListBegin(TType.I64, len(self.success))
7659
      for iter120 in self.success:
7660
        oprot.writeI64(iter120)
7661
      oprot.writeListEnd()
7662
      oprot.writeFieldEnd()
7663
    if self.cex is not None:
7664
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7665
      self.cex.write(oprot)
7666
      oprot.writeFieldEnd()
7667
    oprot.writeFieldStop()
7668
    oprot.writeStructEnd()
7669
 
7670
  def validate(self):
7671
    return
7672
 
7673
 
7674
  def __repr__(self):
7675
    L = ['%s=%r' % (key, value)
7676
      for key, value in self.__dict__.iteritems()]
7677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7678
 
7679
  def __eq__(self, other):
7680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7681
 
7682
  def __ne__(self, other):
7683
    return not (self == other)
7684
 
7685
class getLatestArrivalsCount_args:
7686
 
7687
  thrift_spec = (
7688
  )
7689
 
7690
  def read(self, iprot):
7691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7693
      return
7694
    iprot.readStructBegin()
7695
    while True:
7696
      (fname, ftype, fid) = iprot.readFieldBegin()
7697
      if ftype == TType.STOP:
7698
        break
7699
      else:
7700
        iprot.skip(ftype)
7701
      iprot.readFieldEnd()
7702
    iprot.readStructEnd()
7703
 
7704
  def write(self, oprot):
7705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7707
      return
7708
    oprot.writeStructBegin('getLatestArrivalsCount_args')
7709
    oprot.writeFieldStop()
7710
    oprot.writeStructEnd()
7711
 
7712
  def validate(self):
7713
    return
7714
 
7715
 
7716
  def __repr__(self):
7717
    L = ['%s=%r' % (key, value)
7718
      for key, value in self.__dict__.iteritems()]
7719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7720
 
7721
  def __eq__(self, other):
7722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7723
 
7724
  def __ne__(self, other):
7725
    return not (self == other)
7726
 
7727
class getLatestArrivalsCount_result:
7728
  """
7729
  Attributes:
7730
   - success
7731
   - cex
7732
  """
7733
 
7734
  thrift_spec = (
7735
    (0, TType.I64, 'success', None, None, ), # 0
7736
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7737
  )
7738
 
7739
  def __init__(self, success=None, cex=None,):
7740
    self.success = success
7741
    self.cex = cex
7742
 
7743
  def read(self, iprot):
7744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7746
      return
7747
    iprot.readStructBegin()
7748
    while True:
7749
      (fname, ftype, fid) = iprot.readFieldBegin()
7750
      if ftype == TType.STOP:
7751
        break
7752
      if fid == 0:
7753
        if ftype == TType.I64:
7754
          self.success = iprot.readI64();
7755
        else:
7756
          iprot.skip(ftype)
7757
      elif fid == 1:
7758
        if ftype == TType.STRUCT:
7759
          self.cex = CatalogServiceException()
7760
          self.cex.read(iprot)
7761
        else:
7762
          iprot.skip(ftype)
7763
      else:
7764
        iprot.skip(ftype)
7765
      iprot.readFieldEnd()
7766
    iprot.readStructEnd()
7767
 
7768
  def write(self, oprot):
7769
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7770
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7771
      return
7772
    oprot.writeStructBegin('getLatestArrivalsCount_result')
7773
    if self.success is not None:
7774
      oprot.writeFieldBegin('success', TType.I64, 0)
7775
      oprot.writeI64(self.success)
7776
      oprot.writeFieldEnd()
7777
    if self.cex is not None:
7778
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7779
      self.cex.write(oprot)
7780
      oprot.writeFieldEnd()
7781
    oprot.writeFieldStop()
7782
    oprot.writeStructEnd()
7783
 
7784
  def validate(self):
7785
    return
7786
 
7787
 
7788
  def __repr__(self):
7789
    L = ['%s=%r' % (key, value)
7790
      for key, value in self.__dict__.iteritems()]
7791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7792
 
7793
  def __eq__(self, other):
7794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7795
 
7796
  def __ne__(self, other):
7797
    return not (self == other)
7798
 
7799
class generateNewEntityID_args:
7800
 
7801
  thrift_spec = (
7802
  )
7803
 
7804
  def read(self, iprot):
7805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7807
      return
7808
    iprot.readStructBegin()
7809
    while True:
7810
      (fname, ftype, fid) = iprot.readFieldBegin()
7811
      if ftype == TType.STOP:
7812
        break
7813
      else:
7814
        iprot.skip(ftype)
7815
      iprot.readFieldEnd()
7816
    iprot.readStructEnd()
7817
 
7818
  def write(self, oprot):
7819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7821
      return
7822
    oprot.writeStructBegin('generateNewEntityID_args')
7823
    oprot.writeFieldStop()
7824
    oprot.writeStructEnd()
7825
 
7826
  def validate(self):
7827
    return
7828
 
7829
 
7830
  def __repr__(self):
7831
    L = ['%s=%r' % (key, value)
7832
      for key, value in self.__dict__.iteritems()]
7833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7834
 
7835
  def __eq__(self, other):
7836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7837
 
7838
  def __ne__(self, other):
7839
    return not (self == other)
7840
 
7841
class generateNewEntityID_result:
7842
  """
7843
  Attributes:
7844
   - success
7845
  """
7846
 
7847
  thrift_spec = (
7848
    (0, TType.I64, 'success', None, None, ), # 0
7849
  )
7850
 
7851
  def __init__(self, success=None,):
7852
    self.success = success
7853
 
7854
  def read(self, iprot):
7855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7857
      return
7858
    iprot.readStructBegin()
7859
    while True:
7860
      (fname, ftype, fid) = iprot.readFieldBegin()
7861
      if ftype == TType.STOP:
7862
        break
7863
      if fid == 0:
7864
        if ftype == TType.I64:
7865
          self.success = iprot.readI64();
7866
        else:
7867
          iprot.skip(ftype)
7868
      else:
7869
        iprot.skip(ftype)
7870
      iprot.readFieldEnd()
7871
    iprot.readStructEnd()
7872
 
7873
  def write(self, oprot):
7874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7876
      return
7877
    oprot.writeStructBegin('generateNewEntityID_result')
7878
    if self.success is not None:
7879
      oprot.writeFieldBegin('success', TType.I64, 0)
7880
      oprot.writeI64(self.success)
7881
      oprot.writeFieldEnd()
7882
    oprot.writeFieldStop()
7883
    oprot.writeStructEnd()
7884
 
7885
  def validate(self):
7886
    return
7887
 
7888
 
7889
  def __repr__(self):
7890
    L = ['%s=%r' % (key, value)
7891
      for key, value in self.__dict__.iteritems()]
7892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7893
 
7894
  def __eq__(self, other):
7895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7896
 
7897
  def __ne__(self, other):
7898
    return not (self == other)
7899
 
7900
class addCategory_args:
7901
  """
7902
  Attributes:
7903
   - category
7904
  """
7905
 
7906
  thrift_spec = (
7907
    None, # 0
7908
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
7909
  )
7910
 
7911
  def __init__(self, category=None,):
7912
    self.category = category
7913
 
7914
  def read(self, iprot):
7915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7917
      return
7918
    iprot.readStructBegin()
7919
    while True:
7920
      (fname, ftype, fid) = iprot.readFieldBegin()
7921
      if ftype == TType.STOP:
7922
        break
7923
      if fid == 1:
7924
        if ftype == TType.STRUCT:
7925
          self.category = Category()
7926
          self.category.read(iprot)
7927
        else:
7928
          iprot.skip(ftype)
7929
      else:
7930
        iprot.skip(ftype)
7931
      iprot.readFieldEnd()
7932
    iprot.readStructEnd()
7933
 
7934
  def write(self, oprot):
7935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7937
      return
7938
    oprot.writeStructBegin('addCategory_args')
7939
    if self.category is not None:
7940
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
7941
      self.category.write(oprot)
7942
      oprot.writeFieldEnd()
7943
    oprot.writeFieldStop()
7944
    oprot.writeStructEnd()
7945
 
7946
  def validate(self):
7947
    return
7948
 
7949
 
7950
  def __repr__(self):
7951
    L = ['%s=%r' % (key, value)
7952
      for key, value in self.__dict__.iteritems()]
7953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7954
 
7955
  def __eq__(self, other):
7956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7957
 
7958
  def __ne__(self, other):
7959
    return not (self == other)
7960
 
7961
class addCategory_result:
7962
  """
7963
  Attributes:
7964
   - success
7965
  """
7966
 
7967
  thrift_spec = (
7968
    (0, TType.BOOL, 'success', None, None, ), # 0
7969
  )
7970
 
7971
  def __init__(self, success=None,):
7972
    self.success = success
7973
 
7974
  def read(self, iprot):
7975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7977
      return
7978
    iprot.readStructBegin()
7979
    while True:
7980
      (fname, ftype, fid) = iprot.readFieldBegin()
7981
      if ftype == TType.STOP:
7982
        break
7983
      if fid == 0:
7984
        if ftype == TType.BOOL:
7985
          self.success = iprot.readBool();
7986
        else:
7987
          iprot.skip(ftype)
7988
      else:
7989
        iprot.skip(ftype)
7990
      iprot.readFieldEnd()
7991
    iprot.readStructEnd()
7992
 
7993
  def write(self, oprot):
7994
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7995
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7996
      return
7997
    oprot.writeStructBegin('addCategory_result')
7998
    if self.success is not None:
7999
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8000
      oprot.writeBool(self.success)
8001
      oprot.writeFieldEnd()
8002
    oprot.writeFieldStop()
8003
    oprot.writeStructEnd()
8004
 
8005
  def validate(self):
8006
    return
8007
 
8008
 
8009
  def __repr__(self):
8010
    L = ['%s=%r' % (key, value)
8011
      for key, value in self.__dict__.iteritems()]
8012
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8013
 
8014
  def __eq__(self, other):
8015
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8016
 
8017
  def __ne__(self, other):
8018
    return not (self == other)
8019
 
8020
class getCategory_args:
8021
  """
8022
  Attributes:
8023
   - id
8024
  """
8025
 
8026
  thrift_spec = (
8027
    None, # 0
8028
    (1, TType.I64, 'id', None, None, ), # 1
8029
  )
8030
 
8031
  def __init__(self, id=None,):
8032
    self.id = id
8033
 
8034
  def read(self, iprot):
8035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8037
      return
8038
    iprot.readStructBegin()
8039
    while True:
8040
      (fname, ftype, fid) = iprot.readFieldBegin()
8041
      if ftype == TType.STOP:
8042
        break
8043
      if fid == 1:
8044
        if ftype == TType.I64:
8045
          self.id = iprot.readI64();
8046
        else:
8047
          iprot.skip(ftype)
8048
      else:
8049
        iprot.skip(ftype)
8050
      iprot.readFieldEnd()
8051
    iprot.readStructEnd()
8052
 
8053
  def write(self, oprot):
8054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8056
      return
8057
    oprot.writeStructBegin('getCategory_args')
8058
    if self.id is not None:
8059
      oprot.writeFieldBegin('id', TType.I64, 1)
8060
      oprot.writeI64(self.id)
8061
      oprot.writeFieldEnd()
8062
    oprot.writeFieldStop()
8063
    oprot.writeStructEnd()
8064
 
8065
  def validate(self):
8066
    return
8067
 
8068
 
8069
  def __repr__(self):
8070
    L = ['%s=%r' % (key, value)
8071
      for key, value in self.__dict__.iteritems()]
8072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8073
 
8074
  def __eq__(self, other):
8075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8076
 
8077
  def __ne__(self, other):
8078
    return not (self == other)
8079
 
8080
class getCategory_result:
8081
  """
8082
  Attributes:
8083
   - success
8084
  """
8085
 
8086
  thrift_spec = (
8087
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8088
  )
8089
 
8090
  def __init__(self, success=None,):
8091
    self.success = success
8092
 
8093
  def read(self, iprot):
8094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8096
      return
8097
    iprot.readStructBegin()
8098
    while True:
8099
      (fname, ftype, fid) = iprot.readFieldBegin()
8100
      if ftype == TType.STOP:
8101
        break
8102
      if fid == 0:
8103
        if ftype == TType.STRUCT:
8104
          self.success = Category()
8105
          self.success.read(iprot)
8106
        else:
8107
          iprot.skip(ftype)
8108
      else:
8109
        iprot.skip(ftype)
8110
      iprot.readFieldEnd()
8111
    iprot.readStructEnd()
8112
 
8113
  def write(self, oprot):
8114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8116
      return
8117
    oprot.writeStructBegin('getCategory_result')
8118
    if self.success is not None:
8119
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8120
      self.success.write(oprot)
8121
      oprot.writeFieldEnd()
8122
    oprot.writeFieldStop()
8123
    oprot.writeStructEnd()
8124
 
8125
  def validate(self):
8126
    return
8127
 
8128
 
8129
  def __repr__(self):
8130
    L = ['%s=%r' % (key, value)
8131
      for key, value in self.__dict__.iteritems()]
8132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8133
 
8134
  def __eq__(self, other):
8135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8136
 
8137
  def __ne__(self, other):
8138
    return not (self == other)
8139
 
8140
class getAllCategories_args:
8141
 
8142
  thrift_spec = (
8143
  )
8144
 
8145
  def read(self, iprot):
8146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8148
      return
8149
    iprot.readStructBegin()
8150
    while True:
8151
      (fname, ftype, fid) = iprot.readFieldBegin()
8152
      if ftype == TType.STOP:
8153
        break
8154
      else:
8155
        iprot.skip(ftype)
8156
      iprot.readFieldEnd()
8157
    iprot.readStructEnd()
8158
 
8159
  def write(self, oprot):
8160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8162
      return
8163
    oprot.writeStructBegin('getAllCategories_args')
8164
    oprot.writeFieldStop()
8165
    oprot.writeStructEnd()
8166
 
8167
  def validate(self):
8168
    return
8169
 
8170
 
8171
  def __repr__(self):
8172
    L = ['%s=%r' % (key, value)
8173
      for key, value in self.__dict__.iteritems()]
8174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8175
 
8176
  def __eq__(self, other):
8177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8178
 
8179
  def __ne__(self, other):
8180
    return not (self == other)
8181
 
8182
class getAllCategories_result:
8183
  """
8184
  Attributes:
8185
   - success
8186
  """
8187
 
8188
  thrift_spec = (
8189
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8190
  )
8191
 
8192
  def __init__(self, success=None,):
8193
    self.success = success
8194
 
8195
  def read(self, iprot):
8196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8198
      return
8199
    iprot.readStructBegin()
8200
    while True:
8201
      (fname, ftype, fid) = iprot.readFieldBegin()
8202
      if ftype == TType.STOP:
8203
        break
8204
      if fid == 0:
8205
        if ftype == TType.LIST:
8206
          self.success = []
8207
          (_etype124, _size121) = iprot.readListBegin()
8208
          for _i125 in xrange(_size121):
8209
            _elem126 = Category()
8210
            _elem126.read(iprot)
8211
            self.success.append(_elem126)
8212
          iprot.readListEnd()
8213
        else:
8214
          iprot.skip(ftype)
8215
      else:
8216
        iprot.skip(ftype)
8217
      iprot.readFieldEnd()
8218
    iprot.readStructEnd()
8219
 
8220
  def write(self, oprot):
8221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8223
      return
8224
    oprot.writeStructBegin('getAllCategories_result')
8225
    if self.success is not None:
8226
      oprot.writeFieldBegin('success', TType.LIST, 0)
8227
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8228
      for iter127 in self.success:
8229
        iter127.write(oprot)
8230
      oprot.writeListEnd()
8231
      oprot.writeFieldEnd()
8232
    oprot.writeFieldStop()
8233
    oprot.writeStructEnd()
8234
 
8235
  def validate(self):
8236
    return
8237
 
8238
 
8239
  def __repr__(self):
8240
    L = ['%s=%r' % (key, value)
8241
      for key, value in self.__dict__.iteritems()]
8242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8243
 
8244
  def __eq__(self, other):
8245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8246
 
8247
  def __ne__(self, other):
8248
    return not (self == other)
8249
 
8250
class getAllSimilarItems_args:
8251
  """
8252
  Attributes:
8253
   - itemId
8254
  """
8255
 
8256
  thrift_spec = (
8257
    None, # 0
8258
    (1, TType.I64, 'itemId', None, None, ), # 1
8259
  )
8260
 
8261
  def __init__(self, itemId=None,):
8262
    self.itemId = itemId
8263
 
8264
  def read(self, iprot):
8265
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8266
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8267
      return
8268
    iprot.readStructBegin()
8269
    while True:
8270
      (fname, ftype, fid) = iprot.readFieldBegin()
8271
      if ftype == TType.STOP:
8272
        break
8273
      if fid == 1:
8274
        if ftype == TType.I64:
8275
          self.itemId = iprot.readI64();
8276
        else:
8277
          iprot.skip(ftype)
8278
      else:
8279
        iprot.skip(ftype)
8280
      iprot.readFieldEnd()
8281
    iprot.readStructEnd()
8282
 
8283
  def write(self, oprot):
8284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8286
      return
8287
    oprot.writeStructBegin('getAllSimilarItems_args')
8288
    if self.itemId is not None:
8289
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8290
      oprot.writeI64(self.itemId)
8291
      oprot.writeFieldEnd()
8292
    oprot.writeFieldStop()
8293
    oprot.writeStructEnd()
8294
 
8295
  def validate(self):
8296
    return
8297
 
8298
 
8299
  def __repr__(self):
8300
    L = ['%s=%r' % (key, value)
8301
      for key, value in self.__dict__.iteritems()]
8302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8303
 
8304
  def __eq__(self, other):
8305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8306
 
8307
  def __ne__(self, other):
8308
    return not (self == other)
8309
 
8310
class getAllSimilarItems_result:
8311
  """
8312
  Attributes:
8313
   - success
8314
  """
8315
 
8316
  thrift_spec = (
8317
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8318
  )
8319
 
8320
  def __init__(self, success=None,):
8321
    self.success = success
8322
 
8323
  def read(self, iprot):
8324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8326
      return
8327
    iprot.readStructBegin()
8328
    while True:
8329
      (fname, ftype, fid) = iprot.readFieldBegin()
8330
      if ftype == TType.STOP:
8331
        break
8332
      if fid == 0:
8333
        if ftype == TType.LIST:
8334
          self.success = []
8335
          (_etype131, _size128) = iprot.readListBegin()
8336
          for _i132 in xrange(_size128):
8337
            _elem133 = Item()
8338
            _elem133.read(iprot)
8339
            self.success.append(_elem133)
8340
          iprot.readListEnd()
8341
        else:
8342
          iprot.skip(ftype)
8343
      else:
8344
        iprot.skip(ftype)
8345
      iprot.readFieldEnd()
8346
    iprot.readStructEnd()
8347
 
8348
  def write(self, oprot):
8349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8351
      return
8352
    oprot.writeStructBegin('getAllSimilarItems_result')
8353
    if self.success is not None:
8354
      oprot.writeFieldBegin('success', TType.LIST, 0)
8355
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8356
      for iter134 in self.success:
8357
        iter134.write(oprot)
8358
      oprot.writeListEnd()
8359
      oprot.writeFieldEnd()
8360
    oprot.writeFieldStop()
8361
    oprot.writeStructEnd()
8362
 
8363
  def validate(self):
8364
    return
8365
 
8366
 
8367
  def __repr__(self):
8368
    L = ['%s=%r' % (key, value)
8369
      for key, value in self.__dict__.iteritems()]
8370
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8371
 
8372
  def __eq__(self, other):
8373
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8374
 
8375
  def __ne__(self, other):
8376
    return not (self == other)
8377
 
8378
class addSimilarItem_args:
8379
  """
8380
  Attributes:
8381
   - itemId
8382
   - catalogItemId
8383
  """
8384
 
8385
  thrift_spec = (
8386
    None, # 0
8387
    (1, TType.I64, 'itemId', None, None, ), # 1
8388
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
8389
  )
8390
 
8391
  def __init__(self, itemId=None, catalogItemId=None,):
8392
    self.itemId = itemId
8393
    self.catalogItemId = catalogItemId
8394
 
8395
  def read(self, iprot):
8396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8398
      return
8399
    iprot.readStructBegin()
8400
    while True:
8401
      (fname, ftype, fid) = iprot.readFieldBegin()
8402
      if ftype == TType.STOP:
8403
        break
8404
      if fid == 1:
8405
        if ftype == TType.I64:
8406
          self.itemId = iprot.readI64();
8407
        else:
8408
          iprot.skip(ftype)
8409
      elif fid == 2:
8410
        if ftype == TType.I64:
8411
          self.catalogItemId = iprot.readI64();
8412
        else:
8413
          iprot.skip(ftype)
8414
      else:
8415
        iprot.skip(ftype)
8416
      iprot.readFieldEnd()
8417
    iprot.readStructEnd()
8418
 
8419
  def write(self, oprot):
8420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8422
      return
8423
    oprot.writeStructBegin('addSimilarItem_args')
8424
    if self.itemId is not None:
8425
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8426
      oprot.writeI64(self.itemId)
8427
      oprot.writeFieldEnd()
8428
    if self.catalogItemId is not None:
8429
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
8430
      oprot.writeI64(self.catalogItemId)
8431
      oprot.writeFieldEnd()
8432
    oprot.writeFieldStop()
8433
    oprot.writeStructEnd()
8434
 
8435
  def validate(self):
8436
    return
8437
 
8438
 
8439
  def __repr__(self):
8440
    L = ['%s=%r' % (key, value)
8441
      for key, value in self.__dict__.iteritems()]
8442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8443
 
8444
  def __eq__(self, other):
8445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8446
 
8447
  def __ne__(self, other):
8448
    return not (self == other)
8449
 
8450
class addSimilarItem_result:
8451
  """
8452
  Attributes:
8453
   - success
8454
   - cex
8455
  """
8456
 
8457
  thrift_spec = (
8458
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8459
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8460
  )
8461
 
8462
  def __init__(self, success=None, cex=None,):
8463
    self.success = success
8464
    self.cex = cex
8465
 
8466
  def read(self, iprot):
8467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8469
      return
8470
    iprot.readStructBegin()
8471
    while True:
8472
      (fname, ftype, fid) = iprot.readFieldBegin()
8473
      if ftype == TType.STOP:
8474
        break
8475
      if fid == 0:
8476
        if ftype == TType.STRUCT:
8477
          self.success = Item()
8478
          self.success.read(iprot)
8479
        else:
8480
          iprot.skip(ftype)
8481
      elif fid == 1:
8482
        if ftype == TType.STRUCT:
8483
          self.cex = CatalogServiceException()
8484
          self.cex.read(iprot)
8485
        else:
8486
          iprot.skip(ftype)
8487
      else:
8488
        iprot.skip(ftype)
8489
      iprot.readFieldEnd()
8490
    iprot.readStructEnd()
8491
 
8492
  def write(self, oprot):
8493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8495
      return
8496
    oprot.writeStructBegin('addSimilarItem_result')
8497
    if self.success is not None:
8498
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8499
      self.success.write(oprot)
8500
      oprot.writeFieldEnd()
8501
    if self.cex is not None:
8502
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8503
      self.cex.write(oprot)
8504
      oprot.writeFieldEnd()
8505
    oprot.writeFieldStop()
8506
    oprot.writeStructEnd()
8507
 
8508
  def validate(self):
8509
    return
8510
 
8511
 
8512
  def __repr__(self):
8513
    L = ['%s=%r' % (key, value)
8514
      for key, value in self.__dict__.iteritems()]
8515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8516
 
8517
  def __eq__(self, other):
8518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8519
 
8520
  def __ne__(self, other):
8521
    return not (self == other)
8522
 
6512 kshitij.so 8523
class addTag_args:
8524
  """
8525
  Attributes:
8526
   - displayName
8527
   - itemId
8528
  """
8529
 
8530
  thrift_spec = (
8531
    None, # 0
8532
    (1, TType.STRING, 'displayName', None, None, ), # 1
8533
    (2, TType.I64, 'itemId', None, None, ), # 2
8534
  )
8535
 
8536
  def __init__(self, displayName=None, itemId=None,):
8537
    self.displayName = displayName
8538
    self.itemId = itemId
8539
 
8540
  def read(self, iprot):
8541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8543
      return
8544
    iprot.readStructBegin()
8545
    while True:
8546
      (fname, ftype, fid) = iprot.readFieldBegin()
8547
      if ftype == TType.STOP:
8548
        break
8549
      if fid == 1:
8550
        if ftype == TType.STRING:
8551
          self.displayName = iprot.readString();
8552
        else:
8553
          iprot.skip(ftype)
8554
      elif fid == 2:
8555
        if ftype == TType.I64:
8556
          self.itemId = iprot.readI64();
8557
        else:
8558
          iprot.skip(ftype)
8559
      else:
8560
        iprot.skip(ftype)
8561
      iprot.readFieldEnd()
8562
    iprot.readStructEnd()
8563
 
8564
  def write(self, oprot):
8565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8567
      return
8568
    oprot.writeStructBegin('addTag_args')
8569
    if self.displayName is not None:
8570
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8571
      oprot.writeString(self.displayName)
8572
      oprot.writeFieldEnd()
8573
    if self.itemId is not None:
8574
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8575
      oprot.writeI64(self.itemId)
8576
      oprot.writeFieldEnd()
8577
    oprot.writeFieldStop()
8578
    oprot.writeStructEnd()
8579
 
8580
  def validate(self):
8581
    return
8582
 
8583
 
8584
  def __repr__(self):
8585
    L = ['%s=%r' % (key, value)
8586
      for key, value in self.__dict__.iteritems()]
8587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8588
 
8589
  def __eq__(self, other):
8590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8591
 
8592
  def __ne__(self, other):
8593
    return not (self == other)
8594
 
8595
class addTag_result:
8596
  """
8597
  Attributes:
8598
   - success
8599
  """
8600
 
8601
  thrift_spec = (
8602
    (0, TType.BOOL, 'success', None, None, ), # 0
8603
  )
8604
 
8605
  def __init__(self, success=None,):
8606
    self.success = success
8607
 
8608
  def read(self, iprot):
8609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8611
      return
8612
    iprot.readStructBegin()
8613
    while True:
8614
      (fname, ftype, fid) = iprot.readFieldBegin()
8615
      if ftype == TType.STOP:
8616
        break
8617
      if fid == 0:
8618
        if ftype == TType.BOOL:
8619
          self.success = iprot.readBool();
8620
        else:
8621
          iprot.skip(ftype)
8622
      else:
8623
        iprot.skip(ftype)
8624
      iprot.readFieldEnd()
8625
    iprot.readStructEnd()
8626
 
8627
  def write(self, oprot):
8628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8630
      return
8631
    oprot.writeStructBegin('addTag_result')
8632
    if self.success is not None:
8633
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8634
      oprot.writeBool(self.success)
8635
      oprot.writeFieldEnd()
8636
    oprot.writeFieldStop()
8637
    oprot.writeStructEnd()
8638
 
8639
  def validate(self):
8640
    return
8641
 
8642
 
8643
  def __repr__(self):
8644
    L = ['%s=%r' % (key, value)
8645
      for key, value in self.__dict__.iteritems()]
8646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8647
 
8648
  def __eq__(self, other):
8649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8650
 
8651
  def __ne__(self, other):
8652
    return not (self == other)
8653
 
8654
class deleteEntityTag_args:
8655
  """
8656
  Attributes:
8657
   - displayName
8658
   - itemId
8659
  """
8660
 
8661
  thrift_spec = (
8662
    None, # 0
8663
    (1, TType.STRING, 'displayName', None, None, ), # 1
8664
    (2, TType.I64, 'itemId', None, None, ), # 2
8665
  )
8666
 
8667
  def __init__(self, displayName=None, itemId=None,):
8668
    self.displayName = displayName
8669
    self.itemId = itemId
8670
 
8671
  def read(self, iprot):
8672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8674
      return
8675
    iprot.readStructBegin()
8676
    while True:
8677
      (fname, ftype, fid) = iprot.readFieldBegin()
8678
      if ftype == TType.STOP:
8679
        break
8680
      if fid == 1:
8681
        if ftype == TType.STRING:
8682
          self.displayName = iprot.readString();
8683
        else:
8684
          iprot.skip(ftype)
8685
      elif fid == 2:
8686
        if ftype == TType.I64:
8687
          self.itemId = iprot.readI64();
8688
        else:
8689
          iprot.skip(ftype)
8690
      else:
8691
        iprot.skip(ftype)
8692
      iprot.readFieldEnd()
8693
    iprot.readStructEnd()
8694
 
8695
  def write(self, oprot):
8696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8698
      return
8699
    oprot.writeStructBegin('deleteEntityTag_args')
8700
    if self.displayName is not None:
8701
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8702
      oprot.writeString(self.displayName)
8703
      oprot.writeFieldEnd()
8704
    if self.itemId is not None:
8705
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8706
      oprot.writeI64(self.itemId)
8707
      oprot.writeFieldEnd()
8708
    oprot.writeFieldStop()
8709
    oprot.writeStructEnd()
8710
 
8711
  def validate(self):
8712
    return
8713
 
8714
 
8715
  def __repr__(self):
8716
    L = ['%s=%r' % (key, value)
8717
      for key, value in self.__dict__.iteritems()]
8718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8719
 
8720
  def __eq__(self, other):
8721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8722
 
8723
  def __ne__(self, other):
8724
    return not (self == other)
8725
 
8726
class deleteEntityTag_result:
8727
  """
8728
  Attributes:
8729
   - success
8730
  """
8731
 
8732
  thrift_spec = (
8733
    (0, TType.BOOL, 'success', None, None, ), # 0
8734
  )
8735
 
8736
  def __init__(self, success=None,):
8737
    self.success = success
8738
 
8739
  def read(self, iprot):
8740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8742
      return
8743
    iprot.readStructBegin()
8744
    while True:
8745
      (fname, ftype, fid) = iprot.readFieldBegin()
8746
      if ftype == TType.STOP:
8747
        break
8748
      if fid == 0:
8749
        if ftype == TType.BOOL:
8750
          self.success = iprot.readBool();
8751
        else:
8752
          iprot.skip(ftype)
8753
      else:
8754
        iprot.skip(ftype)
8755
      iprot.readFieldEnd()
8756
    iprot.readStructEnd()
8757
 
8758
  def write(self, oprot):
8759
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8760
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8761
      return
8762
    oprot.writeStructBegin('deleteEntityTag_result')
8763
    if self.success is not None:
8764
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8765
      oprot.writeBool(self.success)
8766
      oprot.writeFieldEnd()
8767
    oprot.writeFieldStop()
8768
    oprot.writeStructEnd()
8769
 
8770
  def validate(self):
8771
    return
8772
 
8773
 
8774
  def __repr__(self):
8775
    L = ['%s=%r' % (key, value)
8776
      for key, value in self.__dict__.iteritems()]
8777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8778
 
8779
  def __eq__(self, other):
8780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8781
 
8782
  def __ne__(self, other):
8783
    return not (self == other)
8784
 
8785
class deleteTag_args:
8786
  """
8787
  Attributes:
8788
   - displayName
8789
  """
8790
 
8791
  thrift_spec = (
8792
    None, # 0
8793
    (1, TType.STRING, 'displayName', None, None, ), # 1
8794
  )
8795
 
8796
  def __init__(self, displayName=None,):
8797
    self.displayName = displayName
8798
 
8799
  def read(self, iprot):
8800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8802
      return
8803
    iprot.readStructBegin()
8804
    while True:
8805
      (fname, ftype, fid) = iprot.readFieldBegin()
8806
      if ftype == TType.STOP:
8807
        break
8808
      if fid == 1:
8809
        if ftype == TType.STRING:
8810
          self.displayName = iprot.readString();
8811
        else:
8812
          iprot.skip(ftype)
8813
      else:
8814
        iprot.skip(ftype)
8815
      iprot.readFieldEnd()
8816
    iprot.readStructEnd()
8817
 
8818
  def write(self, oprot):
8819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8821
      return
8822
    oprot.writeStructBegin('deleteTag_args')
8823
    if self.displayName is not None:
8824
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8825
      oprot.writeString(self.displayName)
8826
      oprot.writeFieldEnd()
8827
    oprot.writeFieldStop()
8828
    oprot.writeStructEnd()
8829
 
8830
  def validate(self):
8831
    return
8832
 
8833
 
8834
  def __repr__(self):
8835
    L = ['%s=%r' % (key, value)
8836
      for key, value in self.__dict__.iteritems()]
8837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8838
 
8839
  def __eq__(self, other):
8840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8841
 
8842
  def __ne__(self, other):
8843
    return not (self == other)
8844
 
8845
class deleteTag_result:
8846
  """
8847
  Attributes:
8848
   - success
8849
  """
8850
 
8851
  thrift_spec = (
8852
    (0, TType.BOOL, 'success', None, None, ), # 0
8853
  )
8854
 
8855
  def __init__(self, success=None,):
8856
    self.success = success
8857
 
8858
  def read(self, iprot):
8859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8861
      return
8862
    iprot.readStructBegin()
8863
    while True:
8864
      (fname, ftype, fid) = iprot.readFieldBegin()
8865
      if ftype == TType.STOP:
8866
        break
8867
      if fid == 0:
8868
        if ftype == TType.BOOL:
8869
          self.success = iprot.readBool();
8870
        else:
8871
          iprot.skip(ftype)
8872
      else:
8873
        iprot.skip(ftype)
8874
      iprot.readFieldEnd()
8875
    iprot.readStructEnd()
8876
 
8877
  def write(self, oprot):
8878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8880
      return
8881
    oprot.writeStructBegin('deleteTag_result')
8882
    if self.success is not None:
8883
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8884
      oprot.writeBool(self.success)
8885
      oprot.writeFieldEnd()
8886
    oprot.writeFieldStop()
8887
    oprot.writeStructEnd()
8888
 
8889
  def validate(self):
8890
    return
8891
 
8892
 
8893
  def __repr__(self):
8894
    L = ['%s=%r' % (key, value)
8895
      for key, value in self.__dict__.iteritems()]
8896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8897
 
8898
  def __eq__(self, other):
8899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8900
 
8901
  def __ne__(self, other):
8902
    return not (self == other)
8903
 
8904
class getAllTags_args:
8905
 
8906
  thrift_spec = (
8907
  )
8908
 
8909
  def read(self, iprot):
8910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8912
      return
8913
    iprot.readStructBegin()
8914
    while True:
8915
      (fname, ftype, fid) = iprot.readFieldBegin()
8916
      if ftype == TType.STOP:
8917
        break
8918
      else:
8919
        iprot.skip(ftype)
8920
      iprot.readFieldEnd()
8921
    iprot.readStructEnd()
8922
 
8923
  def write(self, oprot):
8924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8926
      return
8927
    oprot.writeStructBegin('getAllTags_args')
8928
    oprot.writeFieldStop()
8929
    oprot.writeStructEnd()
8930
 
8931
  def validate(self):
8932
    return
8933
 
8934
 
8935
  def __repr__(self):
8936
    L = ['%s=%r' % (key, value)
8937
      for key, value in self.__dict__.iteritems()]
8938
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8939
 
8940
  def __eq__(self, other):
8941
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8942
 
8943
  def __ne__(self, other):
8944
    return not (self == other)
8945
 
8946
class getAllTags_result:
8947
  """
8948
  Attributes:
8949
   - success
8950
  """
8951
 
8952
  thrift_spec = (
8953
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
8954
  )
8955
 
8956
  def __init__(self, success=None,):
8957
    self.success = success
8958
 
8959
  def read(self, iprot):
8960
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8961
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8962
      return
8963
    iprot.readStructBegin()
8964
    while True:
8965
      (fname, ftype, fid) = iprot.readFieldBegin()
8966
      if ftype == TType.STOP:
8967
        break
8968
      if fid == 0:
8969
        if ftype == TType.LIST:
8970
          self.success = []
8971
          (_etype138, _size135) = iprot.readListBegin()
8972
          for _i139 in xrange(_size135):
8973
            _elem140 = iprot.readString();
8974
            self.success.append(_elem140)
8975
          iprot.readListEnd()
8976
        else:
8977
          iprot.skip(ftype)
8978
      else:
8979
        iprot.skip(ftype)
8980
      iprot.readFieldEnd()
8981
    iprot.readStructEnd()
8982
 
8983
  def write(self, oprot):
8984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8986
      return
8987
    oprot.writeStructBegin('getAllTags_result')
8988
    if self.success is not None:
8989
      oprot.writeFieldBegin('success', TType.LIST, 0)
8990
      oprot.writeListBegin(TType.STRING, len(self.success))
8991
      for iter141 in self.success:
8992
        oprot.writeString(iter141)
8993
      oprot.writeListEnd()
8994
      oprot.writeFieldEnd()
8995
    oprot.writeFieldStop()
8996
    oprot.writeStructEnd()
8997
 
8998
  def validate(self):
8999
    return
9000
 
9001
 
9002
  def __repr__(self):
9003
    L = ['%s=%r' % (key, value)
9004
      for key, value in self.__dict__.iteritems()]
9005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9006
 
9007
  def __eq__(self, other):
9008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9009
 
9010
  def __ne__(self, other):
9011
    return not (self == other)
9012
 
9013
class getAllEntitiesByTagName_args:
9014
  """
9015
  Attributes:
9016
   - displayName
9017
  """
9018
 
9019
  thrift_spec = (
9020
    None, # 0
9021
    (1, TType.STRING, 'displayName', None, None, ), # 1
9022
  )
9023
 
9024
  def __init__(self, displayName=None,):
9025
    self.displayName = displayName
9026
 
9027
  def read(self, iprot):
9028
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9029
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9030
      return
9031
    iprot.readStructBegin()
9032
    while True:
9033
      (fname, ftype, fid) = iprot.readFieldBegin()
9034
      if ftype == TType.STOP:
9035
        break
9036
      if fid == 1:
9037
        if ftype == TType.STRING:
9038
          self.displayName = iprot.readString();
9039
        else:
9040
          iprot.skip(ftype)
9041
      else:
9042
        iprot.skip(ftype)
9043
      iprot.readFieldEnd()
9044
    iprot.readStructEnd()
9045
 
9046
  def write(self, oprot):
9047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9049
      return
9050
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9051
    if self.displayName is not None:
9052
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9053
      oprot.writeString(self.displayName)
9054
      oprot.writeFieldEnd()
9055
    oprot.writeFieldStop()
9056
    oprot.writeStructEnd()
9057
 
9058
  def validate(self):
9059
    return
9060
 
9061
 
9062
  def __repr__(self):
9063
    L = ['%s=%r' % (key, value)
9064
      for key, value in self.__dict__.iteritems()]
9065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9066
 
9067
  def __eq__(self, other):
9068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9069
 
9070
  def __ne__(self, other):
9071
    return not (self == other)
9072
 
9073
class getAllEntitiesByTagName_result:
9074
  """
9075
  Attributes:
9076
   - success
9077
  """
9078
 
9079
  thrift_spec = (
9080
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9081
  )
9082
 
9083
  def __init__(self, success=None,):
9084
    self.success = success
9085
 
9086
  def read(self, iprot):
9087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9089
      return
9090
    iprot.readStructBegin()
9091
    while True:
9092
      (fname, ftype, fid) = iprot.readFieldBegin()
9093
      if ftype == TType.STOP:
9094
        break
9095
      if fid == 0:
9096
        if ftype == TType.LIST:
9097
          self.success = []
9098
          (_etype145, _size142) = iprot.readListBegin()
9099
          for _i146 in xrange(_size142):
9100
            _elem147 = iprot.readI64();
9101
            self.success.append(_elem147)
9102
          iprot.readListEnd()
9103
        else:
9104
          iprot.skip(ftype)
9105
      else:
9106
        iprot.skip(ftype)
9107
      iprot.readFieldEnd()
9108
    iprot.readStructEnd()
9109
 
9110
  def write(self, oprot):
9111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9113
      return
9114
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9115
    if self.success is not None:
9116
      oprot.writeFieldBegin('success', TType.LIST, 0)
9117
      oprot.writeListBegin(TType.I64, len(self.success))
9118
      for iter148 in self.success:
9119
        oprot.writeI64(iter148)
9120
      oprot.writeListEnd()
9121
      oprot.writeFieldEnd()
9122
    oprot.writeFieldStop()
9123
    oprot.writeStructEnd()
9124
 
9125
  def validate(self):
9126
    return
9127
 
9128
 
9129
  def __repr__(self):
9130
    L = ['%s=%r' % (key, value)
9131
      for key, value in self.__dict__.iteritems()]
9132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9133
 
9134
  def __eq__(self, other):
9135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9136
 
9137
  def __ne__(self, other):
9138
    return not (self == other)
9139
 
5944 mandeep.dh 9140
class deleteSimilarItem_args:
9141
  """
9142
  Attributes:
9143
   - itemId
9144
   - catalogItemId
9145
  """
9146
 
9147
  thrift_spec = (
9148
    None, # 0
9149
    (1, TType.I64, 'itemId', None, None, ), # 1
9150
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
9151
  )
9152
 
9153
  def __init__(self, itemId=None, catalogItemId=None,):
9154
    self.itemId = itemId
9155
    self.catalogItemId = catalogItemId
9156
 
9157
  def read(self, iprot):
9158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9160
      return
9161
    iprot.readStructBegin()
9162
    while True:
9163
      (fname, ftype, fid) = iprot.readFieldBegin()
9164
      if ftype == TType.STOP:
9165
        break
9166
      if fid == 1:
9167
        if ftype == TType.I64:
9168
          self.itemId = iprot.readI64();
9169
        else:
9170
          iprot.skip(ftype)
9171
      elif fid == 2:
9172
        if ftype == TType.I64:
9173
          self.catalogItemId = iprot.readI64();
9174
        else:
9175
          iprot.skip(ftype)
9176
      else:
9177
        iprot.skip(ftype)
9178
      iprot.readFieldEnd()
9179
    iprot.readStructEnd()
9180
 
9181
  def write(self, oprot):
9182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9184
      return
9185
    oprot.writeStructBegin('deleteSimilarItem_args')
9186
    if self.itemId is not None:
9187
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9188
      oprot.writeI64(self.itemId)
9189
      oprot.writeFieldEnd()
9190
    if self.catalogItemId is not None:
9191
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
9192
      oprot.writeI64(self.catalogItemId)
9193
      oprot.writeFieldEnd()
9194
    oprot.writeFieldStop()
9195
    oprot.writeStructEnd()
9196
 
9197
  def validate(self):
9198
    return
9199
 
9200
 
9201
  def __repr__(self):
9202
    L = ['%s=%r' % (key, value)
9203
      for key, value in self.__dict__.iteritems()]
9204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9205
 
9206
  def __eq__(self, other):
9207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9208
 
9209
  def __ne__(self, other):
9210
    return not (self == other)
9211
 
9212
class deleteSimilarItem_result:
9213
  """
9214
  Attributes:
9215
   - success
9216
   - cex
9217
  """
9218
 
9219
  thrift_spec = (
9220
    (0, TType.BOOL, 'success', None, None, ), # 0
9221
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9222
  )
9223
 
9224
  def __init__(self, success=None, cex=None,):
9225
    self.success = success
9226
    self.cex = cex
9227
 
9228
  def read(self, iprot):
9229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9231
      return
9232
    iprot.readStructBegin()
9233
    while True:
9234
      (fname, ftype, fid) = iprot.readFieldBegin()
9235
      if ftype == TType.STOP:
9236
        break
9237
      if fid == 0:
9238
        if ftype == TType.BOOL:
9239
          self.success = iprot.readBool();
9240
        else:
9241
          iprot.skip(ftype)
9242
      elif fid == 1:
9243
        if ftype == TType.STRUCT:
9244
          self.cex = CatalogServiceException()
9245
          self.cex.read(iprot)
9246
        else:
9247
          iprot.skip(ftype)
9248
      else:
9249
        iprot.skip(ftype)
9250
      iprot.readFieldEnd()
9251
    iprot.readStructEnd()
9252
 
9253
  def write(self, oprot):
9254
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9255
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9256
      return
9257
    oprot.writeStructBegin('deleteSimilarItem_result')
9258
    if self.success is not None:
9259
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9260
      oprot.writeBool(self.success)
9261
      oprot.writeFieldEnd()
9262
    if self.cex is not None:
9263
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9264
      self.cex.write(oprot)
9265
      oprot.writeFieldEnd()
9266
    oprot.writeFieldStop()
9267
    oprot.writeStructEnd()
9268
 
9269
  def validate(self):
9270
    return
9271
 
9272
 
9273
  def __repr__(self):
9274
    L = ['%s=%r' % (key, value)
9275
      for key, value in self.__dict__.iteritems()]
9276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9277
 
9278
  def __eq__(self, other):
9279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9280
 
9281
  def __ne__(self, other):
9282
    return not (self == other)
9283
 
9284
class checkSimilarItem_args:
9285
  """
9286
  Attributes:
9287
   - brand
9288
   - modelNumber
9289
   - modelName
9290
   - color
9291
  """
9292
 
9293
  thrift_spec = (
9294
    None, # 0
9295
    (1, TType.STRING, 'brand', None, None, ), # 1
9296
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
9297
    (3, TType.STRING, 'modelName', None, None, ), # 3
9298
    (4, TType.STRING, 'color', None, None, ), # 4
9299
  )
9300
 
9301
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
9302
    self.brand = brand
9303
    self.modelNumber = modelNumber
9304
    self.modelName = modelName
9305
    self.color = color
9306
 
9307
  def read(self, iprot):
9308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9310
      return
9311
    iprot.readStructBegin()
9312
    while True:
9313
      (fname, ftype, fid) = iprot.readFieldBegin()
9314
      if ftype == TType.STOP:
9315
        break
9316
      if fid == 1:
9317
        if ftype == TType.STRING:
9318
          self.brand = iprot.readString();
9319
        else:
9320
          iprot.skip(ftype)
9321
      elif fid == 2:
9322
        if ftype == TType.STRING:
9323
          self.modelNumber = iprot.readString();
9324
        else:
9325
          iprot.skip(ftype)
9326
      elif fid == 3:
9327
        if ftype == TType.STRING:
9328
          self.modelName = iprot.readString();
9329
        else:
9330
          iprot.skip(ftype)
9331
      elif fid == 4:
9332
        if ftype == TType.STRING:
9333
          self.color = iprot.readString();
9334
        else:
9335
          iprot.skip(ftype)
9336
      else:
9337
        iprot.skip(ftype)
9338
      iprot.readFieldEnd()
9339
    iprot.readStructEnd()
9340
 
9341
  def write(self, oprot):
9342
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9343
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9344
      return
9345
    oprot.writeStructBegin('checkSimilarItem_args')
9346
    if self.brand is not None:
9347
      oprot.writeFieldBegin('brand', TType.STRING, 1)
9348
      oprot.writeString(self.brand)
9349
      oprot.writeFieldEnd()
9350
    if self.modelNumber is not None:
9351
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
9352
      oprot.writeString(self.modelNumber)
9353
      oprot.writeFieldEnd()
9354
    if self.modelName is not None:
9355
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
9356
      oprot.writeString(self.modelName)
9357
      oprot.writeFieldEnd()
9358
    if self.color is not None:
9359
      oprot.writeFieldBegin('color', TType.STRING, 4)
9360
      oprot.writeString(self.color)
9361
      oprot.writeFieldEnd()
9362
    oprot.writeFieldStop()
9363
    oprot.writeStructEnd()
9364
 
9365
  def validate(self):
9366
    return
9367
 
9368
 
9369
  def __repr__(self):
9370
    L = ['%s=%r' % (key, value)
9371
      for key, value in self.__dict__.iteritems()]
9372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9373
 
9374
  def __eq__(self, other):
9375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9376
 
9377
  def __ne__(self, other):
9378
    return not (self == other)
9379
 
9380
class checkSimilarItem_result:
9381
  """
9382
  Attributes:
9383
   - success
9384
  """
9385
 
9386
  thrift_spec = (
9387
    (0, TType.I64, 'success', None, None, ), # 0
9388
  )
9389
 
9390
  def __init__(self, success=None,):
9391
    self.success = success
9392
 
9393
  def read(self, iprot):
9394
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9395
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9396
      return
9397
    iprot.readStructBegin()
9398
    while True:
9399
      (fname, ftype, fid) = iprot.readFieldBegin()
9400
      if ftype == TType.STOP:
9401
        break
9402
      if fid == 0:
9403
        if ftype == TType.I64:
9404
          self.success = iprot.readI64();
9405
        else:
9406
          iprot.skip(ftype)
9407
      else:
9408
        iprot.skip(ftype)
9409
      iprot.readFieldEnd()
9410
    iprot.readStructEnd()
9411
 
9412
  def write(self, oprot):
9413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9415
      return
9416
    oprot.writeStructBegin('checkSimilarItem_result')
9417
    if self.success is not None:
9418
      oprot.writeFieldBegin('success', TType.I64, 0)
9419
      oprot.writeI64(self.success)
9420
      oprot.writeFieldEnd()
9421
    oprot.writeFieldStop()
9422
    oprot.writeStructEnd()
9423
 
9424
  def validate(self):
9425
    return
9426
 
9427
 
9428
  def __repr__(self):
9429
    L = ['%s=%r' % (key, value)
9430
      for key, value in self.__dict__.iteritems()]
9431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9432
 
9433
  def __eq__(self, other):
9434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9435
 
9436
  def __ne__(self, other):
9437
    return not (self == other)
9438
 
9439
class validateRiskyStatus_args:
9440
  """
9441
  Attributes:
9442
   - itemId
9443
  """
9444
 
9445
  thrift_spec = (
9446
    None, # 0
9447
    (1, TType.I64, 'itemId', None, None, ), # 1
9448
  )
9449
 
9450
  def __init__(self, itemId=None,):
9451
    self.itemId = itemId
9452
 
9453
  def read(self, iprot):
9454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9456
      return
9457
    iprot.readStructBegin()
9458
    while True:
9459
      (fname, ftype, fid) = iprot.readFieldBegin()
9460
      if ftype == TType.STOP:
9461
        break
9462
      if fid == 1:
9463
        if ftype == TType.I64:
9464
          self.itemId = iprot.readI64();
9465
        else:
9466
          iprot.skip(ftype)
9467
      else:
9468
        iprot.skip(ftype)
9469
      iprot.readFieldEnd()
9470
    iprot.readStructEnd()
9471
 
9472
  def write(self, oprot):
9473
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9474
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9475
      return
9476
    oprot.writeStructBegin('validateRiskyStatus_args')
9477
    if self.itemId is not None:
9478
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9479
      oprot.writeI64(self.itemId)
9480
      oprot.writeFieldEnd()
9481
    oprot.writeFieldStop()
9482
    oprot.writeStructEnd()
9483
 
9484
  def validate(self):
9485
    return
9486
 
9487
 
9488
  def __repr__(self):
9489
    L = ['%s=%r' % (key, value)
9490
      for key, value in self.__dict__.iteritems()]
9491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9492
 
9493
  def __eq__(self, other):
9494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9495
 
9496
  def __ne__(self, other):
9497
    return not (self == other)
9498
 
9499
class validateRiskyStatus_result:
9500
 
9501
  thrift_spec = (
9502
  )
9503
 
9504
  def read(self, iprot):
9505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9507
      return
9508
    iprot.readStructBegin()
9509
    while True:
9510
      (fname, ftype, fid) = iprot.readFieldBegin()
9511
      if ftype == TType.STOP:
9512
        break
9513
      else:
9514
        iprot.skip(ftype)
9515
      iprot.readFieldEnd()
9516
    iprot.readStructEnd()
9517
 
9518
  def write(self, oprot):
9519
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9520
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9521
      return
9522
    oprot.writeStructBegin('validateRiskyStatus_result')
9523
    oprot.writeFieldStop()
9524
    oprot.writeStructEnd()
9525
 
9526
  def validate(self):
9527
    return
9528
 
9529
 
9530
  def __repr__(self):
9531
    L = ['%s=%r' % (key, value)
9532
      for key, value in self.__dict__.iteritems()]
9533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9534
 
9535
  def __eq__(self, other):
9536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9537
 
9538
  def __ne__(self, other):
9539
    return not (self == other)
9540
 
9541
class changeItemRiskyFlag_args:
9542
  """
9543
  Attributes:
9544
   - itemId
9545
   - risky
9546
  """
9547
 
9548
  thrift_spec = (
9549
    None, # 0
9550
    (1, TType.I64, 'itemId', None, None, ), # 1
9551
    (2, TType.BOOL, 'risky', None, None, ), # 2
9552
  )
9553
 
9554
  def __init__(self, itemId=None, risky=None,):
9555
    self.itemId = itemId
9556
    self.risky = risky
9557
 
9558
  def read(self, iprot):
9559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9561
      return
9562
    iprot.readStructBegin()
9563
    while True:
9564
      (fname, ftype, fid) = iprot.readFieldBegin()
9565
      if ftype == TType.STOP:
9566
        break
9567
      if fid == 1:
9568
        if ftype == TType.I64:
9569
          self.itemId = iprot.readI64();
9570
        else:
9571
          iprot.skip(ftype)
9572
      elif fid == 2:
9573
        if ftype == TType.BOOL:
9574
          self.risky = iprot.readBool();
9575
        else:
9576
          iprot.skip(ftype)
9577
      else:
9578
        iprot.skip(ftype)
9579
      iprot.readFieldEnd()
9580
    iprot.readStructEnd()
9581
 
9582
  def write(self, oprot):
9583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9585
      return
9586
    oprot.writeStructBegin('changeItemRiskyFlag_args')
9587
    if self.itemId is not None:
9588
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9589
      oprot.writeI64(self.itemId)
9590
      oprot.writeFieldEnd()
9591
    if self.risky is not None:
9592
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
9593
      oprot.writeBool(self.risky)
9594
      oprot.writeFieldEnd()
9595
    oprot.writeFieldStop()
9596
    oprot.writeStructEnd()
9597
 
9598
  def validate(self):
9599
    return
9600
 
9601
 
9602
  def __repr__(self):
9603
    L = ['%s=%r' % (key, value)
9604
      for key, value in self.__dict__.iteritems()]
9605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9606
 
9607
  def __eq__(self, other):
9608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9609
 
9610
  def __ne__(self, other):
9611
    return not (self == other)
9612
 
9613
class changeItemRiskyFlag_result:
9614
 
9615
  thrift_spec = (
9616
  )
9617
 
9618
  def read(self, iprot):
9619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9621
      return
9622
    iprot.readStructBegin()
9623
    while True:
9624
      (fname, ftype, fid) = iprot.readFieldBegin()
9625
      if ftype == TType.STOP:
9626
        break
9627
      else:
9628
        iprot.skip(ftype)
9629
      iprot.readFieldEnd()
9630
    iprot.readStructEnd()
9631
 
9632
  def write(self, oprot):
9633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9635
      return
9636
    oprot.writeStructBegin('changeItemRiskyFlag_result')
9637
    oprot.writeFieldStop()
9638
    oprot.writeStructEnd()
9639
 
9640
  def validate(self):
9641
    return
9642
 
9643
 
9644
  def __repr__(self):
9645
    L = ['%s=%r' % (key, value)
9646
      for key, value in self.__dict__.iteritems()]
9647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9648
 
9649
  def __eq__(self, other):
9650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9651
 
9652
  def __ne__(self, other):
9653
    return not (self == other)
9654
 
9655
class getItemsByRiskyFlag_args:
9656
 
9657
  thrift_spec = (
9658
  )
9659
 
9660
  def read(self, iprot):
9661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9663
      return
9664
    iprot.readStructBegin()
9665
    while True:
9666
      (fname, ftype, fid) = iprot.readFieldBegin()
9667
      if ftype == TType.STOP:
9668
        break
9669
      else:
9670
        iprot.skip(ftype)
9671
      iprot.readFieldEnd()
9672
    iprot.readStructEnd()
9673
 
9674
  def write(self, oprot):
9675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9677
      return
9678
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
9679
    oprot.writeFieldStop()
9680
    oprot.writeStructEnd()
9681
 
9682
  def validate(self):
9683
    return
9684
 
9685
 
9686
  def __repr__(self):
9687
    L = ['%s=%r' % (key, value)
9688
      for key, value in self.__dict__.iteritems()]
9689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9690
 
9691
  def __eq__(self, other):
9692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9693
 
9694
  def __ne__(self, other):
9695
    return not (self == other)
9696
 
9697
class getItemsByRiskyFlag_result:
9698
  """
9699
  Attributes:
9700
   - success
9701
  """
9702
 
9703
  thrift_spec = (
9704
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9705
  )
9706
 
9707
  def __init__(self, success=None,):
9708
    self.success = success
9709
 
9710
  def read(self, iprot):
9711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9713
      return
9714
    iprot.readStructBegin()
9715
    while True:
9716
      (fname, ftype, fid) = iprot.readFieldBegin()
9717
      if ftype == TType.STOP:
9718
        break
9719
      if fid == 0:
9720
        if ftype == TType.LIST:
9721
          self.success = []
6512 kshitij.so 9722
          (_etype152, _size149) = iprot.readListBegin()
9723
          for _i153 in xrange(_size149):
9724
            _elem154 = Item()
9725
            _elem154.read(iprot)
9726
            self.success.append(_elem154)
5944 mandeep.dh 9727
          iprot.readListEnd()
9728
        else:
9729
          iprot.skip(ftype)
9730
      else:
9731
        iprot.skip(ftype)
9732
      iprot.readFieldEnd()
9733
    iprot.readStructEnd()
9734
 
9735
  def write(self, oprot):
9736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9738
      return
9739
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
9740
    if self.success is not None:
9741
      oprot.writeFieldBegin('success', TType.LIST, 0)
9742
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 9743
      for iter155 in self.success:
9744
        iter155.write(oprot)
5944 mandeep.dh 9745
      oprot.writeListEnd()
9746
      oprot.writeFieldEnd()
9747
    oprot.writeFieldStop()
9748
    oprot.writeStructEnd()
9749
 
9750
  def validate(self):
9751
    return
9752
 
9753
 
9754
  def __repr__(self):
9755
    L = ['%s=%r' % (key, value)
9756
      for key, value in self.__dict__.iteritems()]
9757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9758
 
9759
  def __eq__(self, other):
9760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9761
 
9762
  def __ne__(self, other):
9763
    return not (self == other)
9764
 
9765
class getItemsForMasterSheet_args:
9766
  """
9767
  Attributes:
9768
   - category
9769
   - brand
9770
  """
9771
 
9772
  thrift_spec = (
9773
    None, # 0
9774
    (1, TType.STRING, 'category', None, None, ), # 1
9775
    (2, TType.STRING, 'brand', None, None, ), # 2
9776
  )
9777
 
9778
  def __init__(self, category=None, brand=None,):
9779
    self.category = category
9780
    self.brand = brand
9781
 
9782
  def read(self, iprot):
9783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9785
      return
9786
    iprot.readStructBegin()
9787
    while True:
9788
      (fname, ftype, fid) = iprot.readFieldBegin()
9789
      if ftype == TType.STOP:
9790
        break
9791
      if fid == 1:
9792
        if ftype == TType.STRING:
9793
          self.category = iprot.readString();
9794
        else:
9795
          iprot.skip(ftype)
9796
      elif fid == 2:
9797
        if ftype == TType.STRING:
9798
          self.brand = iprot.readString();
9799
        else:
9800
          iprot.skip(ftype)
9801
      else:
9802
        iprot.skip(ftype)
9803
      iprot.readFieldEnd()
9804
    iprot.readStructEnd()
9805
 
9806
  def write(self, oprot):
9807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9809
      return
9810
    oprot.writeStructBegin('getItemsForMasterSheet_args')
9811
    if self.category is not None:
9812
      oprot.writeFieldBegin('category', TType.STRING, 1)
9813
      oprot.writeString(self.category)
9814
      oprot.writeFieldEnd()
9815
    if self.brand is not None:
9816
      oprot.writeFieldBegin('brand', TType.STRING, 2)
9817
      oprot.writeString(self.brand)
9818
      oprot.writeFieldEnd()
9819
    oprot.writeFieldStop()
9820
    oprot.writeStructEnd()
9821
 
9822
  def validate(self):
9823
    return
9824
 
9825
 
9826
  def __repr__(self):
9827
    L = ['%s=%r' % (key, value)
9828
      for key, value in self.__dict__.iteritems()]
9829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9830
 
9831
  def __eq__(self, other):
9832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9833
 
9834
  def __ne__(self, other):
9835
    return not (self == other)
9836
 
9837
class getItemsForMasterSheet_result:
9838
  """
9839
  Attributes:
9840
   - success
9841
  """
9842
 
9843
  thrift_spec = (
9844
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9845
  )
9846
 
9847
  def __init__(self, success=None,):
9848
    self.success = success
9849
 
9850
  def read(self, iprot):
9851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9853
      return
9854
    iprot.readStructBegin()
9855
    while True:
9856
      (fname, ftype, fid) = iprot.readFieldBegin()
9857
      if ftype == TType.STOP:
9858
        break
9859
      if fid == 0:
9860
        if ftype == TType.LIST:
9861
          self.success = []
6512 kshitij.so 9862
          (_etype159, _size156) = iprot.readListBegin()
9863
          for _i160 in xrange(_size156):
9864
            _elem161 = Item()
9865
            _elem161.read(iprot)
9866
            self.success.append(_elem161)
5944 mandeep.dh 9867
          iprot.readListEnd()
9868
        else:
9869
          iprot.skip(ftype)
9870
      else:
9871
        iprot.skip(ftype)
9872
      iprot.readFieldEnd()
9873
    iprot.readStructEnd()
9874
 
9875
  def write(self, oprot):
9876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9878
      return
9879
    oprot.writeStructBegin('getItemsForMasterSheet_result')
9880
    if self.success is not None:
9881
      oprot.writeFieldBegin('success', TType.LIST, 0)
9882
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 9883
      for iter162 in self.success:
9884
        iter162.write(oprot)
5944 mandeep.dh 9885
      oprot.writeListEnd()
9886
      oprot.writeFieldEnd()
9887
    oprot.writeFieldStop()
9888
    oprot.writeStructEnd()
9889
 
9890
  def validate(self):
9891
    return
9892
 
9893
 
9894
  def __repr__(self):
9895
    L = ['%s=%r' % (key, value)
9896
      for key, value in self.__dict__.iteritems()]
9897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9898
 
9899
  def __eq__(self, other):
9900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9901
 
9902
  def __ne__(self, other):
9903
    return not (self == other)
9904
 
9905
class getSimilarItemsCatalogIds_args:
9906
  """
9907
  Attributes:
9908
   - beginIndex
9909
   - totalItems
9910
   - itemId
9911
  """
9912
 
9913
  thrift_spec = (
9914
    None, # 0
9915
    (1, TType.I64, 'beginIndex', None, None, ), # 1
9916
    (2, TType.I64, 'totalItems', None, None, ), # 2
9917
    (3, TType.I64, 'itemId', None, None, ), # 3
9918
  )
9919
 
9920
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
9921
    self.beginIndex = beginIndex
9922
    self.totalItems = totalItems
9923
    self.itemId = itemId
9924
 
9925
  def read(self, iprot):
9926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9928
      return
9929
    iprot.readStructBegin()
9930
    while True:
9931
      (fname, ftype, fid) = iprot.readFieldBegin()
9932
      if ftype == TType.STOP:
9933
        break
9934
      if fid == 1:
9935
        if ftype == TType.I64:
9936
          self.beginIndex = iprot.readI64();
9937
        else:
9938
          iprot.skip(ftype)
9939
      elif fid == 2:
9940
        if ftype == TType.I64:
9941
          self.totalItems = iprot.readI64();
9942
        else:
9943
          iprot.skip(ftype)
9944
      elif fid == 3:
9945
        if ftype == TType.I64:
9946
          self.itemId = iprot.readI64();
9947
        else:
9948
          iprot.skip(ftype)
9949
      else:
9950
        iprot.skip(ftype)
9951
      iprot.readFieldEnd()
9952
    iprot.readStructEnd()
9953
 
9954
  def write(self, oprot):
9955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9957
      return
9958
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
9959
    if self.beginIndex is not None:
9960
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
9961
      oprot.writeI64(self.beginIndex)
9962
      oprot.writeFieldEnd()
9963
    if self.totalItems is not None:
9964
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
9965
      oprot.writeI64(self.totalItems)
9966
      oprot.writeFieldEnd()
9967
    if self.itemId is not None:
9968
      oprot.writeFieldBegin('itemId', TType.I64, 3)
9969
      oprot.writeI64(self.itemId)
9970
      oprot.writeFieldEnd()
9971
    oprot.writeFieldStop()
9972
    oprot.writeStructEnd()
9973
 
9974
  def validate(self):
9975
    return
9976
 
9977
 
9978
  def __repr__(self):
9979
    L = ['%s=%r' % (key, value)
9980
      for key, value in self.__dict__.iteritems()]
9981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9982
 
9983
  def __eq__(self, other):
9984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9985
 
9986
  def __ne__(self, other):
9987
    return not (self == other)
9988
 
9989
class getSimilarItemsCatalogIds_result:
9990
  """
9991
  Attributes:
9992
   - success
9993
  """
9994
 
9995
  thrift_spec = (
9996
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9997
  )
9998
 
9999
  def __init__(self, success=None,):
10000
    self.success = success
10001
 
10002
  def read(self, iprot):
10003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10005
      return
10006
    iprot.readStructBegin()
10007
    while True:
10008
      (fname, ftype, fid) = iprot.readFieldBegin()
10009
      if ftype == TType.STOP:
10010
        break
10011
      if fid == 0:
10012
        if ftype == TType.LIST:
10013
          self.success = []
6512 kshitij.so 10014
          (_etype166, _size163) = iprot.readListBegin()
10015
          for _i167 in xrange(_size163):
10016
            _elem168 = iprot.readI64();
10017
            self.success.append(_elem168)
5944 mandeep.dh 10018
          iprot.readListEnd()
10019
        else:
10020
          iprot.skip(ftype)
10021
      else:
10022
        iprot.skip(ftype)
10023
      iprot.readFieldEnd()
10024
    iprot.readStructEnd()
10025
 
10026
  def write(self, oprot):
10027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10029
      return
10030
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
10031
    if self.success is not None:
10032
      oprot.writeFieldBegin('success', TType.LIST, 0)
10033
      oprot.writeListBegin(TType.I64, len(self.success))
6512 kshitij.so 10034
      for iter169 in self.success:
10035
        oprot.writeI64(iter169)
5944 mandeep.dh 10036
      oprot.writeListEnd()
10037
      oprot.writeFieldEnd()
10038
    oprot.writeFieldStop()
10039
    oprot.writeStructEnd()
10040
 
10041
  def validate(self):
10042
    return
10043
 
10044
 
10045
  def __repr__(self):
10046
    L = ['%s=%r' % (key, value)
10047
      for key, value in self.__dict__.iteritems()]
10048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10049
 
10050
  def __eq__(self, other):
10051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10052
 
10053
  def __ne__(self, other):
10054
    return not (self == other)
10055
 
10056
class addProductNotification_args:
10057
  """
10058
  Attributes:
10059
   - itemId
10060
   - email
10061
  """
10062
 
10063
  thrift_spec = None
10064
  def __init__(self, itemId=None, email=None,):
10065
    self.itemId = itemId
10066
    self.email = email
10067
 
10068
  def read(self, iprot):
10069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10071
      return
10072
    iprot.readStructBegin()
10073
    while True:
10074
      (fname, ftype, fid) = iprot.readFieldBegin()
10075
      if ftype == TType.STOP:
10076
        break
10077
      if fid == -1:
10078
        if ftype == TType.I64:
10079
          self.itemId = iprot.readI64();
10080
        else:
10081
          iprot.skip(ftype)
10082
      elif fid == -2:
10083
        if ftype == TType.STRING:
10084
          self.email = iprot.readString();
10085
        else:
10086
          iprot.skip(ftype)
10087
      else:
10088
        iprot.skip(ftype)
10089
      iprot.readFieldEnd()
10090
    iprot.readStructEnd()
10091
 
10092
  def write(self, oprot):
10093
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10094
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10095
      return
10096
    oprot.writeStructBegin('addProductNotification_args')
10097
    if self.email is not None:
10098
      oprot.writeFieldBegin('email', TType.STRING, -2)
10099
      oprot.writeString(self.email)
10100
      oprot.writeFieldEnd()
10101
    if self.itemId is not None:
10102
      oprot.writeFieldBegin('itemId', TType.I64, -1)
10103
      oprot.writeI64(self.itemId)
10104
      oprot.writeFieldEnd()
10105
    oprot.writeFieldStop()
10106
    oprot.writeStructEnd()
10107
 
10108
  def validate(self):
10109
    return
10110
 
10111
 
10112
  def __repr__(self):
10113
    L = ['%s=%r' % (key, value)
10114
      for key, value in self.__dict__.iteritems()]
10115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10116
 
10117
  def __eq__(self, other):
10118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10119
 
10120
  def __ne__(self, other):
10121
    return not (self == other)
10122
 
10123
class addProductNotification_result:
10124
  """
10125
  Attributes:
10126
   - success
10127
  """
10128
 
10129
  thrift_spec = (
10130
    (0, TType.BOOL, 'success', None, None, ), # 0
10131
  )
10132
 
10133
  def __init__(self, success=None,):
10134
    self.success = success
10135
 
10136
  def read(self, iprot):
10137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10139
      return
10140
    iprot.readStructBegin()
10141
    while True:
10142
      (fname, ftype, fid) = iprot.readFieldBegin()
10143
      if ftype == TType.STOP:
10144
        break
10145
      if fid == 0:
10146
        if ftype == TType.BOOL:
10147
          self.success = iprot.readBool();
10148
        else:
10149
          iprot.skip(ftype)
10150
      else:
10151
        iprot.skip(ftype)
10152
      iprot.readFieldEnd()
10153
    iprot.readStructEnd()
10154
 
10155
  def write(self, oprot):
10156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10158
      return
10159
    oprot.writeStructBegin('addProductNotification_result')
10160
    if self.success is not None:
10161
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10162
      oprot.writeBool(self.success)
10163
      oprot.writeFieldEnd()
10164
    oprot.writeFieldStop()
10165
    oprot.writeStructEnd()
10166
 
10167
  def validate(self):
10168
    return
10169
 
10170
 
10171
  def __repr__(self):
10172
    L = ['%s=%r' % (key, value)
10173
      for key, value in self.__dict__.iteritems()]
10174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10175
 
10176
  def __eq__(self, other):
10177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10178
 
10179
  def __ne__(self, other):
10180
    return not (self == other)
10181
 
10182
class sendProductNotifications_args:
10183
 
10184
  thrift_spec = (
10185
  )
10186
 
10187
  def read(self, iprot):
10188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10190
      return
10191
    iprot.readStructBegin()
10192
    while True:
10193
      (fname, ftype, fid) = iprot.readFieldBegin()
10194
      if ftype == TType.STOP:
10195
        break
10196
      else:
10197
        iprot.skip(ftype)
10198
      iprot.readFieldEnd()
10199
    iprot.readStructEnd()
10200
 
10201
  def write(self, oprot):
10202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10204
      return
10205
    oprot.writeStructBegin('sendProductNotifications_args')
10206
    oprot.writeFieldStop()
10207
    oprot.writeStructEnd()
10208
 
10209
  def validate(self):
10210
    return
10211
 
10212
 
10213
  def __repr__(self):
10214
    L = ['%s=%r' % (key, value)
10215
      for key, value in self.__dict__.iteritems()]
10216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10217
 
10218
  def __eq__(self, other):
10219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10220
 
10221
  def __ne__(self, other):
10222
    return not (self == other)
10223
 
10224
class sendProductNotifications_result:
10225
  """
10226
  Attributes:
10227
   - success
10228
  """
10229
 
10230
  thrift_spec = (
10231
    (0, TType.BOOL, 'success', None, None, ), # 0
10232
  )
10233
 
10234
  def __init__(self, success=None,):
10235
    self.success = success
10236
 
10237
  def read(self, iprot):
10238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10240
      return
10241
    iprot.readStructBegin()
10242
    while True:
10243
      (fname, ftype, fid) = iprot.readFieldBegin()
10244
      if ftype == TType.STOP:
10245
        break
10246
      if fid == 0:
10247
        if ftype == TType.BOOL:
10248
          self.success = iprot.readBool();
10249
        else:
10250
          iprot.skip(ftype)
10251
      else:
10252
        iprot.skip(ftype)
10253
      iprot.readFieldEnd()
10254
    iprot.readStructEnd()
10255
 
10256
  def write(self, oprot):
10257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10259
      return
10260
    oprot.writeStructBegin('sendProductNotifications_result')
10261
    if self.success is not None:
10262
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10263
      oprot.writeBool(self.success)
10264
      oprot.writeFieldEnd()
10265
    oprot.writeFieldStop()
10266
    oprot.writeStructEnd()
10267
 
10268
  def validate(self):
10269
    return
10270
 
10271
 
10272
  def __repr__(self):
10273
    L = ['%s=%r' % (key, value)
10274
      for key, value in self.__dict__.iteritems()]
10275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10276
 
10277
  def __eq__(self, other):
10278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10279
 
10280
  def __ne__(self, other):
10281
    return not (self == other)
10282
 
10283
class getAllBrandsByCategory_args:
10284
  """
10285
  Attributes:
10286
   - categoryId
10287
  """
10288
 
10289
  thrift_spec = (
10290
    None, # 0
10291
    (1, TType.I64, 'categoryId', None, None, ), # 1
10292
  )
10293
 
10294
  def __init__(self, categoryId=None,):
10295
    self.categoryId = categoryId
10296
 
10297
  def read(self, iprot):
10298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10300
      return
10301
    iprot.readStructBegin()
10302
    while True:
10303
      (fname, ftype, fid) = iprot.readFieldBegin()
10304
      if ftype == TType.STOP:
10305
        break
10306
      if fid == 1:
10307
        if ftype == TType.I64:
10308
          self.categoryId = iprot.readI64();
10309
        else:
10310
          iprot.skip(ftype)
10311
      else:
10312
        iprot.skip(ftype)
10313
      iprot.readFieldEnd()
10314
    iprot.readStructEnd()
10315
 
10316
  def write(self, oprot):
10317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10319
      return
10320
    oprot.writeStructBegin('getAllBrandsByCategory_args')
10321
    if self.categoryId is not None:
10322
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
10323
      oprot.writeI64(self.categoryId)
10324
      oprot.writeFieldEnd()
10325
    oprot.writeFieldStop()
10326
    oprot.writeStructEnd()
10327
 
10328
  def validate(self):
10329
    return
10330
 
10331
 
10332
  def __repr__(self):
10333
    L = ['%s=%r' % (key, value)
10334
      for key, value in self.__dict__.iteritems()]
10335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10336
 
10337
  def __eq__(self, other):
10338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10339
 
10340
  def __ne__(self, other):
10341
    return not (self == other)
10342
 
10343
class getAllBrandsByCategory_result:
10344
  """
10345
  Attributes:
10346
   - success
10347
  """
10348
 
10349
  thrift_spec = (
10350
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10351
  )
10352
 
10353
  def __init__(self, success=None,):
10354
    self.success = success
10355
 
10356
  def read(self, iprot):
10357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10359
      return
10360
    iprot.readStructBegin()
10361
    while True:
10362
      (fname, ftype, fid) = iprot.readFieldBegin()
10363
      if ftype == TType.STOP:
10364
        break
10365
      if fid == 0:
10366
        if ftype == TType.LIST:
10367
          self.success = []
6512 kshitij.so 10368
          (_etype173, _size170) = iprot.readListBegin()
10369
          for _i174 in xrange(_size170):
10370
            _elem175 = iprot.readString();
10371
            self.success.append(_elem175)
5944 mandeep.dh 10372
          iprot.readListEnd()
10373
        else:
10374
          iprot.skip(ftype)
10375
      else:
10376
        iprot.skip(ftype)
10377
      iprot.readFieldEnd()
10378
    iprot.readStructEnd()
10379
 
10380
  def write(self, oprot):
10381
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10382
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10383
      return
10384
    oprot.writeStructBegin('getAllBrandsByCategory_result')
10385
    if self.success is not None:
10386
      oprot.writeFieldBegin('success', TType.LIST, 0)
10387
      oprot.writeListBegin(TType.STRING, len(self.success))
6512 kshitij.so 10388
      for iter176 in self.success:
10389
        oprot.writeString(iter176)
5944 mandeep.dh 10390
      oprot.writeListEnd()
10391
      oprot.writeFieldEnd()
10392
    oprot.writeFieldStop()
10393
    oprot.writeStructEnd()
10394
 
10395
  def validate(self):
10396
    return
10397
 
10398
 
10399
  def __repr__(self):
10400
    L = ['%s=%r' % (key, value)
10401
      for key, value in self.__dict__.iteritems()]
10402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10403
 
10404
  def __eq__(self, other):
10405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10406
 
10407
  def __ne__(self, other):
10408
    return not (self == other)
10409
 
10410
class getAllBrands_args:
10411
 
10412
  thrift_spec = (
10413
  )
10414
 
10415
  def read(self, iprot):
10416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10418
      return
10419
    iprot.readStructBegin()
10420
    while True:
10421
      (fname, ftype, fid) = iprot.readFieldBegin()
10422
      if ftype == TType.STOP:
10423
        break
10424
      else:
10425
        iprot.skip(ftype)
10426
      iprot.readFieldEnd()
10427
    iprot.readStructEnd()
10428
 
10429
  def write(self, oprot):
10430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10432
      return
10433
    oprot.writeStructBegin('getAllBrands_args')
10434
    oprot.writeFieldStop()
10435
    oprot.writeStructEnd()
10436
 
10437
  def validate(self):
10438
    return
10439
 
10440
 
10441
  def __repr__(self):
10442
    L = ['%s=%r' % (key, value)
10443
      for key, value in self.__dict__.iteritems()]
10444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10445
 
10446
  def __eq__(self, other):
10447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10448
 
10449
  def __ne__(self, other):
10450
    return not (self == other)
10451
 
10452
class getAllBrands_result:
10453
  """
10454
  Attributes:
10455
   - success
10456
  """
10457
 
10458
  thrift_spec = (
10459
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10460
  )
10461
 
10462
  def __init__(self, success=None,):
10463
    self.success = success
10464
 
10465
  def read(self, iprot):
10466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10468
      return
10469
    iprot.readStructBegin()
10470
    while True:
10471
      (fname, ftype, fid) = iprot.readFieldBegin()
10472
      if ftype == TType.STOP:
10473
        break
10474
      if fid == 0:
10475
        if ftype == TType.LIST:
10476
          self.success = []
6512 kshitij.so 10477
          (_etype180, _size177) = iprot.readListBegin()
10478
          for _i181 in xrange(_size177):
10479
            _elem182 = iprot.readString();
10480
            self.success.append(_elem182)
5944 mandeep.dh 10481
          iprot.readListEnd()
10482
        else:
10483
          iprot.skip(ftype)
10484
      else:
10485
        iprot.skip(ftype)
10486
      iprot.readFieldEnd()
10487
    iprot.readStructEnd()
10488
 
10489
  def write(self, oprot):
10490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10492
      return
10493
    oprot.writeStructBegin('getAllBrands_result')
10494
    if self.success is not None:
10495
      oprot.writeFieldBegin('success', TType.LIST, 0)
10496
      oprot.writeListBegin(TType.STRING, len(self.success))
6512 kshitij.so 10497
      for iter183 in self.success:
10498
        oprot.writeString(iter183)
5944 mandeep.dh 10499
      oprot.writeListEnd()
10500
      oprot.writeFieldEnd()
10501
    oprot.writeFieldStop()
10502
    oprot.writeStructEnd()
10503
 
10504
  def validate(self):
10505
    return
10506
 
10507
 
10508
  def __repr__(self):
10509
    L = ['%s=%r' % (key, value)
10510
      for key, value in self.__dict__.iteritems()]
10511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10512
 
10513
  def __eq__(self, other):
10514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10515
 
10516
  def __ne__(self, other):
10517
    return not (self == other)
10518
 
10519
class getAllSources_args:
10520
 
10521
  thrift_spec = (
10522
  )
10523
 
10524
  def read(self, iprot):
10525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10527
      return
10528
    iprot.readStructBegin()
10529
    while True:
10530
      (fname, ftype, fid) = iprot.readFieldBegin()
10531
      if ftype == TType.STOP:
10532
        break
10533
      else:
10534
        iprot.skip(ftype)
10535
      iprot.readFieldEnd()
10536
    iprot.readStructEnd()
10537
 
10538
  def write(self, oprot):
10539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10541
      return
10542
    oprot.writeStructBegin('getAllSources_args')
10543
    oprot.writeFieldStop()
10544
    oprot.writeStructEnd()
10545
 
10546
  def validate(self):
10547
    return
10548
 
10549
 
10550
  def __repr__(self):
10551
    L = ['%s=%r' % (key, value)
10552
      for key, value in self.__dict__.iteritems()]
10553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10554
 
10555
  def __eq__(self, other):
10556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10557
 
10558
  def __ne__(self, other):
10559
    return not (self == other)
10560
 
10561
class getAllSources_result:
10562
  """
10563
  Attributes:
10564
   - success
10565
  """
10566
 
10567
  thrift_spec = (
10568
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
10569
  )
10570
 
10571
  def __init__(self, success=None,):
10572
    self.success = success
10573
 
10574
  def read(self, iprot):
10575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10577
      return
10578
    iprot.readStructBegin()
10579
    while True:
10580
      (fname, ftype, fid) = iprot.readFieldBegin()
10581
      if ftype == TType.STOP:
10582
        break
10583
      if fid == 0:
10584
        if ftype == TType.LIST:
10585
          self.success = []
6512 kshitij.so 10586
          (_etype187, _size184) = iprot.readListBegin()
10587
          for _i188 in xrange(_size184):
10588
            _elem189 = Source()
10589
            _elem189.read(iprot)
10590
            self.success.append(_elem189)
5944 mandeep.dh 10591
          iprot.readListEnd()
10592
        else:
10593
          iprot.skip(ftype)
10594
      else:
10595
        iprot.skip(ftype)
10596
      iprot.readFieldEnd()
10597
    iprot.readStructEnd()
10598
 
10599
  def write(self, oprot):
10600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10602
      return
10603
    oprot.writeStructBegin('getAllSources_result')
10604
    if self.success is not None:
10605
      oprot.writeFieldBegin('success', TType.LIST, 0)
10606
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 10607
      for iter190 in self.success:
10608
        iter190.write(oprot)
5944 mandeep.dh 10609
      oprot.writeListEnd()
10610
      oprot.writeFieldEnd()
10611
    oprot.writeFieldStop()
10612
    oprot.writeStructEnd()
10613
 
10614
  def validate(self):
10615
    return
10616
 
10617
 
10618
  def __repr__(self):
10619
    L = ['%s=%r' % (key, value)
10620
      for key, value in self.__dict__.iteritems()]
10621
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10622
 
10623
  def __eq__(self, other):
10624
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10625
 
10626
  def __ne__(self, other):
10627
    return not (self == other)
10628
 
10629
class getItemPricingBySource_args:
10630
  """
10631
  Attributes:
10632
   - itemId
10633
   - sourceId
10634
  """
10635
 
10636
  thrift_spec = (
10637
    None, # 0
10638
    (1, TType.I64, 'itemId', None, None, ), # 1
10639
    (2, TType.I64, 'sourceId', None, None, ), # 2
10640
  )
10641
 
10642
  def __init__(self, itemId=None, sourceId=None,):
10643
    self.itemId = itemId
10644
    self.sourceId = sourceId
10645
 
10646
  def read(self, iprot):
10647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10649
      return
10650
    iprot.readStructBegin()
10651
    while True:
10652
      (fname, ftype, fid) = iprot.readFieldBegin()
10653
      if ftype == TType.STOP:
10654
        break
10655
      if fid == 1:
10656
        if ftype == TType.I64:
10657
          self.itemId = iprot.readI64();
10658
        else:
10659
          iprot.skip(ftype)
10660
      elif fid == 2:
10661
        if ftype == TType.I64:
10662
          self.sourceId = iprot.readI64();
10663
        else:
10664
          iprot.skip(ftype)
10665
      else:
10666
        iprot.skip(ftype)
10667
      iprot.readFieldEnd()
10668
    iprot.readStructEnd()
10669
 
10670
  def write(self, oprot):
10671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10673
      return
10674
    oprot.writeStructBegin('getItemPricingBySource_args')
10675
    if self.itemId is not None:
10676
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10677
      oprot.writeI64(self.itemId)
10678
      oprot.writeFieldEnd()
10679
    if self.sourceId is not None:
10680
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
10681
      oprot.writeI64(self.sourceId)
10682
      oprot.writeFieldEnd()
10683
    oprot.writeFieldStop()
10684
    oprot.writeStructEnd()
10685
 
10686
  def validate(self):
10687
    return
10688
 
10689
 
10690
  def __repr__(self):
10691
    L = ['%s=%r' % (key, value)
10692
      for key, value in self.__dict__.iteritems()]
10693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10694
 
10695
  def __eq__(self, other):
10696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10697
 
10698
  def __ne__(self, other):
10699
    return not (self == other)
10700
 
10701
class getItemPricingBySource_result:
10702
  """
10703
  Attributes:
10704
   - success
10705
   - cex
10706
  """
10707
 
10708
  thrift_spec = (
10709
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
10710
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10711
  )
10712
 
10713
  def __init__(self, success=None, cex=None,):
10714
    self.success = success
10715
    self.cex = cex
10716
 
10717
  def read(self, iprot):
10718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10720
      return
10721
    iprot.readStructBegin()
10722
    while True:
10723
      (fname, ftype, fid) = iprot.readFieldBegin()
10724
      if ftype == TType.STOP:
10725
        break
10726
      if fid == 0:
10727
        if ftype == TType.STRUCT:
10728
          self.success = SourceItemPricing()
10729
          self.success.read(iprot)
10730
        else:
10731
          iprot.skip(ftype)
10732
      elif fid == 1:
10733
        if ftype == TType.STRUCT:
10734
          self.cex = CatalogServiceException()
10735
          self.cex.read(iprot)
10736
        else:
10737
          iprot.skip(ftype)
10738
      else:
10739
        iprot.skip(ftype)
10740
      iprot.readFieldEnd()
10741
    iprot.readStructEnd()
10742
 
10743
  def write(self, oprot):
10744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10746
      return
10747
    oprot.writeStructBegin('getItemPricingBySource_result')
10748
    if self.success is not None:
10749
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10750
      self.success.write(oprot)
10751
      oprot.writeFieldEnd()
10752
    if self.cex is not None:
10753
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10754
      self.cex.write(oprot)
10755
      oprot.writeFieldEnd()
10756
    oprot.writeFieldStop()
10757
    oprot.writeStructEnd()
10758
 
10759
  def validate(self):
10760
    return
10761
 
10762
 
10763
  def __repr__(self):
10764
    L = ['%s=%r' % (key, value)
10765
      for key, value in self.__dict__.iteritems()]
10766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10767
 
10768
  def __eq__(self, other):
10769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10770
 
10771
  def __ne__(self, other):
10772
    return not (self == other)
10773
 
10774
class addSourceItemPricing_args:
10775
  """
10776
  Attributes:
10777
   - sourceItemPricing
10778
  """
10779
 
10780
  thrift_spec = (
10781
    None, # 0
10782
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
10783
  )
10784
 
10785
  def __init__(self, sourceItemPricing=None,):
10786
    self.sourceItemPricing = sourceItemPricing
10787
 
10788
  def read(self, iprot):
10789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10791
      return
10792
    iprot.readStructBegin()
10793
    while True:
10794
      (fname, ftype, fid) = iprot.readFieldBegin()
10795
      if ftype == TType.STOP:
10796
        break
10797
      if fid == 1:
10798
        if ftype == TType.STRUCT:
10799
          self.sourceItemPricing = SourceItemPricing()
10800
          self.sourceItemPricing.read(iprot)
10801
        else:
10802
          iprot.skip(ftype)
10803
      else:
10804
        iprot.skip(ftype)
10805
      iprot.readFieldEnd()
10806
    iprot.readStructEnd()
10807
 
10808
  def write(self, oprot):
10809
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10810
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10811
      return
10812
    oprot.writeStructBegin('addSourceItemPricing_args')
10813
    if self.sourceItemPricing is not None:
10814
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
10815
      self.sourceItemPricing.write(oprot)
10816
      oprot.writeFieldEnd()
10817
    oprot.writeFieldStop()
10818
    oprot.writeStructEnd()
10819
 
10820
  def validate(self):
10821
    return
10822
 
10823
 
10824
  def __repr__(self):
10825
    L = ['%s=%r' % (key, value)
10826
      for key, value in self.__dict__.iteritems()]
10827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10828
 
10829
  def __eq__(self, other):
10830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10831
 
10832
  def __ne__(self, other):
10833
    return not (self == other)
10834
 
10835
class addSourceItemPricing_result:
10836
  """
10837
  Attributes:
10838
   - cex
10839
  """
10840
 
10841
  thrift_spec = (
10842
    None, # 0
10843
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10844
  )
10845
 
10846
  def __init__(self, cex=None,):
10847
    self.cex = cex
10848
 
10849
  def read(self, iprot):
10850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10852
      return
10853
    iprot.readStructBegin()
10854
    while True:
10855
      (fname, ftype, fid) = iprot.readFieldBegin()
10856
      if ftype == TType.STOP:
10857
        break
10858
      if fid == 1:
10859
        if ftype == TType.STRUCT:
10860
          self.cex = CatalogServiceException()
10861
          self.cex.read(iprot)
10862
        else:
10863
          iprot.skip(ftype)
10864
      else:
10865
        iprot.skip(ftype)
10866
      iprot.readFieldEnd()
10867
    iprot.readStructEnd()
10868
 
10869
  def write(self, oprot):
10870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10872
      return
10873
    oprot.writeStructBegin('addSourceItemPricing_result')
10874
    if self.cex is not None:
10875
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10876
      self.cex.write(oprot)
10877
      oprot.writeFieldEnd()
10878
    oprot.writeFieldStop()
10879
    oprot.writeStructEnd()
10880
 
10881
  def validate(self):
10882
    return
10883
 
10884
 
10885
  def __repr__(self):
10886
    L = ['%s=%r' % (key, value)
10887
      for key, value in self.__dict__.iteritems()]
10888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10889
 
10890
  def __eq__(self, other):
10891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10892
 
10893
  def __ne__(self, other):
10894
    return not (self == other)
10895
 
10896
class getAllSourcePricing_args:
10897
  """
10898
  Attributes:
10899
   - itemId
10900
  """
10901
 
10902
  thrift_spec = (
10903
    None, # 0
10904
    (1, TType.I64, 'itemId', None, None, ), # 1
10905
  )
10906
 
10907
  def __init__(self, itemId=None,):
10908
    self.itemId = itemId
10909
 
10910
  def read(self, iprot):
10911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10913
      return
10914
    iprot.readStructBegin()
10915
    while True:
10916
      (fname, ftype, fid) = iprot.readFieldBegin()
10917
      if ftype == TType.STOP:
10918
        break
10919
      if fid == 1:
10920
        if ftype == TType.I64:
10921
          self.itemId = iprot.readI64();
10922
        else:
10923
          iprot.skip(ftype)
10924
      else:
10925
        iprot.skip(ftype)
10926
      iprot.readFieldEnd()
10927
    iprot.readStructEnd()
10928
 
10929
  def write(self, oprot):
10930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10932
      return
10933
    oprot.writeStructBegin('getAllSourcePricing_args')
10934
    if self.itemId is not None:
10935
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10936
      oprot.writeI64(self.itemId)
10937
      oprot.writeFieldEnd()
10938
    oprot.writeFieldStop()
10939
    oprot.writeStructEnd()
10940
 
10941
  def validate(self):
10942
    return
10943
 
10944
 
10945
  def __repr__(self):
10946
    L = ['%s=%r' % (key, value)
10947
      for key, value in self.__dict__.iteritems()]
10948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10949
 
10950
  def __eq__(self, other):
10951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10952
 
10953
  def __ne__(self, other):
10954
    return not (self == other)
10955
 
10956
class getAllSourcePricing_result:
10957
  """
10958
  Attributes:
10959
   - success
10960
   - cex
10961
  """
10962
 
10963
  thrift_spec = (
10964
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
10965
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10966
  )
10967
 
10968
  def __init__(self, success=None, cex=None,):
10969
    self.success = success
10970
    self.cex = cex
10971
 
10972
  def read(self, iprot):
10973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10975
      return
10976
    iprot.readStructBegin()
10977
    while True:
10978
      (fname, ftype, fid) = iprot.readFieldBegin()
10979
      if ftype == TType.STOP:
10980
        break
10981
      if fid == 0:
10982
        if ftype == TType.LIST:
10983
          self.success = []
6512 kshitij.so 10984
          (_etype194, _size191) = iprot.readListBegin()
10985
          for _i195 in xrange(_size191):
10986
            _elem196 = SourceItemPricing()
10987
            _elem196.read(iprot)
10988
            self.success.append(_elem196)
5944 mandeep.dh 10989
          iprot.readListEnd()
10990
        else:
10991
          iprot.skip(ftype)
10992
      elif fid == 1:
10993
        if ftype == TType.STRUCT:
10994
          self.cex = CatalogServiceException()
10995
          self.cex.read(iprot)
10996
        else:
10997
          iprot.skip(ftype)
10998
      else:
10999
        iprot.skip(ftype)
11000
      iprot.readFieldEnd()
11001
    iprot.readStructEnd()
11002
 
11003
  def write(self, oprot):
11004
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11005
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11006
      return
11007
    oprot.writeStructBegin('getAllSourcePricing_result')
11008
    if self.success is not None:
11009
      oprot.writeFieldBegin('success', TType.LIST, 0)
11010
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11011
      for iter197 in self.success:
11012
        iter197.write(oprot)
5944 mandeep.dh 11013
      oprot.writeListEnd()
11014
      oprot.writeFieldEnd()
11015
    if self.cex is not None:
11016
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11017
      self.cex.write(oprot)
11018
      oprot.writeFieldEnd()
11019
    oprot.writeFieldStop()
11020
    oprot.writeStructEnd()
11021
 
11022
  def validate(self):
11023
    return
11024
 
11025
 
11026
  def __repr__(self):
11027
    L = ['%s=%r' % (key, value)
11028
      for key, value in self.__dict__.iteritems()]
11029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11030
 
11031
  def __eq__(self, other):
11032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11033
 
11034
  def __ne__(self, other):
11035
    return not (self == other)
11036
 
11037
class getItemForSource_args:
11038
  """
11039
  Attributes:
11040
   - item_id
11041
   - sourceId
11042
  """
11043
 
11044
  thrift_spec = (
11045
    None, # 0
11046
    (1, TType.I64, 'item_id', None, None, ), # 1
11047
    (2, TType.I64, 'sourceId', None, None, ), # 2
11048
  )
11049
 
11050
  def __init__(self, item_id=None, sourceId=None,):
11051
    self.item_id = item_id
11052
    self.sourceId = sourceId
11053
 
11054
  def read(self, iprot):
11055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11057
      return
11058
    iprot.readStructBegin()
11059
    while True:
11060
      (fname, ftype, fid) = iprot.readFieldBegin()
11061
      if ftype == TType.STOP:
11062
        break
11063
      if fid == 1:
11064
        if ftype == TType.I64:
11065
          self.item_id = iprot.readI64();
11066
        else:
11067
          iprot.skip(ftype)
11068
      elif fid == 2:
11069
        if ftype == TType.I64:
11070
          self.sourceId = iprot.readI64();
11071
        else:
11072
          iprot.skip(ftype)
11073
      else:
11074
        iprot.skip(ftype)
11075
      iprot.readFieldEnd()
11076
    iprot.readStructEnd()
11077
 
11078
  def write(self, oprot):
11079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11081
      return
11082
    oprot.writeStructBegin('getItemForSource_args')
11083
    if self.item_id is not None:
11084
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11085
      oprot.writeI64(self.item_id)
11086
      oprot.writeFieldEnd()
11087
    if self.sourceId is not None:
11088
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11089
      oprot.writeI64(self.sourceId)
11090
      oprot.writeFieldEnd()
11091
    oprot.writeFieldStop()
11092
    oprot.writeStructEnd()
11093
 
11094
  def validate(self):
11095
    return
11096
 
11097
 
11098
  def __repr__(self):
11099
    L = ['%s=%r' % (key, value)
11100
      for key, value in self.__dict__.iteritems()]
11101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11102
 
11103
  def __eq__(self, other):
11104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11105
 
11106
  def __ne__(self, other):
11107
    return not (self == other)
11108
 
11109
class getItemForSource_result:
11110
  """
11111
  Attributes:
11112
   - success
11113
   - cex
11114
  """
11115
 
11116
  thrift_spec = (
11117
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
11118
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11119
  )
11120
 
11121
  def __init__(self, success=None, cex=None,):
11122
    self.success = success
11123
    self.cex = cex
11124
 
11125
  def read(self, iprot):
11126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11128
      return
11129
    iprot.readStructBegin()
11130
    while True:
11131
      (fname, ftype, fid) = iprot.readFieldBegin()
11132
      if ftype == TType.STOP:
11133
        break
11134
      if fid == 0:
11135
        if ftype == TType.STRUCT:
11136
          self.success = Item()
11137
          self.success.read(iprot)
11138
        else:
11139
          iprot.skip(ftype)
11140
      elif fid == 1:
11141
        if ftype == TType.STRUCT:
11142
          self.cex = CatalogServiceException()
11143
          self.cex.read(iprot)
11144
        else:
11145
          iprot.skip(ftype)
11146
      else:
11147
        iprot.skip(ftype)
11148
      iprot.readFieldEnd()
11149
    iprot.readStructEnd()
11150
 
11151
  def write(self, oprot):
11152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11154
      return
11155
    oprot.writeStructBegin('getItemForSource_result')
11156
    if self.success is not None:
11157
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11158
      self.success.write(oprot)
11159
      oprot.writeFieldEnd()
11160
    if self.cex is not None:
11161
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11162
      self.cex.write(oprot)
11163
      oprot.writeFieldEnd()
11164
    oprot.writeFieldStop()
11165
    oprot.writeStructEnd()
11166
 
11167
  def validate(self):
11168
    return
11169
 
11170
 
11171
  def __repr__(self):
11172
    L = ['%s=%r' % (key, value)
11173
      for key, value in self.__dict__.iteritems()]
11174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11175
 
11176
  def __eq__(self, other):
11177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11178
 
11179
  def __ne__(self, other):
11180
    return not (self == other)
11181
 
11182
class searchItemsInRange_args:
11183
  """
11184
  Attributes:
11185
   - searchTerms
11186
   - offset
11187
   - limit
11188
  """
11189
 
11190
  thrift_spec = (
11191
    None, # 0
11192
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11193
    (2, TType.I64, 'offset', None, None, ), # 2
11194
    (3, TType.I64, 'limit', None, None, ), # 3
11195
  )
11196
 
11197
  def __init__(self, searchTerms=None, offset=None, limit=None,):
11198
    self.searchTerms = searchTerms
11199
    self.offset = offset
11200
    self.limit = limit
11201
 
11202
  def read(self, iprot):
11203
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11204
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11205
      return
11206
    iprot.readStructBegin()
11207
    while True:
11208
      (fname, ftype, fid) = iprot.readFieldBegin()
11209
      if ftype == TType.STOP:
11210
        break
11211
      if fid == 1:
11212
        if ftype == TType.LIST:
11213
          self.searchTerms = []
6512 kshitij.so 11214
          (_etype201, _size198) = iprot.readListBegin()
11215
          for _i202 in xrange(_size198):
11216
            _elem203 = iprot.readString();
11217
            self.searchTerms.append(_elem203)
5944 mandeep.dh 11218
          iprot.readListEnd()
11219
        else:
11220
          iprot.skip(ftype)
11221
      elif fid == 2:
11222
        if ftype == TType.I64:
11223
          self.offset = iprot.readI64();
11224
        else:
11225
          iprot.skip(ftype)
11226
      elif fid == 3:
11227
        if ftype == TType.I64:
11228
          self.limit = iprot.readI64();
11229
        else:
11230
          iprot.skip(ftype)
11231
      else:
11232
        iprot.skip(ftype)
11233
      iprot.readFieldEnd()
11234
    iprot.readStructEnd()
11235
 
11236
  def write(self, oprot):
11237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11239
      return
11240
    oprot.writeStructBegin('searchItemsInRange_args')
11241
    if self.searchTerms is not None:
11242
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11243
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6512 kshitij.so 11244
      for iter204 in self.searchTerms:
11245
        oprot.writeString(iter204)
5944 mandeep.dh 11246
      oprot.writeListEnd()
11247
      oprot.writeFieldEnd()
11248
    if self.offset is not None:
11249
      oprot.writeFieldBegin('offset', TType.I64, 2)
11250
      oprot.writeI64(self.offset)
11251
      oprot.writeFieldEnd()
11252
    if self.limit is not None:
11253
      oprot.writeFieldBegin('limit', TType.I64, 3)
11254
      oprot.writeI64(self.limit)
11255
      oprot.writeFieldEnd()
11256
    oprot.writeFieldStop()
11257
    oprot.writeStructEnd()
11258
 
11259
  def validate(self):
11260
    return
11261
 
11262
 
11263
  def __repr__(self):
11264
    L = ['%s=%r' % (key, value)
11265
      for key, value in self.__dict__.iteritems()]
11266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11267
 
11268
  def __eq__(self, other):
11269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11270
 
11271
  def __ne__(self, other):
11272
    return not (self == other)
11273
 
11274
class searchItemsInRange_result:
11275
  """
11276
  Attributes:
11277
   - success
11278
  """
11279
 
11280
  thrift_spec = (
11281
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11282
  )
11283
 
11284
  def __init__(self, success=None,):
11285
    self.success = success
11286
 
11287
  def read(self, iprot):
11288
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11289
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11290
      return
11291
    iprot.readStructBegin()
11292
    while True:
11293
      (fname, ftype, fid) = iprot.readFieldBegin()
11294
      if ftype == TType.STOP:
11295
        break
11296
      if fid == 0:
11297
        if ftype == TType.LIST:
11298
          self.success = []
6512 kshitij.so 11299
          (_etype208, _size205) = iprot.readListBegin()
11300
          for _i209 in xrange(_size205):
11301
            _elem210 = Item()
11302
            _elem210.read(iprot)
11303
            self.success.append(_elem210)
5944 mandeep.dh 11304
          iprot.readListEnd()
11305
        else:
11306
          iprot.skip(ftype)
11307
      else:
11308
        iprot.skip(ftype)
11309
      iprot.readFieldEnd()
11310
    iprot.readStructEnd()
11311
 
11312
  def write(self, oprot):
11313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11315
      return
11316
    oprot.writeStructBegin('searchItemsInRange_result')
11317
    if self.success is not None:
11318
      oprot.writeFieldBegin('success', TType.LIST, 0)
11319
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11320
      for iter211 in self.success:
11321
        iter211.write(oprot)
5944 mandeep.dh 11322
      oprot.writeListEnd()
11323
      oprot.writeFieldEnd()
11324
    oprot.writeFieldStop()
11325
    oprot.writeStructEnd()
11326
 
11327
  def validate(self):
11328
    return
11329
 
11330
 
11331
  def __repr__(self):
11332
    L = ['%s=%r' % (key, value)
11333
      for key, value in self.__dict__.iteritems()]
11334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11335
 
11336
  def __eq__(self, other):
11337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11338
 
11339
  def __ne__(self, other):
11340
    return not (self == other)
11341
 
11342
class getSearchResultCount_args:
11343
  """
11344
  Attributes:
11345
   - searchTerms
11346
  """
11347
 
11348
  thrift_spec = (
11349
    None, # 0
11350
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11351
  )
11352
 
11353
  def __init__(self, searchTerms=None,):
11354
    self.searchTerms = searchTerms
11355
 
11356
  def read(self, iprot):
11357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11359
      return
11360
    iprot.readStructBegin()
11361
    while True:
11362
      (fname, ftype, fid) = iprot.readFieldBegin()
11363
      if ftype == TType.STOP:
11364
        break
11365
      if fid == 1:
11366
        if ftype == TType.LIST:
11367
          self.searchTerms = []
6512 kshitij.so 11368
          (_etype215, _size212) = iprot.readListBegin()
11369
          for _i216 in xrange(_size212):
11370
            _elem217 = iprot.readString();
11371
            self.searchTerms.append(_elem217)
5944 mandeep.dh 11372
          iprot.readListEnd()
11373
        else:
11374
          iprot.skip(ftype)
11375
      else:
11376
        iprot.skip(ftype)
11377
      iprot.readFieldEnd()
11378
    iprot.readStructEnd()
11379
 
11380
  def write(self, oprot):
11381
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11382
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11383
      return
11384
    oprot.writeStructBegin('getSearchResultCount_args')
11385
    if self.searchTerms is not None:
11386
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11387
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6512 kshitij.so 11388
      for iter218 in self.searchTerms:
11389
        oprot.writeString(iter218)
5944 mandeep.dh 11390
      oprot.writeListEnd()
11391
      oprot.writeFieldEnd()
11392
    oprot.writeFieldStop()
11393
    oprot.writeStructEnd()
11394
 
11395
  def validate(self):
11396
    return
11397
 
11398
 
11399
  def __repr__(self):
11400
    L = ['%s=%r' % (key, value)
11401
      for key, value in self.__dict__.iteritems()]
11402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11403
 
11404
  def __eq__(self, other):
11405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11406
 
11407
  def __ne__(self, other):
11408
    return not (self == other)
11409
 
11410
class getSearchResultCount_result:
11411
  """
11412
  Attributes:
11413
   - success
11414
  """
11415
 
11416
  thrift_spec = (
11417
    (0, TType.I32, 'success', None, None, ), # 0
11418
  )
11419
 
11420
  def __init__(self, success=None,):
11421
    self.success = success
11422
 
11423
  def read(self, iprot):
11424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11426
      return
11427
    iprot.readStructBegin()
11428
    while True:
11429
      (fname, ftype, fid) = iprot.readFieldBegin()
11430
      if ftype == TType.STOP:
11431
        break
11432
      if fid == 0:
11433
        if ftype == TType.I32:
11434
          self.success = iprot.readI32();
11435
        else:
11436
          iprot.skip(ftype)
11437
      else:
11438
        iprot.skip(ftype)
11439
      iprot.readFieldEnd()
11440
    iprot.readStructEnd()
11441
 
11442
  def write(self, oprot):
11443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11445
      return
11446
    oprot.writeStructBegin('getSearchResultCount_result')
11447
    if self.success is not None:
11448
      oprot.writeFieldBegin('success', TType.I32, 0)
11449
      oprot.writeI32(self.success)
11450
      oprot.writeFieldEnd()
11451
    oprot.writeFieldStop()
11452
    oprot.writeStructEnd()
11453
 
11454
  def validate(self):
11455
    return
11456
 
11457
 
11458
  def __repr__(self):
11459
    L = ['%s=%r' % (key, value)
11460
      for key, value in self.__dict__.iteritems()]
11461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11462
 
11463
  def __eq__(self, other):
11464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11465
 
11466
  def __ne__(self, other):
11467
    return not (self == other)
11468
 
11469
class getProductNotifications_args:
11470
  """
11471
  Attributes:
11472
   - startDateTime
11473
  """
11474
 
11475
  thrift_spec = (
11476
    None, # 0
11477
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11478
  )
11479
 
11480
  def __init__(self, startDateTime=None,):
11481
    self.startDateTime = startDateTime
11482
 
11483
  def read(self, iprot):
11484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11486
      return
11487
    iprot.readStructBegin()
11488
    while True:
11489
      (fname, ftype, fid) = iprot.readFieldBegin()
11490
      if ftype == TType.STOP:
11491
        break
11492
      if fid == 1:
11493
        if ftype == TType.I64:
11494
          self.startDateTime = iprot.readI64();
11495
        else:
11496
          iprot.skip(ftype)
11497
      else:
11498
        iprot.skip(ftype)
11499
      iprot.readFieldEnd()
11500
    iprot.readStructEnd()
11501
 
11502
  def write(self, oprot):
11503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11505
      return
11506
    oprot.writeStructBegin('getProductNotifications_args')
11507
    if self.startDateTime is not None:
11508
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11509
      oprot.writeI64(self.startDateTime)
11510
      oprot.writeFieldEnd()
11511
    oprot.writeFieldStop()
11512
    oprot.writeStructEnd()
11513
 
11514
  def validate(self):
11515
    return
11516
 
11517
 
11518
  def __repr__(self):
11519
    L = ['%s=%r' % (key, value)
11520
      for key, value in self.__dict__.iteritems()]
11521
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11522
 
11523
  def __eq__(self, other):
11524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11525
 
11526
  def __ne__(self, other):
11527
    return not (self == other)
11528
 
11529
class getProductNotifications_result:
11530
  """
11531
  Attributes:
11532
   - success
11533
  """
11534
 
11535
  thrift_spec = (
11536
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
11537
  )
11538
 
11539
  def __init__(self, success=None,):
11540
    self.success = success
11541
 
11542
  def read(self, iprot):
11543
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11544
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11545
      return
11546
    iprot.readStructBegin()
11547
    while True:
11548
      (fname, ftype, fid) = iprot.readFieldBegin()
11549
      if ftype == TType.STOP:
11550
        break
11551
      if fid == 0:
11552
        if ftype == TType.LIST:
11553
          self.success = []
6512 kshitij.so 11554
          (_etype222, _size219) = iprot.readListBegin()
11555
          for _i223 in xrange(_size219):
11556
            _elem224 = ProductNotificationRequest()
11557
            _elem224.read(iprot)
11558
            self.success.append(_elem224)
5944 mandeep.dh 11559
          iprot.readListEnd()
11560
        else:
11561
          iprot.skip(ftype)
11562
      else:
11563
        iprot.skip(ftype)
11564
      iprot.readFieldEnd()
11565
    iprot.readStructEnd()
11566
 
11567
  def write(self, oprot):
11568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11570
      return
11571
    oprot.writeStructBegin('getProductNotifications_result')
11572
    if self.success is not None:
11573
      oprot.writeFieldBegin('success', TType.LIST, 0)
11574
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11575
      for iter225 in self.success:
11576
        iter225.write(oprot)
5944 mandeep.dh 11577
      oprot.writeListEnd()
11578
      oprot.writeFieldEnd()
11579
    oprot.writeFieldStop()
11580
    oprot.writeStructEnd()
11581
 
11582
  def validate(self):
11583
    return
11584
 
11585
 
11586
  def __repr__(self):
11587
    L = ['%s=%r' % (key, value)
11588
      for key, value in self.__dict__.iteritems()]
11589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11590
 
11591
  def __eq__(self, other):
11592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11593
 
11594
  def __ne__(self, other):
11595
    return not (self == other)
11596
 
11597
class getProductNotificationRequestCount_args:
11598
  """
11599
  Attributes:
11600
   - startDateTime
11601
  """
11602
 
11603
  thrift_spec = (
11604
    None, # 0
11605
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11606
  )
11607
 
11608
  def __init__(self, startDateTime=None,):
11609
    self.startDateTime = startDateTime
11610
 
11611
  def read(self, iprot):
11612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11614
      return
11615
    iprot.readStructBegin()
11616
    while True:
11617
      (fname, ftype, fid) = iprot.readFieldBegin()
11618
      if ftype == TType.STOP:
11619
        break
11620
      if fid == 1:
11621
        if ftype == TType.I64:
11622
          self.startDateTime = iprot.readI64();
11623
        else:
11624
          iprot.skip(ftype)
11625
      else:
11626
        iprot.skip(ftype)
11627
      iprot.readFieldEnd()
11628
    iprot.readStructEnd()
11629
 
11630
  def write(self, oprot):
11631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11633
      return
11634
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
11635
    if self.startDateTime is not None:
11636
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11637
      oprot.writeI64(self.startDateTime)
11638
      oprot.writeFieldEnd()
11639
    oprot.writeFieldStop()
11640
    oprot.writeStructEnd()
11641
 
11642
  def validate(self):
11643
    return
11644
 
11645
 
11646
  def __repr__(self):
11647
    L = ['%s=%r' % (key, value)
11648
      for key, value in self.__dict__.iteritems()]
11649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11650
 
11651
  def __eq__(self, other):
11652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11653
 
11654
  def __ne__(self, other):
11655
    return not (self == other)
11656
 
11657
class getProductNotificationRequestCount_result:
11658
  """
11659
  Attributes:
11660
   - success
11661
  """
11662
 
11663
  thrift_spec = (
11664
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
11665
  )
11666
 
11667
  def __init__(self, success=None,):
11668
    self.success = success
11669
 
11670
  def read(self, iprot):
11671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11673
      return
11674
    iprot.readStructBegin()
11675
    while True:
11676
      (fname, ftype, fid) = iprot.readFieldBegin()
11677
      if ftype == TType.STOP:
11678
        break
11679
      if fid == 0:
11680
        if ftype == TType.LIST:
11681
          self.success = []
6512 kshitij.so 11682
          (_etype229, _size226) = iprot.readListBegin()
11683
          for _i230 in xrange(_size226):
11684
            _elem231 = ProductNotificationRequestCount()
11685
            _elem231.read(iprot)
11686
            self.success.append(_elem231)
5944 mandeep.dh 11687
          iprot.readListEnd()
11688
        else:
11689
          iprot.skip(ftype)
11690
      else:
11691
        iprot.skip(ftype)
11692
      iprot.readFieldEnd()
11693
    iprot.readStructEnd()
11694
 
11695
  def write(self, oprot):
11696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11698
      return
11699
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
11700
    if self.success is not None:
11701
      oprot.writeFieldBegin('success', TType.LIST, 0)
11702
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11703
      for iter232 in self.success:
11704
        iter232.write(oprot)
5944 mandeep.dh 11705
      oprot.writeListEnd()
11706
      oprot.writeFieldEnd()
11707
    oprot.writeFieldStop()
11708
    oprot.writeStructEnd()
11709
 
11710
  def validate(self):
11711
    return
11712
 
11713
 
11714
  def __repr__(self):
11715
    L = ['%s=%r' % (key, value)
11716
      for key, value in self.__dict__.iteritems()]
11717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11718
 
11719
  def __eq__(self, other):
11720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11721
 
11722
  def __ne__(self, other):
11723
    return not (self == other)
11724
 
11725
class addAuthorizationLog_args:
11726
  """
11727
  Attributes:
11728
   - itemId
11729
   - username
11730
   - reason
11731
  """
11732
 
11733
  thrift_spec = (
11734
    None, # 0
11735
    (1, TType.I64, 'itemId', None, None, ), # 1
11736
    (2, TType.STRING, 'username', None, None, ), # 2
11737
    (3, TType.STRING, 'reason', None, None, ), # 3
11738
  )
11739
 
11740
  def __init__(self, itemId=None, username=None, reason=None,):
11741
    self.itemId = itemId
11742
    self.username = username
11743
    self.reason = reason
11744
 
11745
  def read(self, iprot):
11746
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11747
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11748
      return
11749
    iprot.readStructBegin()
11750
    while True:
11751
      (fname, ftype, fid) = iprot.readFieldBegin()
11752
      if ftype == TType.STOP:
11753
        break
11754
      if fid == 1:
11755
        if ftype == TType.I64:
11756
          self.itemId = iprot.readI64();
11757
        else:
11758
          iprot.skip(ftype)
11759
      elif fid == 2:
11760
        if ftype == TType.STRING:
11761
          self.username = iprot.readString();
11762
        else:
11763
          iprot.skip(ftype)
11764
      elif fid == 3:
11765
        if ftype == TType.STRING:
11766
          self.reason = iprot.readString();
11767
        else:
11768
          iprot.skip(ftype)
11769
      else:
11770
        iprot.skip(ftype)
11771
      iprot.readFieldEnd()
11772
    iprot.readStructEnd()
11773
 
11774
  def write(self, oprot):
11775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11777
      return
11778
    oprot.writeStructBegin('addAuthorizationLog_args')
11779
    if self.itemId is not None:
11780
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11781
      oprot.writeI64(self.itemId)
11782
      oprot.writeFieldEnd()
11783
    if self.username is not None:
11784
      oprot.writeFieldBegin('username', TType.STRING, 2)
11785
      oprot.writeString(self.username)
11786
      oprot.writeFieldEnd()
11787
    if self.reason is not None:
11788
      oprot.writeFieldBegin('reason', TType.STRING, 3)
11789
      oprot.writeString(self.reason)
11790
      oprot.writeFieldEnd()
11791
    oprot.writeFieldStop()
11792
    oprot.writeStructEnd()
11793
 
11794
  def validate(self):
11795
    return
11796
 
11797
 
11798
  def __repr__(self):
11799
    L = ['%s=%r' % (key, value)
11800
      for key, value in self.__dict__.iteritems()]
11801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11802
 
11803
  def __eq__(self, other):
11804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11805
 
11806
  def __ne__(self, other):
11807
    return not (self == other)
11808
 
11809
class addAuthorizationLog_result:
11810
  """
11811
  Attributes:
11812
   - success
11813
   - cex
11814
  """
11815
 
11816
  thrift_spec = (
11817
    (0, TType.BOOL, 'success', None, None, ), # 0
11818
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11819
  )
11820
 
11821
  def __init__(self, success=None, cex=None,):
11822
    self.success = success
11823
    self.cex = cex
11824
 
11825
  def read(self, iprot):
11826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11828
      return
11829
    iprot.readStructBegin()
11830
    while True:
11831
      (fname, ftype, fid) = iprot.readFieldBegin()
11832
      if ftype == TType.STOP:
11833
        break
11834
      if fid == 0:
11835
        if ftype == TType.BOOL:
11836
          self.success = iprot.readBool();
11837
        else:
11838
          iprot.skip(ftype)
11839
      elif fid == 1:
11840
        if ftype == TType.STRUCT:
11841
          self.cex = CatalogServiceException()
11842
          self.cex.read(iprot)
11843
        else:
11844
          iprot.skip(ftype)
11845
      else:
11846
        iprot.skip(ftype)
11847
      iprot.readFieldEnd()
11848
    iprot.readStructEnd()
11849
 
11850
  def write(self, oprot):
11851
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11852
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11853
      return
11854
    oprot.writeStructBegin('addAuthorizationLog_result')
11855
    if self.success is not None:
11856
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11857
      oprot.writeBool(self.success)
11858
      oprot.writeFieldEnd()
11859
    if self.cex is not None:
11860
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11861
      self.cex.write(oprot)
11862
      oprot.writeFieldEnd()
11863
    oprot.writeFieldStop()
11864
    oprot.writeStructEnd()
11865
 
11866
  def validate(self):
11867
    return
11868
 
11869
 
11870
  def __repr__(self):
11871
    L = ['%s=%r' % (key, value)
11872
      for key, value in self.__dict__.iteritems()]
11873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11874
 
11875
  def __eq__(self, other):
11876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11877
 
11878
  def __ne__(self, other):
11879
    return not (self == other)
11880
 
11881
class getClearanceSaleCatalogIds_args:
11882
 
11883
  thrift_spec = (
11884
  )
11885
 
11886
  def read(self, iprot):
11887
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11888
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11889
      return
11890
    iprot.readStructBegin()
11891
    while True:
11892
      (fname, ftype, fid) = iprot.readFieldBegin()
11893
      if ftype == TType.STOP:
11894
        break
11895
      else:
11896
        iprot.skip(ftype)
11897
      iprot.readFieldEnd()
11898
    iprot.readStructEnd()
11899
 
11900
  def write(self, oprot):
11901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11903
      return
11904
    oprot.writeStructBegin('getClearanceSaleCatalogIds_args')
11905
    oprot.writeFieldStop()
11906
    oprot.writeStructEnd()
11907
 
11908
  def validate(self):
11909
    return
11910
 
11911
 
11912
  def __repr__(self):
11913
    L = ['%s=%r' % (key, value)
11914
      for key, value in self.__dict__.iteritems()]
11915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11916
 
11917
  def __eq__(self, other):
11918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11919
 
11920
  def __ne__(self, other):
11921
    return not (self == other)
11922
 
11923
class getClearanceSaleCatalogIds_result:
11924
  """
11925
  Attributes:
11926
   - success
11927
   - cex
11928
  """
11929
 
11930
  thrift_spec = (
11931
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11932
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11933
  )
11934
 
11935
  def __init__(self, success=None, cex=None,):
11936
    self.success = success
11937
    self.cex = cex
11938
 
11939
  def read(self, iprot):
11940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11942
      return
11943
    iprot.readStructBegin()
11944
    while True:
11945
      (fname, ftype, fid) = iprot.readFieldBegin()
11946
      if ftype == TType.STOP:
11947
        break
11948
      if fid == 0:
11949
        if ftype == TType.LIST:
11950
          self.success = []
6512 kshitij.so 11951
          (_etype236, _size233) = iprot.readListBegin()
11952
          for _i237 in xrange(_size233):
11953
            _elem238 = iprot.readI64();
11954
            self.success.append(_elem238)
5944 mandeep.dh 11955
          iprot.readListEnd()
11956
        else:
11957
          iprot.skip(ftype)
11958
      elif fid == 1:
11959
        if ftype == TType.STRUCT:
11960
          self.cex = CatalogServiceException()
11961
          self.cex.read(iprot)
11962
        else:
11963
          iprot.skip(ftype)
11964
      else:
11965
        iprot.skip(ftype)
11966
      iprot.readFieldEnd()
11967
    iprot.readStructEnd()
11968
 
11969
  def write(self, oprot):
11970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11972
      return
11973
    oprot.writeStructBegin('getClearanceSaleCatalogIds_result')
11974
    if self.success is not None:
11975
      oprot.writeFieldBegin('success', TType.LIST, 0)
11976
      oprot.writeListBegin(TType.I64, len(self.success))
6512 kshitij.so 11977
      for iter239 in self.success:
11978
        oprot.writeI64(iter239)
5944 mandeep.dh 11979
      oprot.writeListEnd()
11980
      oprot.writeFieldEnd()
11981
    if self.cex is not None:
11982
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11983
      self.cex.write(oprot)
11984
      oprot.writeFieldEnd()
11985
    oprot.writeFieldStop()
11986
    oprot.writeStructEnd()
11987
 
11988
  def validate(self):
11989
    return
11990
 
11991
 
11992
  def __repr__(self):
11993
    L = ['%s=%r' % (key, value)
11994
      for key, value in self.__dict__.iteritems()]
11995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11996
 
11997
  def __eq__(self, other):
11998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11999
 
12000
  def __ne__(self, other):
12001
    return not (self == other)
12002
 
12003
class addupdateVoucherForItem_args:
12004
  """
12005
  Attributes:
12006
   - catalog_item_id
12007
   - voucherType
12008
   - voucherAmount
12009
  """
12010
 
12011
  thrift_spec = (
12012
    None, # 0
12013
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12014
    (2, TType.I64, 'voucherType', None, None, ), # 2
12015
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
12016
  )
12017
 
12018
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
12019
    self.catalog_item_id = catalog_item_id
12020
    self.voucherType = voucherType
12021
    self.voucherAmount = voucherAmount
12022
 
12023
  def read(self, iprot):
12024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12026
      return
12027
    iprot.readStructBegin()
12028
    while True:
12029
      (fname, ftype, fid) = iprot.readFieldBegin()
12030
      if ftype == TType.STOP:
12031
        break
12032
      if fid == 1:
12033
        if ftype == TType.I64:
12034
          self.catalog_item_id = iprot.readI64();
12035
        else:
12036
          iprot.skip(ftype)
12037
      elif fid == 2:
12038
        if ftype == TType.I64:
12039
          self.voucherType = iprot.readI64();
12040
        else:
12041
          iprot.skip(ftype)
12042
      elif fid == 3:
12043
        if ftype == TType.I64:
12044
          self.voucherAmount = iprot.readI64();
12045
        else:
12046
          iprot.skip(ftype)
12047
      else:
12048
        iprot.skip(ftype)
12049
      iprot.readFieldEnd()
12050
    iprot.readStructEnd()
12051
 
12052
  def write(self, oprot):
12053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12055
      return
12056
    oprot.writeStructBegin('addupdateVoucherForItem_args')
12057
    if self.catalog_item_id is not None:
12058
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12059
      oprot.writeI64(self.catalog_item_id)
12060
      oprot.writeFieldEnd()
12061
    if self.voucherType is not None:
12062
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12063
      oprot.writeI64(self.voucherType)
12064
      oprot.writeFieldEnd()
12065
    if self.voucherAmount is not None:
12066
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
12067
      oprot.writeI64(self.voucherAmount)
12068
      oprot.writeFieldEnd()
12069
    oprot.writeFieldStop()
12070
    oprot.writeStructEnd()
12071
 
12072
  def validate(self):
12073
    return
12074
 
12075
 
12076
  def __repr__(self):
12077
    L = ['%s=%r' % (key, value)
12078
      for key, value in self.__dict__.iteritems()]
12079
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12080
 
12081
  def __eq__(self, other):
12082
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12083
 
12084
  def __ne__(self, other):
12085
    return not (self == other)
12086
 
12087
class addupdateVoucherForItem_result:
12088
  """
12089
  Attributes:
12090
   - success
12091
   - cex
12092
  """
12093
 
12094
  thrift_spec = (
12095
    (0, TType.BOOL, 'success', None, None, ), # 0
12096
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12097
  )
12098
 
12099
  def __init__(self, success=None, cex=None,):
12100
    self.success = success
12101
    self.cex = cex
12102
 
12103
  def read(self, iprot):
12104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12106
      return
12107
    iprot.readStructBegin()
12108
    while True:
12109
      (fname, ftype, fid) = iprot.readFieldBegin()
12110
      if ftype == TType.STOP:
12111
        break
12112
      if fid == 0:
12113
        if ftype == TType.BOOL:
12114
          self.success = iprot.readBool();
12115
        else:
12116
          iprot.skip(ftype)
12117
      elif fid == 1:
12118
        if ftype == TType.STRUCT:
12119
          self.cex = CatalogServiceException()
12120
          self.cex.read(iprot)
12121
        else:
12122
          iprot.skip(ftype)
12123
      else:
12124
        iprot.skip(ftype)
12125
      iprot.readFieldEnd()
12126
    iprot.readStructEnd()
12127
 
12128
  def write(self, oprot):
12129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12131
      return
12132
    oprot.writeStructBegin('addupdateVoucherForItem_result')
12133
    if self.success is not None:
12134
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12135
      oprot.writeBool(self.success)
12136
      oprot.writeFieldEnd()
12137
    if self.cex is not None:
12138
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12139
      self.cex.write(oprot)
12140
      oprot.writeFieldEnd()
12141
    oprot.writeFieldStop()
12142
    oprot.writeStructEnd()
12143
 
12144
  def validate(self):
12145
    return
12146
 
12147
 
12148
  def __repr__(self):
12149
    L = ['%s=%r' % (key, value)
12150
      for key, value in self.__dict__.iteritems()]
12151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12152
 
12153
  def __eq__(self, other):
12154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12155
 
12156
  def __ne__(self, other):
12157
    return not (self == other)
12158
 
12159
class deleteVoucherForItem_args:
12160
  """
12161
  Attributes:
12162
   - catalog_item_id
12163
   - voucherType
12164
  """
12165
 
12166
  thrift_spec = (
12167
    None, # 0
12168
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12169
    (2, TType.I64, 'voucherType', None, None, ), # 2
12170
  )
12171
 
12172
  def __init__(self, catalog_item_id=None, voucherType=None,):
12173
    self.catalog_item_id = catalog_item_id
12174
    self.voucherType = voucherType
12175
 
12176
  def read(self, iprot):
12177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12179
      return
12180
    iprot.readStructBegin()
12181
    while True:
12182
      (fname, ftype, fid) = iprot.readFieldBegin()
12183
      if ftype == TType.STOP:
12184
        break
12185
      if fid == 1:
12186
        if ftype == TType.I64:
12187
          self.catalog_item_id = iprot.readI64();
12188
        else:
12189
          iprot.skip(ftype)
12190
      elif fid == 2:
12191
        if ftype == TType.I64:
12192
          self.voucherType = iprot.readI64();
12193
        else:
12194
          iprot.skip(ftype)
12195
      else:
12196
        iprot.skip(ftype)
12197
      iprot.readFieldEnd()
12198
    iprot.readStructEnd()
12199
 
12200
  def write(self, oprot):
12201
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12202
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12203
      return
12204
    oprot.writeStructBegin('deleteVoucherForItem_args')
12205
    if self.catalog_item_id is not None:
12206
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12207
      oprot.writeI64(self.catalog_item_id)
12208
      oprot.writeFieldEnd()
12209
    if self.voucherType is not None:
12210
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12211
      oprot.writeI64(self.voucherType)
12212
      oprot.writeFieldEnd()
12213
    oprot.writeFieldStop()
12214
    oprot.writeStructEnd()
12215
 
12216
  def validate(self):
12217
    return
12218
 
12219
 
12220
  def __repr__(self):
12221
    L = ['%s=%r' % (key, value)
12222
      for key, value in self.__dict__.iteritems()]
12223
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12224
 
12225
  def __eq__(self, other):
12226
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12227
 
12228
  def __ne__(self, other):
12229
    return not (self == other)
12230
 
12231
class deleteVoucherForItem_result:
12232
  """
12233
  Attributes:
12234
   - success
12235
   - cex
12236
  """
12237
 
12238
  thrift_spec = (
12239
    (0, TType.BOOL, 'success', None, None, ), # 0
12240
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12241
  )
12242
 
12243
  def __init__(self, success=None, cex=None,):
12244
    self.success = success
12245
    self.cex = cex
12246
 
12247
  def read(self, iprot):
12248
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12249
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12250
      return
12251
    iprot.readStructBegin()
12252
    while True:
12253
      (fname, ftype, fid) = iprot.readFieldBegin()
12254
      if ftype == TType.STOP:
12255
        break
12256
      if fid == 0:
12257
        if ftype == TType.BOOL:
12258
          self.success = iprot.readBool();
12259
        else:
12260
          iprot.skip(ftype)
12261
      elif fid == 1:
12262
        if ftype == TType.STRUCT:
12263
          self.cex = CatalogServiceException()
12264
          self.cex.read(iprot)
12265
        else:
12266
          iprot.skip(ftype)
12267
      else:
12268
        iprot.skip(ftype)
12269
      iprot.readFieldEnd()
12270
    iprot.readStructEnd()
12271
 
12272
  def write(self, oprot):
12273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12275
      return
12276
    oprot.writeStructBegin('deleteVoucherForItem_result')
12277
    if self.success is not None:
12278
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12279
      oprot.writeBool(self.success)
12280
      oprot.writeFieldEnd()
12281
    if self.cex is not None:
12282
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12283
      self.cex.write(oprot)
12284
      oprot.writeFieldEnd()
12285
    oprot.writeFieldStop()
12286
    oprot.writeStructEnd()
12287
 
12288
  def validate(self):
12289
    return
12290
 
12291
 
12292
  def __repr__(self):
12293
    L = ['%s=%r' % (key, value)
12294
      for key, value in self.__dict__.iteritems()]
12295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12296
 
12297
  def __eq__(self, other):
12298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12299
 
12300
  def __ne__(self, other):
12301
    return not (self == other)
12302
 
12303
class getVoucherAmount_args:
12304
  """
12305
  Attributes:
12306
   - itemId
12307
   - voucherType
12308
  """
12309
 
12310
  thrift_spec = (
12311
    None, # 0
12312
    (1, TType.I64, 'itemId', None, None, ), # 1
12313
    (2, TType.I64, 'voucherType', None, None, ), # 2
12314
  )
12315
 
12316
  def __init__(self, itemId=None, voucherType=None,):
12317
    self.itemId = itemId
12318
    self.voucherType = voucherType
12319
 
12320
  def read(self, iprot):
12321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12323
      return
12324
    iprot.readStructBegin()
12325
    while True:
12326
      (fname, ftype, fid) = iprot.readFieldBegin()
12327
      if ftype == TType.STOP:
12328
        break
12329
      if fid == 1:
12330
        if ftype == TType.I64:
12331
          self.itemId = iprot.readI64();
12332
        else:
12333
          iprot.skip(ftype)
12334
      elif fid == 2:
12335
        if ftype == TType.I64:
12336
          self.voucherType = iprot.readI64();
12337
        else:
12338
          iprot.skip(ftype)
12339
      else:
12340
        iprot.skip(ftype)
12341
      iprot.readFieldEnd()
12342
    iprot.readStructEnd()
12343
 
12344
  def write(self, oprot):
12345
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12346
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12347
      return
12348
    oprot.writeStructBegin('getVoucherAmount_args')
12349
    if self.itemId is not None:
12350
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12351
      oprot.writeI64(self.itemId)
12352
      oprot.writeFieldEnd()
12353
    if self.voucherType is not None:
12354
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12355
      oprot.writeI64(self.voucherType)
12356
      oprot.writeFieldEnd()
12357
    oprot.writeFieldStop()
12358
    oprot.writeStructEnd()
12359
 
12360
  def validate(self):
12361
    return
12362
 
12363
 
12364
  def __repr__(self):
12365
    L = ['%s=%r' % (key, value)
12366
      for key, value in self.__dict__.iteritems()]
12367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12368
 
12369
  def __eq__(self, other):
12370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12371
 
12372
  def __ne__(self, other):
12373
    return not (self == other)
12374
 
12375
class getVoucherAmount_result:
12376
  """
12377
  Attributes:
12378
   - success
12379
  """
12380
 
12381
  thrift_spec = (
12382
    (0, TType.I64, 'success', None, None, ), # 0
12383
  )
12384
 
12385
  def __init__(self, success=None,):
12386
    self.success = success
12387
 
12388
  def read(self, iprot):
12389
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12390
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12391
      return
12392
    iprot.readStructBegin()
12393
    while True:
12394
      (fname, ftype, fid) = iprot.readFieldBegin()
12395
      if ftype == TType.STOP:
12396
        break
12397
      if fid == 0:
12398
        if ftype == TType.I64:
12399
          self.success = iprot.readI64();
12400
        else:
12401
          iprot.skip(ftype)
12402
      else:
12403
        iprot.skip(ftype)
12404
      iprot.readFieldEnd()
12405
    iprot.readStructEnd()
12406
 
12407
  def write(self, oprot):
12408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12410
      return
12411
    oprot.writeStructBegin('getVoucherAmount_result')
12412
    if self.success is not None:
12413
      oprot.writeFieldBegin('success', TType.I64, 0)
12414
      oprot.writeI64(self.success)
12415
      oprot.writeFieldEnd()
12416
    oprot.writeFieldStop()
12417
    oprot.writeStructEnd()
12418
 
12419
  def validate(self):
12420
    return
12421
 
12422
 
12423
  def __repr__(self):
12424
    L = ['%s=%r' % (key, value)
12425
      for key, value in self.__dict__.iteritems()]
12426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12427
 
12428
  def __eq__(self, other):
12429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12430
 
12431
  def __ne__(self, other):
12432
    return not (self == other)
12433
 
12434
class getAllItemVouchers_args:
12435
  """
12436
  Attributes:
12437
   - itemId
12438
  """
12439
 
12440
  thrift_spec = (
12441
    None, # 0
12442
    (1, TType.I64, 'itemId', None, None, ), # 1
12443
  )
12444
 
12445
  def __init__(self, itemId=None,):
12446
    self.itemId = itemId
12447
 
12448
  def read(self, iprot):
12449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12451
      return
12452
    iprot.readStructBegin()
12453
    while True:
12454
      (fname, ftype, fid) = iprot.readFieldBegin()
12455
      if ftype == TType.STOP:
12456
        break
12457
      if fid == 1:
12458
        if ftype == TType.I64:
12459
          self.itemId = iprot.readI64();
12460
        else:
12461
          iprot.skip(ftype)
12462
      else:
12463
        iprot.skip(ftype)
12464
      iprot.readFieldEnd()
12465
    iprot.readStructEnd()
12466
 
12467
  def write(self, oprot):
12468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12470
      return
12471
    oprot.writeStructBegin('getAllItemVouchers_args')
12472
    if self.itemId is not None:
12473
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12474
      oprot.writeI64(self.itemId)
12475
      oprot.writeFieldEnd()
12476
    oprot.writeFieldStop()
12477
    oprot.writeStructEnd()
12478
 
12479
  def validate(self):
12480
    return
12481
 
12482
 
12483
  def __repr__(self):
12484
    L = ['%s=%r' % (key, value)
12485
      for key, value in self.__dict__.iteritems()]
12486
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12487
 
12488
  def __eq__(self, other):
12489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12490
 
12491
  def __ne__(self, other):
12492
    return not (self == other)
12493
 
12494
class getAllItemVouchers_result:
12495
  """
12496
  Attributes:
12497
   - success
12498
  """
12499
 
12500
  thrift_spec = (
12501
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
12502
  )
12503
 
12504
  def __init__(self, success=None,):
12505
    self.success = success
12506
 
12507
  def read(self, iprot):
12508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12510
      return
12511
    iprot.readStructBegin()
12512
    while True:
12513
      (fname, ftype, fid) = iprot.readFieldBegin()
12514
      if ftype == TType.STOP:
12515
        break
12516
      if fid == 0:
12517
        if ftype == TType.LIST:
12518
          self.success = []
6512 kshitij.so 12519
          (_etype243, _size240) = iprot.readListBegin()
12520
          for _i244 in xrange(_size240):
12521
            _elem245 = VoucherItemMapping()
12522
            _elem245.read(iprot)
12523
            self.success.append(_elem245)
5944 mandeep.dh 12524
          iprot.readListEnd()
12525
        else:
12526
          iprot.skip(ftype)
12527
      else:
12528
        iprot.skip(ftype)
12529
      iprot.readFieldEnd()
12530
    iprot.readStructEnd()
12531
 
12532
  def write(self, oprot):
12533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12535
      return
12536
    oprot.writeStructBegin('getAllItemVouchers_result')
12537
    if self.success is not None:
12538
      oprot.writeFieldBegin('success', TType.LIST, 0)
12539
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 12540
      for iter246 in self.success:
12541
        iter246.write(oprot)
5944 mandeep.dh 12542
      oprot.writeListEnd()
12543
      oprot.writeFieldEnd()
12544
    oprot.writeFieldStop()
12545
    oprot.writeStructEnd()
12546
 
12547
  def validate(self):
12548
    return
12549
 
12550
 
12551
  def __repr__(self):
12552
    L = ['%s=%r' % (key, value)
12553
      for key, value in self.__dict__.iteritems()]
12554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12555
 
12556
  def __eq__(self, other):
12557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12558
 
12559
  def __ne__(self, other):
12560
    return not (self == other)
12561
 
12562
class isValidCatalogItemId_args:
12563
  """
12564
  Attributes:
12565
   - catalog_item_id
12566
  """
12567
 
12568
  thrift_spec = (
12569
    None, # 0
12570
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12571
  )
12572
 
12573
  def __init__(self, catalog_item_id=None,):
12574
    self.catalog_item_id = catalog_item_id
12575
 
12576
  def read(self, iprot):
12577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12579
      return
12580
    iprot.readStructBegin()
12581
    while True:
12582
      (fname, ftype, fid) = iprot.readFieldBegin()
12583
      if ftype == TType.STOP:
12584
        break
12585
      if fid == 1:
12586
        if ftype == TType.I64:
12587
          self.catalog_item_id = iprot.readI64();
12588
        else:
12589
          iprot.skip(ftype)
12590
      else:
12591
        iprot.skip(ftype)
12592
      iprot.readFieldEnd()
12593
    iprot.readStructEnd()
12594
 
12595
  def write(self, oprot):
12596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12598
      return
12599
    oprot.writeStructBegin('isValidCatalogItemId_args')
12600
    if self.catalog_item_id is not None:
12601
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12602
      oprot.writeI64(self.catalog_item_id)
12603
      oprot.writeFieldEnd()
12604
    oprot.writeFieldStop()
12605
    oprot.writeStructEnd()
12606
 
12607
  def validate(self):
12608
    return
12609
 
12610
 
12611
  def __repr__(self):
12612
    L = ['%s=%r' % (key, value)
12613
      for key, value in self.__dict__.iteritems()]
12614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12615
 
12616
  def __eq__(self, other):
12617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12618
 
12619
  def __ne__(self, other):
12620
    return not (self == other)
12621
 
12622
class isValidCatalogItemId_result:
12623
  """
12624
  Attributes:
12625
   - success
12626
  """
12627
 
12628
  thrift_spec = (
12629
    (0, TType.BOOL, 'success', None, None, ), # 0
12630
  )
12631
 
12632
  def __init__(self, success=None,):
12633
    self.success = success
12634
 
12635
  def read(self, iprot):
12636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12638
      return
12639
    iprot.readStructBegin()
12640
    while True:
12641
      (fname, ftype, fid) = iprot.readFieldBegin()
12642
      if ftype == TType.STOP:
12643
        break
12644
      if fid == 0:
12645
        if ftype == TType.BOOL:
12646
          self.success = iprot.readBool();
12647
        else:
12648
          iprot.skip(ftype)
12649
      else:
12650
        iprot.skip(ftype)
12651
      iprot.readFieldEnd()
12652
    iprot.readStructEnd()
12653
 
12654
  def write(self, oprot):
12655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12657
      return
12658
    oprot.writeStructBegin('isValidCatalogItemId_result')
12659
    if self.success is not None:
12660
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12661
      oprot.writeBool(self.success)
12662
      oprot.writeFieldEnd()
12663
    oprot.writeFieldStop()
12664
    oprot.writeStructEnd()
12665
 
12666
  def validate(self):
12667
    return
12668
 
12669
 
12670
  def __repr__(self):
12671
    L = ['%s=%r' % (key, value)
12672
      for key, value in self.__dict__.iteritems()]
12673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12674
 
12675
  def __eq__(self, other):
12676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12677
 
12678
  def __ne__(self, other):
12679
    return not (self == other)
6039 amit.gupta 12680
 
12681
class getVatPercentageForItem_args:
12682
  """
12683
  Attributes:
12684
   - itemId
12685
   - price
12686
  """
12687
 
12688
  thrift_spec = (
12689
    None, # 0
12690
    (1, TType.I64, 'itemId', None, None, ), # 1
12691
    (2, TType.DOUBLE, 'price', None, None, ), # 2
12692
  )
12693
 
12694
  def __init__(self, itemId=None, price=None,):
12695
    self.itemId = itemId
12696
    self.price = price
12697
 
12698
  def read(self, iprot):
12699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12701
      return
12702
    iprot.readStructBegin()
12703
    while True:
12704
      (fname, ftype, fid) = iprot.readFieldBegin()
12705
      if ftype == TType.STOP:
12706
        break
12707
      if fid == 1:
12708
        if ftype == TType.I64:
12709
          self.itemId = iprot.readI64();
12710
        else:
12711
          iprot.skip(ftype)
12712
      elif fid == 2:
12713
        if ftype == TType.DOUBLE:
12714
          self.price = iprot.readDouble();
12715
        else:
12716
          iprot.skip(ftype)
12717
      else:
12718
        iprot.skip(ftype)
12719
      iprot.readFieldEnd()
12720
    iprot.readStructEnd()
12721
 
12722
  def write(self, oprot):
12723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12725
      return
12726
    oprot.writeStructBegin('getVatPercentageForItem_args')
12727
    if self.itemId is not None:
12728
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12729
      oprot.writeI64(self.itemId)
12730
      oprot.writeFieldEnd()
12731
    if self.price is not None:
12732
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
12733
      oprot.writeDouble(self.price)
12734
      oprot.writeFieldEnd()
12735
    oprot.writeFieldStop()
12736
    oprot.writeStructEnd()
12737
 
12738
  def validate(self):
12739
    return
12740
 
12741
 
12742
  def __repr__(self):
12743
    L = ['%s=%r' % (key, value)
12744
      for key, value in self.__dict__.iteritems()]
12745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12746
 
12747
  def __eq__(self, other):
12748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12749
 
12750
  def __ne__(self, other):
12751
    return not (self == other)
12752
 
12753
class getVatPercentageForItem_result:
12754
  """
12755
  Attributes:
12756
   - success
12757
  """
12758
 
12759
  thrift_spec = (
12760
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12761
  )
12762
 
12763
  def __init__(self, success=None,):
12764
    self.success = success
12765
 
12766
  def read(self, iprot):
12767
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12768
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12769
      return
12770
    iprot.readStructBegin()
12771
    while True:
12772
      (fname, ftype, fid) = iprot.readFieldBegin()
12773
      if ftype == TType.STOP:
12774
        break
12775
      if fid == 0:
12776
        if ftype == TType.DOUBLE:
12777
          self.success = iprot.readDouble();
12778
        else:
12779
          iprot.skip(ftype)
12780
      else:
12781
        iprot.skip(ftype)
12782
      iprot.readFieldEnd()
12783
    iprot.readStructEnd()
12784
 
12785
  def write(self, oprot):
12786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12788
      return
12789
    oprot.writeStructBegin('getVatPercentageForItem_result')
12790
    if self.success is not None:
12791
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12792
      oprot.writeDouble(self.success)
12793
      oprot.writeFieldEnd()
12794
    oprot.writeFieldStop()
12795
    oprot.writeStructEnd()
12796
 
12797
  def validate(self):
12798
    return
12799
 
12800
 
12801
  def __repr__(self):
12802
    L = ['%s=%r' % (key, value)
12803
      for key, value in self.__dict__.iteritems()]
12804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12805
 
12806
  def __eq__(self, other):
12807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12808
 
12809
  def __ne__(self, other):
12810
    return not (self == other)
12811
 
12812
class getVatAmountForItem_args:
12813
  """
12814
  Attributes:
12815
   - itemId
12816
   - price
12817
  """
12818
 
12819
  thrift_spec = (
12820
    None, # 0
12821
    (1, TType.I64, 'itemId', None, None, ), # 1
12822
    (2, TType.DOUBLE, 'price', None, None, ), # 2
12823
  )
12824
 
12825
  def __init__(self, itemId=None, price=None,):
12826
    self.itemId = itemId
12827
    self.price = price
12828
 
12829
  def read(self, iprot):
12830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12832
      return
12833
    iprot.readStructBegin()
12834
    while True:
12835
      (fname, ftype, fid) = iprot.readFieldBegin()
12836
      if ftype == TType.STOP:
12837
        break
12838
      if fid == 1:
12839
        if ftype == TType.I64:
12840
          self.itemId = iprot.readI64();
12841
        else:
12842
          iprot.skip(ftype)
12843
      elif fid == 2:
12844
        if ftype == TType.DOUBLE:
12845
          self.price = iprot.readDouble();
12846
        else:
12847
          iprot.skip(ftype)
12848
      else:
12849
        iprot.skip(ftype)
12850
      iprot.readFieldEnd()
12851
    iprot.readStructEnd()
12852
 
12853
  def write(self, oprot):
12854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12856
      return
12857
    oprot.writeStructBegin('getVatAmountForItem_args')
12858
    if self.itemId is not None:
12859
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12860
      oprot.writeI64(self.itemId)
12861
      oprot.writeFieldEnd()
12862
    if self.price is not None:
12863
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
12864
      oprot.writeDouble(self.price)
12865
      oprot.writeFieldEnd()
12866
    oprot.writeFieldStop()
12867
    oprot.writeStructEnd()
12868
 
12869
  def validate(self):
12870
    return
12871
 
12872
 
12873
  def __repr__(self):
12874
    L = ['%s=%r' % (key, value)
12875
      for key, value in self.__dict__.iteritems()]
12876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12877
 
12878
  def __eq__(self, other):
12879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12880
 
12881
  def __ne__(self, other):
12882
    return not (self == other)
12883
 
12884
class getVatAmountForItem_result:
12885
  """
12886
  Attributes:
12887
   - success
12888
  """
12889
 
12890
  thrift_spec = (
12891
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12892
  )
12893
 
12894
  def __init__(self, success=None,):
12895
    self.success = success
12896
 
12897
  def read(self, iprot):
12898
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12899
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12900
      return
12901
    iprot.readStructBegin()
12902
    while True:
12903
      (fname, ftype, fid) = iprot.readFieldBegin()
12904
      if ftype == TType.STOP:
12905
        break
12906
      if fid == 0:
12907
        if ftype == TType.DOUBLE:
12908
          self.success = iprot.readDouble();
12909
        else:
12910
          iprot.skip(ftype)
12911
      else:
12912
        iprot.skip(ftype)
12913
      iprot.readFieldEnd()
12914
    iprot.readStructEnd()
12915
 
12916
  def write(self, oprot):
12917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12919
      return
12920
    oprot.writeStructBegin('getVatAmountForItem_result')
12921
    if self.success is not None:
12922
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12923
      oprot.writeDouble(self.success)
12924
      oprot.writeFieldEnd()
12925
    oprot.writeFieldStop()
12926
    oprot.writeStructEnd()
12927
 
12928
  def validate(self):
12929
    return
12930
 
12931
 
12932
  def __repr__(self):
12933
    L = ['%s=%r' % (key, value)
12934
      for key, value in self.__dict__.iteritems()]
12935
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12936
 
12937
  def __eq__(self, other):
12938
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12939
 
12940
  def __ne__(self, other):
12941
    return not (self == other)
6531 vikram.rag 12942
 
12943
class getAllIgnoredInventoryUpdateItemsList_args:
12944
  """
12945
  Attributes:
12946
   - offset
12947
   - limit
12948
  """
12949
 
12950
  thrift_spec = (
12951
    None, # 0
12952
    (1, TType.I32, 'offset', None, None, ), # 1
12953
    (2, TType.I32, 'limit', None, None, ), # 2
12954
  )
12955
 
12956
  def __init__(self, offset=None, limit=None,):
12957
    self.offset = offset
12958
    self.limit = limit
12959
 
12960
  def read(self, iprot):
12961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12963
      return
12964
    iprot.readStructBegin()
12965
    while True:
12966
      (fname, ftype, fid) = iprot.readFieldBegin()
12967
      if ftype == TType.STOP:
12968
        break
12969
      if fid == 1:
12970
        if ftype == TType.I32:
12971
          self.offset = iprot.readI32();
12972
        else:
12973
          iprot.skip(ftype)
12974
      elif fid == 2:
12975
        if ftype == TType.I32:
12976
          self.limit = iprot.readI32();
12977
        else:
12978
          iprot.skip(ftype)
12979
      else:
12980
        iprot.skip(ftype)
12981
      iprot.readFieldEnd()
12982
    iprot.readStructEnd()
12983
 
12984
  def write(self, oprot):
12985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12987
      return
12988
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
12989
    if self.offset is not None:
12990
      oprot.writeFieldBegin('offset', TType.I32, 1)
12991
      oprot.writeI32(self.offset)
12992
      oprot.writeFieldEnd()
12993
    if self.limit is not None:
12994
      oprot.writeFieldBegin('limit', TType.I32, 2)
12995
      oprot.writeI32(self.limit)
12996
      oprot.writeFieldEnd()
12997
    oprot.writeFieldStop()
12998
    oprot.writeStructEnd()
12999
 
13000
  def validate(self):
13001
    return
13002
 
13003
 
13004
  def __repr__(self):
13005
    L = ['%s=%r' % (key, value)
13006
      for key, value in self.__dict__.iteritems()]
13007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13008
 
13009
  def __eq__(self, other):
13010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13011
 
13012
  def __ne__(self, other):
13013
    return not (self == other)
13014
 
13015
class getAllIgnoredInventoryUpdateItemsList_result:
13016
  """
13017
  Attributes:
13018
   - success
13019
  """
13020
 
13021
  thrift_spec = (
13022
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13023
  )
13024
 
13025
  def __init__(self, success=None,):
13026
    self.success = success
13027
 
13028
  def read(self, iprot):
13029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13031
      return
13032
    iprot.readStructBegin()
13033
    while True:
13034
      (fname, ftype, fid) = iprot.readFieldBegin()
13035
      if ftype == TType.STOP:
13036
        break
13037
      if fid == 0:
13038
        if ftype == TType.LIST:
13039
          self.success = []
13040
          (_etype250, _size247) = iprot.readListBegin()
13041
          for _i251 in xrange(_size247):
13042
            _elem252 = Item()
13043
            _elem252.read(iprot)
13044
            self.success.append(_elem252)
13045
          iprot.readListEnd()
13046
        else:
13047
          iprot.skip(ftype)
13048
      else:
13049
        iprot.skip(ftype)
13050
      iprot.readFieldEnd()
13051
    iprot.readStructEnd()
13052
 
13053
  def write(self, oprot):
13054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13056
      return
13057
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
13058
    if self.success is not None:
13059
      oprot.writeFieldBegin('success', TType.LIST, 0)
13060
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13061
      for iter253 in self.success:
13062
        iter253.write(oprot)
13063
      oprot.writeListEnd()
13064
      oprot.writeFieldEnd()
13065
    oprot.writeFieldStop()
13066
    oprot.writeStructEnd()
13067
 
13068
  def validate(self):
13069
    return
13070
 
13071
 
13072
  def __repr__(self):
13073
    L = ['%s=%r' % (key, value)
13074
      for key, value in self.__dict__.iteritems()]
13075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13076
 
13077
  def __eq__(self, other):
13078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13079
 
13080
  def __ne__(self, other):
13081
    return not (self == other)
6805 anupam.sin 13082
 
13083
class getInsuranceAmount_args:
13084
  """
13085
  Attributes:
13086
   - itemId
13087
   - insurerId
13088
   - quantity
13089
  """
13090
 
13091
  thrift_spec = (
13092
    None, # 0
13093
    (1, TType.I64, 'itemId', None, None, ), # 1
13094
    (2, TType.I64, 'insurerId', None, None, ), # 2
13095
    (3, TType.I64, 'quantity', None, None, ), # 3
13096
  )
13097
 
13098
  def __init__(self, itemId=None, insurerId=None, quantity=None,):
13099
    self.itemId = itemId
13100
    self.insurerId = insurerId
13101
    self.quantity = quantity
13102
 
13103
  def read(self, iprot):
13104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13106
      return
13107
    iprot.readStructBegin()
13108
    while True:
13109
      (fname, ftype, fid) = iprot.readFieldBegin()
13110
      if ftype == TType.STOP:
13111
        break
13112
      if fid == 1:
13113
        if ftype == TType.I64:
13114
          self.itemId = iprot.readI64();
13115
        else:
13116
          iprot.skip(ftype)
13117
      elif fid == 2:
13118
        if ftype == TType.I64:
13119
          self.insurerId = iprot.readI64();
13120
        else:
13121
          iprot.skip(ftype)
13122
      elif fid == 3:
13123
        if ftype == TType.I64:
13124
          self.quantity = iprot.readI64();
13125
        else:
13126
          iprot.skip(ftype)
13127
      else:
13128
        iprot.skip(ftype)
13129
      iprot.readFieldEnd()
13130
    iprot.readStructEnd()
13131
 
13132
  def write(self, oprot):
13133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13135
      return
13136
    oprot.writeStructBegin('getInsuranceAmount_args')
13137
    if self.itemId is not None:
13138
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13139
      oprot.writeI64(self.itemId)
13140
      oprot.writeFieldEnd()
13141
    if self.insurerId is not None:
13142
      oprot.writeFieldBegin('insurerId', TType.I64, 2)
13143
      oprot.writeI64(self.insurerId)
13144
      oprot.writeFieldEnd()
13145
    if self.quantity is not None:
13146
      oprot.writeFieldBegin('quantity', TType.I64, 3)
13147
      oprot.writeI64(self.quantity)
13148
      oprot.writeFieldEnd()
13149
    oprot.writeFieldStop()
13150
    oprot.writeStructEnd()
13151
 
13152
  def validate(self):
13153
    return
13154
 
13155
 
13156
  def __repr__(self):
13157
    L = ['%s=%r' % (key, value)
13158
      for key, value in self.__dict__.iteritems()]
13159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13160
 
13161
  def __eq__(self, other):
13162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13163
 
13164
  def __ne__(self, other):
13165
    return not (self == other)
13166
 
13167
class getInsuranceAmount_result:
13168
  """
13169
  Attributes:
13170
   - success
13171
  """
13172
 
13173
  thrift_spec = (
13174
    (0, TType.I64, 'success', None, None, ), # 0
13175
  )
13176
 
13177
  def __init__(self, success=None,):
13178
    self.success = success
13179
 
13180
  def read(self, iprot):
13181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13183
      return
13184
    iprot.readStructBegin()
13185
    while True:
13186
      (fname, ftype, fid) = iprot.readFieldBegin()
13187
      if ftype == TType.STOP:
13188
        break
13189
      if fid == 0:
13190
        if ftype == TType.I64:
13191
          self.success = iprot.readI64();
13192
        else:
13193
          iprot.skip(ftype)
13194
      else:
13195
        iprot.skip(ftype)
13196
      iprot.readFieldEnd()
13197
    iprot.readStructEnd()
13198
 
13199
  def write(self, oprot):
13200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13202
      return
13203
    oprot.writeStructBegin('getInsuranceAmount_result')
13204
    if self.success is not None:
13205
      oprot.writeFieldBegin('success', TType.I64, 0)
13206
      oprot.writeI64(self.success)
13207
      oprot.writeFieldEnd()
13208
    oprot.writeFieldStop()
13209
    oprot.writeStructEnd()
13210
 
13211
  def validate(self):
13212
    return
13213
 
13214
 
13215
  def __repr__(self):
13216
    L = ['%s=%r' % (key, value)
13217
      for key, value in self.__dict__.iteritems()]
13218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13219
 
13220
  def __eq__(self, other):
13221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13222
 
13223
  def __ne__(self, other):
13224
    return not (self == other)
13225
 
13226
class getInsurer_args:
13227
  """
13228
  Attributes:
13229
   - insurerId
13230
  """
13231
 
13232
  thrift_spec = (
13233
    None, # 0
13234
    (1, TType.I64, 'insurerId', None, None, ), # 1
13235
  )
13236
 
13237
  def __init__(self, insurerId=None,):
13238
    self.insurerId = insurerId
13239
 
13240
  def read(self, iprot):
13241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13243
      return
13244
    iprot.readStructBegin()
13245
    while True:
13246
      (fname, ftype, fid) = iprot.readFieldBegin()
13247
      if ftype == TType.STOP:
13248
        break
13249
      if fid == 1:
13250
        if ftype == TType.I64:
13251
          self.insurerId = iprot.readI64();
13252
        else:
13253
          iprot.skip(ftype)
13254
      else:
13255
        iprot.skip(ftype)
13256
      iprot.readFieldEnd()
13257
    iprot.readStructEnd()
13258
 
13259
  def write(self, oprot):
13260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13262
      return
13263
    oprot.writeStructBegin('getInsurer_args')
13264
    if self.insurerId is not None:
13265
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
13266
      oprot.writeI64(self.insurerId)
13267
      oprot.writeFieldEnd()
13268
    oprot.writeFieldStop()
13269
    oprot.writeStructEnd()
13270
 
13271
  def validate(self):
13272
    return
13273
 
13274
 
13275
  def __repr__(self):
13276
    L = ['%s=%r' % (key, value)
13277
      for key, value in self.__dict__.iteritems()]
13278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13279
 
13280
  def __eq__(self, other):
13281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13282
 
13283
  def __ne__(self, other):
13284
    return not (self == other)
13285
 
13286
class getInsurer_result:
13287
  """
13288
  Attributes:
13289
   - success
13290
  """
13291
 
13292
  thrift_spec = (
13293
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
13294
  )
13295
 
13296
  def __init__(self, success=None,):
13297
    self.success = success
13298
 
13299
  def read(self, iprot):
13300
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13301
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13302
      return
13303
    iprot.readStructBegin()
13304
    while True:
13305
      (fname, ftype, fid) = iprot.readFieldBegin()
13306
      if ftype == TType.STOP:
13307
        break
13308
      if fid == 0:
13309
        if ftype == TType.STRUCT:
13310
          self.success = Insurer()
13311
          self.success.read(iprot)
13312
        else:
13313
          iprot.skip(ftype)
13314
      else:
13315
        iprot.skip(ftype)
13316
      iprot.readFieldEnd()
13317
    iprot.readStructEnd()
13318
 
13319
  def write(self, oprot):
13320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13322
      return
13323
    oprot.writeStructBegin('getInsurer_result')
13324
    if self.success is not None:
13325
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13326
      self.success.write(oprot)
13327
      oprot.writeFieldEnd()
13328
    oprot.writeFieldStop()
13329
    oprot.writeStructEnd()
13330
 
13331
  def validate(self):
13332
    return
13333
 
13334
 
13335
  def __repr__(self):
13336
    L = ['%s=%r' % (key, value)
13337
      for key, value in self.__dict__.iteritems()]
13338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13339
 
13340
  def __eq__(self, other):
13341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13342
 
13343
  def __ne__(self, other):
13344
    return not (self == other)