Subversion Repositories SmartDukaan

Rev

Rev 6838 | Rev 6849 | 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
 
6845 amit.gupta 306
  def getAllEntityTags(self, ):
307
    pass
308
 
5944 mandeep.dh 309
  def deleteSimilarItem(self, itemId, catalogItemId):
310
    """
311
    Delete similar item.
312
 
313
    Parameters:
314
     - itemId
315
     - catalogItemId
316
    """
317
    pass
318
 
319
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
320
    """
321
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
322
    If yes, returns the itemId else returns 0
323
 
324
    Parameters:
325
     - brand
326
     - modelNumber
327
     - modelName
328
     - color
329
    """
330
    pass
331
 
332
  def validateRiskyStatus(self, itemId):
333
    """
334
    Check wether item is risky and change status if inventory is not available for risky items
335
 
336
    Parameters:
337
     - itemId
338
    """
339
    pass
340
 
341
  def changeItemRiskyFlag(self, itemId, risky):
342
    """
343
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
344
 
345
    Parameters:
346
     - itemId
347
     - risky
348
    """
349
    pass
350
 
351
  def getItemsByRiskyFlag(self, ):
352
    """
353
    Returns list of items marked as risky.
354
    """
355
    pass
356
 
357
  def getItemsForMasterSheet(self, category, brand):
358
    """
359
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
360
 
361
    Parameters:
362
     - category
363
     - brand
364
    """
365
    pass
366
 
367
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
368
    """
369
    Returns list of catalog ids of items with same similarity index as of the given itemId
370
 
371
    Parameters:
372
     - beginIndex
373
     - totalItems
374
     - itemId
375
    """
376
    pass
377
 
378
  def addProductNotification(self, itemId, email):
379
    """
380
    Add user requests for out of stock items. Once user will ask for notify me an entry will
381
 
382
    Parameters:
383
     - itemId
384
     - email
385
    """
386
    pass
387
 
388
  def sendProductNotifications(self, ):
389
    """
390
    Send the product notifications to the users for items which has stock.
391
    """
392
    pass
393
 
394
  def getAllBrandsByCategory(self, categoryId):
395
    """
396
    Returns list of brand names for a given category Id
397
 
398
    Parameters:
399
     - categoryId
400
    """
401
    pass
402
 
403
  def getAllBrands(self, ):
404
    """
405
    Returns list of brand names
406
    """
407
    pass
408
 
409
  def getAllSources(self, ):
410
    """
411
    Return list of all sources
412
    """
413
    pass
414
 
415
  def getItemPricingBySource(self, itemId, sourceId):
416
    """
417
    Returns the pricing information of an item. If no information is found, exception will be thrown.
418
 
419
    Parameters:
420
     - itemId
421
     - sourceId
422
    """
423
    pass
424
 
425
  def addSourceItemPricing(self, sourceItemPricing):
426
    """
427
    Adds prices to be displayed corresponding to the item if user comes from a source.
428
    If item is not found or source is not found, it will throw exception.
429
 
430
    Parameters:
431
     - sourceItemPricing
432
    """
433
    pass
434
 
435
  def getAllSourcePricing(self, itemId):
436
    """
437
    Returns the list of source pricing information of an item.
438
    Raises an exception if item not found corresponding to itemId
439
 
440
    Parameters:
441
     - itemId
442
    """
443
    pass
444
 
445
  def getItemForSource(self, item_id, sourceId):
446
    """
447
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
448
 
449
    Parameters:
450
     - item_id
451
     - sourceId
452
    """
453
    pass
454
 
455
  def searchItemsInRange(self, searchTerms, offset, limit):
456
    """
457
    Searches items matching the the given terms in the catalog and returns results within the specified range.
458
 
459
    Parameters:
460
     - searchTerms
461
     - offset
462
     - limit
463
    """
464
    pass
465
 
466
  def getSearchResultCount(self, searchTerms):
467
    """
468
    Gets the count of search results for the given search terms so that the user can go through all the pages.
469
 
470
    Parameters:
471
     - searchTerms
472
    """
473
    pass
474
 
475
  def getProductNotifications(self, startDateTime):
476
    """
477
    Returns a list of product notifications added after a supplied datetime
478
 
479
    Parameters:
480
     - startDateTime
481
    """
482
    pass
483
 
484
  def getProductNotificationRequestCount(self, startDateTime):
485
    """
486
    Returns a list of count of requests for product notification against each item
487
 
488
    Parameters:
489
     - startDateTime
490
    """
491
    pass
492
 
493
  def addAuthorizationLog(self, itemId, username, reason):
494
    """
495
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
496
 
497
    Parameters:
498
     - itemId
499
     - username
500
     - reason
501
    """
502
    pass
503
 
504
  def getClearanceSaleCatalogIds(self, ):
505
    pass
506
 
507
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
508
    """
509
    Parameters:
510
     - catalog_item_id
511
     - voucherType
512
     - voucherAmount
513
    """
514
    pass
515
 
516
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
517
    """
518
    Parameters:
519
     - catalog_item_id
520
     - voucherType
521
    """
522
    pass
523
 
524
  def getVoucherAmount(self, itemId, voucherType):
525
    """
526
    Parameters:
527
     - itemId
528
     - voucherType
529
    """
530
    pass
531
 
532
  def getAllItemVouchers(self, itemId):
533
    """
534
    Parameters:
535
     - itemId
536
    """
537
    pass
538
 
539
  def isValidCatalogItemId(self, catalog_item_id):
540
    """
541
    Parameters:
542
     - catalog_item_id
543
    """
544
    pass
545
 
6039 amit.gupta 546
  def getVatPercentageForItem(self, itemId, price):
547
    """
548
    Parameters:
549
     - itemId
550
     - price
551
    """
552
    pass
5944 mandeep.dh 553
 
6039 amit.gupta 554
  def getVatAmountForItem(self, itemId, price):
555
    """
556
    Parameters:
557
     - itemId
558
     - price
559
    """
560
    pass
561
 
6531 vikram.rag 562
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
563
    """
564
    Parameters:
565
     - offset
566
     - limit
567
    """
568
    pass
6039 amit.gupta 569
 
6821 amar.kumar 570
  def getAllAliveItems(self, ):
571
    pass
572
 
6805 anupam.sin 573
  def getInsuranceAmount(self, itemId, insurerId, quantity):
574
    """
575
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 576
 
6805 anupam.sin 577
    Parameters:
578
     - itemId
579
     - insurerId
580
     - quantity
581
    """
582
    pass
583
 
584
  def getInsurer(self, insurerId):
585
    """
586
    Parameters:
587
     - insurerId
588
    """
589
    pass
590
 
6838 vikram.rag 591
  def getAllInsurers(self, ):
592
    pass
6805 anupam.sin 593
 
6838 vikram.rag 594
 
5944 mandeep.dh 595
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
596
  def __init__(self, iprot, oprot=None):
597
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
598
 
599
  def addItem(self, item):
600
    """
601
    Availability and inventory attributes
602
 
603
    Parameters:
604
     - item
605
    """
606
    self.send_addItem(item)
607
    return self.recv_addItem()
608
 
609
  def send_addItem(self, item):
610
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
611
    args = addItem_args()
612
    args.item = item
613
    args.write(self._oprot)
614
    self._oprot.writeMessageEnd()
615
    self._oprot.trans.flush()
616
 
617
  def recv_addItem(self, ):
618
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
619
    if mtype == TMessageType.EXCEPTION:
620
      x = TApplicationException()
621
      x.read(self._iprot)
622
      self._iprot.readMessageEnd()
623
      raise x
624
    result = addItem_result()
625
    result.read(self._iprot)
626
    self._iprot.readMessageEnd()
627
    if result.success is not None:
628
      return result.success
629
    if result.cex is not None:
630
      raise result.cex
631
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
632
 
633
  def updateItem(self, item):
634
    """
635
    Parameters:
636
     - item
637
    """
638
    self.send_updateItem(item)
639
    return self.recv_updateItem()
640
 
641
  def send_updateItem(self, item):
642
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
643
    args = updateItem_args()
644
    args.item = item
645
    args.write(self._oprot)
646
    self._oprot.writeMessageEnd()
647
    self._oprot.trans.flush()
648
 
649
  def recv_updateItem(self, ):
650
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
651
    if mtype == TMessageType.EXCEPTION:
652
      x = TApplicationException()
653
      x.read(self._iprot)
654
      self._iprot.readMessageEnd()
655
      raise x
656
    result = updateItem_result()
657
    result.read(self._iprot)
658
    self._iprot.readMessageEnd()
659
    if result.success is not None:
660
      return result.success
661
    if result.cex is not None:
662
      raise result.cex
663
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
664
 
665
  def isActive(self, itemId):
666
    """
667
    Checks if the item given to the corresponding itemId is active. If it's active,
668
    whether it's risky and if it's risky, its inventory position.
669
 
670
    Parameters:
671
     - itemId
672
    """
673
    self.send_isActive(itemId)
674
    return self.recv_isActive()
675
 
676
  def send_isActive(self, itemId):
677
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
678
    args = isActive_args()
679
    args.itemId = itemId
680
    args.write(self._oprot)
681
    self._oprot.writeMessageEnd()
682
    self._oprot.trans.flush()
683
 
684
  def recv_isActive(self, ):
685
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
686
    if mtype == TMessageType.EXCEPTION:
687
      x = TApplicationException()
688
      x.read(self._iprot)
689
      self._iprot.readMessageEnd()
690
      raise x
691
    result = isActive_result()
692
    result.read(self._iprot)
693
    self._iprot.readMessageEnd()
694
    if result.success is not None:
695
      return result.success
696
    if result.isex is not None:
697
      raise result.isex
698
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
699
 
700
  def getItemStatusDescription(self, itemId):
701
    """
702
    Parameters:
703
     - itemId
704
    """
705
    self.send_getItemStatusDescription(itemId)
706
    return self.recv_getItemStatusDescription()
707
 
708
  def send_getItemStatusDescription(self, itemId):
709
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
710
    args = getItemStatusDescription_args()
711
    args.itemId = itemId
712
    args.write(self._oprot)
713
    self._oprot.writeMessageEnd()
714
    self._oprot.trans.flush()
715
 
716
  def recv_getItemStatusDescription(self, ):
717
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
718
    if mtype == TMessageType.EXCEPTION:
719
      x = TApplicationException()
720
      x.read(self._iprot)
721
      self._iprot.readMessageEnd()
722
      raise x
723
    result = getItemStatusDescription_result()
724
    result.read(self._iprot)
725
    self._iprot.readMessageEnd()
726
    if result.success is not None:
727
      return result.success
728
    if result.isex is not None:
729
      raise result.isex
730
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
731
 
732
  def startItemOn(self, item_id, timestamp):
733
    """
734
    Parameters:
735
     - item_id
736
     - timestamp
737
    """
738
    self.send_startItemOn(item_id, timestamp)
739
    self.recv_startItemOn()
740
 
741
  def send_startItemOn(self, item_id, timestamp):
742
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
743
    args = startItemOn_args()
744
    args.item_id = item_id
745
    args.timestamp = timestamp
746
    args.write(self._oprot)
747
    self._oprot.writeMessageEnd()
748
    self._oprot.trans.flush()
749
 
750
  def recv_startItemOn(self, ):
751
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
752
    if mtype == TMessageType.EXCEPTION:
753
      x = TApplicationException()
754
      x.read(self._iprot)
755
      self._iprot.readMessageEnd()
756
      raise x
757
    result = startItemOn_result()
758
    result.read(self._iprot)
759
    self._iprot.readMessageEnd()
760
    if result.cex is not None:
761
      raise result.cex
762
    return
763
 
764
  def retireItemOn(self, item_id, timestamp):
765
    """
766
    Parameters:
767
     - item_id
768
     - timestamp
769
    """
770
    self.send_retireItemOn(item_id, timestamp)
771
    self.recv_retireItemOn()
772
 
773
  def send_retireItemOn(self, item_id, timestamp):
774
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
775
    args = retireItemOn_args()
776
    args.item_id = item_id
777
    args.timestamp = timestamp
778
    args.write(self._oprot)
779
    self._oprot.writeMessageEnd()
780
    self._oprot.trans.flush()
781
 
782
  def recv_retireItemOn(self, ):
783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
784
    if mtype == TMessageType.EXCEPTION:
785
      x = TApplicationException()
786
      x.read(self._iprot)
787
      self._iprot.readMessageEnd()
788
      raise x
789
    result = retireItemOn_result()
790
    result.read(self._iprot)
791
    self._iprot.readMessageEnd()
792
    if result.cex is not None:
793
      raise result.cex
794
    return
795
 
796
  def changeItemStatus(self, item_id, timestamp, newstatus):
797
    """
798
    Parameters:
799
     - item_id
800
     - timestamp
801
     - newstatus
802
    """
803
    self.send_changeItemStatus(item_id, timestamp, newstatus)
804
    self.recv_changeItemStatus()
805
 
806
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
807
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
808
    args = changeItemStatus_args()
809
    args.item_id = item_id
810
    args.timestamp = timestamp
811
    args.newstatus = newstatus
812
    args.write(self._oprot)
813
    self._oprot.writeMessageEnd()
814
    self._oprot.trans.flush()
815
 
816
  def recv_changeItemStatus(self, ):
817
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
818
    if mtype == TMessageType.EXCEPTION:
819
      x = TApplicationException()
820
      x.read(self._iprot)
821
      self._iprot.readMessageEnd()
822
      raise x
823
    result = changeItemStatus_result()
824
    result.read(self._iprot)
825
    self._iprot.readMessageEnd()
826
    if result.cex is not None:
827
      raise result.cex
828
    return
829
 
830
  def getItem(self, item_id):
831
    """
832
    Parameters:
833
     - item_id
834
    """
835
    self.send_getItem(item_id)
836
    return self.recv_getItem()
837
 
838
  def send_getItem(self, item_id):
839
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
840
    args = getItem_args()
841
    args.item_id = item_id
842
    args.write(self._oprot)
843
    self._oprot.writeMessageEnd()
844
    self._oprot.trans.flush()
845
 
846
  def recv_getItem(self, ):
847
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
848
    if mtype == TMessageType.EXCEPTION:
849
      x = TApplicationException()
850
      x.read(self._iprot)
851
      self._iprot.readMessageEnd()
852
      raise x
853
    result = getItem_result()
854
    result.read(self._iprot)
855
    self._iprot.readMessageEnd()
856
    if result.success is not None:
857
      return result.success
858
    if result.cex is not None:
859
      raise result.cex
860
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
861
 
862
  def getItemsByCatalogId(self, catalog_item_id):
863
    """
864
    Parameters:
865
     - catalog_item_id
866
    """
867
    self.send_getItemsByCatalogId(catalog_item_id)
868
    return self.recv_getItemsByCatalogId()
869
 
870
  def send_getItemsByCatalogId(self, catalog_item_id):
871
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
872
    args = getItemsByCatalogId_args()
873
    args.catalog_item_id = catalog_item_id
874
    args.write(self._oprot)
875
    self._oprot.writeMessageEnd()
876
    self._oprot.trans.flush()
877
 
878
  def recv_getItemsByCatalogId(self, ):
879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
880
    if mtype == TMessageType.EXCEPTION:
881
      x = TApplicationException()
882
      x.read(self._iprot)
883
      self._iprot.readMessageEnd()
884
      raise x
885
    result = getItemsByCatalogId_result()
886
    result.read(self._iprot)
887
    self._iprot.readMessageEnd()
888
    if result.success is not None:
889
      return result.success
890
    if result.cex is not None:
891
      raise result.cex
892
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
893
 
894
  def getValidItemsByCatalogId(self, catalog_item_id):
895
    """
896
    Parameters:
897
     - catalog_item_id
898
    """
899
    self.send_getValidItemsByCatalogId(catalog_item_id)
900
    return self.recv_getValidItemsByCatalogId()
901
 
902
  def send_getValidItemsByCatalogId(self, catalog_item_id):
903
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
904
    args = getValidItemsByCatalogId_args()
905
    args.catalog_item_id = catalog_item_id
906
    args.write(self._oprot)
907
    self._oprot.writeMessageEnd()
908
    self._oprot.trans.flush()
909
 
910
  def recv_getValidItemsByCatalogId(self, ):
911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
912
    if mtype == TMessageType.EXCEPTION:
913
      x = TApplicationException()
914
      x.read(self._iprot)
915
      self._iprot.readMessageEnd()
916
      raise x
917
    result = getValidItemsByCatalogId_result()
918
    result.read(self._iprot)
919
    self._iprot.readMessageEnd()
920
    if result.success is not None:
921
      return result.success
922
    if result.cex is not None:
923
      raise result.cex
924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
925
 
926
  def getAllItems(self, isActive):
927
    """
928
    Parameters:
929
     - isActive
930
    """
931
    self.send_getAllItems(isActive)
932
    return self.recv_getAllItems()
933
 
934
  def send_getAllItems(self, isActive):
935
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
936
    args = getAllItems_args()
937
    args.isActive = isActive
938
    args.write(self._oprot)
939
    self._oprot.writeMessageEnd()
940
    self._oprot.trans.flush()
941
 
942
  def recv_getAllItems(self, ):
943
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
944
    if mtype == TMessageType.EXCEPTION:
945
      x = TApplicationException()
946
      x.read(self._iprot)
947
      self._iprot.readMessageEnd()
948
      raise x
949
    result = getAllItems_result()
950
    result.read(self._iprot)
951
    self._iprot.readMessageEnd()
952
    if result.success is not None:
953
      return result.success
954
    if result.cex is not None:
955
      raise result.cex
956
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
957
 
958
  def getAllItemsByStatus(self, itemStatus):
959
    """
960
    Parameters:
961
     - itemStatus
962
    """
963
    self.send_getAllItemsByStatus(itemStatus)
964
    return self.recv_getAllItemsByStatus()
965
 
966
  def send_getAllItemsByStatus(self, itemStatus):
967
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
968
    args = getAllItemsByStatus_args()
969
    args.itemStatus = itemStatus
970
    args.write(self._oprot)
971
    self._oprot.writeMessageEnd()
972
    self._oprot.trans.flush()
973
 
974
  def recv_getAllItemsByStatus(self, ):
975
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
976
    if mtype == TMessageType.EXCEPTION:
977
      x = TApplicationException()
978
      x.read(self._iprot)
979
      self._iprot.readMessageEnd()
980
      raise x
981
    result = getAllItemsByStatus_result()
982
    result.read(self._iprot)
983
    self._iprot.readMessageEnd()
984
    if result.success is not None:
985
      return result.success
986
    if result.cex is not None:
987
      raise result.cex
988
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
989
 
990
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
991
    """
992
    Parameters:
993
     - entityId
994
     - category
995
     - brand
996
     - modelName
997
     - modelNumber
998
    """
999
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
1000
    return self.recv_markItemAsContentComplete()
1001
 
1002
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1003
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1004
    args = markItemAsContentComplete_args()
1005
    args.entityId = entityId
1006
    args.category = category
1007
    args.brand = brand
1008
    args.modelName = modelName
1009
    args.modelNumber = modelNumber
1010
    args.write(self._oprot)
1011
    self._oprot.writeMessageEnd()
1012
    self._oprot.trans.flush()
1013
 
1014
  def recv_markItemAsContentComplete(self, ):
1015
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1016
    if mtype == TMessageType.EXCEPTION:
1017
      x = TApplicationException()
1018
      x.read(self._iprot)
1019
      self._iprot.readMessageEnd()
1020
      raise x
1021
    result = markItemAsContentComplete_result()
1022
    result.read(self._iprot)
1023
    self._iprot.readMessageEnd()
1024
    if result.success is not None:
1025
      return result.success
1026
    if result.cex is not None:
1027
      raise result.cex
1028
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1029
 
1030
  def getAllItemsInRange(self, offset, limit):
1031
    """
1032
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1033
 
1034
    Parameters:
1035
     - offset
1036
     - limit
1037
    """
1038
    self.send_getAllItemsInRange(offset, limit)
1039
    return self.recv_getAllItemsInRange()
1040
 
1041
  def send_getAllItemsInRange(self, offset, limit):
1042
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1043
    args = getAllItemsInRange_args()
1044
    args.offset = offset
1045
    args.limit = limit
1046
    args.write(self._oprot)
1047
    self._oprot.writeMessageEnd()
1048
    self._oprot.trans.flush()
1049
 
1050
  def recv_getAllItemsInRange(self, ):
1051
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1052
    if mtype == TMessageType.EXCEPTION:
1053
      x = TApplicationException()
1054
      x.read(self._iprot)
1055
      self._iprot.readMessageEnd()
1056
      raise x
1057
    result = getAllItemsInRange_result()
1058
    result.read(self._iprot)
1059
    self._iprot.readMessageEnd()
1060
    if result.success is not None:
1061
      return result.success
1062
    if result.cex is not None:
1063
      raise result.cex
1064
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1065
 
1066
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1067
    """
1068
    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.
1069
 
1070
    Parameters:
1071
     - itemStatus
1072
     - offset
1073
     - limit
1074
    """
1075
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1076
    return self.recv_getAllItemsByStatusInRange()
1077
 
1078
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1079
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1080
    args = getAllItemsByStatusInRange_args()
1081
    args.itemStatus = itemStatus
1082
    args.offset = offset
1083
    args.limit = limit
1084
    args.write(self._oprot)
1085
    self._oprot.writeMessageEnd()
1086
    self._oprot.trans.flush()
1087
 
1088
  def recv_getAllItemsByStatusInRange(self, ):
1089
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1090
    if mtype == TMessageType.EXCEPTION:
1091
      x = TApplicationException()
1092
      x.read(self._iprot)
1093
      self._iprot.readMessageEnd()
1094
      raise x
1095
    result = getAllItemsByStatusInRange_result()
1096
    result.read(self._iprot)
1097
    self._iprot.readMessageEnd()
1098
    if result.success is not None:
1099
      return result.success
1100
    if result.cex is not None:
1101
      raise result.cex
1102
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1103
 
1104
  def getItemCountByStatus(self, useStatus, itemStatus):
1105
    """
1106
    Gets a count of all items by status
1107
 
1108
    Parameters:
1109
     - useStatus
1110
     - itemStatus
1111
    """
1112
    self.send_getItemCountByStatus(useStatus, itemStatus)
1113
    return self.recv_getItemCountByStatus()
1114
 
1115
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1116
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1117
    args = getItemCountByStatus_args()
1118
    args.useStatus = useStatus
1119
    args.itemStatus = itemStatus
1120
    args.write(self._oprot)
1121
    self._oprot.writeMessageEnd()
1122
    self._oprot.trans.flush()
1123
 
1124
  def recv_getItemCountByStatus(self, ):
1125
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1126
    if mtype == TMessageType.EXCEPTION:
1127
      x = TApplicationException()
1128
      x.read(self._iprot)
1129
      self._iprot.readMessageEnd()
1130
      raise x
1131
    result = getItemCountByStatus_result()
1132
    result.read(self._iprot)
1133
    self._iprot.readMessageEnd()
1134
    if result.success is not None:
1135
      return result.success
1136
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1137
 
1138
  def getBestSellers(self, ):
1139
    self.send_getBestSellers()
1140
    return self.recv_getBestSellers()
1141
 
1142
  def send_getBestSellers(self, ):
1143
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1144
    args = getBestSellers_args()
1145
    args.write(self._oprot)
1146
    self._oprot.writeMessageEnd()
1147
    self._oprot.trans.flush()
1148
 
1149
  def recv_getBestSellers(self, ):
1150
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1151
    if mtype == TMessageType.EXCEPTION:
1152
      x = TApplicationException()
1153
      x.read(self._iprot)
1154
      self._iprot.readMessageEnd()
1155
      raise x
1156
    result = getBestSellers_result()
1157
    result.read(self._iprot)
1158
    self._iprot.readMessageEnd()
1159
    if result.success is not None:
1160
      return result.success
1161
    if result.isex is not None:
1162
      raise result.isex
1163
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1164
 
1165
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1166
    """
1167
    Parameters:
1168
     - beginIndex
1169
     - totalItems
1170
     - brand
1171
     - category
1172
    """
1173
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1174
    return self.recv_getBestSellersCatalogIds()
1175
 
1176
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1177
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1178
    args = getBestSellersCatalogIds_args()
1179
    args.beginIndex = beginIndex
1180
    args.totalItems = totalItems
1181
    args.brand = brand
1182
    args.category = category
1183
    args.write(self._oprot)
1184
    self._oprot.writeMessageEnd()
1185
    self._oprot.trans.flush()
1186
 
1187
  def recv_getBestSellersCatalogIds(self, ):
1188
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1189
    if mtype == TMessageType.EXCEPTION:
1190
      x = TApplicationException()
1191
      x.read(self._iprot)
1192
      self._iprot.readMessageEnd()
1193
      raise x
1194
    result = getBestSellersCatalogIds_result()
1195
    result.read(self._iprot)
1196
    self._iprot.readMessageEnd()
1197
    if result.success is not None:
1198
      return result.success
1199
    if result.cex is not None:
1200
      raise result.cex
1201
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1202
 
1203
  def getBestSellersCount(self, ):
1204
    self.send_getBestSellersCount()
1205
    return self.recv_getBestSellersCount()
1206
 
1207
  def send_getBestSellersCount(self, ):
1208
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1209
    args = getBestSellersCount_args()
1210
    args.write(self._oprot)
1211
    self._oprot.writeMessageEnd()
1212
    self._oprot.trans.flush()
1213
 
1214
  def recv_getBestSellersCount(self, ):
1215
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1216
    if mtype == TMessageType.EXCEPTION:
1217
      x = TApplicationException()
1218
      x.read(self._iprot)
1219
      self._iprot.readMessageEnd()
1220
      raise x
1221
    result = getBestSellersCount_result()
1222
    result.read(self._iprot)
1223
    self._iprot.readMessageEnd()
1224
    if result.success is not None:
1225
      return result.success
1226
    if result.cex is not None:
1227
      raise result.cex
1228
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1229
 
1230
  def getBestDeals(self, ):
1231
    self.send_getBestDeals()
1232
    return self.recv_getBestDeals()
1233
 
1234
  def send_getBestDeals(self, ):
1235
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1236
    args = getBestDeals_args()
1237
    args.write(self._oprot)
1238
    self._oprot.writeMessageEnd()
1239
    self._oprot.trans.flush()
1240
 
1241
  def recv_getBestDeals(self, ):
1242
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1243
    if mtype == TMessageType.EXCEPTION:
1244
      x = TApplicationException()
1245
      x.read(self._iprot)
1246
      self._iprot.readMessageEnd()
1247
      raise x
1248
    result = getBestDeals_result()
1249
    result.read(self._iprot)
1250
    self._iprot.readMessageEnd()
1251
    if result.success is not None:
1252
      return result.success
1253
    if result.isex is not None:
1254
      raise result.isex
1255
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1256
 
1257
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1258
    """
1259
    Parameters:
1260
     - beginIndex
1261
     - totalItems
1262
     - brand
1263
     - category
1264
    """
1265
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1266
    return self.recv_getBestDealsCatalogIds()
1267
 
1268
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1269
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1270
    args = getBestDealsCatalogIds_args()
1271
    args.beginIndex = beginIndex
1272
    args.totalItems = totalItems
1273
    args.brand = brand
1274
    args.category = category
1275
    args.write(self._oprot)
1276
    self._oprot.writeMessageEnd()
1277
    self._oprot.trans.flush()
1278
 
1279
  def recv_getBestDealsCatalogIds(self, ):
1280
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1281
    if mtype == TMessageType.EXCEPTION:
1282
      x = TApplicationException()
1283
      x.read(self._iprot)
1284
      self._iprot.readMessageEnd()
1285
      raise x
1286
    result = getBestDealsCatalogIds_result()
1287
    result.read(self._iprot)
1288
    self._iprot.readMessageEnd()
1289
    if result.success is not None:
1290
      return result.success
1291
    if result.cex is not None:
1292
      raise result.cex
1293
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1294
 
1295
  def getBestDealsCount(self, ):
1296
    self.send_getBestDealsCount()
1297
    return self.recv_getBestDealsCount()
1298
 
1299
  def send_getBestDealsCount(self, ):
1300
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1301
    args = getBestDealsCount_args()
1302
    args.write(self._oprot)
1303
    self._oprot.writeMessageEnd()
1304
    self._oprot.trans.flush()
1305
 
1306
  def recv_getBestDealsCount(self, ):
1307
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1308
    if mtype == TMessageType.EXCEPTION:
1309
      x = TApplicationException()
1310
      x.read(self._iprot)
1311
      self._iprot.readMessageEnd()
1312
      raise x
1313
    result = getBestDealsCount_result()
1314
    result.read(self._iprot)
1315
    self._iprot.readMessageEnd()
1316
    if result.success is not None:
1317
      return result.success
1318
    if result.cex is not None:
1319
      raise result.cex
1320
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1321
 
1322
  def getComingSoon(self, ):
1323
    self.send_getComingSoon()
1324
    return self.recv_getComingSoon()
1325
 
1326
  def send_getComingSoon(self, ):
1327
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1328
    args = getComingSoon_args()
1329
    args.write(self._oprot)
1330
    self._oprot.writeMessageEnd()
1331
    self._oprot.trans.flush()
1332
 
1333
  def recv_getComingSoon(self, ):
1334
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1335
    if mtype == TMessageType.EXCEPTION:
1336
      x = TApplicationException()
1337
      x.read(self._iprot)
1338
      self._iprot.readMessageEnd()
1339
      raise x
1340
    result = getComingSoon_result()
1341
    result.read(self._iprot)
1342
    self._iprot.readMessageEnd()
1343
    if result.success is not None:
1344
      return result.success
1345
    if result.isex is not None:
1346
      raise result.isex
1347
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1348
 
1349
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1350
    """
1351
    Parameters:
1352
     - beginIndex
1353
     - totalItems
1354
     - brand
1355
     - category
1356
    """
1357
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1358
    return self.recv_getComingSoonCatalogIds()
1359
 
1360
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1361
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1362
    args = getComingSoonCatalogIds_args()
1363
    args.beginIndex = beginIndex
1364
    args.totalItems = totalItems
1365
    args.brand = brand
1366
    args.category = category
1367
    args.write(self._oprot)
1368
    self._oprot.writeMessageEnd()
1369
    self._oprot.trans.flush()
1370
 
1371
  def recv_getComingSoonCatalogIds(self, ):
1372
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1373
    if mtype == TMessageType.EXCEPTION:
1374
      x = TApplicationException()
1375
      x.read(self._iprot)
1376
      self._iprot.readMessageEnd()
1377
      raise x
1378
    result = getComingSoonCatalogIds_result()
1379
    result.read(self._iprot)
1380
    self._iprot.readMessageEnd()
1381
    if result.success is not None:
1382
      return result.success
1383
    if result.cex is not None:
1384
      raise result.cex
1385
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1386
 
1387
  def getComingSoonCount(self, ):
1388
    self.send_getComingSoonCount()
1389
    return self.recv_getComingSoonCount()
1390
 
1391
  def send_getComingSoonCount(self, ):
1392
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1393
    args = getComingSoonCount_args()
1394
    args.write(self._oprot)
1395
    self._oprot.writeMessageEnd()
1396
    self._oprot.trans.flush()
1397
 
1398
  def recv_getComingSoonCount(self, ):
1399
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1400
    if mtype == TMessageType.EXCEPTION:
1401
      x = TApplicationException()
1402
      x.read(self._iprot)
1403
      self._iprot.readMessageEnd()
1404
      raise x
1405
    result = getComingSoonCount_result()
1406
    result.read(self._iprot)
1407
    self._iprot.readMessageEnd()
1408
    if result.success is not None:
1409
      return result.success
1410
    if result.cex is not None:
1411
      raise result.cex
1412
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1413
 
1414
  def getLatestArrivals(self, ):
1415
    """
1416
    Returns a list of items sorted in the descending order by start date.
1417
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1418
    """
1419
    self.send_getLatestArrivals()
1420
    return self.recv_getLatestArrivals()
1421
 
1422
  def send_getLatestArrivals(self, ):
1423
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1424
    args = getLatestArrivals_args()
1425
    args.write(self._oprot)
1426
    self._oprot.writeMessageEnd()
1427
    self._oprot.trans.flush()
1428
 
1429
  def recv_getLatestArrivals(self, ):
1430
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1431
    if mtype == TMessageType.EXCEPTION:
1432
      x = TApplicationException()
1433
      x.read(self._iprot)
1434
      self._iprot.readMessageEnd()
1435
      raise x
1436
    result = getLatestArrivals_result()
1437
    result.read(self._iprot)
1438
    self._iprot.readMessageEnd()
1439
    if result.success is not None:
1440
      return result.success
1441
    if result.isex is not None:
1442
      raise result.isex
1443
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1444
 
1445
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1446
    """
1447
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1448
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1449
 
1450
    Parameters:
1451
     - beginIndex
1452
     - totalItems
1453
     - brand
1454
     - categories
1455
    """
1456
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1457
    return self.recv_getLatestArrivalsCatalogIds()
1458
 
1459
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1460
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1461
    args = getLatestArrivalsCatalogIds_args()
1462
    args.beginIndex = beginIndex
1463
    args.totalItems = totalItems
1464
    args.brand = brand
1465
    args.categories = categories
1466
    args.write(self._oprot)
1467
    self._oprot.writeMessageEnd()
1468
    self._oprot.trans.flush()
1469
 
1470
  def recv_getLatestArrivalsCatalogIds(self, ):
1471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1472
    if mtype == TMessageType.EXCEPTION:
1473
      x = TApplicationException()
1474
      x.read(self._iprot)
1475
      self._iprot.readMessageEnd()
1476
      raise x
1477
    result = getLatestArrivalsCatalogIds_result()
1478
    result.read(self._iprot)
1479
    self._iprot.readMessageEnd()
1480
    if result.success is not None:
1481
      return result.success
1482
    if result.cex is not None:
1483
      raise result.cex
1484
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1485
 
1486
  def getLatestArrivalsCount(self, ):
1487
    """
1488
    Get the total number of latest arrivals we are willing to show.
1489
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1490
    """
1491
    self.send_getLatestArrivalsCount()
1492
    return self.recv_getLatestArrivalsCount()
1493
 
1494
  def send_getLatestArrivalsCount(self, ):
1495
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1496
    args = getLatestArrivalsCount_args()
1497
    args.write(self._oprot)
1498
    self._oprot.writeMessageEnd()
1499
    self._oprot.trans.flush()
1500
 
1501
  def recv_getLatestArrivalsCount(self, ):
1502
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1503
    if mtype == TMessageType.EXCEPTION:
1504
      x = TApplicationException()
1505
      x.read(self._iprot)
1506
      self._iprot.readMessageEnd()
1507
      raise x
1508
    result = getLatestArrivalsCount_result()
1509
    result.read(self._iprot)
1510
    self._iprot.readMessageEnd()
1511
    if result.success is not None:
1512
      return result.success
1513
    if result.cex is not None:
1514
      raise result.cex
1515
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1516
 
1517
  def generateNewEntityID(self, ):
1518
    self.send_generateNewEntityID()
1519
    return self.recv_generateNewEntityID()
1520
 
1521
  def send_generateNewEntityID(self, ):
1522
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1523
    args = generateNewEntityID_args()
1524
    args.write(self._oprot)
1525
    self._oprot.writeMessageEnd()
1526
    self._oprot.trans.flush()
1527
 
1528
  def recv_generateNewEntityID(self, ):
1529
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1530
    if mtype == TMessageType.EXCEPTION:
1531
      x = TApplicationException()
1532
      x.read(self._iprot)
1533
      self._iprot.readMessageEnd()
1534
      raise x
1535
    result = generateNewEntityID_result()
1536
    result.read(self._iprot)
1537
    self._iprot.readMessageEnd()
1538
    if result.success is not None:
1539
      return result.success
1540
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1541
 
1542
  def addCategory(self, category):
1543
    """
1544
    All category related functions
1545
 
1546
    Parameters:
1547
     - category
1548
    """
1549
    self.send_addCategory(category)
1550
    return self.recv_addCategory()
1551
 
1552
  def send_addCategory(self, category):
1553
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1554
    args = addCategory_args()
1555
    args.category = category
1556
    args.write(self._oprot)
1557
    self._oprot.writeMessageEnd()
1558
    self._oprot.trans.flush()
1559
 
1560
  def recv_addCategory(self, ):
1561
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1562
    if mtype == TMessageType.EXCEPTION:
1563
      x = TApplicationException()
1564
      x.read(self._iprot)
1565
      self._iprot.readMessageEnd()
1566
      raise x
1567
    result = addCategory_result()
1568
    result.read(self._iprot)
1569
    self._iprot.readMessageEnd()
1570
    if result.success is not None:
1571
      return result.success
1572
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1573
 
1574
  def getCategory(self, id):
1575
    """
1576
    Parameters:
1577
     - id
1578
    """
1579
    self.send_getCategory(id)
1580
    return self.recv_getCategory()
1581
 
1582
  def send_getCategory(self, id):
1583
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1584
    args = getCategory_args()
1585
    args.id = id
1586
    args.write(self._oprot)
1587
    self._oprot.writeMessageEnd()
1588
    self._oprot.trans.flush()
1589
 
1590
  def recv_getCategory(self, ):
1591
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1592
    if mtype == TMessageType.EXCEPTION:
1593
      x = TApplicationException()
1594
      x.read(self._iprot)
1595
      self._iprot.readMessageEnd()
1596
      raise x
1597
    result = getCategory_result()
1598
    result.read(self._iprot)
1599
    self._iprot.readMessageEnd()
1600
    if result.success is not None:
1601
      return result.success
1602
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1603
 
1604
  def getAllCategories(self, ):
1605
    self.send_getAllCategories()
1606
    return self.recv_getAllCategories()
1607
 
1608
  def send_getAllCategories(self, ):
1609
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1610
    args = getAllCategories_args()
1611
    args.write(self._oprot)
1612
    self._oprot.writeMessageEnd()
1613
    self._oprot.trans.flush()
1614
 
1615
  def recv_getAllCategories(self, ):
1616
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1617
    if mtype == TMessageType.EXCEPTION:
1618
      x = TApplicationException()
1619
      x.read(self._iprot)
1620
      self._iprot.readMessageEnd()
1621
      raise x
1622
    result = getAllCategories_result()
1623
    result.read(self._iprot)
1624
    self._iprot.readMessageEnd()
1625
    if result.success is not None:
1626
      return result.success
1627
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1628
 
1629
  def getAllSimilarItems(self, itemId):
1630
    """
1631
    Returns the list of similar items.
1632
 
1633
    Parameters:
1634
     - itemId
1635
    """
1636
    self.send_getAllSimilarItems(itemId)
1637
    return self.recv_getAllSimilarItems()
1638
 
1639
  def send_getAllSimilarItems(self, itemId):
1640
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1641
    args = getAllSimilarItems_args()
1642
    args.itemId = itemId
1643
    args.write(self._oprot)
1644
    self._oprot.writeMessageEnd()
1645
    self._oprot.trans.flush()
1646
 
1647
  def recv_getAllSimilarItems(self, ):
1648
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1649
    if mtype == TMessageType.EXCEPTION:
1650
      x = TApplicationException()
1651
      x.read(self._iprot)
1652
      self._iprot.readMessageEnd()
1653
      raise x
1654
    result = getAllSimilarItems_result()
1655
    result.read(self._iprot)
1656
    self._iprot.readMessageEnd()
1657
    if result.success is not None:
1658
      return result.success
1659
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1660
 
1661
  def addSimilarItem(self, itemId, catalogItemId):
1662
    """
1663
    Adds similar item.
1664
 
1665
    Parameters:
1666
     - itemId
1667
     - catalogItemId
1668
    """
1669
    self.send_addSimilarItem(itemId, catalogItemId)
1670
    return self.recv_addSimilarItem()
1671
 
1672
  def send_addSimilarItem(self, itemId, catalogItemId):
1673
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1674
    args = addSimilarItem_args()
1675
    args.itemId = itemId
1676
    args.catalogItemId = catalogItemId
1677
    args.write(self._oprot)
1678
    self._oprot.writeMessageEnd()
1679
    self._oprot.trans.flush()
1680
 
1681
  def recv_addSimilarItem(self, ):
1682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1683
    if mtype == TMessageType.EXCEPTION:
1684
      x = TApplicationException()
1685
      x.read(self._iprot)
1686
      self._iprot.readMessageEnd()
1687
      raise x
1688
    result = addSimilarItem_result()
1689
    result.read(self._iprot)
1690
    self._iprot.readMessageEnd()
1691
    if result.success is not None:
1692
      return result.success
1693
    if result.cex is not None:
1694
      raise result.cex
1695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1696
 
6512 kshitij.so 1697
  def addTag(self, displayName, itemId):
1698
    """
1699
    Tag Related
1700
 
1701
    Parameters:
1702
     - displayName
1703
     - itemId
1704
    """
1705
    self.send_addTag(displayName, itemId)
1706
    return self.recv_addTag()
1707
 
1708
  def send_addTag(self, displayName, itemId):
1709
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1710
    args = addTag_args()
1711
    args.displayName = displayName
1712
    args.itemId = itemId
1713
    args.write(self._oprot)
1714
    self._oprot.writeMessageEnd()
1715
    self._oprot.trans.flush()
1716
 
1717
  def recv_addTag(self, ):
1718
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1719
    if mtype == TMessageType.EXCEPTION:
1720
      x = TApplicationException()
1721
      x.read(self._iprot)
1722
      self._iprot.readMessageEnd()
1723
      raise x
1724
    result = addTag_result()
1725
    result.read(self._iprot)
1726
    self._iprot.readMessageEnd()
1727
    if result.success is not None:
1728
      return result.success
1729
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1730
 
1731
  def deleteEntityTag(self, displayName, itemId):
1732
    """
1733
    Parameters:
1734
     - displayName
1735
     - itemId
1736
    """
1737
    self.send_deleteEntityTag(displayName, itemId)
1738
    return self.recv_deleteEntityTag()
1739
 
1740
  def send_deleteEntityTag(self, displayName, itemId):
1741
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1742
    args = deleteEntityTag_args()
1743
    args.displayName = displayName
1744
    args.itemId = itemId
1745
    args.write(self._oprot)
1746
    self._oprot.writeMessageEnd()
1747
    self._oprot.trans.flush()
1748
 
1749
  def recv_deleteEntityTag(self, ):
1750
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1751
    if mtype == TMessageType.EXCEPTION:
1752
      x = TApplicationException()
1753
      x.read(self._iprot)
1754
      self._iprot.readMessageEnd()
1755
      raise x
1756
    result = deleteEntityTag_result()
1757
    result.read(self._iprot)
1758
    self._iprot.readMessageEnd()
1759
    if result.success is not None:
1760
      return result.success
1761
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1762
 
1763
  def deleteTag(self, displayName):
1764
    """
1765
    Parameters:
1766
     - displayName
1767
    """
1768
    self.send_deleteTag(displayName)
1769
    return self.recv_deleteTag()
1770
 
1771
  def send_deleteTag(self, displayName):
1772
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1773
    args = deleteTag_args()
1774
    args.displayName = displayName
1775
    args.write(self._oprot)
1776
    self._oprot.writeMessageEnd()
1777
    self._oprot.trans.flush()
1778
 
1779
  def recv_deleteTag(self, ):
1780
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1781
    if mtype == TMessageType.EXCEPTION:
1782
      x = TApplicationException()
1783
      x.read(self._iprot)
1784
      self._iprot.readMessageEnd()
1785
      raise x
1786
    result = deleteTag_result()
1787
    result.read(self._iprot)
1788
    self._iprot.readMessageEnd()
1789
    if result.success is not None:
1790
      return result.success
1791
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1792
 
1793
  def getAllTags(self, ):
1794
    self.send_getAllTags()
1795
    return self.recv_getAllTags()
1796
 
1797
  def send_getAllTags(self, ):
1798
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1799
    args = getAllTags_args()
1800
    args.write(self._oprot)
1801
    self._oprot.writeMessageEnd()
1802
    self._oprot.trans.flush()
1803
 
1804
  def recv_getAllTags(self, ):
1805
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1806
    if mtype == TMessageType.EXCEPTION:
1807
      x = TApplicationException()
1808
      x.read(self._iprot)
1809
      self._iprot.readMessageEnd()
1810
      raise x
1811
    result = getAllTags_result()
1812
    result.read(self._iprot)
1813
    self._iprot.readMessageEnd()
1814
    if result.success is not None:
1815
      return result.success
1816
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1817
 
1818
  def getAllEntitiesByTagName(self, displayName):
1819
    """
1820
    Parameters:
1821
     - displayName
1822
    """
1823
    self.send_getAllEntitiesByTagName(displayName)
1824
    return self.recv_getAllEntitiesByTagName()
1825
 
1826
  def send_getAllEntitiesByTagName(self, displayName):
1827
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1828
    args = getAllEntitiesByTagName_args()
1829
    args.displayName = displayName
1830
    args.write(self._oprot)
1831
    self._oprot.writeMessageEnd()
1832
    self._oprot.trans.flush()
1833
 
1834
  def recv_getAllEntitiesByTagName(self, ):
1835
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1836
    if mtype == TMessageType.EXCEPTION:
1837
      x = TApplicationException()
1838
      x.read(self._iprot)
1839
      self._iprot.readMessageEnd()
1840
      raise x
1841
    result = getAllEntitiesByTagName_result()
1842
    result.read(self._iprot)
1843
    self._iprot.readMessageEnd()
1844
    if result.success is not None:
1845
      return result.success
1846
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1847
 
6845 amit.gupta 1848
  def getAllEntityTags(self, ):
1849
    self.send_getAllEntityTags()
1850
    return self.recv_getAllEntityTags()
1851
 
1852
  def send_getAllEntityTags(self, ):
1853
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
1854
    args = getAllEntityTags_args()
1855
    args.write(self._oprot)
1856
    self._oprot.writeMessageEnd()
1857
    self._oprot.trans.flush()
1858
 
1859
  def recv_getAllEntityTags(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 = getAllEntityTags_result()
1867
    result.read(self._iprot)
1868
    self._iprot.readMessageEnd()
1869
    if result.success is not None:
1870
      return result.success
1871
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1872
 
5944 mandeep.dh 1873
  def deleteSimilarItem(self, itemId, catalogItemId):
1874
    """
1875
    Delete similar item.
1876
 
1877
    Parameters:
1878
     - itemId
1879
     - catalogItemId
1880
    """
1881
    self.send_deleteSimilarItem(itemId, catalogItemId)
1882
    return self.recv_deleteSimilarItem()
1883
 
1884
  def send_deleteSimilarItem(self, itemId, catalogItemId):
1885
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
1886
    args = deleteSimilarItem_args()
1887
    args.itemId = itemId
1888
    args.catalogItemId = catalogItemId
1889
    args.write(self._oprot)
1890
    self._oprot.writeMessageEnd()
1891
    self._oprot.trans.flush()
1892
 
1893
  def recv_deleteSimilarItem(self, ):
1894
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1895
    if mtype == TMessageType.EXCEPTION:
1896
      x = TApplicationException()
1897
      x.read(self._iprot)
1898
      self._iprot.readMessageEnd()
1899
      raise x
1900
    result = deleteSimilarItem_result()
1901
    result.read(self._iprot)
1902
    self._iprot.readMessageEnd()
1903
    if result.success is not None:
1904
      return result.success
1905
    if result.cex is not None:
1906
      raise result.cex
1907
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
1908
 
1909
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
1910
    """
1911
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
1912
    If yes, returns the itemId else returns 0
1913
 
1914
    Parameters:
1915
     - brand
1916
     - modelNumber
1917
     - modelName
1918
     - color
1919
    """
1920
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
1921
    return self.recv_checkSimilarItem()
1922
 
1923
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
1924
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
1925
    args = checkSimilarItem_args()
1926
    args.brand = brand
1927
    args.modelNumber = modelNumber
1928
    args.modelName = modelName
1929
    args.color = color
1930
    args.write(self._oprot)
1931
    self._oprot.writeMessageEnd()
1932
    self._oprot.trans.flush()
1933
 
1934
  def recv_checkSimilarItem(self, ):
1935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1936
    if mtype == TMessageType.EXCEPTION:
1937
      x = TApplicationException()
1938
      x.read(self._iprot)
1939
      self._iprot.readMessageEnd()
1940
      raise x
1941
    result = checkSimilarItem_result()
1942
    result.read(self._iprot)
1943
    self._iprot.readMessageEnd()
1944
    if result.success is not None:
1945
      return result.success
1946
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
1947
 
1948
  def validateRiskyStatus(self, itemId):
1949
    """
1950
    Check wether item is risky and change status if inventory is not available for risky items
1951
 
1952
    Parameters:
1953
     - itemId
1954
    """
1955
    self.send_validateRiskyStatus(itemId)
1956
    self.recv_validateRiskyStatus()
1957
 
1958
  def send_validateRiskyStatus(self, itemId):
1959
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
1960
    args = validateRiskyStatus_args()
1961
    args.itemId = itemId
1962
    args.write(self._oprot)
1963
    self._oprot.writeMessageEnd()
1964
    self._oprot.trans.flush()
1965
 
1966
  def recv_validateRiskyStatus(self, ):
1967
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1968
    if mtype == TMessageType.EXCEPTION:
1969
      x = TApplicationException()
1970
      x.read(self._iprot)
1971
      self._iprot.readMessageEnd()
1972
      raise x
1973
    result = validateRiskyStatus_result()
1974
    result.read(self._iprot)
1975
    self._iprot.readMessageEnd()
1976
    return
1977
 
1978
  def changeItemRiskyFlag(self, itemId, risky):
1979
    """
1980
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
1981
 
1982
    Parameters:
1983
     - itemId
1984
     - risky
1985
    """
1986
    self.send_changeItemRiskyFlag(itemId, risky)
1987
    self.recv_changeItemRiskyFlag()
1988
 
1989
  def send_changeItemRiskyFlag(self, itemId, risky):
1990
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
1991
    args = changeItemRiskyFlag_args()
1992
    args.itemId = itemId
1993
    args.risky = risky
1994
    args.write(self._oprot)
1995
    self._oprot.writeMessageEnd()
1996
    self._oprot.trans.flush()
1997
 
1998
  def recv_changeItemRiskyFlag(self, ):
1999
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2000
    if mtype == TMessageType.EXCEPTION:
2001
      x = TApplicationException()
2002
      x.read(self._iprot)
2003
      self._iprot.readMessageEnd()
2004
      raise x
2005
    result = changeItemRiskyFlag_result()
2006
    result.read(self._iprot)
2007
    self._iprot.readMessageEnd()
2008
    return
2009
 
2010
  def getItemsByRiskyFlag(self, ):
2011
    """
2012
    Returns list of items marked as risky.
2013
    """
2014
    self.send_getItemsByRiskyFlag()
2015
    return self.recv_getItemsByRiskyFlag()
2016
 
2017
  def send_getItemsByRiskyFlag(self, ):
2018
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2019
    args = getItemsByRiskyFlag_args()
2020
    args.write(self._oprot)
2021
    self._oprot.writeMessageEnd()
2022
    self._oprot.trans.flush()
2023
 
2024
  def recv_getItemsByRiskyFlag(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 = getItemsByRiskyFlag_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, "getItemsByRiskyFlag failed: unknown result");
2037
 
2038
  def getItemsForMasterSheet(self, category, brand):
2039
    """
2040
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2041
 
2042
    Parameters:
2043
     - category
2044
     - brand
2045
    """
2046
    self.send_getItemsForMasterSheet(category, brand)
2047
    return self.recv_getItemsForMasterSheet()
2048
 
2049
  def send_getItemsForMasterSheet(self, category, brand):
2050
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2051
    args = getItemsForMasterSheet_args()
2052
    args.category = category
2053
    args.brand = brand
2054
    args.write(self._oprot)
2055
    self._oprot.writeMessageEnd()
2056
    self._oprot.trans.flush()
2057
 
2058
  def recv_getItemsForMasterSheet(self, ):
2059
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2060
    if mtype == TMessageType.EXCEPTION:
2061
      x = TApplicationException()
2062
      x.read(self._iprot)
2063
      self._iprot.readMessageEnd()
2064
      raise x
2065
    result = getItemsForMasterSheet_result()
2066
    result.read(self._iprot)
2067
    self._iprot.readMessageEnd()
2068
    if result.success is not None:
2069
      return result.success
2070
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2071
 
2072
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2073
    """
2074
    Returns list of catalog ids of items with same similarity index as of the given itemId
2075
 
2076
    Parameters:
2077
     - beginIndex
2078
     - totalItems
2079
     - itemId
2080
    """
2081
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2082
    return self.recv_getSimilarItemsCatalogIds()
2083
 
2084
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2085
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2086
    args = getSimilarItemsCatalogIds_args()
2087
    args.beginIndex = beginIndex
2088
    args.totalItems = totalItems
2089
    args.itemId = itemId
2090
    args.write(self._oprot)
2091
    self._oprot.writeMessageEnd()
2092
    self._oprot.trans.flush()
2093
 
2094
  def recv_getSimilarItemsCatalogIds(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 = getSimilarItemsCatalogIds_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, "getSimilarItemsCatalogIds failed: unknown result");
2107
 
2108
  def addProductNotification(self, itemId, email):
2109
    """
2110
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2111
 
2112
    Parameters:
2113
     - itemId
2114
     - email
2115
    """
2116
    self.send_addProductNotification(itemId, email)
2117
    return self.recv_addProductNotification()
2118
 
2119
  def send_addProductNotification(self, itemId, email):
2120
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2121
    args = addProductNotification_args()
2122
    args.itemId = itemId
2123
    args.email = email
2124
    args.write(self._oprot)
2125
    self._oprot.writeMessageEnd()
2126
    self._oprot.trans.flush()
2127
 
2128
  def recv_addProductNotification(self, ):
2129
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2130
    if mtype == TMessageType.EXCEPTION:
2131
      x = TApplicationException()
2132
      x.read(self._iprot)
2133
      self._iprot.readMessageEnd()
2134
      raise x
2135
    result = addProductNotification_result()
2136
    result.read(self._iprot)
2137
    self._iprot.readMessageEnd()
2138
    if result.success is not None:
2139
      return result.success
2140
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2141
 
2142
  def sendProductNotifications(self, ):
2143
    """
2144
    Send the product notifications to the users for items which has stock.
2145
    """
2146
    self.send_sendProductNotifications()
2147
    return self.recv_sendProductNotifications()
2148
 
2149
  def send_sendProductNotifications(self, ):
2150
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2151
    args = sendProductNotifications_args()
2152
    args.write(self._oprot)
2153
    self._oprot.writeMessageEnd()
2154
    self._oprot.trans.flush()
2155
 
2156
  def recv_sendProductNotifications(self, ):
2157
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2158
    if mtype == TMessageType.EXCEPTION:
2159
      x = TApplicationException()
2160
      x.read(self._iprot)
2161
      self._iprot.readMessageEnd()
2162
      raise x
2163
    result = sendProductNotifications_result()
2164
    result.read(self._iprot)
2165
    self._iprot.readMessageEnd()
2166
    if result.success is not None:
2167
      return result.success
2168
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2169
 
2170
  def getAllBrandsByCategory(self, categoryId):
2171
    """
2172
    Returns list of brand names for a given category Id
2173
 
2174
    Parameters:
2175
     - categoryId
2176
    """
2177
    self.send_getAllBrandsByCategory(categoryId)
2178
    return self.recv_getAllBrandsByCategory()
2179
 
2180
  def send_getAllBrandsByCategory(self, categoryId):
2181
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2182
    args = getAllBrandsByCategory_args()
2183
    args.categoryId = categoryId
2184
    args.write(self._oprot)
2185
    self._oprot.writeMessageEnd()
2186
    self._oprot.trans.flush()
2187
 
2188
  def recv_getAllBrandsByCategory(self, ):
2189
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2190
    if mtype == TMessageType.EXCEPTION:
2191
      x = TApplicationException()
2192
      x.read(self._iprot)
2193
      self._iprot.readMessageEnd()
2194
      raise x
2195
    result = getAllBrandsByCategory_result()
2196
    result.read(self._iprot)
2197
    self._iprot.readMessageEnd()
2198
    if result.success is not None:
2199
      return result.success
2200
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2201
 
2202
  def getAllBrands(self, ):
2203
    """
2204
    Returns list of brand names
2205
    """
2206
    self.send_getAllBrands()
2207
    return self.recv_getAllBrands()
2208
 
2209
  def send_getAllBrands(self, ):
2210
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2211
    args = getAllBrands_args()
2212
    args.write(self._oprot)
2213
    self._oprot.writeMessageEnd()
2214
    self._oprot.trans.flush()
2215
 
2216
  def recv_getAllBrands(self, ):
2217
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2218
    if mtype == TMessageType.EXCEPTION:
2219
      x = TApplicationException()
2220
      x.read(self._iprot)
2221
      self._iprot.readMessageEnd()
2222
      raise x
2223
    result = getAllBrands_result()
2224
    result.read(self._iprot)
2225
    self._iprot.readMessageEnd()
2226
    if result.success is not None:
2227
      return result.success
2228
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2229
 
2230
  def getAllSources(self, ):
2231
    """
2232
    Return list of all sources
2233
    """
2234
    self.send_getAllSources()
2235
    return self.recv_getAllSources()
2236
 
2237
  def send_getAllSources(self, ):
2238
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2239
    args = getAllSources_args()
2240
    args.write(self._oprot)
2241
    self._oprot.writeMessageEnd()
2242
    self._oprot.trans.flush()
2243
 
2244
  def recv_getAllSources(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 = getAllSources_result()
2252
    result.read(self._iprot)
2253
    self._iprot.readMessageEnd()
2254
    if result.success is not None:
2255
      return result.success
2256
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2257
 
2258
  def getItemPricingBySource(self, itemId, sourceId):
2259
    """
2260
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2261
 
2262
    Parameters:
2263
     - itemId
2264
     - sourceId
2265
    """
2266
    self.send_getItemPricingBySource(itemId, sourceId)
2267
    return self.recv_getItemPricingBySource()
2268
 
2269
  def send_getItemPricingBySource(self, itemId, sourceId):
2270
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2271
    args = getItemPricingBySource_args()
2272
    args.itemId = itemId
2273
    args.sourceId = sourceId
2274
    args.write(self._oprot)
2275
    self._oprot.writeMessageEnd()
2276
    self._oprot.trans.flush()
2277
 
2278
  def recv_getItemPricingBySource(self, ):
2279
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2280
    if mtype == TMessageType.EXCEPTION:
2281
      x = TApplicationException()
2282
      x.read(self._iprot)
2283
      self._iprot.readMessageEnd()
2284
      raise x
2285
    result = getItemPricingBySource_result()
2286
    result.read(self._iprot)
2287
    self._iprot.readMessageEnd()
2288
    if result.success is not None:
2289
      return result.success
2290
    if result.cex is not None:
2291
      raise result.cex
2292
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2293
 
2294
  def addSourceItemPricing(self, sourceItemPricing):
2295
    """
2296
    Adds prices to be displayed corresponding to the item if user comes from a source.
2297
    If item is not found or source is not found, it will throw exception.
2298
 
2299
    Parameters:
2300
     - sourceItemPricing
2301
    """
2302
    self.send_addSourceItemPricing(sourceItemPricing)
2303
    self.recv_addSourceItemPricing()
2304
 
2305
  def send_addSourceItemPricing(self, sourceItemPricing):
2306
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2307
    args = addSourceItemPricing_args()
2308
    args.sourceItemPricing = sourceItemPricing
2309
    args.write(self._oprot)
2310
    self._oprot.writeMessageEnd()
2311
    self._oprot.trans.flush()
2312
 
2313
  def recv_addSourceItemPricing(self, ):
2314
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2315
    if mtype == TMessageType.EXCEPTION:
2316
      x = TApplicationException()
2317
      x.read(self._iprot)
2318
      self._iprot.readMessageEnd()
2319
      raise x
2320
    result = addSourceItemPricing_result()
2321
    result.read(self._iprot)
2322
    self._iprot.readMessageEnd()
2323
    if result.cex is not None:
2324
      raise result.cex
2325
    return
2326
 
2327
  def getAllSourcePricing(self, itemId):
2328
    """
2329
    Returns the list of source pricing information of an item.
2330
    Raises an exception if item not found corresponding to itemId
2331
 
2332
    Parameters:
2333
     - itemId
2334
    """
2335
    self.send_getAllSourcePricing(itemId)
2336
    return self.recv_getAllSourcePricing()
2337
 
2338
  def send_getAllSourcePricing(self, itemId):
2339
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2340
    args = getAllSourcePricing_args()
2341
    args.itemId = itemId
2342
    args.write(self._oprot)
2343
    self._oprot.writeMessageEnd()
2344
    self._oprot.trans.flush()
2345
 
2346
  def recv_getAllSourcePricing(self, ):
2347
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2348
    if mtype == TMessageType.EXCEPTION:
2349
      x = TApplicationException()
2350
      x.read(self._iprot)
2351
      self._iprot.readMessageEnd()
2352
      raise x
2353
    result = getAllSourcePricing_result()
2354
    result.read(self._iprot)
2355
    self._iprot.readMessageEnd()
2356
    if result.success is not None:
2357
      return result.success
2358
    if result.cex is not None:
2359
      raise result.cex
2360
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2361
 
2362
  def getItemForSource(self, item_id, sourceId):
2363
    """
2364
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2365
 
2366
    Parameters:
2367
     - item_id
2368
     - sourceId
2369
    """
2370
    self.send_getItemForSource(item_id, sourceId)
2371
    return self.recv_getItemForSource()
2372
 
2373
  def send_getItemForSource(self, item_id, sourceId):
2374
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2375
    args = getItemForSource_args()
2376
    args.item_id = item_id
2377
    args.sourceId = sourceId
2378
    args.write(self._oprot)
2379
    self._oprot.writeMessageEnd()
2380
    self._oprot.trans.flush()
2381
 
2382
  def recv_getItemForSource(self, ):
2383
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2384
    if mtype == TMessageType.EXCEPTION:
2385
      x = TApplicationException()
2386
      x.read(self._iprot)
2387
      self._iprot.readMessageEnd()
2388
      raise x
2389
    result = getItemForSource_result()
2390
    result.read(self._iprot)
2391
    self._iprot.readMessageEnd()
2392
    if result.success is not None:
2393
      return result.success
2394
    if result.cex is not None:
2395
      raise result.cex
2396
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2397
 
2398
  def searchItemsInRange(self, searchTerms, offset, limit):
2399
    """
2400
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2401
 
2402
    Parameters:
2403
     - searchTerms
2404
     - offset
2405
     - limit
2406
    """
2407
    self.send_searchItemsInRange(searchTerms, offset, limit)
2408
    return self.recv_searchItemsInRange()
2409
 
2410
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2411
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2412
    args = searchItemsInRange_args()
2413
    args.searchTerms = searchTerms
2414
    args.offset = offset
2415
    args.limit = limit
2416
    args.write(self._oprot)
2417
    self._oprot.writeMessageEnd()
2418
    self._oprot.trans.flush()
2419
 
2420
  def recv_searchItemsInRange(self, ):
2421
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2422
    if mtype == TMessageType.EXCEPTION:
2423
      x = TApplicationException()
2424
      x.read(self._iprot)
2425
      self._iprot.readMessageEnd()
2426
      raise x
2427
    result = searchItemsInRange_result()
2428
    result.read(self._iprot)
2429
    self._iprot.readMessageEnd()
2430
    if result.success is not None:
2431
      return result.success
2432
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2433
 
2434
  def getSearchResultCount(self, searchTerms):
2435
    """
2436
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2437
 
2438
    Parameters:
2439
     - searchTerms
2440
    """
2441
    self.send_getSearchResultCount(searchTerms)
2442
    return self.recv_getSearchResultCount()
2443
 
2444
  def send_getSearchResultCount(self, searchTerms):
2445
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2446
    args = getSearchResultCount_args()
2447
    args.searchTerms = searchTerms
2448
    args.write(self._oprot)
2449
    self._oprot.writeMessageEnd()
2450
    self._oprot.trans.flush()
2451
 
2452
  def recv_getSearchResultCount(self, ):
2453
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2454
    if mtype == TMessageType.EXCEPTION:
2455
      x = TApplicationException()
2456
      x.read(self._iprot)
2457
      self._iprot.readMessageEnd()
2458
      raise x
2459
    result = getSearchResultCount_result()
2460
    result.read(self._iprot)
2461
    self._iprot.readMessageEnd()
2462
    if result.success is not None:
2463
      return result.success
2464
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2465
 
2466
  def getProductNotifications(self, startDateTime):
2467
    """
2468
    Returns a list of product notifications added after a supplied datetime
2469
 
2470
    Parameters:
2471
     - startDateTime
2472
    """
2473
    self.send_getProductNotifications(startDateTime)
2474
    return self.recv_getProductNotifications()
2475
 
2476
  def send_getProductNotifications(self, startDateTime):
2477
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2478
    args = getProductNotifications_args()
2479
    args.startDateTime = startDateTime
2480
    args.write(self._oprot)
2481
    self._oprot.writeMessageEnd()
2482
    self._oprot.trans.flush()
2483
 
2484
  def recv_getProductNotifications(self, ):
2485
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2486
    if mtype == TMessageType.EXCEPTION:
2487
      x = TApplicationException()
2488
      x.read(self._iprot)
2489
      self._iprot.readMessageEnd()
2490
      raise x
2491
    result = getProductNotifications_result()
2492
    result.read(self._iprot)
2493
    self._iprot.readMessageEnd()
2494
    if result.success is not None:
2495
      return result.success
2496
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2497
 
2498
  def getProductNotificationRequestCount(self, startDateTime):
2499
    """
2500
    Returns a list of count of requests for product notification against each item
2501
 
2502
    Parameters:
2503
     - startDateTime
2504
    """
2505
    self.send_getProductNotificationRequestCount(startDateTime)
2506
    return self.recv_getProductNotificationRequestCount()
2507
 
2508
  def send_getProductNotificationRequestCount(self, startDateTime):
2509
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2510
    args = getProductNotificationRequestCount_args()
2511
    args.startDateTime = startDateTime
2512
    args.write(self._oprot)
2513
    self._oprot.writeMessageEnd()
2514
    self._oprot.trans.flush()
2515
 
2516
  def recv_getProductNotificationRequestCount(self, ):
2517
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2518
    if mtype == TMessageType.EXCEPTION:
2519
      x = TApplicationException()
2520
      x.read(self._iprot)
2521
      self._iprot.readMessageEnd()
2522
      raise x
2523
    result = getProductNotificationRequestCount_result()
2524
    result.read(self._iprot)
2525
    self._iprot.readMessageEnd()
2526
    if result.success is not None:
2527
      return result.success
2528
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2529
 
2530
  def addAuthorizationLog(self, itemId, username, reason):
2531
    """
2532
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2533
 
2534
    Parameters:
2535
     - itemId
2536
     - username
2537
     - reason
2538
    """
2539
    self.send_addAuthorizationLog(itemId, username, reason)
2540
    return self.recv_addAuthorizationLog()
2541
 
2542
  def send_addAuthorizationLog(self, itemId, username, reason):
2543
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2544
    args = addAuthorizationLog_args()
2545
    args.itemId = itemId
2546
    args.username = username
2547
    args.reason = reason
2548
    args.write(self._oprot)
2549
    self._oprot.writeMessageEnd()
2550
    self._oprot.trans.flush()
2551
 
2552
  def recv_addAuthorizationLog(self, ):
2553
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2554
    if mtype == TMessageType.EXCEPTION:
2555
      x = TApplicationException()
2556
      x.read(self._iprot)
2557
      self._iprot.readMessageEnd()
2558
      raise x
2559
    result = addAuthorizationLog_result()
2560
    result.read(self._iprot)
2561
    self._iprot.readMessageEnd()
2562
    if result.success is not None:
2563
      return result.success
2564
    if result.cex is not None:
2565
      raise result.cex
2566
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2567
 
2568
  def getClearanceSaleCatalogIds(self, ):
2569
    self.send_getClearanceSaleCatalogIds()
2570
    return self.recv_getClearanceSaleCatalogIds()
2571
 
2572
  def send_getClearanceSaleCatalogIds(self, ):
2573
    self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)
2574
    args = getClearanceSaleCatalogIds_args()
2575
    args.write(self._oprot)
2576
    self._oprot.writeMessageEnd()
2577
    self._oprot.trans.flush()
2578
 
2579
  def recv_getClearanceSaleCatalogIds(self, ):
2580
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2581
    if mtype == TMessageType.EXCEPTION:
2582
      x = TApplicationException()
2583
      x.read(self._iprot)
2584
      self._iprot.readMessageEnd()
2585
      raise x
2586
    result = getClearanceSaleCatalogIds_result()
2587
    result.read(self._iprot)
2588
    self._iprot.readMessageEnd()
2589
    if result.success is not None:
2590
      return result.success
2591
    if result.cex is not None:
2592
      raise result.cex
2593
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2594
 
2595
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2596
    """
2597
    Parameters:
2598
     - catalog_item_id
2599
     - voucherType
2600
     - voucherAmount
2601
    """
2602
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2603
    return self.recv_addupdateVoucherForItem()
2604
 
2605
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2606
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2607
    args = addupdateVoucherForItem_args()
2608
    args.catalog_item_id = catalog_item_id
2609
    args.voucherType = voucherType
2610
    args.voucherAmount = voucherAmount
2611
    args.write(self._oprot)
2612
    self._oprot.writeMessageEnd()
2613
    self._oprot.trans.flush()
2614
 
2615
  def recv_addupdateVoucherForItem(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 = addupdateVoucherForItem_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, "addupdateVoucherForItem failed: unknown result");
2630
 
2631
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2632
    """
2633
    Parameters:
2634
     - catalog_item_id
2635
     - voucherType
2636
    """
2637
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2638
    return self.recv_deleteVoucherForItem()
2639
 
2640
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2641
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2642
    args = deleteVoucherForItem_args()
2643
    args.catalog_item_id = catalog_item_id
2644
    args.voucherType = voucherType
2645
    args.write(self._oprot)
2646
    self._oprot.writeMessageEnd()
2647
    self._oprot.trans.flush()
2648
 
2649
  def recv_deleteVoucherForItem(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 = deleteVoucherForItem_result()
2657
    result.read(self._iprot)
2658
    self._iprot.readMessageEnd()
2659
    if result.success is not None:
2660
      return result.success
2661
    if result.cex is not None:
2662
      raise result.cex
2663
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2664
 
2665
  def getVoucherAmount(self, itemId, voucherType):
2666
    """
2667
    Parameters:
2668
     - itemId
2669
     - voucherType
2670
    """
2671
    self.send_getVoucherAmount(itemId, voucherType)
2672
    return self.recv_getVoucherAmount()
2673
 
2674
  def send_getVoucherAmount(self, itemId, voucherType):
2675
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2676
    args = getVoucherAmount_args()
2677
    args.itemId = itemId
2678
    args.voucherType = voucherType
2679
    args.write(self._oprot)
2680
    self._oprot.writeMessageEnd()
2681
    self._oprot.trans.flush()
2682
 
2683
  def recv_getVoucherAmount(self, ):
2684
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2685
    if mtype == TMessageType.EXCEPTION:
2686
      x = TApplicationException()
2687
      x.read(self._iprot)
2688
      self._iprot.readMessageEnd()
2689
      raise x
2690
    result = getVoucherAmount_result()
2691
    result.read(self._iprot)
2692
    self._iprot.readMessageEnd()
2693
    if result.success is not None:
2694
      return result.success
2695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
2696
 
2697
  def getAllItemVouchers(self, itemId):
2698
    """
2699
    Parameters:
2700
     - itemId
2701
    """
2702
    self.send_getAllItemVouchers(itemId)
2703
    return self.recv_getAllItemVouchers()
2704
 
2705
  def send_getAllItemVouchers(self, itemId):
2706
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
2707
    args = getAllItemVouchers_args()
2708
    args.itemId = itemId
2709
    args.write(self._oprot)
2710
    self._oprot.writeMessageEnd()
2711
    self._oprot.trans.flush()
2712
 
2713
  def recv_getAllItemVouchers(self, ):
2714
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2715
    if mtype == TMessageType.EXCEPTION:
2716
      x = TApplicationException()
2717
      x.read(self._iprot)
2718
      self._iprot.readMessageEnd()
2719
      raise x
2720
    result = getAllItemVouchers_result()
2721
    result.read(self._iprot)
2722
    self._iprot.readMessageEnd()
2723
    if result.success is not None:
2724
      return result.success
2725
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
2726
 
2727
  def isValidCatalogItemId(self, catalog_item_id):
2728
    """
2729
    Parameters:
2730
     - catalog_item_id
2731
    """
2732
    self.send_isValidCatalogItemId(catalog_item_id)
2733
    return self.recv_isValidCatalogItemId()
2734
 
2735
  def send_isValidCatalogItemId(self, catalog_item_id):
2736
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
2737
    args = isValidCatalogItemId_args()
2738
    args.catalog_item_id = catalog_item_id
2739
    args.write(self._oprot)
2740
    self._oprot.writeMessageEnd()
2741
    self._oprot.trans.flush()
2742
 
2743
  def recv_isValidCatalogItemId(self, ):
2744
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2745
    if mtype == TMessageType.EXCEPTION:
2746
      x = TApplicationException()
2747
      x.read(self._iprot)
2748
      self._iprot.readMessageEnd()
2749
      raise x
2750
    result = isValidCatalogItemId_result()
2751
    result.read(self._iprot)
2752
    self._iprot.readMessageEnd()
2753
    if result.success is not None:
2754
      return result.success
2755
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
2756
 
6039 amit.gupta 2757
  def getVatPercentageForItem(self, itemId, price):
2758
    """
2759
    Parameters:
2760
     - itemId
2761
     - price
2762
    """
2763
    self.send_getVatPercentageForItem(itemId, price)
2764
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 2765
 
6039 amit.gupta 2766
  def send_getVatPercentageForItem(self, itemId, price):
2767
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
2768
    args = getVatPercentageForItem_args()
2769
    args.itemId = itemId
2770
    args.price = price
2771
    args.write(self._oprot)
2772
    self._oprot.writeMessageEnd()
2773
    self._oprot.trans.flush()
2774
 
2775
  def recv_getVatPercentageForItem(self, ):
2776
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2777
    if mtype == TMessageType.EXCEPTION:
2778
      x = TApplicationException()
2779
      x.read(self._iprot)
2780
      self._iprot.readMessageEnd()
2781
      raise x
2782
    result = getVatPercentageForItem_result()
2783
    result.read(self._iprot)
2784
    self._iprot.readMessageEnd()
2785
    if result.success is not None:
2786
      return result.success
2787
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
2788
 
2789
  def getVatAmountForItem(self, itemId, price):
2790
    """
2791
    Parameters:
2792
     - itemId
2793
     - price
2794
    """
2795
    self.send_getVatAmountForItem(itemId, price)
2796
    return self.recv_getVatAmountForItem()
2797
 
2798
  def send_getVatAmountForItem(self, itemId, price):
2799
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
2800
    args = getVatAmountForItem_args()
2801
    args.itemId = itemId
2802
    args.price = price
2803
    args.write(self._oprot)
2804
    self._oprot.writeMessageEnd()
2805
    self._oprot.trans.flush()
2806
 
2807
  def recv_getVatAmountForItem(self, ):
2808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2809
    if mtype == TMessageType.EXCEPTION:
2810
      x = TApplicationException()
2811
      x.read(self._iprot)
2812
      self._iprot.readMessageEnd()
2813
      raise x
2814
    result = getVatAmountForItem_result()
2815
    result.read(self._iprot)
2816
    self._iprot.readMessageEnd()
2817
    if result.success is not None:
2818
      return result.success
2819
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
2820
 
6531 vikram.rag 2821
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2822
    """
2823
    Parameters:
2824
     - offset
2825
     - limit
2826
    """
2827
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
2828
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 2829
 
6531 vikram.rag 2830
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
2831
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
2832
    args = getAllIgnoredInventoryUpdateItemsList_args()
2833
    args.offset = offset
2834
    args.limit = limit
2835
    args.write(self._oprot)
2836
    self._oprot.writeMessageEnd()
2837
    self._oprot.trans.flush()
2838
 
2839
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
2840
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2841
    if mtype == TMessageType.EXCEPTION:
2842
      x = TApplicationException()
2843
      x.read(self._iprot)
2844
      self._iprot.readMessageEnd()
2845
      raise x
2846
    result = getAllIgnoredInventoryUpdateItemsList_result()
2847
    result.read(self._iprot)
2848
    self._iprot.readMessageEnd()
2849
    if result.success is not None:
2850
      return result.success
2851
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
2852
 
6821 amar.kumar 2853
  def getAllAliveItems(self, ):
2854
    self.send_getAllAliveItems()
2855
    return self.recv_getAllAliveItems()
2856
 
2857
  def send_getAllAliveItems(self, ):
2858
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
2859
    args = getAllAliveItems_args()
2860
    args.write(self._oprot)
2861
    self._oprot.writeMessageEnd()
2862
    self._oprot.trans.flush()
2863
 
2864
  def recv_getAllAliveItems(self, ):
2865
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2866
    if mtype == TMessageType.EXCEPTION:
2867
      x = TApplicationException()
2868
      x.read(self._iprot)
2869
      self._iprot.readMessageEnd()
2870
      raise x
2871
    result = getAllAliveItems_result()
2872
    result.read(self._iprot)
2873
    self._iprot.readMessageEnd()
2874
    if result.success is not None:
2875
      return result.success
2876
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
2877
 
6805 anupam.sin 2878
  def getInsuranceAmount(self, itemId, insurerId, quantity):
2879
    """
2880
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 2881
 
6805 anupam.sin 2882
    Parameters:
2883
     - itemId
2884
     - insurerId
2885
     - quantity
2886
    """
2887
    self.send_getInsuranceAmount(itemId, insurerId, quantity)
2888
    return self.recv_getInsuranceAmount()
2889
 
2890
  def send_getInsuranceAmount(self, itemId, insurerId, quantity):
2891
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
2892
    args = getInsuranceAmount_args()
2893
    args.itemId = itemId
2894
    args.insurerId = insurerId
2895
    args.quantity = quantity
2896
    args.write(self._oprot)
2897
    self._oprot.writeMessageEnd()
2898
    self._oprot.trans.flush()
2899
 
2900
  def recv_getInsuranceAmount(self, ):
2901
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2902
    if mtype == TMessageType.EXCEPTION:
2903
      x = TApplicationException()
2904
      x.read(self._iprot)
2905
      self._iprot.readMessageEnd()
2906
      raise x
2907
    result = getInsuranceAmount_result()
2908
    result.read(self._iprot)
2909
    self._iprot.readMessageEnd()
2910
    if result.success is not None:
2911
      return result.success
2912
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
2913
 
2914
  def getInsurer(self, insurerId):
2915
    """
2916
    Parameters:
2917
     - insurerId
2918
    """
2919
    self.send_getInsurer(insurerId)
2920
    return self.recv_getInsurer()
2921
 
2922
  def send_getInsurer(self, insurerId):
2923
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
2924
    args = getInsurer_args()
2925
    args.insurerId = insurerId
2926
    args.write(self._oprot)
2927
    self._oprot.writeMessageEnd()
2928
    self._oprot.trans.flush()
2929
 
2930
  def recv_getInsurer(self, ):
2931
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2932
    if mtype == TMessageType.EXCEPTION:
2933
      x = TApplicationException()
2934
      x.read(self._iprot)
2935
      self._iprot.readMessageEnd()
2936
      raise x
2937
    result = getInsurer_result()
2938
    result.read(self._iprot)
2939
    self._iprot.readMessageEnd()
2940
    if result.success is not None:
2941
      return result.success
2942
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
2943
 
6838 vikram.rag 2944
  def getAllInsurers(self, ):
2945
    self.send_getAllInsurers()
2946
    return self.recv_getAllInsurers()
6805 anupam.sin 2947
 
6838 vikram.rag 2948
  def send_getAllInsurers(self, ):
2949
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
2950
    args = getAllInsurers_args()
2951
    args.write(self._oprot)
2952
    self._oprot.writeMessageEnd()
2953
    self._oprot.trans.flush()
2954
 
2955
  def recv_getAllInsurers(self, ):
2956
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2957
    if mtype == TMessageType.EXCEPTION:
2958
      x = TApplicationException()
2959
      x.read(self._iprot)
2960
      self._iprot.readMessageEnd()
2961
      raise x
2962
    result = getAllInsurers_result()
2963
    result.read(self._iprot)
2964
    self._iprot.readMessageEnd()
2965
    if result.success is not None:
2966
      return result.success
2967
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
2968
 
2969
 
5944 mandeep.dh 2970
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2971
  def __init__(self, handler):
2972
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2973
    self._processMap["addItem"] = Processor.process_addItem
2974
    self._processMap["updateItem"] = Processor.process_updateItem
2975
    self._processMap["isActive"] = Processor.process_isActive
2976
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
2977
    self._processMap["startItemOn"] = Processor.process_startItemOn
2978
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
2979
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2980
    self._processMap["getItem"] = Processor.process_getItem
2981
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
2982
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
2983
    self._processMap["getAllItems"] = Processor.process_getAllItems
2984
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
2985
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
2986
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
2987
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
2988
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
2989
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
2990
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
2991
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
2992
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
2993
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
2994
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
2995
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
2996
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
2997
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
2998
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
2999
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
3000
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
3001
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
3002
    self._processMap["addCategory"] = Processor.process_addCategory
3003
    self._processMap["getCategory"] = Processor.process_getCategory
3004
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
3005
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
3006
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 3007
    self._processMap["addTag"] = Processor.process_addTag
3008
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
3009
    self._processMap["deleteTag"] = Processor.process_deleteTag
3010
    self._processMap["getAllTags"] = Processor.process_getAllTags
3011
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 3012
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
5944 mandeep.dh 3013
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
3014
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
3015
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
3016
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
3017
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
3018
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
3019
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
3020
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
3021
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
3022
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
3023
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
3024
    self._processMap["getAllSources"] = Processor.process_getAllSources
3025
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
3026
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
3027
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
3028
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
3029
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
3030
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
3031
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
3032
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
3033
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
3034
    self._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIds
3035
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
3036
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
3037
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
3038
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
3039
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 3040
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
3041
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 3042
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 3043
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 3044
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
3045
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 3046
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
5944 mandeep.dh 3047
 
3048
  def process(self, iprot, oprot):
3049
    (name, type, seqid) = iprot.readMessageBegin()
3050
    if name not in self._processMap:
3051
      iprot.skip(TType.STRUCT)
3052
      iprot.readMessageEnd()
3053
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3054
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3055
      x.write(oprot)
3056
      oprot.writeMessageEnd()
3057
      oprot.trans.flush()
3058
      return
3059
    else:
3060
      self._processMap[name](self, seqid, iprot, oprot)
3061
    return True
3062
 
3063
  def process_addItem(self, seqid, iprot, oprot):
3064
    args = addItem_args()
3065
    args.read(iprot)
3066
    iprot.readMessageEnd()
3067
    result = addItem_result()
3068
    try:
3069
      result.success = self._handler.addItem(args.item)
3070
    except CatalogServiceException, cex:
3071
      result.cex = cex
3072
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
3073
    result.write(oprot)
3074
    oprot.writeMessageEnd()
3075
    oprot.trans.flush()
3076
 
3077
  def process_updateItem(self, seqid, iprot, oprot):
3078
    args = updateItem_args()
3079
    args.read(iprot)
3080
    iprot.readMessageEnd()
3081
    result = updateItem_result()
3082
    try:
3083
      result.success = self._handler.updateItem(args.item)
3084
    except CatalogServiceException, cex:
3085
      result.cex = cex
3086
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3087
    result.write(oprot)
3088
    oprot.writeMessageEnd()
3089
    oprot.trans.flush()
3090
 
3091
  def process_isActive(self, seqid, iprot, oprot):
3092
    args = isActive_args()
3093
    args.read(iprot)
3094
    iprot.readMessageEnd()
3095
    result = isActive_result()
3096
    try:
3097
      result.success = self._handler.isActive(args.itemId)
3098
    except CatalogServiceException, isex:
3099
      result.isex = isex
3100
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3101
    result.write(oprot)
3102
    oprot.writeMessageEnd()
3103
    oprot.trans.flush()
3104
 
3105
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3106
    args = getItemStatusDescription_args()
3107
    args.read(iprot)
3108
    iprot.readMessageEnd()
3109
    result = getItemStatusDescription_result()
3110
    try:
3111
      result.success = self._handler.getItemStatusDescription(args.itemId)
3112
    except CatalogServiceException, isex:
3113
      result.isex = isex
3114
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3115
    result.write(oprot)
3116
    oprot.writeMessageEnd()
3117
    oprot.trans.flush()
3118
 
3119
  def process_startItemOn(self, seqid, iprot, oprot):
3120
    args = startItemOn_args()
3121
    args.read(iprot)
3122
    iprot.readMessageEnd()
3123
    result = startItemOn_result()
3124
    try:
3125
      self._handler.startItemOn(args.item_id, args.timestamp)
3126
    except CatalogServiceException, cex:
3127
      result.cex = cex
3128
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3129
    result.write(oprot)
3130
    oprot.writeMessageEnd()
3131
    oprot.trans.flush()
3132
 
3133
  def process_retireItemOn(self, seqid, iprot, oprot):
3134
    args = retireItemOn_args()
3135
    args.read(iprot)
3136
    iprot.readMessageEnd()
3137
    result = retireItemOn_result()
3138
    try:
3139
      self._handler.retireItemOn(args.item_id, args.timestamp)
3140
    except CatalogServiceException, cex:
3141
      result.cex = cex
3142
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3143
    result.write(oprot)
3144
    oprot.writeMessageEnd()
3145
    oprot.trans.flush()
3146
 
3147
  def process_changeItemStatus(self, seqid, iprot, oprot):
3148
    args = changeItemStatus_args()
3149
    args.read(iprot)
3150
    iprot.readMessageEnd()
3151
    result = changeItemStatus_result()
3152
    try:
3153
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3154
    except CatalogServiceException, cex:
3155
      result.cex = cex
3156
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3157
    result.write(oprot)
3158
    oprot.writeMessageEnd()
3159
    oprot.trans.flush()
3160
 
3161
  def process_getItem(self, seqid, iprot, oprot):
3162
    args = getItem_args()
3163
    args.read(iprot)
3164
    iprot.readMessageEnd()
3165
    result = getItem_result()
3166
    try:
3167
      result.success = self._handler.getItem(args.item_id)
3168
    except CatalogServiceException, cex:
3169
      result.cex = cex
3170
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3171
    result.write(oprot)
3172
    oprot.writeMessageEnd()
3173
    oprot.trans.flush()
3174
 
3175
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3176
    args = getItemsByCatalogId_args()
3177
    args.read(iprot)
3178
    iprot.readMessageEnd()
3179
    result = getItemsByCatalogId_result()
3180
    try:
3181
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3182
    except CatalogServiceException, cex:
3183
      result.cex = cex
3184
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3185
    result.write(oprot)
3186
    oprot.writeMessageEnd()
3187
    oprot.trans.flush()
3188
 
3189
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3190
    args = getValidItemsByCatalogId_args()
3191
    args.read(iprot)
3192
    iprot.readMessageEnd()
3193
    result = getValidItemsByCatalogId_result()
3194
    try:
3195
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3196
    except CatalogServiceException, cex:
3197
      result.cex = cex
3198
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3199
    result.write(oprot)
3200
    oprot.writeMessageEnd()
3201
    oprot.trans.flush()
3202
 
3203
  def process_getAllItems(self, seqid, iprot, oprot):
3204
    args = getAllItems_args()
3205
    args.read(iprot)
3206
    iprot.readMessageEnd()
3207
    result = getAllItems_result()
3208
    try:
3209
      result.success = self._handler.getAllItems(args.isActive)
3210
    except CatalogServiceException, cex:
3211
      result.cex = cex
3212
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3213
    result.write(oprot)
3214
    oprot.writeMessageEnd()
3215
    oprot.trans.flush()
3216
 
3217
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3218
    args = getAllItemsByStatus_args()
3219
    args.read(iprot)
3220
    iprot.readMessageEnd()
3221
    result = getAllItemsByStatus_result()
3222
    try:
3223
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3224
    except CatalogServiceException, cex:
3225
      result.cex = cex
3226
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3227
    result.write(oprot)
3228
    oprot.writeMessageEnd()
3229
    oprot.trans.flush()
3230
 
3231
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3232
    args = markItemAsContentComplete_args()
3233
    args.read(iprot)
3234
    iprot.readMessageEnd()
3235
    result = markItemAsContentComplete_result()
3236
    try:
3237
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3238
    except CatalogServiceException, cex:
3239
      result.cex = cex
3240
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3241
    result.write(oprot)
3242
    oprot.writeMessageEnd()
3243
    oprot.trans.flush()
3244
 
3245
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3246
    args = getAllItemsInRange_args()
3247
    args.read(iprot)
3248
    iprot.readMessageEnd()
3249
    result = getAllItemsInRange_result()
3250
    try:
3251
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3252
    except CatalogServiceException, cex:
3253
      result.cex = cex
3254
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3255
    result.write(oprot)
3256
    oprot.writeMessageEnd()
3257
    oprot.trans.flush()
3258
 
3259
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3260
    args = getAllItemsByStatusInRange_args()
3261
    args.read(iprot)
3262
    iprot.readMessageEnd()
3263
    result = getAllItemsByStatusInRange_result()
3264
    try:
3265
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3266
    except CatalogServiceException, cex:
3267
      result.cex = cex
3268
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3269
    result.write(oprot)
3270
    oprot.writeMessageEnd()
3271
    oprot.trans.flush()
3272
 
3273
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3274
    args = getItemCountByStatus_args()
3275
    args.read(iprot)
3276
    iprot.readMessageEnd()
3277
    result = getItemCountByStatus_result()
3278
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3279
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3280
    result.write(oprot)
3281
    oprot.writeMessageEnd()
3282
    oprot.trans.flush()
3283
 
3284
  def process_getBestSellers(self, seqid, iprot, oprot):
3285
    args = getBestSellers_args()
3286
    args.read(iprot)
3287
    iprot.readMessageEnd()
3288
    result = getBestSellers_result()
3289
    try:
3290
      result.success = self._handler.getBestSellers()
3291
    except CatalogServiceException, isex:
3292
      result.isex = isex
3293
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3294
    result.write(oprot)
3295
    oprot.writeMessageEnd()
3296
    oprot.trans.flush()
3297
 
3298
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3299
    args = getBestSellersCatalogIds_args()
3300
    args.read(iprot)
3301
    iprot.readMessageEnd()
3302
    result = getBestSellersCatalogIds_result()
3303
    try:
3304
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3305
    except CatalogServiceException, cex:
3306
      result.cex = cex
3307
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3308
    result.write(oprot)
3309
    oprot.writeMessageEnd()
3310
    oprot.trans.flush()
3311
 
3312
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3313
    args = getBestSellersCount_args()
3314
    args.read(iprot)
3315
    iprot.readMessageEnd()
3316
    result = getBestSellersCount_result()
3317
    try:
3318
      result.success = self._handler.getBestSellersCount()
3319
    except CatalogServiceException, cex:
3320
      result.cex = cex
3321
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3322
    result.write(oprot)
3323
    oprot.writeMessageEnd()
3324
    oprot.trans.flush()
3325
 
3326
  def process_getBestDeals(self, seqid, iprot, oprot):
3327
    args = getBestDeals_args()
3328
    args.read(iprot)
3329
    iprot.readMessageEnd()
3330
    result = getBestDeals_result()
3331
    try:
3332
      result.success = self._handler.getBestDeals()
3333
    except CatalogServiceException, isex:
3334
      result.isex = isex
3335
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3336
    result.write(oprot)
3337
    oprot.writeMessageEnd()
3338
    oprot.trans.flush()
3339
 
3340
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3341
    args = getBestDealsCatalogIds_args()
3342
    args.read(iprot)
3343
    iprot.readMessageEnd()
3344
    result = getBestDealsCatalogIds_result()
3345
    try:
3346
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3347
    except CatalogServiceException, cex:
3348
      result.cex = cex
3349
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3350
    result.write(oprot)
3351
    oprot.writeMessageEnd()
3352
    oprot.trans.flush()
3353
 
3354
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3355
    args = getBestDealsCount_args()
3356
    args.read(iprot)
3357
    iprot.readMessageEnd()
3358
    result = getBestDealsCount_result()
3359
    try:
3360
      result.success = self._handler.getBestDealsCount()
3361
    except CatalogServiceException, cex:
3362
      result.cex = cex
3363
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3364
    result.write(oprot)
3365
    oprot.writeMessageEnd()
3366
    oprot.trans.flush()
3367
 
3368
  def process_getComingSoon(self, seqid, iprot, oprot):
3369
    args = getComingSoon_args()
3370
    args.read(iprot)
3371
    iprot.readMessageEnd()
3372
    result = getComingSoon_result()
3373
    try:
3374
      result.success = self._handler.getComingSoon()
3375
    except CatalogServiceException, isex:
3376
      result.isex = isex
3377
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3378
    result.write(oprot)
3379
    oprot.writeMessageEnd()
3380
    oprot.trans.flush()
3381
 
3382
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3383
    args = getComingSoonCatalogIds_args()
3384
    args.read(iprot)
3385
    iprot.readMessageEnd()
3386
    result = getComingSoonCatalogIds_result()
3387
    try:
3388
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3389
    except CatalogServiceException, cex:
3390
      result.cex = cex
3391
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3392
    result.write(oprot)
3393
    oprot.writeMessageEnd()
3394
    oprot.trans.flush()
3395
 
3396
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3397
    args = getComingSoonCount_args()
3398
    args.read(iprot)
3399
    iprot.readMessageEnd()
3400
    result = getComingSoonCount_result()
3401
    try:
3402
      result.success = self._handler.getComingSoonCount()
3403
    except CatalogServiceException, cex:
3404
      result.cex = cex
3405
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3406
    result.write(oprot)
3407
    oprot.writeMessageEnd()
3408
    oprot.trans.flush()
3409
 
3410
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3411
    args = getLatestArrivals_args()
3412
    args.read(iprot)
3413
    iprot.readMessageEnd()
3414
    result = getLatestArrivals_result()
3415
    try:
3416
      result.success = self._handler.getLatestArrivals()
3417
    except CatalogServiceException, isex:
3418
      result.isex = isex
3419
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3420
    result.write(oprot)
3421
    oprot.writeMessageEnd()
3422
    oprot.trans.flush()
3423
 
3424
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3425
    args = getLatestArrivalsCatalogIds_args()
3426
    args.read(iprot)
3427
    iprot.readMessageEnd()
3428
    result = getLatestArrivalsCatalogIds_result()
3429
    try:
3430
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3431
    except CatalogServiceException, cex:
3432
      result.cex = cex
3433
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3434
    result.write(oprot)
3435
    oprot.writeMessageEnd()
3436
    oprot.trans.flush()
3437
 
3438
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3439
    args = getLatestArrivalsCount_args()
3440
    args.read(iprot)
3441
    iprot.readMessageEnd()
3442
    result = getLatestArrivalsCount_result()
3443
    try:
3444
      result.success = self._handler.getLatestArrivalsCount()
3445
    except CatalogServiceException, cex:
3446
      result.cex = cex
3447
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3448
    result.write(oprot)
3449
    oprot.writeMessageEnd()
3450
    oprot.trans.flush()
3451
 
3452
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3453
    args = generateNewEntityID_args()
3454
    args.read(iprot)
3455
    iprot.readMessageEnd()
3456
    result = generateNewEntityID_result()
3457
    result.success = self._handler.generateNewEntityID()
3458
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3459
    result.write(oprot)
3460
    oprot.writeMessageEnd()
3461
    oprot.trans.flush()
3462
 
3463
  def process_addCategory(self, seqid, iprot, oprot):
3464
    args = addCategory_args()
3465
    args.read(iprot)
3466
    iprot.readMessageEnd()
3467
    result = addCategory_result()
3468
    result.success = self._handler.addCategory(args.category)
3469
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3470
    result.write(oprot)
3471
    oprot.writeMessageEnd()
3472
    oprot.trans.flush()
3473
 
3474
  def process_getCategory(self, seqid, iprot, oprot):
3475
    args = getCategory_args()
3476
    args.read(iprot)
3477
    iprot.readMessageEnd()
3478
    result = getCategory_result()
3479
    result.success = self._handler.getCategory(args.id)
3480
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3481
    result.write(oprot)
3482
    oprot.writeMessageEnd()
3483
    oprot.trans.flush()
3484
 
3485
  def process_getAllCategories(self, seqid, iprot, oprot):
3486
    args = getAllCategories_args()
3487
    args.read(iprot)
3488
    iprot.readMessageEnd()
3489
    result = getAllCategories_result()
3490
    result.success = self._handler.getAllCategories()
3491
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3492
    result.write(oprot)
3493
    oprot.writeMessageEnd()
3494
    oprot.trans.flush()
3495
 
3496
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3497
    args = getAllSimilarItems_args()
3498
    args.read(iprot)
3499
    iprot.readMessageEnd()
3500
    result = getAllSimilarItems_result()
3501
    result.success = self._handler.getAllSimilarItems(args.itemId)
3502
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3503
    result.write(oprot)
3504
    oprot.writeMessageEnd()
3505
    oprot.trans.flush()
3506
 
3507
  def process_addSimilarItem(self, seqid, iprot, oprot):
3508
    args = addSimilarItem_args()
3509
    args.read(iprot)
3510
    iprot.readMessageEnd()
3511
    result = addSimilarItem_result()
3512
    try:
3513
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3514
    except CatalogServiceException, cex:
3515
      result.cex = cex
3516
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3517
    result.write(oprot)
3518
    oprot.writeMessageEnd()
3519
    oprot.trans.flush()
3520
 
6512 kshitij.so 3521
  def process_addTag(self, seqid, iprot, oprot):
3522
    args = addTag_args()
3523
    args.read(iprot)
3524
    iprot.readMessageEnd()
3525
    result = addTag_result()
3526
    result.success = self._handler.addTag(args.displayName, args.itemId)
3527
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3528
    result.write(oprot)
3529
    oprot.writeMessageEnd()
3530
    oprot.trans.flush()
3531
 
3532
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3533
    args = deleteEntityTag_args()
3534
    args.read(iprot)
3535
    iprot.readMessageEnd()
3536
    result = deleteEntityTag_result()
3537
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3538
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3539
    result.write(oprot)
3540
    oprot.writeMessageEnd()
3541
    oprot.trans.flush()
3542
 
3543
  def process_deleteTag(self, seqid, iprot, oprot):
3544
    args = deleteTag_args()
3545
    args.read(iprot)
3546
    iprot.readMessageEnd()
3547
    result = deleteTag_result()
3548
    result.success = self._handler.deleteTag(args.displayName)
3549
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3550
    result.write(oprot)
3551
    oprot.writeMessageEnd()
3552
    oprot.trans.flush()
3553
 
3554
  def process_getAllTags(self, seqid, iprot, oprot):
3555
    args = getAllTags_args()
3556
    args.read(iprot)
3557
    iprot.readMessageEnd()
3558
    result = getAllTags_result()
3559
    result.success = self._handler.getAllTags()
3560
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3561
    result.write(oprot)
3562
    oprot.writeMessageEnd()
3563
    oprot.trans.flush()
3564
 
3565
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3566
    args = getAllEntitiesByTagName_args()
3567
    args.read(iprot)
3568
    iprot.readMessageEnd()
3569
    result = getAllEntitiesByTagName_result()
3570
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
3571
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
3572
    result.write(oprot)
3573
    oprot.writeMessageEnd()
3574
    oprot.trans.flush()
3575
 
6845 amit.gupta 3576
  def process_getAllEntityTags(self, seqid, iprot, oprot):
3577
    args = getAllEntityTags_args()
3578
    args.read(iprot)
3579
    iprot.readMessageEnd()
3580
    result = getAllEntityTags_result()
3581
    result.success = self._handler.getAllEntityTags()
3582
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
3583
    result.write(oprot)
3584
    oprot.writeMessageEnd()
3585
    oprot.trans.flush()
3586
 
5944 mandeep.dh 3587
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
3588
    args = deleteSimilarItem_args()
3589
    args.read(iprot)
3590
    iprot.readMessageEnd()
3591
    result = deleteSimilarItem_result()
3592
    try:
3593
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
3594
    except CatalogServiceException, cex:
3595
      result.cex = cex
3596
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
3597
    result.write(oprot)
3598
    oprot.writeMessageEnd()
3599
    oprot.trans.flush()
3600
 
3601
  def process_checkSimilarItem(self, seqid, iprot, oprot):
3602
    args = checkSimilarItem_args()
3603
    args.read(iprot)
3604
    iprot.readMessageEnd()
3605
    result = checkSimilarItem_result()
3606
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
3607
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
3608
    result.write(oprot)
3609
    oprot.writeMessageEnd()
3610
    oprot.trans.flush()
3611
 
3612
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
3613
    args = validateRiskyStatus_args()
3614
    args.read(iprot)
3615
    iprot.readMessageEnd()
3616
    result = validateRiskyStatus_result()
3617
    self._handler.validateRiskyStatus(args.itemId)
3618
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
3619
    result.write(oprot)
3620
    oprot.writeMessageEnd()
3621
    oprot.trans.flush()
3622
 
3623
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
3624
    args = changeItemRiskyFlag_args()
3625
    args.read(iprot)
3626
    iprot.readMessageEnd()
3627
    result = changeItemRiskyFlag_result()
3628
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
3629
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
3630
    result.write(oprot)
3631
    oprot.writeMessageEnd()
3632
    oprot.trans.flush()
3633
 
3634
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
3635
    args = getItemsByRiskyFlag_args()
3636
    args.read(iprot)
3637
    iprot.readMessageEnd()
3638
    result = getItemsByRiskyFlag_result()
3639
    result.success = self._handler.getItemsByRiskyFlag()
3640
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
3641
    result.write(oprot)
3642
    oprot.writeMessageEnd()
3643
    oprot.trans.flush()
3644
 
3645
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
3646
    args = getItemsForMasterSheet_args()
3647
    args.read(iprot)
3648
    iprot.readMessageEnd()
3649
    result = getItemsForMasterSheet_result()
3650
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
3651
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
3652
    result.write(oprot)
3653
    oprot.writeMessageEnd()
3654
    oprot.trans.flush()
3655
 
3656
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
3657
    args = getSimilarItemsCatalogIds_args()
3658
    args.read(iprot)
3659
    iprot.readMessageEnd()
3660
    result = getSimilarItemsCatalogIds_result()
3661
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
3662
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
3663
    result.write(oprot)
3664
    oprot.writeMessageEnd()
3665
    oprot.trans.flush()
3666
 
3667
  def process_addProductNotification(self, seqid, iprot, oprot):
3668
    args = addProductNotification_args()
3669
    args.read(iprot)
3670
    iprot.readMessageEnd()
3671
    result = addProductNotification_result()
3672
    result.success = self._handler.addProductNotification(args.itemId, args.email)
3673
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
3674
    result.write(oprot)
3675
    oprot.writeMessageEnd()
3676
    oprot.trans.flush()
3677
 
3678
  def process_sendProductNotifications(self, seqid, iprot, oprot):
3679
    args = sendProductNotifications_args()
3680
    args.read(iprot)
3681
    iprot.readMessageEnd()
3682
    result = sendProductNotifications_result()
3683
    result.success = self._handler.sendProductNotifications()
3684
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
3685
    result.write(oprot)
3686
    oprot.writeMessageEnd()
3687
    oprot.trans.flush()
3688
 
3689
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
3690
    args = getAllBrandsByCategory_args()
3691
    args.read(iprot)
3692
    iprot.readMessageEnd()
3693
    result = getAllBrandsByCategory_result()
3694
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
3695
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
3696
    result.write(oprot)
3697
    oprot.writeMessageEnd()
3698
    oprot.trans.flush()
3699
 
3700
  def process_getAllBrands(self, seqid, iprot, oprot):
3701
    args = getAllBrands_args()
3702
    args.read(iprot)
3703
    iprot.readMessageEnd()
3704
    result = getAllBrands_result()
3705
    result.success = self._handler.getAllBrands()
3706
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
3707
    result.write(oprot)
3708
    oprot.writeMessageEnd()
3709
    oprot.trans.flush()
3710
 
3711
  def process_getAllSources(self, seqid, iprot, oprot):
3712
    args = getAllSources_args()
3713
    args.read(iprot)
3714
    iprot.readMessageEnd()
3715
    result = getAllSources_result()
3716
    result.success = self._handler.getAllSources()
3717
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
3718
    result.write(oprot)
3719
    oprot.writeMessageEnd()
3720
    oprot.trans.flush()
3721
 
3722
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
3723
    args = getItemPricingBySource_args()
3724
    args.read(iprot)
3725
    iprot.readMessageEnd()
3726
    result = getItemPricingBySource_result()
3727
    try:
3728
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
3729
    except CatalogServiceException, cex:
3730
      result.cex = cex
3731
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
3732
    result.write(oprot)
3733
    oprot.writeMessageEnd()
3734
    oprot.trans.flush()
3735
 
3736
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
3737
    args = addSourceItemPricing_args()
3738
    args.read(iprot)
3739
    iprot.readMessageEnd()
3740
    result = addSourceItemPricing_result()
3741
    try:
3742
      self._handler.addSourceItemPricing(args.sourceItemPricing)
3743
    except CatalogServiceException, cex:
3744
      result.cex = cex
3745
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
3746
    result.write(oprot)
3747
    oprot.writeMessageEnd()
3748
    oprot.trans.flush()
3749
 
3750
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
3751
    args = getAllSourcePricing_args()
3752
    args.read(iprot)
3753
    iprot.readMessageEnd()
3754
    result = getAllSourcePricing_result()
3755
    try:
3756
      result.success = self._handler.getAllSourcePricing(args.itemId)
3757
    except CatalogServiceException, cex:
3758
      result.cex = cex
3759
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
3760
    result.write(oprot)
3761
    oprot.writeMessageEnd()
3762
    oprot.trans.flush()
3763
 
3764
  def process_getItemForSource(self, seqid, iprot, oprot):
3765
    args = getItemForSource_args()
3766
    args.read(iprot)
3767
    iprot.readMessageEnd()
3768
    result = getItemForSource_result()
3769
    try:
3770
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
3771
    except CatalogServiceException, cex:
3772
      result.cex = cex
3773
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
3774
    result.write(oprot)
3775
    oprot.writeMessageEnd()
3776
    oprot.trans.flush()
3777
 
3778
  def process_searchItemsInRange(self, seqid, iprot, oprot):
3779
    args = searchItemsInRange_args()
3780
    args.read(iprot)
3781
    iprot.readMessageEnd()
3782
    result = searchItemsInRange_result()
3783
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
3784
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
3785
    result.write(oprot)
3786
    oprot.writeMessageEnd()
3787
    oprot.trans.flush()
3788
 
3789
  def process_getSearchResultCount(self, seqid, iprot, oprot):
3790
    args = getSearchResultCount_args()
3791
    args.read(iprot)
3792
    iprot.readMessageEnd()
3793
    result = getSearchResultCount_result()
3794
    result.success = self._handler.getSearchResultCount(args.searchTerms)
3795
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
3796
    result.write(oprot)
3797
    oprot.writeMessageEnd()
3798
    oprot.trans.flush()
3799
 
3800
  def process_getProductNotifications(self, seqid, iprot, oprot):
3801
    args = getProductNotifications_args()
3802
    args.read(iprot)
3803
    iprot.readMessageEnd()
3804
    result = getProductNotifications_result()
3805
    result.success = self._handler.getProductNotifications(args.startDateTime)
3806
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
3807
    result.write(oprot)
3808
    oprot.writeMessageEnd()
3809
    oprot.trans.flush()
3810
 
3811
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
3812
    args = getProductNotificationRequestCount_args()
3813
    args.read(iprot)
3814
    iprot.readMessageEnd()
3815
    result = getProductNotificationRequestCount_result()
3816
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
3817
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
3818
    result.write(oprot)
3819
    oprot.writeMessageEnd()
3820
    oprot.trans.flush()
3821
 
3822
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
3823
    args = addAuthorizationLog_args()
3824
    args.read(iprot)
3825
    iprot.readMessageEnd()
3826
    result = addAuthorizationLog_result()
3827
    try:
3828
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
3829
    except CatalogServiceException, cex:
3830
      result.cex = cex
3831
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
3832
    result.write(oprot)
3833
    oprot.writeMessageEnd()
3834
    oprot.trans.flush()
3835
 
3836
  def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):
3837
    args = getClearanceSaleCatalogIds_args()
3838
    args.read(iprot)
3839
    iprot.readMessageEnd()
3840
    result = getClearanceSaleCatalogIds_result()
3841
    try:
3842
      result.success = self._handler.getClearanceSaleCatalogIds()
3843
    except CatalogServiceException, cex:
3844
      result.cex = cex
3845
    oprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)
3846
    result.write(oprot)
3847
    oprot.writeMessageEnd()
3848
    oprot.trans.flush()
3849
 
3850
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
3851
    args = addupdateVoucherForItem_args()
3852
    args.read(iprot)
3853
    iprot.readMessageEnd()
3854
    result = addupdateVoucherForItem_result()
3855
    try:
3856
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
3857
    except CatalogServiceException, cex:
3858
      result.cex = cex
3859
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
3860
    result.write(oprot)
3861
    oprot.writeMessageEnd()
3862
    oprot.trans.flush()
3863
 
3864
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
3865
    args = deleteVoucherForItem_args()
3866
    args.read(iprot)
3867
    iprot.readMessageEnd()
3868
    result = deleteVoucherForItem_result()
3869
    try:
3870
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
3871
    except CatalogServiceException, cex:
3872
      result.cex = cex
3873
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
3874
    result.write(oprot)
3875
    oprot.writeMessageEnd()
3876
    oprot.trans.flush()
3877
 
3878
  def process_getVoucherAmount(self, seqid, iprot, oprot):
3879
    args = getVoucherAmount_args()
3880
    args.read(iprot)
3881
    iprot.readMessageEnd()
3882
    result = getVoucherAmount_result()
3883
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
3884
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
3885
    result.write(oprot)
3886
    oprot.writeMessageEnd()
3887
    oprot.trans.flush()
3888
 
3889
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
3890
    args = getAllItemVouchers_args()
3891
    args.read(iprot)
3892
    iprot.readMessageEnd()
3893
    result = getAllItemVouchers_result()
3894
    result.success = self._handler.getAllItemVouchers(args.itemId)
3895
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
3896
    result.write(oprot)
3897
    oprot.writeMessageEnd()
3898
    oprot.trans.flush()
3899
 
3900
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
3901
    args = isValidCatalogItemId_args()
3902
    args.read(iprot)
3903
    iprot.readMessageEnd()
3904
    result = isValidCatalogItemId_result()
3905
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
3906
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
3907
    result.write(oprot)
3908
    oprot.writeMessageEnd()
3909
    oprot.trans.flush()
3910
 
6039 amit.gupta 3911
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
3912
    args = getVatPercentageForItem_args()
3913
    args.read(iprot)
3914
    iprot.readMessageEnd()
3915
    result = getVatPercentageForItem_result()
3916
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
3917
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
3918
    result.write(oprot)
3919
    oprot.writeMessageEnd()
3920
    oprot.trans.flush()
5944 mandeep.dh 3921
 
6039 amit.gupta 3922
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
3923
    args = getVatAmountForItem_args()
3924
    args.read(iprot)
3925
    iprot.readMessageEnd()
3926
    result = getVatAmountForItem_result()
3927
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
3928
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
3929
    result.write(oprot)
3930
    oprot.writeMessageEnd()
3931
    oprot.trans.flush()
3932
 
6531 vikram.rag 3933
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
3934
    args = getAllIgnoredInventoryUpdateItemsList_args()
3935
    args.read(iprot)
3936
    iprot.readMessageEnd()
3937
    result = getAllIgnoredInventoryUpdateItemsList_result()
3938
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
3939
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
3940
    result.write(oprot)
3941
    oprot.writeMessageEnd()
3942
    oprot.trans.flush()
6039 amit.gupta 3943
 
6821 amar.kumar 3944
  def process_getAllAliveItems(self, seqid, iprot, oprot):
3945
    args = getAllAliveItems_args()
3946
    args.read(iprot)
3947
    iprot.readMessageEnd()
3948
    result = getAllAliveItems_result()
3949
    result.success = self._handler.getAllAliveItems()
3950
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
3951
    result.write(oprot)
3952
    oprot.writeMessageEnd()
3953
    oprot.trans.flush()
3954
 
6805 anupam.sin 3955
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
3956
    args = getInsuranceAmount_args()
3957
    args.read(iprot)
3958
    iprot.readMessageEnd()
3959
    result = getInsuranceAmount_result()
3960
    result.success = self._handler.getInsuranceAmount(args.itemId, args.insurerId, args.quantity)
3961
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
3962
    result.write(oprot)
3963
    oprot.writeMessageEnd()
3964
    oprot.trans.flush()
6531 vikram.rag 3965
 
6805 anupam.sin 3966
  def process_getInsurer(self, seqid, iprot, oprot):
3967
    args = getInsurer_args()
3968
    args.read(iprot)
3969
    iprot.readMessageEnd()
3970
    result = getInsurer_result()
3971
    result.success = self._handler.getInsurer(args.insurerId)
3972
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
3973
    result.write(oprot)
3974
    oprot.writeMessageEnd()
3975
    oprot.trans.flush()
3976
 
6838 vikram.rag 3977
  def process_getAllInsurers(self, seqid, iprot, oprot):
3978
    args = getAllInsurers_args()
3979
    args.read(iprot)
3980
    iprot.readMessageEnd()
3981
    result = getAllInsurers_result()
3982
    result.success = self._handler.getAllInsurers()
3983
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
3984
    result.write(oprot)
3985
    oprot.writeMessageEnd()
3986
    oprot.trans.flush()
6805 anupam.sin 3987
 
6838 vikram.rag 3988
 
5944 mandeep.dh 3989
# HELPER FUNCTIONS AND STRUCTURES
3990
 
3991
class addItem_args:
3992
  """
3993
  Attributes:
3994
   - item
3995
  """
3996
 
3997
  thrift_spec = (
3998
    None, # 0
3999
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4000
  )
4001
 
4002
  def __init__(self, item=None,):
4003
    self.item = item
4004
 
4005
  def read(self, iprot):
4006
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4007
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4008
      return
4009
    iprot.readStructBegin()
4010
    while True:
4011
      (fname, ftype, fid) = iprot.readFieldBegin()
4012
      if ftype == TType.STOP:
4013
        break
4014
      if fid == 1:
4015
        if ftype == TType.STRUCT:
4016
          self.item = Item()
4017
          self.item.read(iprot)
4018
        else:
4019
          iprot.skip(ftype)
4020
      else:
4021
        iprot.skip(ftype)
4022
      iprot.readFieldEnd()
4023
    iprot.readStructEnd()
4024
 
4025
  def write(self, oprot):
4026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4028
      return
4029
    oprot.writeStructBegin('addItem_args')
4030
    if self.item is not None:
4031
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4032
      self.item.write(oprot)
4033
      oprot.writeFieldEnd()
4034
    oprot.writeFieldStop()
4035
    oprot.writeStructEnd()
4036
 
4037
  def validate(self):
4038
    return
4039
 
4040
 
4041
  def __repr__(self):
4042
    L = ['%s=%r' % (key, value)
4043
      for key, value in self.__dict__.iteritems()]
4044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4045
 
4046
  def __eq__(self, other):
4047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4048
 
4049
  def __ne__(self, other):
4050
    return not (self == other)
4051
 
4052
class addItem_result:
4053
  """
4054
  Attributes:
4055
   - success
4056
   - cex
4057
  """
4058
 
4059
  thrift_spec = (
4060
    (0, TType.I64, 'success', None, None, ), # 0
4061
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4062
  )
4063
 
4064
  def __init__(self, success=None, cex=None,):
4065
    self.success = success
4066
    self.cex = cex
4067
 
4068
  def read(self, iprot):
4069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4071
      return
4072
    iprot.readStructBegin()
4073
    while True:
4074
      (fname, ftype, fid) = iprot.readFieldBegin()
4075
      if ftype == TType.STOP:
4076
        break
4077
      if fid == 0:
4078
        if ftype == TType.I64:
4079
          self.success = iprot.readI64();
4080
        else:
4081
          iprot.skip(ftype)
4082
      elif fid == 1:
4083
        if ftype == TType.STRUCT:
4084
          self.cex = CatalogServiceException()
4085
          self.cex.read(iprot)
4086
        else:
4087
          iprot.skip(ftype)
4088
      else:
4089
        iprot.skip(ftype)
4090
      iprot.readFieldEnd()
4091
    iprot.readStructEnd()
4092
 
4093
  def write(self, oprot):
4094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4096
      return
4097
    oprot.writeStructBegin('addItem_result')
4098
    if self.success is not None:
4099
      oprot.writeFieldBegin('success', TType.I64, 0)
4100
      oprot.writeI64(self.success)
4101
      oprot.writeFieldEnd()
4102
    if self.cex is not None:
4103
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4104
      self.cex.write(oprot)
4105
      oprot.writeFieldEnd()
4106
    oprot.writeFieldStop()
4107
    oprot.writeStructEnd()
4108
 
4109
  def validate(self):
4110
    return
4111
 
4112
 
4113
  def __repr__(self):
4114
    L = ['%s=%r' % (key, value)
4115
      for key, value in self.__dict__.iteritems()]
4116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4117
 
4118
  def __eq__(self, other):
4119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4120
 
4121
  def __ne__(self, other):
4122
    return not (self == other)
4123
 
4124
class updateItem_args:
4125
  """
4126
  Attributes:
4127
   - item
4128
  """
4129
 
4130
  thrift_spec = (
4131
    None, # 0
4132
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4133
  )
4134
 
4135
  def __init__(self, item=None,):
4136
    self.item = item
4137
 
4138
  def read(self, iprot):
4139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4141
      return
4142
    iprot.readStructBegin()
4143
    while True:
4144
      (fname, ftype, fid) = iprot.readFieldBegin()
4145
      if ftype == TType.STOP:
4146
        break
4147
      if fid == 1:
4148
        if ftype == TType.STRUCT:
4149
          self.item = Item()
4150
          self.item.read(iprot)
4151
        else:
4152
          iprot.skip(ftype)
4153
      else:
4154
        iprot.skip(ftype)
4155
      iprot.readFieldEnd()
4156
    iprot.readStructEnd()
4157
 
4158
  def write(self, oprot):
4159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4161
      return
4162
    oprot.writeStructBegin('updateItem_args')
4163
    if self.item is not None:
4164
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4165
      self.item.write(oprot)
4166
      oprot.writeFieldEnd()
4167
    oprot.writeFieldStop()
4168
    oprot.writeStructEnd()
4169
 
4170
  def validate(self):
4171
    return
4172
 
4173
 
4174
  def __repr__(self):
4175
    L = ['%s=%r' % (key, value)
4176
      for key, value in self.__dict__.iteritems()]
4177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4178
 
4179
  def __eq__(self, other):
4180
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4181
 
4182
  def __ne__(self, other):
4183
    return not (self == other)
4184
 
4185
class updateItem_result:
4186
  """
4187
  Attributes:
4188
   - success
4189
   - cex
4190
  """
4191
 
4192
  thrift_spec = (
4193
    (0, TType.I64, 'success', None, None, ), # 0
4194
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4195
  )
4196
 
4197
  def __init__(self, success=None, cex=None,):
4198
    self.success = success
4199
    self.cex = cex
4200
 
4201
  def read(self, iprot):
4202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4204
      return
4205
    iprot.readStructBegin()
4206
    while True:
4207
      (fname, ftype, fid) = iprot.readFieldBegin()
4208
      if ftype == TType.STOP:
4209
        break
4210
      if fid == 0:
4211
        if ftype == TType.I64:
4212
          self.success = iprot.readI64();
4213
        else:
4214
          iprot.skip(ftype)
4215
      elif fid == 1:
4216
        if ftype == TType.STRUCT:
4217
          self.cex = CatalogServiceException()
4218
          self.cex.read(iprot)
4219
        else:
4220
          iprot.skip(ftype)
4221
      else:
4222
        iprot.skip(ftype)
4223
      iprot.readFieldEnd()
4224
    iprot.readStructEnd()
4225
 
4226
  def write(self, oprot):
4227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4229
      return
4230
    oprot.writeStructBegin('updateItem_result')
4231
    if self.success is not None:
4232
      oprot.writeFieldBegin('success', TType.I64, 0)
4233
      oprot.writeI64(self.success)
4234
      oprot.writeFieldEnd()
4235
    if self.cex is not None:
4236
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4237
      self.cex.write(oprot)
4238
      oprot.writeFieldEnd()
4239
    oprot.writeFieldStop()
4240
    oprot.writeStructEnd()
4241
 
4242
  def validate(self):
4243
    return
4244
 
4245
 
4246
  def __repr__(self):
4247
    L = ['%s=%r' % (key, value)
4248
      for key, value in self.__dict__.iteritems()]
4249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4250
 
4251
  def __eq__(self, other):
4252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4253
 
4254
  def __ne__(self, other):
4255
    return not (self == other)
4256
 
4257
class isActive_args:
4258
  """
4259
  Attributes:
4260
   - itemId
4261
  """
4262
 
4263
  thrift_spec = (
4264
    None, # 0
4265
    (1, TType.I64, 'itemId', None, None, ), # 1
4266
  )
4267
 
4268
  def __init__(self, itemId=None,):
4269
    self.itemId = itemId
4270
 
4271
  def read(self, iprot):
4272
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4273
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4274
      return
4275
    iprot.readStructBegin()
4276
    while True:
4277
      (fname, ftype, fid) = iprot.readFieldBegin()
4278
      if ftype == TType.STOP:
4279
        break
4280
      if fid == 1:
4281
        if ftype == TType.I64:
4282
          self.itemId = iprot.readI64();
4283
        else:
4284
          iprot.skip(ftype)
4285
      else:
4286
        iprot.skip(ftype)
4287
      iprot.readFieldEnd()
4288
    iprot.readStructEnd()
4289
 
4290
  def write(self, oprot):
4291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4293
      return
4294
    oprot.writeStructBegin('isActive_args')
4295
    if self.itemId is not None:
4296
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4297
      oprot.writeI64(self.itemId)
4298
      oprot.writeFieldEnd()
4299
    oprot.writeFieldStop()
4300
    oprot.writeStructEnd()
4301
 
4302
  def validate(self):
4303
    return
4304
 
4305
 
4306
  def __repr__(self):
4307
    L = ['%s=%r' % (key, value)
4308
      for key, value in self.__dict__.iteritems()]
4309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4310
 
4311
  def __eq__(self, other):
4312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4313
 
4314
  def __ne__(self, other):
4315
    return not (self == other)
4316
 
4317
class isActive_result:
4318
  """
4319
  Attributes:
4320
   - success
4321
   - isex
4322
  """
4323
 
4324
  thrift_spec = (
4325
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4326
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4327
  )
4328
 
4329
  def __init__(self, success=None, isex=None,):
4330
    self.success = success
4331
    self.isex = isex
4332
 
4333
  def read(self, iprot):
4334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4336
      return
4337
    iprot.readStructBegin()
4338
    while True:
4339
      (fname, ftype, fid) = iprot.readFieldBegin()
4340
      if ftype == TType.STOP:
4341
        break
4342
      if fid == 0:
4343
        if ftype == TType.STRUCT:
4344
          self.success = ItemShippingInfo()
4345
          self.success.read(iprot)
4346
        else:
4347
          iprot.skip(ftype)
4348
      elif fid == 1:
4349
        if ftype == TType.STRUCT:
4350
          self.isex = CatalogServiceException()
4351
          self.isex.read(iprot)
4352
        else:
4353
          iprot.skip(ftype)
4354
      else:
4355
        iprot.skip(ftype)
4356
      iprot.readFieldEnd()
4357
    iprot.readStructEnd()
4358
 
4359
  def write(self, oprot):
4360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4362
      return
4363
    oprot.writeStructBegin('isActive_result')
4364
    if self.success is not None:
4365
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4366
      self.success.write(oprot)
4367
      oprot.writeFieldEnd()
4368
    if self.isex is not None:
4369
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4370
      self.isex.write(oprot)
4371
      oprot.writeFieldEnd()
4372
    oprot.writeFieldStop()
4373
    oprot.writeStructEnd()
4374
 
4375
  def validate(self):
4376
    return
4377
 
4378
 
4379
  def __repr__(self):
4380
    L = ['%s=%r' % (key, value)
4381
      for key, value in self.__dict__.iteritems()]
4382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4383
 
4384
  def __eq__(self, other):
4385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4386
 
4387
  def __ne__(self, other):
4388
    return not (self == other)
4389
 
4390
class getItemStatusDescription_args:
4391
  """
4392
  Attributes:
4393
   - itemId
4394
  """
4395
 
4396
  thrift_spec = (
4397
    None, # 0
4398
    (1, TType.I64, 'itemId', None, None, ), # 1
4399
  )
4400
 
4401
  def __init__(self, itemId=None,):
4402
    self.itemId = itemId
4403
 
4404
  def read(self, iprot):
4405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4407
      return
4408
    iprot.readStructBegin()
4409
    while True:
4410
      (fname, ftype, fid) = iprot.readFieldBegin()
4411
      if ftype == TType.STOP:
4412
        break
4413
      if fid == 1:
4414
        if ftype == TType.I64:
4415
          self.itemId = iprot.readI64();
4416
        else:
4417
          iprot.skip(ftype)
4418
      else:
4419
        iprot.skip(ftype)
4420
      iprot.readFieldEnd()
4421
    iprot.readStructEnd()
4422
 
4423
  def write(self, oprot):
4424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4426
      return
4427
    oprot.writeStructBegin('getItemStatusDescription_args')
4428
    if self.itemId is not None:
4429
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4430
      oprot.writeI64(self.itemId)
4431
      oprot.writeFieldEnd()
4432
    oprot.writeFieldStop()
4433
    oprot.writeStructEnd()
4434
 
4435
  def validate(self):
4436
    return
4437
 
4438
 
4439
  def __repr__(self):
4440
    L = ['%s=%r' % (key, value)
4441
      for key, value in self.__dict__.iteritems()]
4442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4443
 
4444
  def __eq__(self, other):
4445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4446
 
4447
  def __ne__(self, other):
4448
    return not (self == other)
4449
 
4450
class getItemStatusDescription_result:
4451
  """
4452
  Attributes:
4453
   - success
4454
   - isex
4455
  """
4456
 
4457
  thrift_spec = (
4458
    (0, TType.STRING, 'success', None, None, ), # 0
4459
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4460
  )
4461
 
4462
  def __init__(self, success=None, isex=None,):
4463
    self.success = success
4464
    self.isex = isex
4465
 
4466
  def read(self, iprot):
4467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4469
      return
4470
    iprot.readStructBegin()
4471
    while True:
4472
      (fname, ftype, fid) = iprot.readFieldBegin()
4473
      if ftype == TType.STOP:
4474
        break
4475
      if fid == 0:
4476
        if ftype == TType.STRING:
4477
          self.success = iprot.readString();
4478
        else:
4479
          iprot.skip(ftype)
4480
      elif fid == 1:
4481
        if ftype == TType.STRUCT:
4482
          self.isex = CatalogServiceException()
4483
          self.isex.read(iprot)
4484
        else:
4485
          iprot.skip(ftype)
4486
      else:
4487
        iprot.skip(ftype)
4488
      iprot.readFieldEnd()
4489
    iprot.readStructEnd()
4490
 
4491
  def write(self, oprot):
4492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4494
      return
4495
    oprot.writeStructBegin('getItemStatusDescription_result')
4496
    if self.success is not None:
4497
      oprot.writeFieldBegin('success', TType.STRING, 0)
4498
      oprot.writeString(self.success)
4499
      oprot.writeFieldEnd()
4500
    if self.isex is not None:
4501
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4502
      self.isex.write(oprot)
4503
      oprot.writeFieldEnd()
4504
    oprot.writeFieldStop()
4505
    oprot.writeStructEnd()
4506
 
4507
  def validate(self):
4508
    return
4509
 
4510
 
4511
  def __repr__(self):
4512
    L = ['%s=%r' % (key, value)
4513
      for key, value in self.__dict__.iteritems()]
4514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4515
 
4516
  def __eq__(self, other):
4517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4518
 
4519
  def __ne__(self, other):
4520
    return not (self == other)
4521
 
4522
class startItemOn_args:
4523
  """
4524
  Attributes:
4525
   - item_id
4526
   - timestamp
4527
  """
4528
 
4529
  thrift_spec = (
4530
    None, # 0
4531
    (1, TType.I64, 'item_id', None, None, ), # 1
4532
    (2, TType.I64, 'timestamp', None, None, ), # 2
4533
  )
4534
 
4535
  def __init__(self, item_id=None, timestamp=None,):
4536
    self.item_id = item_id
4537
    self.timestamp = timestamp
4538
 
4539
  def read(self, iprot):
4540
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4541
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4542
      return
4543
    iprot.readStructBegin()
4544
    while True:
4545
      (fname, ftype, fid) = iprot.readFieldBegin()
4546
      if ftype == TType.STOP:
4547
        break
4548
      if fid == 1:
4549
        if ftype == TType.I64:
4550
          self.item_id = iprot.readI64();
4551
        else:
4552
          iprot.skip(ftype)
4553
      elif fid == 2:
4554
        if ftype == TType.I64:
4555
          self.timestamp = iprot.readI64();
4556
        else:
4557
          iprot.skip(ftype)
4558
      else:
4559
        iprot.skip(ftype)
4560
      iprot.readFieldEnd()
4561
    iprot.readStructEnd()
4562
 
4563
  def write(self, oprot):
4564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4566
      return
4567
    oprot.writeStructBegin('startItemOn_args')
4568
    if self.item_id is not None:
4569
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4570
      oprot.writeI64(self.item_id)
4571
      oprot.writeFieldEnd()
4572
    if self.timestamp is not None:
4573
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4574
      oprot.writeI64(self.timestamp)
4575
      oprot.writeFieldEnd()
4576
    oprot.writeFieldStop()
4577
    oprot.writeStructEnd()
4578
 
4579
  def validate(self):
4580
    return
4581
 
4582
 
4583
  def __repr__(self):
4584
    L = ['%s=%r' % (key, value)
4585
      for key, value in self.__dict__.iteritems()]
4586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4587
 
4588
  def __eq__(self, other):
4589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4590
 
4591
  def __ne__(self, other):
4592
    return not (self == other)
4593
 
4594
class startItemOn_result:
4595
  """
4596
  Attributes:
4597
   - cex
4598
  """
4599
 
4600
  thrift_spec = (
4601
    None, # 0
4602
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4603
  )
4604
 
4605
  def __init__(self, cex=None,):
4606
    self.cex = cex
4607
 
4608
  def read(self, iprot):
4609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4611
      return
4612
    iprot.readStructBegin()
4613
    while True:
4614
      (fname, ftype, fid) = iprot.readFieldBegin()
4615
      if ftype == TType.STOP:
4616
        break
4617
      if fid == 1:
4618
        if ftype == TType.STRUCT:
4619
          self.cex = CatalogServiceException()
4620
          self.cex.read(iprot)
4621
        else:
4622
          iprot.skip(ftype)
4623
      else:
4624
        iprot.skip(ftype)
4625
      iprot.readFieldEnd()
4626
    iprot.readStructEnd()
4627
 
4628
  def write(self, oprot):
4629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4631
      return
4632
    oprot.writeStructBegin('startItemOn_result')
4633
    if self.cex is not None:
4634
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4635
      self.cex.write(oprot)
4636
      oprot.writeFieldEnd()
4637
    oprot.writeFieldStop()
4638
    oprot.writeStructEnd()
4639
 
4640
  def validate(self):
4641
    return
4642
 
4643
 
4644
  def __repr__(self):
4645
    L = ['%s=%r' % (key, value)
4646
      for key, value in self.__dict__.iteritems()]
4647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4648
 
4649
  def __eq__(self, other):
4650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4651
 
4652
  def __ne__(self, other):
4653
    return not (self == other)
4654
 
4655
class retireItemOn_args:
4656
  """
4657
  Attributes:
4658
   - item_id
4659
   - timestamp
4660
  """
4661
 
4662
  thrift_spec = (
4663
    None, # 0
4664
    (1, TType.I64, 'item_id', None, None, ), # 1
4665
    (2, TType.I64, 'timestamp', None, None, ), # 2
4666
  )
4667
 
4668
  def __init__(self, item_id=None, timestamp=None,):
4669
    self.item_id = item_id
4670
    self.timestamp = timestamp
4671
 
4672
  def read(self, iprot):
4673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4675
      return
4676
    iprot.readStructBegin()
4677
    while True:
4678
      (fname, ftype, fid) = iprot.readFieldBegin()
4679
      if ftype == TType.STOP:
4680
        break
4681
      if fid == 1:
4682
        if ftype == TType.I64:
4683
          self.item_id = iprot.readI64();
4684
        else:
4685
          iprot.skip(ftype)
4686
      elif fid == 2:
4687
        if ftype == TType.I64:
4688
          self.timestamp = iprot.readI64();
4689
        else:
4690
          iprot.skip(ftype)
4691
      else:
4692
        iprot.skip(ftype)
4693
      iprot.readFieldEnd()
4694
    iprot.readStructEnd()
4695
 
4696
  def write(self, oprot):
4697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4699
      return
4700
    oprot.writeStructBegin('retireItemOn_args')
4701
    if self.item_id is not None:
4702
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4703
      oprot.writeI64(self.item_id)
4704
      oprot.writeFieldEnd()
4705
    if self.timestamp is not None:
4706
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4707
      oprot.writeI64(self.timestamp)
4708
      oprot.writeFieldEnd()
4709
    oprot.writeFieldStop()
4710
    oprot.writeStructEnd()
4711
 
4712
  def validate(self):
4713
    return
4714
 
4715
 
4716
  def __repr__(self):
4717
    L = ['%s=%r' % (key, value)
4718
      for key, value in self.__dict__.iteritems()]
4719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4720
 
4721
  def __eq__(self, other):
4722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4723
 
4724
  def __ne__(self, other):
4725
    return not (self == other)
4726
 
4727
class retireItemOn_result:
4728
  """
4729
  Attributes:
4730
   - cex
4731
  """
4732
 
4733
  thrift_spec = (
4734
    None, # 0
4735
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4736
  )
4737
 
4738
  def __init__(self, cex=None,):
4739
    self.cex = cex
4740
 
4741
  def read(self, iprot):
4742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4744
      return
4745
    iprot.readStructBegin()
4746
    while True:
4747
      (fname, ftype, fid) = iprot.readFieldBegin()
4748
      if ftype == TType.STOP:
4749
        break
4750
      if fid == 1:
4751
        if ftype == TType.STRUCT:
4752
          self.cex = CatalogServiceException()
4753
          self.cex.read(iprot)
4754
        else:
4755
          iprot.skip(ftype)
4756
      else:
4757
        iprot.skip(ftype)
4758
      iprot.readFieldEnd()
4759
    iprot.readStructEnd()
4760
 
4761
  def write(self, oprot):
4762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4764
      return
4765
    oprot.writeStructBegin('retireItemOn_result')
4766
    if self.cex is not None:
4767
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4768
      self.cex.write(oprot)
4769
      oprot.writeFieldEnd()
4770
    oprot.writeFieldStop()
4771
    oprot.writeStructEnd()
4772
 
4773
  def validate(self):
4774
    return
4775
 
4776
 
4777
  def __repr__(self):
4778
    L = ['%s=%r' % (key, value)
4779
      for key, value in self.__dict__.iteritems()]
4780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4781
 
4782
  def __eq__(self, other):
4783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4784
 
4785
  def __ne__(self, other):
4786
    return not (self == other)
4787
 
4788
class changeItemStatus_args:
4789
  """
4790
  Attributes:
4791
   - item_id
4792
   - timestamp
4793
   - newstatus
4794
  """
4795
 
4796
  thrift_spec = (
4797
    None, # 0
4798
    (1, TType.I64, 'item_id', None, None, ), # 1
4799
    (2, TType.I64, 'timestamp', None, None, ), # 2
4800
    (3, TType.I32, 'newstatus', None, None, ), # 3
4801
  )
4802
 
4803
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
4804
    self.item_id = item_id
4805
    self.timestamp = timestamp
4806
    self.newstatus = newstatus
4807
 
4808
  def read(self, iprot):
4809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4811
      return
4812
    iprot.readStructBegin()
4813
    while True:
4814
      (fname, ftype, fid) = iprot.readFieldBegin()
4815
      if ftype == TType.STOP:
4816
        break
4817
      if fid == 1:
4818
        if ftype == TType.I64:
4819
          self.item_id = iprot.readI64();
4820
        else:
4821
          iprot.skip(ftype)
4822
      elif fid == 2:
4823
        if ftype == TType.I64:
4824
          self.timestamp = iprot.readI64();
4825
        else:
4826
          iprot.skip(ftype)
4827
      elif fid == 3:
4828
        if ftype == TType.I32:
4829
          self.newstatus = iprot.readI32();
4830
        else:
4831
          iprot.skip(ftype)
4832
      else:
4833
        iprot.skip(ftype)
4834
      iprot.readFieldEnd()
4835
    iprot.readStructEnd()
4836
 
4837
  def write(self, oprot):
4838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4840
      return
4841
    oprot.writeStructBegin('changeItemStatus_args')
4842
    if self.item_id is not None:
4843
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4844
      oprot.writeI64(self.item_id)
4845
      oprot.writeFieldEnd()
4846
    if self.timestamp is not None:
4847
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4848
      oprot.writeI64(self.timestamp)
4849
      oprot.writeFieldEnd()
4850
    if self.newstatus is not None:
4851
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
4852
      oprot.writeI32(self.newstatus)
4853
      oprot.writeFieldEnd()
4854
    oprot.writeFieldStop()
4855
    oprot.writeStructEnd()
4856
 
4857
  def validate(self):
4858
    return
4859
 
4860
 
4861
  def __repr__(self):
4862
    L = ['%s=%r' % (key, value)
4863
      for key, value in self.__dict__.iteritems()]
4864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4865
 
4866
  def __eq__(self, other):
4867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4868
 
4869
  def __ne__(self, other):
4870
    return not (self == other)
4871
 
4872
class changeItemStatus_result:
4873
  """
4874
  Attributes:
4875
   - cex
4876
  """
4877
 
4878
  thrift_spec = (
4879
    None, # 0
4880
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4881
  )
4882
 
4883
  def __init__(self, cex=None,):
4884
    self.cex = cex
4885
 
4886
  def read(self, iprot):
4887
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4888
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4889
      return
4890
    iprot.readStructBegin()
4891
    while True:
4892
      (fname, ftype, fid) = iprot.readFieldBegin()
4893
      if ftype == TType.STOP:
4894
        break
4895
      if fid == 1:
4896
        if ftype == TType.STRUCT:
4897
          self.cex = CatalogServiceException()
4898
          self.cex.read(iprot)
4899
        else:
4900
          iprot.skip(ftype)
4901
      else:
4902
        iprot.skip(ftype)
4903
      iprot.readFieldEnd()
4904
    iprot.readStructEnd()
4905
 
4906
  def write(self, oprot):
4907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4909
      return
4910
    oprot.writeStructBegin('changeItemStatus_result')
4911
    if self.cex is not None:
4912
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4913
      self.cex.write(oprot)
4914
      oprot.writeFieldEnd()
4915
    oprot.writeFieldStop()
4916
    oprot.writeStructEnd()
4917
 
4918
  def validate(self):
4919
    return
4920
 
4921
 
4922
  def __repr__(self):
4923
    L = ['%s=%r' % (key, value)
4924
      for key, value in self.__dict__.iteritems()]
4925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4926
 
4927
  def __eq__(self, other):
4928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4929
 
4930
  def __ne__(self, other):
4931
    return not (self == other)
4932
 
4933
class getItem_args:
4934
  """
4935
  Attributes:
4936
   - item_id
4937
  """
4938
 
4939
  thrift_spec = (
4940
    None, # 0
4941
    (1, TType.I64, 'item_id', None, None, ), # 1
4942
  )
4943
 
4944
  def __init__(self, item_id=None,):
4945
    self.item_id = item_id
4946
 
4947
  def read(self, iprot):
4948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4950
      return
4951
    iprot.readStructBegin()
4952
    while True:
4953
      (fname, ftype, fid) = iprot.readFieldBegin()
4954
      if ftype == TType.STOP:
4955
        break
4956
      if fid == 1:
4957
        if ftype == TType.I64:
4958
          self.item_id = iprot.readI64();
4959
        else:
4960
          iprot.skip(ftype)
4961
      else:
4962
        iprot.skip(ftype)
4963
      iprot.readFieldEnd()
4964
    iprot.readStructEnd()
4965
 
4966
  def write(self, oprot):
4967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4969
      return
4970
    oprot.writeStructBegin('getItem_args')
4971
    if self.item_id is not None:
4972
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4973
      oprot.writeI64(self.item_id)
4974
      oprot.writeFieldEnd()
4975
    oprot.writeFieldStop()
4976
    oprot.writeStructEnd()
4977
 
4978
  def validate(self):
4979
    return
4980
 
4981
 
4982
  def __repr__(self):
4983
    L = ['%s=%r' % (key, value)
4984
      for key, value in self.__dict__.iteritems()]
4985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4986
 
4987
  def __eq__(self, other):
4988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4989
 
4990
  def __ne__(self, other):
4991
    return not (self == other)
4992
 
4993
class getItem_result:
4994
  """
4995
  Attributes:
4996
   - success
4997
   - cex
4998
  """
4999
 
5000
  thrift_spec = (
5001
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
5002
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5003
  )
5004
 
5005
  def __init__(self, success=None, cex=None,):
5006
    self.success = success
5007
    self.cex = cex
5008
 
5009
  def read(self, iprot):
5010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5012
      return
5013
    iprot.readStructBegin()
5014
    while True:
5015
      (fname, ftype, fid) = iprot.readFieldBegin()
5016
      if ftype == TType.STOP:
5017
        break
5018
      if fid == 0:
5019
        if ftype == TType.STRUCT:
5020
          self.success = Item()
5021
          self.success.read(iprot)
5022
        else:
5023
          iprot.skip(ftype)
5024
      elif fid == 1:
5025
        if ftype == TType.STRUCT:
5026
          self.cex = CatalogServiceException()
5027
          self.cex.read(iprot)
5028
        else:
5029
          iprot.skip(ftype)
5030
      else:
5031
        iprot.skip(ftype)
5032
      iprot.readFieldEnd()
5033
    iprot.readStructEnd()
5034
 
5035
  def write(self, oprot):
5036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5038
      return
5039
    oprot.writeStructBegin('getItem_result')
5040
    if self.success is not None:
5041
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5042
      self.success.write(oprot)
5043
      oprot.writeFieldEnd()
5044
    if self.cex is not None:
5045
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5046
      self.cex.write(oprot)
5047
      oprot.writeFieldEnd()
5048
    oprot.writeFieldStop()
5049
    oprot.writeStructEnd()
5050
 
5051
  def validate(self):
5052
    return
5053
 
5054
 
5055
  def __repr__(self):
5056
    L = ['%s=%r' % (key, value)
5057
      for key, value in self.__dict__.iteritems()]
5058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5059
 
5060
  def __eq__(self, other):
5061
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5062
 
5063
  def __ne__(self, other):
5064
    return not (self == other)
5065
 
5066
class getItemsByCatalogId_args:
5067
  """
5068
  Attributes:
5069
   - catalog_item_id
5070
  """
5071
 
5072
  thrift_spec = (
5073
    None, # 0
5074
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5075
  )
5076
 
5077
  def __init__(self, catalog_item_id=None,):
5078
    self.catalog_item_id = catalog_item_id
5079
 
5080
  def read(self, iprot):
5081
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5082
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5083
      return
5084
    iprot.readStructBegin()
5085
    while True:
5086
      (fname, ftype, fid) = iprot.readFieldBegin()
5087
      if ftype == TType.STOP:
5088
        break
5089
      if fid == 1:
5090
        if ftype == TType.I64:
5091
          self.catalog_item_id = iprot.readI64();
5092
        else:
5093
          iprot.skip(ftype)
5094
      else:
5095
        iprot.skip(ftype)
5096
      iprot.readFieldEnd()
5097
    iprot.readStructEnd()
5098
 
5099
  def write(self, oprot):
5100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5102
      return
5103
    oprot.writeStructBegin('getItemsByCatalogId_args')
5104
    if self.catalog_item_id is not None:
5105
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5106
      oprot.writeI64(self.catalog_item_id)
5107
      oprot.writeFieldEnd()
5108
    oprot.writeFieldStop()
5109
    oprot.writeStructEnd()
5110
 
5111
  def validate(self):
5112
    return
5113
 
5114
 
5115
  def __repr__(self):
5116
    L = ['%s=%r' % (key, value)
5117
      for key, value in self.__dict__.iteritems()]
5118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5119
 
5120
  def __eq__(self, other):
5121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5122
 
5123
  def __ne__(self, other):
5124
    return not (self == other)
5125
 
5126
class getItemsByCatalogId_result:
5127
  """
5128
  Attributes:
5129
   - success
5130
   - cex
5131
  """
5132
 
5133
  thrift_spec = (
5134
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5135
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5136
  )
5137
 
5138
  def __init__(self, success=None, cex=None,):
5139
    self.success = success
5140
    self.cex = cex
5141
 
5142
  def read(self, iprot):
5143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5145
      return
5146
    iprot.readStructBegin()
5147
    while True:
5148
      (fname, ftype, fid) = iprot.readFieldBegin()
5149
      if ftype == TType.STOP:
5150
        break
5151
      if fid == 0:
5152
        if ftype == TType.LIST:
5153
          self.success = []
5154
          (_etype19, _size16) = iprot.readListBegin()
5155
          for _i20 in xrange(_size16):
5156
            _elem21 = Item()
5157
            _elem21.read(iprot)
5158
            self.success.append(_elem21)
5159
          iprot.readListEnd()
5160
        else:
5161
          iprot.skip(ftype)
5162
      elif fid == 1:
5163
        if ftype == TType.STRUCT:
5164
          self.cex = CatalogServiceException()
5165
          self.cex.read(iprot)
5166
        else:
5167
          iprot.skip(ftype)
5168
      else:
5169
        iprot.skip(ftype)
5170
      iprot.readFieldEnd()
5171
    iprot.readStructEnd()
5172
 
5173
  def write(self, oprot):
5174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5176
      return
5177
    oprot.writeStructBegin('getItemsByCatalogId_result')
5178
    if self.success is not None:
5179
      oprot.writeFieldBegin('success', TType.LIST, 0)
5180
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5181
      for iter22 in self.success:
5182
        iter22.write(oprot)
5183
      oprot.writeListEnd()
5184
      oprot.writeFieldEnd()
5185
    if self.cex is not None:
5186
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5187
      self.cex.write(oprot)
5188
      oprot.writeFieldEnd()
5189
    oprot.writeFieldStop()
5190
    oprot.writeStructEnd()
5191
 
5192
  def validate(self):
5193
    return
5194
 
5195
 
5196
  def __repr__(self):
5197
    L = ['%s=%r' % (key, value)
5198
      for key, value in self.__dict__.iteritems()]
5199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5200
 
5201
  def __eq__(self, other):
5202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5203
 
5204
  def __ne__(self, other):
5205
    return not (self == other)
5206
 
5207
class getValidItemsByCatalogId_args:
5208
  """
5209
  Attributes:
5210
   - catalog_item_id
5211
  """
5212
 
5213
  thrift_spec = (
5214
    None, # 0
5215
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5216
  )
5217
 
5218
  def __init__(self, catalog_item_id=None,):
5219
    self.catalog_item_id = catalog_item_id
5220
 
5221
  def read(self, iprot):
5222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5224
      return
5225
    iprot.readStructBegin()
5226
    while True:
5227
      (fname, ftype, fid) = iprot.readFieldBegin()
5228
      if ftype == TType.STOP:
5229
        break
5230
      if fid == 1:
5231
        if ftype == TType.I64:
5232
          self.catalog_item_id = iprot.readI64();
5233
        else:
5234
          iprot.skip(ftype)
5235
      else:
5236
        iprot.skip(ftype)
5237
      iprot.readFieldEnd()
5238
    iprot.readStructEnd()
5239
 
5240
  def write(self, oprot):
5241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5243
      return
5244
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5245
    if self.catalog_item_id is not None:
5246
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5247
      oprot.writeI64(self.catalog_item_id)
5248
      oprot.writeFieldEnd()
5249
    oprot.writeFieldStop()
5250
    oprot.writeStructEnd()
5251
 
5252
  def validate(self):
5253
    return
5254
 
5255
 
5256
  def __repr__(self):
5257
    L = ['%s=%r' % (key, value)
5258
      for key, value in self.__dict__.iteritems()]
5259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5260
 
5261
  def __eq__(self, other):
5262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5263
 
5264
  def __ne__(self, other):
5265
    return not (self == other)
5266
 
5267
class getValidItemsByCatalogId_result:
5268
  """
5269
  Attributes:
5270
   - success
5271
   - cex
5272
  """
5273
 
5274
  thrift_spec = (
5275
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5276
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5277
  )
5278
 
5279
  def __init__(self, success=None, cex=None,):
5280
    self.success = success
5281
    self.cex = cex
5282
 
5283
  def read(self, iprot):
5284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5286
      return
5287
    iprot.readStructBegin()
5288
    while True:
5289
      (fname, ftype, fid) = iprot.readFieldBegin()
5290
      if ftype == TType.STOP:
5291
        break
5292
      if fid == 0:
5293
        if ftype == TType.LIST:
5294
          self.success = []
5295
          (_etype26, _size23) = iprot.readListBegin()
5296
          for _i27 in xrange(_size23):
5297
            _elem28 = Item()
5298
            _elem28.read(iprot)
5299
            self.success.append(_elem28)
5300
          iprot.readListEnd()
5301
        else:
5302
          iprot.skip(ftype)
5303
      elif fid == 1:
5304
        if ftype == TType.STRUCT:
5305
          self.cex = CatalogServiceException()
5306
          self.cex.read(iprot)
5307
        else:
5308
          iprot.skip(ftype)
5309
      else:
5310
        iprot.skip(ftype)
5311
      iprot.readFieldEnd()
5312
    iprot.readStructEnd()
5313
 
5314
  def write(self, oprot):
5315
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5316
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5317
      return
5318
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5319
    if self.success is not None:
5320
      oprot.writeFieldBegin('success', TType.LIST, 0)
5321
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5322
      for iter29 in self.success:
5323
        iter29.write(oprot)
5324
      oprot.writeListEnd()
5325
      oprot.writeFieldEnd()
5326
    if self.cex is not None:
5327
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5328
      self.cex.write(oprot)
5329
      oprot.writeFieldEnd()
5330
    oprot.writeFieldStop()
5331
    oprot.writeStructEnd()
5332
 
5333
  def validate(self):
5334
    return
5335
 
5336
 
5337
  def __repr__(self):
5338
    L = ['%s=%r' % (key, value)
5339
      for key, value in self.__dict__.iteritems()]
5340
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5341
 
5342
  def __eq__(self, other):
5343
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5344
 
5345
  def __ne__(self, other):
5346
    return not (self == other)
5347
 
5348
class getAllItems_args:
5349
  """
5350
  Attributes:
5351
   - isActive
5352
  """
5353
 
5354
  thrift_spec = (
5355
    None, # 0
5356
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5357
  )
5358
 
5359
  def __init__(self, isActive=None,):
5360
    self.isActive = isActive
5361
 
5362
  def read(self, iprot):
5363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5365
      return
5366
    iprot.readStructBegin()
5367
    while True:
5368
      (fname, ftype, fid) = iprot.readFieldBegin()
5369
      if ftype == TType.STOP:
5370
        break
5371
      if fid == 1:
5372
        if ftype == TType.BOOL:
5373
          self.isActive = iprot.readBool();
5374
        else:
5375
          iprot.skip(ftype)
5376
      else:
5377
        iprot.skip(ftype)
5378
      iprot.readFieldEnd()
5379
    iprot.readStructEnd()
5380
 
5381
  def write(self, oprot):
5382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5384
      return
5385
    oprot.writeStructBegin('getAllItems_args')
5386
    if self.isActive is not None:
5387
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5388
      oprot.writeBool(self.isActive)
5389
      oprot.writeFieldEnd()
5390
    oprot.writeFieldStop()
5391
    oprot.writeStructEnd()
5392
 
5393
  def validate(self):
5394
    return
5395
 
5396
 
5397
  def __repr__(self):
5398
    L = ['%s=%r' % (key, value)
5399
      for key, value in self.__dict__.iteritems()]
5400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5401
 
5402
  def __eq__(self, other):
5403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5404
 
5405
  def __ne__(self, other):
5406
    return not (self == other)
5407
 
5408
class getAllItems_result:
5409
  """
5410
  Attributes:
5411
   - success
5412
   - cex
5413
  """
5414
 
5415
  thrift_spec = (
5416
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5417
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5418
  )
5419
 
5420
  def __init__(self, success=None, cex=None,):
5421
    self.success = success
5422
    self.cex = cex
5423
 
5424
  def read(self, iprot):
5425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5427
      return
5428
    iprot.readStructBegin()
5429
    while True:
5430
      (fname, ftype, fid) = iprot.readFieldBegin()
5431
      if ftype == TType.STOP:
5432
        break
5433
      if fid == 0:
5434
        if ftype == TType.LIST:
5435
          self.success = []
5436
          (_etype33, _size30) = iprot.readListBegin()
5437
          for _i34 in xrange(_size30):
5438
            _elem35 = Item()
5439
            _elem35.read(iprot)
5440
            self.success.append(_elem35)
5441
          iprot.readListEnd()
5442
        else:
5443
          iprot.skip(ftype)
5444
      elif fid == 1:
5445
        if ftype == TType.STRUCT:
5446
          self.cex = CatalogServiceException()
5447
          self.cex.read(iprot)
5448
        else:
5449
          iprot.skip(ftype)
5450
      else:
5451
        iprot.skip(ftype)
5452
      iprot.readFieldEnd()
5453
    iprot.readStructEnd()
5454
 
5455
  def write(self, oprot):
5456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5458
      return
5459
    oprot.writeStructBegin('getAllItems_result')
5460
    if self.success is not None:
5461
      oprot.writeFieldBegin('success', TType.LIST, 0)
5462
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5463
      for iter36 in self.success:
5464
        iter36.write(oprot)
5465
      oprot.writeListEnd()
5466
      oprot.writeFieldEnd()
5467
    if self.cex is not None:
5468
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5469
      self.cex.write(oprot)
5470
      oprot.writeFieldEnd()
5471
    oprot.writeFieldStop()
5472
    oprot.writeStructEnd()
5473
 
5474
  def validate(self):
5475
    return
5476
 
5477
 
5478
  def __repr__(self):
5479
    L = ['%s=%r' % (key, value)
5480
      for key, value in self.__dict__.iteritems()]
5481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5482
 
5483
  def __eq__(self, other):
5484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5485
 
5486
  def __ne__(self, other):
5487
    return not (self == other)
5488
 
5489
class getAllItemsByStatus_args:
5490
  """
5491
  Attributes:
5492
   - itemStatus
5493
  """
5494
 
5495
  thrift_spec = (
5496
    None, # 0
5497
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5498
  )
5499
 
5500
  def __init__(self, itemStatus=None,):
5501
    self.itemStatus = itemStatus
5502
 
5503
  def read(self, iprot):
5504
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5505
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5506
      return
5507
    iprot.readStructBegin()
5508
    while True:
5509
      (fname, ftype, fid) = iprot.readFieldBegin()
5510
      if ftype == TType.STOP:
5511
        break
5512
      if fid == 1:
5513
        if ftype == TType.I32:
5514
          self.itemStatus = iprot.readI32();
5515
        else:
5516
          iprot.skip(ftype)
5517
      else:
5518
        iprot.skip(ftype)
5519
      iprot.readFieldEnd()
5520
    iprot.readStructEnd()
5521
 
5522
  def write(self, oprot):
5523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5525
      return
5526
    oprot.writeStructBegin('getAllItemsByStatus_args')
5527
    if self.itemStatus is not None:
5528
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5529
      oprot.writeI32(self.itemStatus)
5530
      oprot.writeFieldEnd()
5531
    oprot.writeFieldStop()
5532
    oprot.writeStructEnd()
5533
 
5534
  def validate(self):
5535
    return
5536
 
5537
 
5538
  def __repr__(self):
5539
    L = ['%s=%r' % (key, value)
5540
      for key, value in self.__dict__.iteritems()]
5541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5542
 
5543
  def __eq__(self, other):
5544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5545
 
5546
  def __ne__(self, other):
5547
    return not (self == other)
5548
 
5549
class getAllItemsByStatus_result:
5550
  """
5551
  Attributes:
5552
   - success
5553
   - cex
5554
  """
5555
 
5556
  thrift_spec = (
5557
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5558
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5559
  )
5560
 
5561
  def __init__(self, success=None, cex=None,):
5562
    self.success = success
5563
    self.cex = cex
5564
 
5565
  def read(self, iprot):
5566
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5567
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5568
      return
5569
    iprot.readStructBegin()
5570
    while True:
5571
      (fname, ftype, fid) = iprot.readFieldBegin()
5572
      if ftype == TType.STOP:
5573
        break
5574
      if fid == 0:
5575
        if ftype == TType.LIST:
5576
          self.success = []
5577
          (_etype40, _size37) = iprot.readListBegin()
5578
          for _i41 in xrange(_size37):
5579
            _elem42 = Item()
5580
            _elem42.read(iprot)
5581
            self.success.append(_elem42)
5582
          iprot.readListEnd()
5583
        else:
5584
          iprot.skip(ftype)
5585
      elif fid == 1:
5586
        if ftype == TType.STRUCT:
5587
          self.cex = CatalogServiceException()
5588
          self.cex.read(iprot)
5589
        else:
5590
          iprot.skip(ftype)
5591
      else:
5592
        iprot.skip(ftype)
5593
      iprot.readFieldEnd()
5594
    iprot.readStructEnd()
5595
 
5596
  def write(self, oprot):
5597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5599
      return
5600
    oprot.writeStructBegin('getAllItemsByStatus_result')
5601
    if self.success is not None:
5602
      oprot.writeFieldBegin('success', TType.LIST, 0)
5603
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5604
      for iter43 in self.success:
5605
        iter43.write(oprot)
5606
      oprot.writeListEnd()
5607
      oprot.writeFieldEnd()
5608
    if self.cex is not None:
5609
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5610
      self.cex.write(oprot)
5611
      oprot.writeFieldEnd()
5612
    oprot.writeFieldStop()
5613
    oprot.writeStructEnd()
5614
 
5615
  def validate(self):
5616
    return
5617
 
5618
 
5619
  def __repr__(self):
5620
    L = ['%s=%r' % (key, value)
5621
      for key, value in self.__dict__.iteritems()]
5622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5623
 
5624
  def __eq__(self, other):
5625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5626
 
5627
  def __ne__(self, other):
5628
    return not (self == other)
5629
 
5630
class markItemAsContentComplete_args:
5631
  """
5632
  Attributes:
5633
   - entityId
5634
   - category
5635
   - brand
5636
   - modelName
5637
   - modelNumber
5638
  """
5639
 
5640
  thrift_spec = (
5641
    None, # 0
5642
    (1, TType.I64, 'entityId', None, None, ), # 1
5643
    (2, TType.I64, 'category', None, None, ), # 2
5644
    (3, TType.STRING, 'brand', None, None, ), # 3
5645
    (4, TType.STRING, 'modelName', None, None, ), # 4
5646
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
5647
  )
5648
 
5649
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
5650
    self.entityId = entityId
5651
    self.category = category
5652
    self.brand = brand
5653
    self.modelName = modelName
5654
    self.modelNumber = modelNumber
5655
 
5656
  def read(self, iprot):
5657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5659
      return
5660
    iprot.readStructBegin()
5661
    while True:
5662
      (fname, ftype, fid) = iprot.readFieldBegin()
5663
      if ftype == TType.STOP:
5664
        break
5665
      if fid == 1:
5666
        if ftype == TType.I64:
5667
          self.entityId = iprot.readI64();
5668
        else:
5669
          iprot.skip(ftype)
5670
      elif fid == 2:
5671
        if ftype == TType.I64:
5672
          self.category = iprot.readI64();
5673
        else:
5674
          iprot.skip(ftype)
5675
      elif fid == 3:
5676
        if ftype == TType.STRING:
5677
          self.brand = iprot.readString();
5678
        else:
5679
          iprot.skip(ftype)
5680
      elif fid == 4:
5681
        if ftype == TType.STRING:
5682
          self.modelName = iprot.readString();
5683
        else:
5684
          iprot.skip(ftype)
5685
      elif fid == 5:
5686
        if ftype == TType.STRING:
5687
          self.modelNumber = iprot.readString();
5688
        else:
5689
          iprot.skip(ftype)
5690
      else:
5691
        iprot.skip(ftype)
5692
      iprot.readFieldEnd()
5693
    iprot.readStructEnd()
5694
 
5695
  def write(self, oprot):
5696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5698
      return
5699
    oprot.writeStructBegin('markItemAsContentComplete_args')
5700
    if self.entityId is not None:
5701
      oprot.writeFieldBegin('entityId', TType.I64, 1)
5702
      oprot.writeI64(self.entityId)
5703
      oprot.writeFieldEnd()
5704
    if self.category is not None:
5705
      oprot.writeFieldBegin('category', TType.I64, 2)
5706
      oprot.writeI64(self.category)
5707
      oprot.writeFieldEnd()
5708
    if self.brand is not None:
5709
      oprot.writeFieldBegin('brand', TType.STRING, 3)
5710
      oprot.writeString(self.brand)
5711
      oprot.writeFieldEnd()
5712
    if self.modelName is not None:
5713
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
5714
      oprot.writeString(self.modelName)
5715
      oprot.writeFieldEnd()
5716
    if self.modelNumber is not None:
5717
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
5718
      oprot.writeString(self.modelNumber)
5719
      oprot.writeFieldEnd()
5720
    oprot.writeFieldStop()
5721
    oprot.writeStructEnd()
5722
 
5723
  def validate(self):
5724
    return
5725
 
5726
 
5727
  def __repr__(self):
5728
    L = ['%s=%r' % (key, value)
5729
      for key, value in self.__dict__.iteritems()]
5730
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5731
 
5732
  def __eq__(self, other):
5733
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5734
 
5735
  def __ne__(self, other):
5736
    return not (self == other)
5737
 
5738
class markItemAsContentComplete_result:
5739
  """
5740
  Attributes:
5741
   - success
5742
   - cex
5743
  """
5744
 
5745
  thrift_spec = (
5746
    (0, TType.BOOL, 'success', None, None, ), # 0
5747
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5748
  )
5749
 
5750
  def __init__(self, success=None, cex=None,):
5751
    self.success = success
5752
    self.cex = cex
5753
 
5754
  def read(self, iprot):
5755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5757
      return
5758
    iprot.readStructBegin()
5759
    while True:
5760
      (fname, ftype, fid) = iprot.readFieldBegin()
5761
      if ftype == TType.STOP:
5762
        break
5763
      if fid == 0:
5764
        if ftype == TType.BOOL:
5765
          self.success = iprot.readBool();
5766
        else:
5767
          iprot.skip(ftype)
5768
      elif fid == 1:
5769
        if ftype == TType.STRUCT:
5770
          self.cex = CatalogServiceException()
5771
          self.cex.read(iprot)
5772
        else:
5773
          iprot.skip(ftype)
5774
      else:
5775
        iprot.skip(ftype)
5776
      iprot.readFieldEnd()
5777
    iprot.readStructEnd()
5778
 
5779
  def write(self, oprot):
5780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5782
      return
5783
    oprot.writeStructBegin('markItemAsContentComplete_result')
5784
    if self.success is not None:
5785
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5786
      oprot.writeBool(self.success)
5787
      oprot.writeFieldEnd()
5788
    if self.cex is not None:
5789
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5790
      self.cex.write(oprot)
5791
      oprot.writeFieldEnd()
5792
    oprot.writeFieldStop()
5793
    oprot.writeStructEnd()
5794
 
5795
  def validate(self):
5796
    return
5797
 
5798
 
5799
  def __repr__(self):
5800
    L = ['%s=%r' % (key, value)
5801
      for key, value in self.__dict__.iteritems()]
5802
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5803
 
5804
  def __eq__(self, other):
5805
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5806
 
5807
  def __ne__(self, other):
5808
    return not (self == other)
5809
 
5810
class getAllItemsInRange_args:
5811
  """
5812
  Attributes:
5813
   - offset
5814
   - limit
5815
  """
5816
 
5817
  thrift_spec = (
5818
    None, # 0
5819
    (1, TType.I64, 'offset', None, None, ), # 1
5820
    (2, TType.I64, 'limit', None, None, ), # 2
5821
  )
5822
 
5823
  def __init__(self, offset=None, limit=None,):
5824
    self.offset = offset
5825
    self.limit = limit
5826
 
5827
  def read(self, iprot):
5828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5830
      return
5831
    iprot.readStructBegin()
5832
    while True:
5833
      (fname, ftype, fid) = iprot.readFieldBegin()
5834
      if ftype == TType.STOP:
5835
        break
5836
      if fid == 1:
5837
        if ftype == TType.I64:
5838
          self.offset = iprot.readI64();
5839
        else:
5840
          iprot.skip(ftype)
5841
      elif fid == 2:
5842
        if ftype == TType.I64:
5843
          self.limit = iprot.readI64();
5844
        else:
5845
          iprot.skip(ftype)
5846
      else:
5847
        iprot.skip(ftype)
5848
      iprot.readFieldEnd()
5849
    iprot.readStructEnd()
5850
 
5851
  def write(self, oprot):
5852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5854
      return
5855
    oprot.writeStructBegin('getAllItemsInRange_args')
5856
    if self.offset is not None:
5857
      oprot.writeFieldBegin('offset', TType.I64, 1)
5858
      oprot.writeI64(self.offset)
5859
      oprot.writeFieldEnd()
5860
    if self.limit is not None:
5861
      oprot.writeFieldBegin('limit', TType.I64, 2)
5862
      oprot.writeI64(self.limit)
5863
      oprot.writeFieldEnd()
5864
    oprot.writeFieldStop()
5865
    oprot.writeStructEnd()
5866
 
5867
  def validate(self):
5868
    return
5869
 
5870
 
5871
  def __repr__(self):
5872
    L = ['%s=%r' % (key, value)
5873
      for key, value in self.__dict__.iteritems()]
5874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5875
 
5876
  def __eq__(self, other):
5877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5878
 
5879
  def __ne__(self, other):
5880
    return not (self == other)
5881
 
5882
class getAllItemsInRange_result:
5883
  """
5884
  Attributes:
5885
   - success
5886
   - cex
5887
  """
5888
 
5889
  thrift_spec = (
5890
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5891
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5892
  )
5893
 
5894
  def __init__(self, success=None, cex=None,):
5895
    self.success = success
5896
    self.cex = cex
5897
 
5898
  def read(self, iprot):
5899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5901
      return
5902
    iprot.readStructBegin()
5903
    while True:
5904
      (fname, ftype, fid) = iprot.readFieldBegin()
5905
      if ftype == TType.STOP:
5906
        break
5907
      if fid == 0:
5908
        if ftype == TType.LIST:
5909
          self.success = []
5910
          (_etype47, _size44) = iprot.readListBegin()
5911
          for _i48 in xrange(_size44):
5912
            _elem49 = Item()
5913
            _elem49.read(iprot)
5914
            self.success.append(_elem49)
5915
          iprot.readListEnd()
5916
        else:
5917
          iprot.skip(ftype)
5918
      elif fid == 1:
5919
        if ftype == TType.STRUCT:
5920
          self.cex = CatalogServiceException()
5921
          self.cex.read(iprot)
5922
        else:
5923
          iprot.skip(ftype)
5924
      else:
5925
        iprot.skip(ftype)
5926
      iprot.readFieldEnd()
5927
    iprot.readStructEnd()
5928
 
5929
  def write(self, oprot):
5930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5932
      return
5933
    oprot.writeStructBegin('getAllItemsInRange_result')
5934
    if self.success is not None:
5935
      oprot.writeFieldBegin('success', TType.LIST, 0)
5936
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5937
      for iter50 in self.success:
5938
        iter50.write(oprot)
5939
      oprot.writeListEnd()
5940
      oprot.writeFieldEnd()
5941
    if self.cex is not None:
5942
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5943
      self.cex.write(oprot)
5944
      oprot.writeFieldEnd()
5945
    oprot.writeFieldStop()
5946
    oprot.writeStructEnd()
5947
 
5948
  def validate(self):
5949
    return
5950
 
5951
 
5952
  def __repr__(self):
5953
    L = ['%s=%r' % (key, value)
5954
      for key, value in self.__dict__.iteritems()]
5955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5956
 
5957
  def __eq__(self, other):
5958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5959
 
5960
  def __ne__(self, other):
5961
    return not (self == other)
5962
 
5963
class getAllItemsByStatusInRange_args:
5964
  """
5965
  Attributes:
5966
   - itemStatus
5967
   - offset
5968
   - limit
5969
  """
5970
 
5971
  thrift_spec = (
5972
    None, # 0
5973
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5974
    (2, TType.I64, 'offset', None, None, ), # 2
5975
    (3, TType.I64, 'limit', None, None, ), # 3
5976
  )
5977
 
5978
  def __init__(self, itemStatus=None, offset=None, limit=None,):
5979
    self.itemStatus = itemStatus
5980
    self.offset = offset
5981
    self.limit = limit
5982
 
5983
  def read(self, iprot):
5984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5986
      return
5987
    iprot.readStructBegin()
5988
    while True:
5989
      (fname, ftype, fid) = iprot.readFieldBegin()
5990
      if ftype == TType.STOP:
5991
        break
5992
      if fid == 1:
5993
        if ftype == TType.I32:
5994
          self.itemStatus = iprot.readI32();
5995
        else:
5996
          iprot.skip(ftype)
5997
      elif fid == 2:
5998
        if ftype == TType.I64:
5999
          self.offset = iprot.readI64();
6000
        else:
6001
          iprot.skip(ftype)
6002
      elif fid == 3:
6003
        if ftype == TType.I64:
6004
          self.limit = iprot.readI64();
6005
        else:
6006
          iprot.skip(ftype)
6007
      else:
6008
        iprot.skip(ftype)
6009
      iprot.readFieldEnd()
6010
    iprot.readStructEnd()
6011
 
6012
  def write(self, oprot):
6013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6015
      return
6016
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
6017
    if self.itemStatus is not None:
6018
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6019
      oprot.writeI32(self.itemStatus)
6020
      oprot.writeFieldEnd()
6021
    if self.offset is not None:
6022
      oprot.writeFieldBegin('offset', TType.I64, 2)
6023
      oprot.writeI64(self.offset)
6024
      oprot.writeFieldEnd()
6025
    if self.limit is not None:
6026
      oprot.writeFieldBegin('limit', TType.I64, 3)
6027
      oprot.writeI64(self.limit)
6028
      oprot.writeFieldEnd()
6029
    oprot.writeFieldStop()
6030
    oprot.writeStructEnd()
6031
 
6032
  def validate(self):
6033
    return
6034
 
6035
 
6036
  def __repr__(self):
6037
    L = ['%s=%r' % (key, value)
6038
      for key, value in self.__dict__.iteritems()]
6039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6040
 
6041
  def __eq__(self, other):
6042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6043
 
6044
  def __ne__(self, other):
6045
    return not (self == other)
6046
 
6047
class getAllItemsByStatusInRange_result:
6048
  """
6049
  Attributes:
6050
   - success
6051
   - cex
6052
  """
6053
 
6054
  thrift_spec = (
6055
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6056
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6057
  )
6058
 
6059
  def __init__(self, success=None, cex=None,):
6060
    self.success = success
6061
    self.cex = cex
6062
 
6063
  def read(self, iprot):
6064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6066
      return
6067
    iprot.readStructBegin()
6068
    while True:
6069
      (fname, ftype, fid) = iprot.readFieldBegin()
6070
      if ftype == TType.STOP:
6071
        break
6072
      if fid == 0:
6073
        if ftype == TType.LIST:
6074
          self.success = []
6075
          (_etype54, _size51) = iprot.readListBegin()
6076
          for _i55 in xrange(_size51):
6077
            _elem56 = Item()
6078
            _elem56.read(iprot)
6079
            self.success.append(_elem56)
6080
          iprot.readListEnd()
6081
        else:
6082
          iprot.skip(ftype)
6083
      elif fid == 1:
6084
        if ftype == TType.STRUCT:
6085
          self.cex = CatalogServiceException()
6086
          self.cex.read(iprot)
6087
        else:
6088
          iprot.skip(ftype)
6089
      else:
6090
        iprot.skip(ftype)
6091
      iprot.readFieldEnd()
6092
    iprot.readStructEnd()
6093
 
6094
  def write(self, oprot):
6095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6097
      return
6098
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
6099
    if self.success is not None:
6100
      oprot.writeFieldBegin('success', TType.LIST, 0)
6101
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6102
      for iter57 in self.success:
6103
        iter57.write(oprot)
6104
      oprot.writeListEnd()
6105
      oprot.writeFieldEnd()
6106
    if self.cex is not None:
6107
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6108
      self.cex.write(oprot)
6109
      oprot.writeFieldEnd()
6110
    oprot.writeFieldStop()
6111
    oprot.writeStructEnd()
6112
 
6113
  def validate(self):
6114
    return
6115
 
6116
 
6117
  def __repr__(self):
6118
    L = ['%s=%r' % (key, value)
6119
      for key, value in self.__dict__.iteritems()]
6120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6121
 
6122
  def __eq__(self, other):
6123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6124
 
6125
  def __ne__(self, other):
6126
    return not (self == other)
6127
 
6128
class getItemCountByStatus_args:
6129
  """
6130
  Attributes:
6131
   - useStatus
6132
   - itemStatus
6133
  """
6134
 
6135
  thrift_spec = (
6136
    None, # 0
6137
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6138
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6139
  )
6140
 
6141
  def __init__(self, useStatus=None, itemStatus=None,):
6142
    self.useStatus = useStatus
6143
    self.itemStatus = itemStatus
6144
 
6145
  def read(self, iprot):
6146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6148
      return
6149
    iprot.readStructBegin()
6150
    while True:
6151
      (fname, ftype, fid) = iprot.readFieldBegin()
6152
      if ftype == TType.STOP:
6153
        break
6154
      if fid == 1:
6155
        if ftype == TType.BOOL:
6156
          self.useStatus = iprot.readBool();
6157
        else:
6158
          iprot.skip(ftype)
6159
      elif fid == 2:
6160
        if ftype == TType.I32:
6161
          self.itemStatus = iprot.readI32();
6162
        else:
6163
          iprot.skip(ftype)
6164
      else:
6165
        iprot.skip(ftype)
6166
      iprot.readFieldEnd()
6167
    iprot.readStructEnd()
6168
 
6169
  def write(self, oprot):
6170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6172
      return
6173
    oprot.writeStructBegin('getItemCountByStatus_args')
6174
    if self.useStatus is not None:
6175
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6176
      oprot.writeBool(self.useStatus)
6177
      oprot.writeFieldEnd()
6178
    if self.itemStatus is not None:
6179
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6180
      oprot.writeI32(self.itemStatus)
6181
      oprot.writeFieldEnd()
6182
    oprot.writeFieldStop()
6183
    oprot.writeStructEnd()
6184
 
6185
  def validate(self):
6186
    return
6187
 
6188
 
6189
  def __repr__(self):
6190
    L = ['%s=%r' % (key, value)
6191
      for key, value in self.__dict__.iteritems()]
6192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6193
 
6194
  def __eq__(self, other):
6195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6196
 
6197
  def __ne__(self, other):
6198
    return not (self == other)
6199
 
6200
class getItemCountByStatus_result:
6201
  """
6202
  Attributes:
6203
   - success
6204
  """
6205
 
6206
  thrift_spec = (
6207
    (0, TType.I32, 'success', None, None, ), # 0
6208
  )
6209
 
6210
  def __init__(self, success=None,):
6211
    self.success = success
6212
 
6213
  def read(self, iprot):
6214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6216
      return
6217
    iprot.readStructBegin()
6218
    while True:
6219
      (fname, ftype, fid) = iprot.readFieldBegin()
6220
      if ftype == TType.STOP:
6221
        break
6222
      if fid == 0:
6223
        if ftype == TType.I32:
6224
          self.success = iprot.readI32();
6225
        else:
6226
          iprot.skip(ftype)
6227
      else:
6228
        iprot.skip(ftype)
6229
      iprot.readFieldEnd()
6230
    iprot.readStructEnd()
6231
 
6232
  def write(self, oprot):
6233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6235
      return
6236
    oprot.writeStructBegin('getItemCountByStatus_result')
6237
    if self.success is not None:
6238
      oprot.writeFieldBegin('success', TType.I32, 0)
6239
      oprot.writeI32(self.success)
6240
      oprot.writeFieldEnd()
6241
    oprot.writeFieldStop()
6242
    oprot.writeStructEnd()
6243
 
6244
  def validate(self):
6245
    return
6246
 
6247
 
6248
  def __repr__(self):
6249
    L = ['%s=%r' % (key, value)
6250
      for key, value in self.__dict__.iteritems()]
6251
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6252
 
6253
  def __eq__(self, other):
6254
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6255
 
6256
  def __ne__(self, other):
6257
    return not (self == other)
6258
 
6259
class getBestSellers_args:
6260
 
6261
  thrift_spec = (
6262
  )
6263
 
6264
  def read(self, iprot):
6265
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6266
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6267
      return
6268
    iprot.readStructBegin()
6269
    while True:
6270
      (fname, ftype, fid) = iprot.readFieldBegin()
6271
      if ftype == TType.STOP:
6272
        break
6273
      else:
6274
        iprot.skip(ftype)
6275
      iprot.readFieldEnd()
6276
    iprot.readStructEnd()
6277
 
6278
  def write(self, oprot):
6279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6281
      return
6282
    oprot.writeStructBegin('getBestSellers_args')
6283
    oprot.writeFieldStop()
6284
    oprot.writeStructEnd()
6285
 
6286
  def validate(self):
6287
    return
6288
 
6289
 
6290
  def __repr__(self):
6291
    L = ['%s=%r' % (key, value)
6292
      for key, value in self.__dict__.iteritems()]
6293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6294
 
6295
  def __eq__(self, other):
6296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6297
 
6298
  def __ne__(self, other):
6299
    return not (self == other)
6300
 
6301
class getBestSellers_result:
6302
  """
6303
  Attributes:
6304
   - success
6305
   - isex
6306
  """
6307
 
6308
  thrift_spec = (
6309
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6310
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6311
  )
6312
 
6313
  def __init__(self, success=None, isex=None,):
6314
    self.success = success
6315
    self.isex = isex
6316
 
6317
  def read(self, iprot):
6318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6320
      return
6321
    iprot.readStructBegin()
6322
    while True:
6323
      (fname, ftype, fid) = iprot.readFieldBegin()
6324
      if ftype == TType.STOP:
6325
        break
6326
      if fid == 0:
6327
        if ftype == TType.LIST:
6328
          self.success = []
6329
          (_etype61, _size58) = iprot.readListBegin()
6330
          for _i62 in xrange(_size58):
6331
            _elem63 = Item()
6332
            _elem63.read(iprot)
6333
            self.success.append(_elem63)
6334
          iprot.readListEnd()
6335
        else:
6336
          iprot.skip(ftype)
6337
      elif fid == 1:
6338
        if ftype == TType.STRUCT:
6339
          self.isex = CatalogServiceException()
6340
          self.isex.read(iprot)
6341
        else:
6342
          iprot.skip(ftype)
6343
      else:
6344
        iprot.skip(ftype)
6345
      iprot.readFieldEnd()
6346
    iprot.readStructEnd()
6347
 
6348
  def write(self, oprot):
6349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6351
      return
6352
    oprot.writeStructBegin('getBestSellers_result')
6353
    if self.success is not None:
6354
      oprot.writeFieldBegin('success', TType.LIST, 0)
6355
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6356
      for iter64 in self.success:
6357
        iter64.write(oprot)
6358
      oprot.writeListEnd()
6359
      oprot.writeFieldEnd()
6360
    if self.isex is not None:
6361
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6362
      self.isex.write(oprot)
6363
      oprot.writeFieldEnd()
6364
    oprot.writeFieldStop()
6365
    oprot.writeStructEnd()
6366
 
6367
  def validate(self):
6368
    return
6369
 
6370
 
6371
  def __repr__(self):
6372
    L = ['%s=%r' % (key, value)
6373
      for key, value in self.__dict__.iteritems()]
6374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6375
 
6376
  def __eq__(self, other):
6377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6378
 
6379
  def __ne__(self, other):
6380
    return not (self == other)
6381
 
6382
class getBestSellersCatalogIds_args:
6383
  """
6384
  Attributes:
6385
   - beginIndex
6386
   - totalItems
6387
   - brand
6388
   - category
6389
  """
6390
 
6391
  thrift_spec = (
6392
    None, # 0
6393
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6394
    (2, TType.I64, 'totalItems', None, None, ), # 2
6395
    (3, TType.STRING, 'brand', None, None, ), # 3
6396
    (4, TType.I64, 'category', None, None, ), # 4
6397
  )
6398
 
6399
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6400
    self.beginIndex = beginIndex
6401
    self.totalItems = totalItems
6402
    self.brand = brand
6403
    self.category = category
6404
 
6405
  def read(self, iprot):
6406
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6407
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6408
      return
6409
    iprot.readStructBegin()
6410
    while True:
6411
      (fname, ftype, fid) = iprot.readFieldBegin()
6412
      if ftype == TType.STOP:
6413
        break
6414
      if fid == 1:
6415
        if ftype == TType.I64:
6416
          self.beginIndex = iprot.readI64();
6417
        else:
6418
          iprot.skip(ftype)
6419
      elif fid == 2:
6420
        if ftype == TType.I64:
6421
          self.totalItems = iprot.readI64();
6422
        else:
6423
          iprot.skip(ftype)
6424
      elif fid == 3:
6425
        if ftype == TType.STRING:
6426
          self.brand = iprot.readString();
6427
        else:
6428
          iprot.skip(ftype)
6429
      elif fid == 4:
6430
        if ftype == TType.I64:
6431
          self.category = iprot.readI64();
6432
        else:
6433
          iprot.skip(ftype)
6434
      else:
6435
        iprot.skip(ftype)
6436
      iprot.readFieldEnd()
6437
    iprot.readStructEnd()
6438
 
6439
  def write(self, oprot):
6440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6442
      return
6443
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6444
    if self.beginIndex is not None:
6445
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6446
      oprot.writeI64(self.beginIndex)
6447
      oprot.writeFieldEnd()
6448
    if self.totalItems is not None:
6449
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6450
      oprot.writeI64(self.totalItems)
6451
      oprot.writeFieldEnd()
6452
    if self.brand is not None:
6453
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6454
      oprot.writeString(self.brand)
6455
      oprot.writeFieldEnd()
6456
    if self.category is not None:
6457
      oprot.writeFieldBegin('category', TType.I64, 4)
6458
      oprot.writeI64(self.category)
6459
      oprot.writeFieldEnd()
6460
    oprot.writeFieldStop()
6461
    oprot.writeStructEnd()
6462
 
6463
  def validate(self):
6464
    return
6465
 
6466
 
6467
  def __repr__(self):
6468
    L = ['%s=%r' % (key, value)
6469
      for key, value in self.__dict__.iteritems()]
6470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6471
 
6472
  def __eq__(self, other):
6473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6474
 
6475
  def __ne__(self, other):
6476
    return not (self == other)
6477
 
6478
class getBestSellersCatalogIds_result:
6479
  """
6480
  Attributes:
6481
   - success
6482
   - cex
6483
  """
6484
 
6485
  thrift_spec = (
6486
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6487
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6488
  )
6489
 
6490
  def __init__(self, success=None, cex=None,):
6491
    self.success = success
6492
    self.cex = cex
6493
 
6494
  def read(self, iprot):
6495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6497
      return
6498
    iprot.readStructBegin()
6499
    while True:
6500
      (fname, ftype, fid) = iprot.readFieldBegin()
6501
      if ftype == TType.STOP:
6502
        break
6503
      if fid == 0:
6504
        if ftype == TType.LIST:
6505
          self.success = []
6506
          (_etype68, _size65) = iprot.readListBegin()
6507
          for _i69 in xrange(_size65):
6508
            _elem70 = iprot.readI64();
6509
            self.success.append(_elem70)
6510
          iprot.readListEnd()
6511
        else:
6512
          iprot.skip(ftype)
6513
      elif fid == 1:
6514
        if ftype == TType.STRUCT:
6515
          self.cex = CatalogServiceException()
6516
          self.cex.read(iprot)
6517
        else:
6518
          iprot.skip(ftype)
6519
      else:
6520
        iprot.skip(ftype)
6521
      iprot.readFieldEnd()
6522
    iprot.readStructEnd()
6523
 
6524
  def write(self, oprot):
6525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6527
      return
6528
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
6529
    if self.success is not None:
6530
      oprot.writeFieldBegin('success', TType.LIST, 0)
6531
      oprot.writeListBegin(TType.I64, len(self.success))
6532
      for iter71 in self.success:
6533
        oprot.writeI64(iter71)
6534
      oprot.writeListEnd()
6535
      oprot.writeFieldEnd()
6536
    if self.cex is not None:
6537
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6538
      self.cex.write(oprot)
6539
      oprot.writeFieldEnd()
6540
    oprot.writeFieldStop()
6541
    oprot.writeStructEnd()
6542
 
6543
  def validate(self):
6544
    return
6545
 
6546
 
6547
  def __repr__(self):
6548
    L = ['%s=%r' % (key, value)
6549
      for key, value in self.__dict__.iteritems()]
6550
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6551
 
6552
  def __eq__(self, other):
6553
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6554
 
6555
  def __ne__(self, other):
6556
    return not (self == other)
6557
 
6558
class getBestSellersCount_args:
6559
 
6560
  thrift_spec = (
6561
  )
6562
 
6563
  def read(self, iprot):
6564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6566
      return
6567
    iprot.readStructBegin()
6568
    while True:
6569
      (fname, ftype, fid) = iprot.readFieldBegin()
6570
      if ftype == TType.STOP:
6571
        break
6572
      else:
6573
        iprot.skip(ftype)
6574
      iprot.readFieldEnd()
6575
    iprot.readStructEnd()
6576
 
6577
  def write(self, oprot):
6578
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6579
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6580
      return
6581
    oprot.writeStructBegin('getBestSellersCount_args')
6582
    oprot.writeFieldStop()
6583
    oprot.writeStructEnd()
6584
 
6585
  def validate(self):
6586
    return
6587
 
6588
 
6589
  def __repr__(self):
6590
    L = ['%s=%r' % (key, value)
6591
      for key, value in self.__dict__.iteritems()]
6592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6593
 
6594
  def __eq__(self, other):
6595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6596
 
6597
  def __ne__(self, other):
6598
    return not (self == other)
6599
 
6600
class getBestSellersCount_result:
6601
  """
6602
  Attributes:
6603
   - success
6604
   - cex
6605
  """
6606
 
6607
  thrift_spec = (
6608
    (0, TType.I64, 'success', None, None, ), # 0
6609
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6610
  )
6611
 
6612
  def __init__(self, success=None, cex=None,):
6613
    self.success = success
6614
    self.cex = cex
6615
 
6616
  def read(self, iprot):
6617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6619
      return
6620
    iprot.readStructBegin()
6621
    while True:
6622
      (fname, ftype, fid) = iprot.readFieldBegin()
6623
      if ftype == TType.STOP:
6624
        break
6625
      if fid == 0:
6626
        if ftype == TType.I64:
6627
          self.success = iprot.readI64();
6628
        else:
6629
          iprot.skip(ftype)
6630
      elif fid == 1:
6631
        if ftype == TType.STRUCT:
6632
          self.cex = CatalogServiceException()
6633
          self.cex.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('getBestSellersCount_result')
6646
    if self.success is not None:
6647
      oprot.writeFieldBegin('success', TType.I64, 0)
6648
      oprot.writeI64(self.success)
6649
      oprot.writeFieldEnd()
6650
    if self.cex is not None:
6651
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6652
      self.cex.write(oprot)
6653
      oprot.writeFieldEnd()
6654
    oprot.writeFieldStop()
6655
    oprot.writeStructEnd()
6656
 
6657
  def validate(self):
6658
    return
6659
 
6660
 
6661
  def __repr__(self):
6662
    L = ['%s=%r' % (key, value)
6663
      for key, value in self.__dict__.iteritems()]
6664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6665
 
6666
  def __eq__(self, other):
6667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6668
 
6669
  def __ne__(self, other):
6670
    return not (self == other)
6671
 
6672
class getBestDeals_args:
6673
 
6674
  thrift_spec = (
6675
  )
6676
 
6677
  def read(self, iprot):
6678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6680
      return
6681
    iprot.readStructBegin()
6682
    while True:
6683
      (fname, ftype, fid) = iprot.readFieldBegin()
6684
      if ftype == TType.STOP:
6685
        break
6686
      else:
6687
        iprot.skip(ftype)
6688
      iprot.readFieldEnd()
6689
    iprot.readStructEnd()
6690
 
6691
  def write(self, oprot):
6692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6694
      return
6695
    oprot.writeStructBegin('getBestDeals_args')
6696
    oprot.writeFieldStop()
6697
    oprot.writeStructEnd()
6698
 
6699
  def validate(self):
6700
    return
6701
 
6702
 
6703
  def __repr__(self):
6704
    L = ['%s=%r' % (key, value)
6705
      for key, value in self.__dict__.iteritems()]
6706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6707
 
6708
  def __eq__(self, other):
6709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6710
 
6711
  def __ne__(self, other):
6712
    return not (self == other)
6713
 
6714
class getBestDeals_result:
6715
  """
6716
  Attributes:
6717
   - success
6718
   - isex
6719
  """
6720
 
6721
  thrift_spec = (
6722
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6723
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6724
  )
6725
 
6726
  def __init__(self, success=None, isex=None,):
6727
    self.success = success
6728
    self.isex = isex
6729
 
6730
  def read(self, iprot):
6731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6733
      return
6734
    iprot.readStructBegin()
6735
    while True:
6736
      (fname, ftype, fid) = iprot.readFieldBegin()
6737
      if ftype == TType.STOP:
6738
        break
6739
      if fid == 0:
6740
        if ftype == TType.LIST:
6741
          self.success = []
6742
          (_etype75, _size72) = iprot.readListBegin()
6743
          for _i76 in xrange(_size72):
6744
            _elem77 = Item()
6745
            _elem77.read(iprot)
6746
            self.success.append(_elem77)
6747
          iprot.readListEnd()
6748
        else:
6749
          iprot.skip(ftype)
6750
      elif fid == 1:
6751
        if ftype == TType.STRUCT:
6752
          self.isex = CatalogServiceException()
6753
          self.isex.read(iprot)
6754
        else:
6755
          iprot.skip(ftype)
6756
      else:
6757
        iprot.skip(ftype)
6758
      iprot.readFieldEnd()
6759
    iprot.readStructEnd()
6760
 
6761
  def write(self, oprot):
6762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6764
      return
6765
    oprot.writeStructBegin('getBestDeals_result')
6766
    if self.success is not None:
6767
      oprot.writeFieldBegin('success', TType.LIST, 0)
6768
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6769
      for iter78 in self.success:
6770
        iter78.write(oprot)
6771
      oprot.writeListEnd()
6772
      oprot.writeFieldEnd()
6773
    if self.isex is not None:
6774
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6775
      self.isex.write(oprot)
6776
      oprot.writeFieldEnd()
6777
    oprot.writeFieldStop()
6778
    oprot.writeStructEnd()
6779
 
6780
  def validate(self):
6781
    return
6782
 
6783
 
6784
  def __repr__(self):
6785
    L = ['%s=%r' % (key, value)
6786
      for key, value in self.__dict__.iteritems()]
6787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6788
 
6789
  def __eq__(self, other):
6790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6791
 
6792
  def __ne__(self, other):
6793
    return not (self == other)
6794
 
6795
class getBestDealsCatalogIds_args:
6796
  """
6797
  Attributes:
6798
   - beginIndex
6799
   - totalItems
6800
   - brand
6801
   - category
6802
  """
6803
 
6804
  thrift_spec = (
6805
    None, # 0
6806
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6807
    (2, TType.I64, 'totalItems', None, None, ), # 2
6808
    (3, TType.STRING, 'brand', None, None, ), # 3
6809
    (4, TType.I64, 'category', None, None, ), # 4
6810
  )
6811
 
6812
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6813
    self.beginIndex = beginIndex
6814
    self.totalItems = totalItems
6815
    self.brand = brand
6816
    self.category = category
6817
 
6818
  def read(self, iprot):
6819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6821
      return
6822
    iprot.readStructBegin()
6823
    while True:
6824
      (fname, ftype, fid) = iprot.readFieldBegin()
6825
      if ftype == TType.STOP:
6826
        break
6827
      if fid == 1:
6828
        if ftype == TType.I64:
6829
          self.beginIndex = iprot.readI64();
6830
        else:
6831
          iprot.skip(ftype)
6832
      elif fid == 2:
6833
        if ftype == TType.I64:
6834
          self.totalItems = iprot.readI64();
6835
        else:
6836
          iprot.skip(ftype)
6837
      elif fid == 3:
6838
        if ftype == TType.STRING:
6839
          self.brand = iprot.readString();
6840
        else:
6841
          iprot.skip(ftype)
6842
      elif fid == 4:
6843
        if ftype == TType.I64:
6844
          self.category = iprot.readI64();
6845
        else:
6846
          iprot.skip(ftype)
6847
      else:
6848
        iprot.skip(ftype)
6849
      iprot.readFieldEnd()
6850
    iprot.readStructEnd()
6851
 
6852
  def write(self, oprot):
6853
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6854
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6855
      return
6856
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
6857
    if self.beginIndex is not None:
6858
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6859
      oprot.writeI64(self.beginIndex)
6860
      oprot.writeFieldEnd()
6861
    if self.totalItems is not None:
6862
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6863
      oprot.writeI64(self.totalItems)
6864
      oprot.writeFieldEnd()
6865
    if self.brand is not None:
6866
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6867
      oprot.writeString(self.brand)
6868
      oprot.writeFieldEnd()
6869
    if self.category is not None:
6870
      oprot.writeFieldBegin('category', TType.I64, 4)
6871
      oprot.writeI64(self.category)
6872
      oprot.writeFieldEnd()
6873
    oprot.writeFieldStop()
6874
    oprot.writeStructEnd()
6875
 
6876
  def validate(self):
6877
    return
6878
 
6879
 
6880
  def __repr__(self):
6881
    L = ['%s=%r' % (key, value)
6882
      for key, value in self.__dict__.iteritems()]
6883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6884
 
6885
  def __eq__(self, other):
6886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6887
 
6888
  def __ne__(self, other):
6889
    return not (self == other)
6890
 
6891
class getBestDealsCatalogIds_result:
6892
  """
6893
  Attributes:
6894
   - success
6895
   - cex
6896
  """
6897
 
6898
  thrift_spec = (
6899
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6900
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6901
  )
6902
 
6903
  def __init__(self, success=None, cex=None,):
6904
    self.success = success
6905
    self.cex = cex
6906
 
6907
  def read(self, iprot):
6908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6910
      return
6911
    iprot.readStructBegin()
6912
    while True:
6913
      (fname, ftype, fid) = iprot.readFieldBegin()
6914
      if ftype == TType.STOP:
6915
        break
6916
      if fid == 0:
6917
        if ftype == TType.LIST:
6918
          self.success = []
6919
          (_etype82, _size79) = iprot.readListBegin()
6920
          for _i83 in xrange(_size79):
6921
            _elem84 = iprot.readI64();
6922
            self.success.append(_elem84)
6923
          iprot.readListEnd()
6924
        else:
6925
          iprot.skip(ftype)
6926
      elif fid == 1:
6927
        if ftype == TType.STRUCT:
6928
          self.cex = CatalogServiceException()
6929
          self.cex.read(iprot)
6930
        else:
6931
          iprot.skip(ftype)
6932
      else:
6933
        iprot.skip(ftype)
6934
      iprot.readFieldEnd()
6935
    iprot.readStructEnd()
6936
 
6937
  def write(self, oprot):
6938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6940
      return
6941
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
6942
    if self.success is not None:
6943
      oprot.writeFieldBegin('success', TType.LIST, 0)
6944
      oprot.writeListBegin(TType.I64, len(self.success))
6945
      for iter85 in self.success:
6946
        oprot.writeI64(iter85)
6947
      oprot.writeListEnd()
6948
      oprot.writeFieldEnd()
6949
    if self.cex is not None:
6950
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6951
      self.cex.write(oprot)
6952
      oprot.writeFieldEnd()
6953
    oprot.writeFieldStop()
6954
    oprot.writeStructEnd()
6955
 
6956
  def validate(self):
6957
    return
6958
 
6959
 
6960
  def __repr__(self):
6961
    L = ['%s=%r' % (key, value)
6962
      for key, value in self.__dict__.iteritems()]
6963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6964
 
6965
  def __eq__(self, other):
6966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6967
 
6968
  def __ne__(self, other):
6969
    return not (self == other)
6970
 
6971
class getBestDealsCount_args:
6972
 
6973
  thrift_spec = (
6974
  )
6975
 
6976
  def read(self, iprot):
6977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6979
      return
6980
    iprot.readStructBegin()
6981
    while True:
6982
      (fname, ftype, fid) = iprot.readFieldBegin()
6983
      if ftype == TType.STOP:
6984
        break
6985
      else:
6986
        iprot.skip(ftype)
6987
      iprot.readFieldEnd()
6988
    iprot.readStructEnd()
6989
 
6990
  def write(self, oprot):
6991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6993
      return
6994
    oprot.writeStructBegin('getBestDealsCount_args')
6995
    oprot.writeFieldStop()
6996
    oprot.writeStructEnd()
6997
 
6998
  def validate(self):
6999
    return
7000
 
7001
 
7002
  def __repr__(self):
7003
    L = ['%s=%r' % (key, value)
7004
      for key, value in self.__dict__.iteritems()]
7005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7006
 
7007
  def __eq__(self, other):
7008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7009
 
7010
  def __ne__(self, other):
7011
    return not (self == other)
7012
 
7013
class getBestDealsCount_result:
7014
  """
7015
  Attributes:
7016
   - success
7017
   - cex
7018
  """
7019
 
7020
  thrift_spec = (
7021
    (0, TType.I64, 'success', None, None, ), # 0
7022
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7023
  )
7024
 
7025
  def __init__(self, success=None, cex=None,):
7026
    self.success = success
7027
    self.cex = cex
7028
 
7029
  def read(self, iprot):
7030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7032
      return
7033
    iprot.readStructBegin()
7034
    while True:
7035
      (fname, ftype, fid) = iprot.readFieldBegin()
7036
      if ftype == TType.STOP:
7037
        break
7038
      if fid == 0:
7039
        if ftype == TType.I64:
7040
          self.success = iprot.readI64();
7041
        else:
7042
          iprot.skip(ftype)
7043
      elif fid == 1:
7044
        if ftype == TType.STRUCT:
7045
          self.cex = CatalogServiceException()
7046
          self.cex.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('getBestDealsCount_result')
7059
    if self.success is not None:
7060
      oprot.writeFieldBegin('success', TType.I64, 0)
7061
      oprot.writeI64(self.success)
7062
      oprot.writeFieldEnd()
7063
    if self.cex is not None:
7064
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7065
      self.cex.write(oprot)
7066
      oprot.writeFieldEnd()
7067
    oprot.writeFieldStop()
7068
    oprot.writeStructEnd()
7069
 
7070
  def validate(self):
7071
    return
7072
 
7073
 
7074
  def __repr__(self):
7075
    L = ['%s=%r' % (key, value)
7076
      for key, value in self.__dict__.iteritems()]
7077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7078
 
7079
  def __eq__(self, other):
7080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7081
 
7082
  def __ne__(self, other):
7083
    return not (self == other)
7084
 
7085
class getComingSoon_args:
7086
 
7087
  thrift_spec = (
7088
  )
7089
 
7090
  def read(self, iprot):
7091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7093
      return
7094
    iprot.readStructBegin()
7095
    while True:
7096
      (fname, ftype, fid) = iprot.readFieldBegin()
7097
      if ftype == TType.STOP:
7098
        break
7099
      else:
7100
        iprot.skip(ftype)
7101
      iprot.readFieldEnd()
7102
    iprot.readStructEnd()
7103
 
7104
  def write(self, oprot):
7105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7107
      return
7108
    oprot.writeStructBegin('getComingSoon_args')
7109
    oprot.writeFieldStop()
7110
    oprot.writeStructEnd()
7111
 
7112
  def validate(self):
7113
    return
7114
 
7115
 
7116
  def __repr__(self):
7117
    L = ['%s=%r' % (key, value)
7118
      for key, value in self.__dict__.iteritems()]
7119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7120
 
7121
  def __eq__(self, other):
7122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7123
 
7124
  def __ne__(self, other):
7125
    return not (self == other)
7126
 
7127
class getComingSoon_result:
7128
  """
7129
  Attributes:
7130
   - success
7131
   - isex
7132
  """
7133
 
7134
  thrift_spec = (
7135
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7136
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7137
  )
7138
 
7139
  def __init__(self, success=None, isex=None,):
7140
    self.success = success
7141
    self.isex = isex
7142
 
7143
  def read(self, iprot):
7144
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7145
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7146
      return
7147
    iprot.readStructBegin()
7148
    while True:
7149
      (fname, ftype, fid) = iprot.readFieldBegin()
7150
      if ftype == TType.STOP:
7151
        break
7152
      if fid == 0:
7153
        if ftype == TType.LIST:
7154
          self.success = []
7155
          (_etype89, _size86) = iprot.readListBegin()
7156
          for _i90 in xrange(_size86):
7157
            _elem91 = Item()
7158
            _elem91.read(iprot)
7159
            self.success.append(_elem91)
7160
          iprot.readListEnd()
7161
        else:
7162
          iprot.skip(ftype)
7163
      elif fid == 1:
7164
        if ftype == TType.STRUCT:
7165
          self.isex = CatalogServiceException()
7166
          self.isex.read(iprot)
7167
        else:
7168
          iprot.skip(ftype)
7169
      else:
7170
        iprot.skip(ftype)
7171
      iprot.readFieldEnd()
7172
    iprot.readStructEnd()
7173
 
7174
  def write(self, oprot):
7175
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7176
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7177
      return
7178
    oprot.writeStructBegin('getComingSoon_result')
7179
    if self.success is not None:
7180
      oprot.writeFieldBegin('success', TType.LIST, 0)
7181
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7182
      for iter92 in self.success:
7183
        iter92.write(oprot)
7184
      oprot.writeListEnd()
7185
      oprot.writeFieldEnd()
7186
    if self.isex is not None:
7187
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7188
      self.isex.write(oprot)
7189
      oprot.writeFieldEnd()
7190
    oprot.writeFieldStop()
7191
    oprot.writeStructEnd()
7192
 
7193
  def validate(self):
7194
    return
7195
 
7196
 
7197
  def __repr__(self):
7198
    L = ['%s=%r' % (key, value)
7199
      for key, value in self.__dict__.iteritems()]
7200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7201
 
7202
  def __eq__(self, other):
7203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7204
 
7205
  def __ne__(self, other):
7206
    return not (self == other)
7207
 
7208
class getComingSoonCatalogIds_args:
7209
  """
7210
  Attributes:
7211
   - beginIndex
7212
   - totalItems
7213
   - brand
7214
   - category
7215
  """
7216
 
7217
  thrift_spec = (
7218
    None, # 0
7219
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7220
    (2, TType.I64, 'totalItems', None, None, ), # 2
7221
    (3, TType.STRING, 'brand', None, None, ), # 3
7222
    (4, TType.I64, 'category', None, None, ), # 4
7223
  )
7224
 
7225
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7226
    self.beginIndex = beginIndex
7227
    self.totalItems = totalItems
7228
    self.brand = brand
7229
    self.category = category
7230
 
7231
  def read(self, iprot):
7232
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7233
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7234
      return
7235
    iprot.readStructBegin()
7236
    while True:
7237
      (fname, ftype, fid) = iprot.readFieldBegin()
7238
      if ftype == TType.STOP:
7239
        break
7240
      if fid == 1:
7241
        if ftype == TType.I64:
7242
          self.beginIndex = iprot.readI64();
7243
        else:
7244
          iprot.skip(ftype)
7245
      elif fid == 2:
7246
        if ftype == TType.I64:
7247
          self.totalItems = iprot.readI64();
7248
        else:
7249
          iprot.skip(ftype)
7250
      elif fid == 3:
7251
        if ftype == TType.STRING:
7252
          self.brand = iprot.readString();
7253
        else:
7254
          iprot.skip(ftype)
7255
      elif fid == 4:
7256
        if ftype == TType.I64:
7257
          self.category = iprot.readI64();
7258
        else:
7259
          iprot.skip(ftype)
7260
      else:
7261
        iprot.skip(ftype)
7262
      iprot.readFieldEnd()
7263
    iprot.readStructEnd()
7264
 
7265
  def write(self, oprot):
7266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7268
      return
7269
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7270
    if self.beginIndex is not None:
7271
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7272
      oprot.writeI64(self.beginIndex)
7273
      oprot.writeFieldEnd()
7274
    if self.totalItems is not None:
7275
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7276
      oprot.writeI64(self.totalItems)
7277
      oprot.writeFieldEnd()
7278
    if self.brand is not None:
7279
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7280
      oprot.writeString(self.brand)
7281
      oprot.writeFieldEnd()
7282
    if self.category is not None:
7283
      oprot.writeFieldBegin('category', TType.I64, 4)
7284
      oprot.writeI64(self.category)
7285
      oprot.writeFieldEnd()
7286
    oprot.writeFieldStop()
7287
    oprot.writeStructEnd()
7288
 
7289
  def validate(self):
7290
    return
7291
 
7292
 
7293
  def __repr__(self):
7294
    L = ['%s=%r' % (key, value)
7295
      for key, value in self.__dict__.iteritems()]
7296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7297
 
7298
  def __eq__(self, other):
7299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7300
 
7301
  def __ne__(self, other):
7302
    return not (self == other)
7303
 
7304
class getComingSoonCatalogIds_result:
7305
  """
7306
  Attributes:
7307
   - success
7308
   - cex
7309
  """
7310
 
7311
  thrift_spec = (
7312
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7313
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7314
  )
7315
 
7316
  def __init__(self, success=None, cex=None,):
7317
    self.success = success
7318
    self.cex = cex
7319
 
7320
  def read(self, iprot):
7321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7323
      return
7324
    iprot.readStructBegin()
7325
    while True:
7326
      (fname, ftype, fid) = iprot.readFieldBegin()
7327
      if ftype == TType.STOP:
7328
        break
7329
      if fid == 0:
7330
        if ftype == TType.LIST:
7331
          self.success = []
7332
          (_etype96, _size93) = iprot.readListBegin()
7333
          for _i97 in xrange(_size93):
7334
            _elem98 = iprot.readI64();
7335
            self.success.append(_elem98)
7336
          iprot.readListEnd()
7337
        else:
7338
          iprot.skip(ftype)
7339
      elif fid == 1:
7340
        if ftype == TType.STRUCT:
7341
          self.cex = CatalogServiceException()
7342
          self.cex.read(iprot)
7343
        else:
7344
          iprot.skip(ftype)
7345
      else:
7346
        iprot.skip(ftype)
7347
      iprot.readFieldEnd()
7348
    iprot.readStructEnd()
7349
 
7350
  def write(self, oprot):
7351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7353
      return
7354
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7355
    if self.success is not None:
7356
      oprot.writeFieldBegin('success', TType.LIST, 0)
7357
      oprot.writeListBegin(TType.I64, len(self.success))
7358
      for iter99 in self.success:
7359
        oprot.writeI64(iter99)
7360
      oprot.writeListEnd()
7361
      oprot.writeFieldEnd()
7362
    if self.cex is not None:
7363
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7364
      self.cex.write(oprot)
7365
      oprot.writeFieldEnd()
7366
    oprot.writeFieldStop()
7367
    oprot.writeStructEnd()
7368
 
7369
  def validate(self):
7370
    return
7371
 
7372
 
7373
  def __repr__(self):
7374
    L = ['%s=%r' % (key, value)
7375
      for key, value in self.__dict__.iteritems()]
7376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7377
 
7378
  def __eq__(self, other):
7379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7380
 
7381
  def __ne__(self, other):
7382
    return not (self == other)
7383
 
7384
class getComingSoonCount_args:
7385
 
7386
  thrift_spec = (
7387
  )
7388
 
7389
  def read(self, iprot):
7390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7392
      return
7393
    iprot.readStructBegin()
7394
    while True:
7395
      (fname, ftype, fid) = iprot.readFieldBegin()
7396
      if ftype == TType.STOP:
7397
        break
7398
      else:
7399
        iprot.skip(ftype)
7400
      iprot.readFieldEnd()
7401
    iprot.readStructEnd()
7402
 
7403
  def write(self, oprot):
7404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7406
      return
7407
    oprot.writeStructBegin('getComingSoonCount_args')
7408
    oprot.writeFieldStop()
7409
    oprot.writeStructEnd()
7410
 
7411
  def validate(self):
7412
    return
7413
 
7414
 
7415
  def __repr__(self):
7416
    L = ['%s=%r' % (key, value)
7417
      for key, value in self.__dict__.iteritems()]
7418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7419
 
7420
  def __eq__(self, other):
7421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7422
 
7423
  def __ne__(self, other):
7424
    return not (self == other)
7425
 
7426
class getComingSoonCount_result:
7427
  """
7428
  Attributes:
7429
   - success
7430
   - cex
7431
  """
7432
 
7433
  thrift_spec = (
7434
    (0, TType.I64, 'success', None, None, ), # 0
7435
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7436
  )
7437
 
7438
  def __init__(self, success=None, cex=None,):
7439
    self.success = success
7440
    self.cex = cex
7441
 
7442
  def read(self, iprot):
7443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7445
      return
7446
    iprot.readStructBegin()
7447
    while True:
7448
      (fname, ftype, fid) = iprot.readFieldBegin()
7449
      if ftype == TType.STOP:
7450
        break
7451
      if fid == 0:
7452
        if ftype == TType.I64:
7453
          self.success = iprot.readI64();
7454
        else:
7455
          iprot.skip(ftype)
7456
      elif fid == 1:
7457
        if ftype == TType.STRUCT:
7458
          self.cex = CatalogServiceException()
7459
          self.cex.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('getComingSoonCount_result')
7472
    if self.success is not None:
7473
      oprot.writeFieldBegin('success', TType.I64, 0)
7474
      oprot.writeI64(self.success)
7475
      oprot.writeFieldEnd()
7476
    if self.cex is not None:
7477
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7478
      self.cex.write(oprot)
7479
      oprot.writeFieldEnd()
7480
    oprot.writeFieldStop()
7481
    oprot.writeStructEnd()
7482
 
7483
  def validate(self):
7484
    return
7485
 
7486
 
7487
  def __repr__(self):
7488
    L = ['%s=%r' % (key, value)
7489
      for key, value in self.__dict__.iteritems()]
7490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7491
 
7492
  def __eq__(self, other):
7493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7494
 
7495
  def __ne__(self, other):
7496
    return not (self == other)
7497
 
7498
class getLatestArrivals_args:
7499
 
7500
  thrift_spec = (
7501
  )
7502
 
7503
  def read(self, iprot):
7504
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7505
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7506
      return
7507
    iprot.readStructBegin()
7508
    while True:
7509
      (fname, ftype, fid) = iprot.readFieldBegin()
7510
      if ftype == TType.STOP:
7511
        break
7512
      else:
7513
        iprot.skip(ftype)
7514
      iprot.readFieldEnd()
7515
    iprot.readStructEnd()
7516
 
7517
  def write(self, oprot):
7518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7520
      return
7521
    oprot.writeStructBegin('getLatestArrivals_args')
7522
    oprot.writeFieldStop()
7523
    oprot.writeStructEnd()
7524
 
7525
  def validate(self):
7526
    return
7527
 
7528
 
7529
  def __repr__(self):
7530
    L = ['%s=%r' % (key, value)
7531
      for key, value in self.__dict__.iteritems()]
7532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7533
 
7534
  def __eq__(self, other):
7535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7536
 
7537
  def __ne__(self, other):
7538
    return not (self == other)
7539
 
7540
class getLatestArrivals_result:
7541
  """
7542
  Attributes:
7543
   - success
7544
   - isex
7545
  """
7546
 
7547
  thrift_spec = (
7548
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7549
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7550
  )
7551
 
7552
  def __init__(self, success=None, isex=None,):
7553
    self.success = success
7554
    self.isex = isex
7555
 
7556
  def read(self, iprot):
7557
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7558
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7559
      return
7560
    iprot.readStructBegin()
7561
    while True:
7562
      (fname, ftype, fid) = iprot.readFieldBegin()
7563
      if ftype == TType.STOP:
7564
        break
7565
      if fid == 0:
7566
        if ftype == TType.LIST:
7567
          self.success = []
7568
          (_etype103, _size100) = iprot.readListBegin()
7569
          for _i104 in xrange(_size100):
7570
            _elem105 = Item()
7571
            _elem105.read(iprot)
7572
            self.success.append(_elem105)
7573
          iprot.readListEnd()
7574
        else:
7575
          iprot.skip(ftype)
7576
      elif fid == 1:
7577
        if ftype == TType.STRUCT:
7578
          self.isex = CatalogServiceException()
7579
          self.isex.read(iprot)
7580
        else:
7581
          iprot.skip(ftype)
7582
      else:
7583
        iprot.skip(ftype)
7584
      iprot.readFieldEnd()
7585
    iprot.readStructEnd()
7586
 
7587
  def write(self, oprot):
7588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7590
      return
7591
    oprot.writeStructBegin('getLatestArrivals_result')
7592
    if self.success is not None:
7593
      oprot.writeFieldBegin('success', TType.LIST, 0)
7594
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7595
      for iter106 in self.success:
7596
        iter106.write(oprot)
7597
      oprot.writeListEnd()
7598
      oprot.writeFieldEnd()
7599
    if self.isex is not None:
7600
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7601
      self.isex.write(oprot)
7602
      oprot.writeFieldEnd()
7603
    oprot.writeFieldStop()
7604
    oprot.writeStructEnd()
7605
 
7606
  def validate(self):
7607
    return
7608
 
7609
 
7610
  def __repr__(self):
7611
    L = ['%s=%r' % (key, value)
7612
      for key, value in self.__dict__.iteritems()]
7613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7614
 
7615
  def __eq__(self, other):
7616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7617
 
7618
  def __ne__(self, other):
7619
    return not (self == other)
7620
 
7621
class getLatestArrivalsCatalogIds_args:
7622
  """
7623
  Attributes:
7624
   - beginIndex
7625
   - totalItems
7626
   - brand
7627
   - categories
7628
  """
7629
 
7630
  thrift_spec = (
7631
    None, # 0
7632
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7633
    (2, TType.I64, 'totalItems', None, None, ), # 2
7634
    (3, TType.STRING, 'brand', None, None, ), # 3
7635
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
7636
  )
7637
 
7638
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
7639
    self.beginIndex = beginIndex
7640
    self.totalItems = totalItems
7641
    self.brand = brand
7642
    self.categories = categories
7643
 
7644
  def read(self, iprot):
7645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7647
      return
7648
    iprot.readStructBegin()
7649
    while True:
7650
      (fname, ftype, fid) = iprot.readFieldBegin()
7651
      if ftype == TType.STOP:
7652
        break
7653
      if fid == 1:
7654
        if ftype == TType.I64:
7655
          self.beginIndex = iprot.readI64();
7656
        else:
7657
          iprot.skip(ftype)
7658
      elif fid == 2:
7659
        if ftype == TType.I64:
7660
          self.totalItems = iprot.readI64();
7661
        else:
7662
          iprot.skip(ftype)
7663
      elif fid == 3:
7664
        if ftype == TType.STRING:
7665
          self.brand = iprot.readString();
7666
        else:
7667
          iprot.skip(ftype)
7668
      elif fid == 4:
7669
        if ftype == TType.LIST:
7670
          self.categories = []
7671
          (_etype110, _size107) = iprot.readListBegin()
7672
          for _i111 in xrange(_size107):
7673
            _elem112 = iprot.readI64();
7674
            self.categories.append(_elem112)
7675
          iprot.readListEnd()
7676
        else:
7677
          iprot.skip(ftype)
7678
      else:
7679
        iprot.skip(ftype)
7680
      iprot.readFieldEnd()
7681
    iprot.readStructEnd()
7682
 
7683
  def write(self, oprot):
7684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7686
      return
7687
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
7688
    if self.beginIndex is not None:
7689
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7690
      oprot.writeI64(self.beginIndex)
7691
      oprot.writeFieldEnd()
7692
    if self.totalItems is not None:
7693
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7694
      oprot.writeI64(self.totalItems)
7695
      oprot.writeFieldEnd()
7696
    if self.brand is not None:
7697
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7698
      oprot.writeString(self.brand)
7699
      oprot.writeFieldEnd()
7700
    if self.categories is not None:
7701
      oprot.writeFieldBegin('categories', TType.LIST, 4)
7702
      oprot.writeListBegin(TType.I64, len(self.categories))
7703
      for iter113 in self.categories:
7704
        oprot.writeI64(iter113)
7705
      oprot.writeListEnd()
7706
      oprot.writeFieldEnd()
7707
    oprot.writeFieldStop()
7708
    oprot.writeStructEnd()
7709
 
7710
  def validate(self):
7711
    return
7712
 
7713
 
7714
  def __repr__(self):
7715
    L = ['%s=%r' % (key, value)
7716
      for key, value in self.__dict__.iteritems()]
7717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7718
 
7719
  def __eq__(self, other):
7720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7721
 
7722
  def __ne__(self, other):
7723
    return not (self == other)
7724
 
7725
class getLatestArrivalsCatalogIds_result:
7726
  """
7727
  Attributes:
7728
   - success
7729
   - cex
7730
  """
7731
 
7732
  thrift_spec = (
7733
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7734
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7735
  )
7736
 
7737
  def __init__(self, success=None, cex=None,):
7738
    self.success = success
7739
    self.cex = cex
7740
 
7741
  def read(self, iprot):
7742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7744
      return
7745
    iprot.readStructBegin()
7746
    while True:
7747
      (fname, ftype, fid) = iprot.readFieldBegin()
7748
      if ftype == TType.STOP:
7749
        break
7750
      if fid == 0:
7751
        if ftype == TType.LIST:
7752
          self.success = []
7753
          (_etype117, _size114) = iprot.readListBegin()
7754
          for _i118 in xrange(_size114):
7755
            _elem119 = iprot.readI64();
7756
            self.success.append(_elem119)
7757
          iprot.readListEnd()
7758
        else:
7759
          iprot.skip(ftype)
7760
      elif fid == 1:
7761
        if ftype == TType.STRUCT:
7762
          self.cex = CatalogServiceException()
7763
          self.cex.read(iprot)
7764
        else:
7765
          iprot.skip(ftype)
7766
      else:
7767
        iprot.skip(ftype)
7768
      iprot.readFieldEnd()
7769
    iprot.readStructEnd()
7770
 
7771
  def write(self, oprot):
7772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7774
      return
7775
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
7776
    if self.success is not None:
7777
      oprot.writeFieldBegin('success', TType.LIST, 0)
7778
      oprot.writeListBegin(TType.I64, len(self.success))
7779
      for iter120 in self.success:
7780
        oprot.writeI64(iter120)
7781
      oprot.writeListEnd()
7782
      oprot.writeFieldEnd()
7783
    if self.cex is not None:
7784
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7785
      self.cex.write(oprot)
7786
      oprot.writeFieldEnd()
7787
    oprot.writeFieldStop()
7788
    oprot.writeStructEnd()
7789
 
7790
  def validate(self):
7791
    return
7792
 
7793
 
7794
  def __repr__(self):
7795
    L = ['%s=%r' % (key, value)
7796
      for key, value in self.__dict__.iteritems()]
7797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7798
 
7799
  def __eq__(self, other):
7800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7801
 
7802
  def __ne__(self, other):
7803
    return not (self == other)
7804
 
7805
class getLatestArrivalsCount_args:
7806
 
7807
  thrift_spec = (
7808
  )
7809
 
7810
  def read(self, iprot):
7811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7813
      return
7814
    iprot.readStructBegin()
7815
    while True:
7816
      (fname, ftype, fid) = iprot.readFieldBegin()
7817
      if ftype == TType.STOP:
7818
        break
7819
      else:
7820
        iprot.skip(ftype)
7821
      iprot.readFieldEnd()
7822
    iprot.readStructEnd()
7823
 
7824
  def write(self, oprot):
7825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7827
      return
7828
    oprot.writeStructBegin('getLatestArrivalsCount_args')
7829
    oprot.writeFieldStop()
7830
    oprot.writeStructEnd()
7831
 
7832
  def validate(self):
7833
    return
7834
 
7835
 
7836
  def __repr__(self):
7837
    L = ['%s=%r' % (key, value)
7838
      for key, value in self.__dict__.iteritems()]
7839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7840
 
7841
  def __eq__(self, other):
7842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7843
 
7844
  def __ne__(self, other):
7845
    return not (self == other)
7846
 
7847
class getLatestArrivalsCount_result:
7848
  """
7849
  Attributes:
7850
   - success
7851
   - cex
7852
  """
7853
 
7854
  thrift_spec = (
7855
    (0, TType.I64, 'success', None, None, ), # 0
7856
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7857
  )
7858
 
7859
  def __init__(self, success=None, cex=None,):
7860
    self.success = success
7861
    self.cex = cex
7862
 
7863
  def read(self, iprot):
7864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7866
      return
7867
    iprot.readStructBegin()
7868
    while True:
7869
      (fname, ftype, fid) = iprot.readFieldBegin()
7870
      if ftype == TType.STOP:
7871
        break
7872
      if fid == 0:
7873
        if ftype == TType.I64:
7874
          self.success = iprot.readI64();
7875
        else:
7876
          iprot.skip(ftype)
7877
      elif fid == 1:
7878
        if ftype == TType.STRUCT:
7879
          self.cex = CatalogServiceException()
7880
          self.cex.read(iprot)
7881
        else:
7882
          iprot.skip(ftype)
7883
      else:
7884
        iprot.skip(ftype)
7885
      iprot.readFieldEnd()
7886
    iprot.readStructEnd()
7887
 
7888
  def write(self, oprot):
7889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7891
      return
7892
    oprot.writeStructBegin('getLatestArrivalsCount_result')
7893
    if self.success is not None:
7894
      oprot.writeFieldBegin('success', TType.I64, 0)
7895
      oprot.writeI64(self.success)
7896
      oprot.writeFieldEnd()
7897
    if self.cex is not None:
7898
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7899
      self.cex.write(oprot)
7900
      oprot.writeFieldEnd()
7901
    oprot.writeFieldStop()
7902
    oprot.writeStructEnd()
7903
 
7904
  def validate(self):
7905
    return
7906
 
7907
 
7908
  def __repr__(self):
7909
    L = ['%s=%r' % (key, value)
7910
      for key, value in self.__dict__.iteritems()]
7911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7912
 
7913
  def __eq__(self, other):
7914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7915
 
7916
  def __ne__(self, other):
7917
    return not (self == other)
7918
 
7919
class generateNewEntityID_args:
7920
 
7921
  thrift_spec = (
7922
  )
7923
 
7924
  def read(self, iprot):
7925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7927
      return
7928
    iprot.readStructBegin()
7929
    while True:
7930
      (fname, ftype, fid) = iprot.readFieldBegin()
7931
      if ftype == TType.STOP:
7932
        break
7933
      else:
7934
        iprot.skip(ftype)
7935
      iprot.readFieldEnd()
7936
    iprot.readStructEnd()
7937
 
7938
  def write(self, oprot):
7939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7941
      return
7942
    oprot.writeStructBegin('generateNewEntityID_args')
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 generateNewEntityID_result:
7962
  """
7963
  Attributes:
7964
   - success
7965
  """
7966
 
7967
  thrift_spec = (
7968
    (0, TType.I64, '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.I64:
7985
          self.success = iprot.readI64();
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('generateNewEntityID_result')
7998
    if self.success is not None:
7999
      oprot.writeFieldBegin('success', TType.I64, 0)
8000
      oprot.writeI64(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 addCategory_args:
8021
  """
8022
  Attributes:
8023
   - category
8024
  """
8025
 
8026
  thrift_spec = (
8027
    None, # 0
8028
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
8029
  )
8030
 
8031
  def __init__(self, category=None,):
8032
    self.category = category
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.STRUCT:
8045
          self.category = Category()
8046
          self.category.read(iprot)
8047
        else:
8048
          iprot.skip(ftype)
8049
      else:
8050
        iprot.skip(ftype)
8051
      iprot.readFieldEnd()
8052
    iprot.readStructEnd()
8053
 
8054
  def write(self, oprot):
8055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8057
      return
8058
    oprot.writeStructBegin('addCategory_args')
8059
    if self.category is not None:
8060
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
8061
      self.category.write(oprot)
8062
      oprot.writeFieldEnd()
8063
    oprot.writeFieldStop()
8064
    oprot.writeStructEnd()
8065
 
8066
  def validate(self):
8067
    return
8068
 
8069
 
8070
  def __repr__(self):
8071
    L = ['%s=%r' % (key, value)
8072
      for key, value in self.__dict__.iteritems()]
8073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8074
 
8075
  def __eq__(self, other):
8076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8077
 
8078
  def __ne__(self, other):
8079
    return not (self == other)
8080
 
8081
class addCategory_result:
8082
  """
8083
  Attributes:
8084
   - success
8085
  """
8086
 
8087
  thrift_spec = (
8088
    (0, TType.BOOL, 'success', None, None, ), # 0
8089
  )
8090
 
8091
  def __init__(self, success=None,):
8092
    self.success = success
8093
 
8094
  def read(self, iprot):
8095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8097
      return
8098
    iprot.readStructBegin()
8099
    while True:
8100
      (fname, ftype, fid) = iprot.readFieldBegin()
8101
      if ftype == TType.STOP:
8102
        break
8103
      if fid == 0:
8104
        if ftype == TType.BOOL:
8105
          self.success = iprot.readBool();
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('addCategory_result')
8118
    if self.success is not None:
8119
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8120
      oprot.writeBool(self.success)
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 getCategory_args:
8141
  """
8142
  Attributes:
8143
   - id
8144
  """
8145
 
8146
  thrift_spec = (
8147
    None, # 0
8148
    (1, TType.I64, 'id', None, None, ), # 1
8149
  )
8150
 
8151
  def __init__(self, id=None,):
8152
    self.id = id
8153
 
8154
  def read(self, iprot):
8155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8157
      return
8158
    iprot.readStructBegin()
8159
    while True:
8160
      (fname, ftype, fid) = iprot.readFieldBegin()
8161
      if ftype == TType.STOP:
8162
        break
8163
      if fid == 1:
8164
        if ftype == TType.I64:
8165
          self.id = iprot.readI64();
8166
        else:
8167
          iprot.skip(ftype)
8168
      else:
8169
        iprot.skip(ftype)
8170
      iprot.readFieldEnd()
8171
    iprot.readStructEnd()
8172
 
8173
  def write(self, oprot):
8174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8176
      return
8177
    oprot.writeStructBegin('getCategory_args')
8178
    if self.id is not None:
8179
      oprot.writeFieldBegin('id', TType.I64, 1)
8180
      oprot.writeI64(self.id)
8181
      oprot.writeFieldEnd()
8182
    oprot.writeFieldStop()
8183
    oprot.writeStructEnd()
8184
 
8185
  def validate(self):
8186
    return
8187
 
8188
 
8189
  def __repr__(self):
8190
    L = ['%s=%r' % (key, value)
8191
      for key, value in self.__dict__.iteritems()]
8192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8193
 
8194
  def __eq__(self, other):
8195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8196
 
8197
  def __ne__(self, other):
8198
    return not (self == other)
8199
 
8200
class getCategory_result:
8201
  """
8202
  Attributes:
8203
   - success
8204
  """
8205
 
8206
  thrift_spec = (
8207
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8208
  )
8209
 
8210
  def __init__(self, success=None,):
8211
    self.success = success
8212
 
8213
  def read(self, iprot):
8214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8216
      return
8217
    iprot.readStructBegin()
8218
    while True:
8219
      (fname, ftype, fid) = iprot.readFieldBegin()
8220
      if ftype == TType.STOP:
8221
        break
8222
      if fid == 0:
8223
        if ftype == TType.STRUCT:
8224
          self.success = Category()
8225
          self.success.read(iprot)
8226
        else:
8227
          iprot.skip(ftype)
8228
      else:
8229
        iprot.skip(ftype)
8230
      iprot.readFieldEnd()
8231
    iprot.readStructEnd()
8232
 
8233
  def write(self, oprot):
8234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8236
      return
8237
    oprot.writeStructBegin('getCategory_result')
8238
    if self.success is not None:
8239
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8240
      self.success.write(oprot)
8241
      oprot.writeFieldEnd()
8242
    oprot.writeFieldStop()
8243
    oprot.writeStructEnd()
8244
 
8245
  def validate(self):
8246
    return
8247
 
8248
 
8249
  def __repr__(self):
8250
    L = ['%s=%r' % (key, value)
8251
      for key, value in self.__dict__.iteritems()]
8252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8253
 
8254
  def __eq__(self, other):
8255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8256
 
8257
  def __ne__(self, other):
8258
    return not (self == other)
8259
 
8260
class getAllCategories_args:
8261
 
8262
  thrift_spec = (
8263
  )
8264
 
8265
  def read(self, iprot):
8266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8268
      return
8269
    iprot.readStructBegin()
8270
    while True:
8271
      (fname, ftype, fid) = iprot.readFieldBegin()
8272
      if ftype == TType.STOP:
8273
        break
8274
      else:
8275
        iprot.skip(ftype)
8276
      iprot.readFieldEnd()
8277
    iprot.readStructEnd()
8278
 
8279
  def write(self, oprot):
8280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8282
      return
8283
    oprot.writeStructBegin('getAllCategories_args')
8284
    oprot.writeFieldStop()
8285
    oprot.writeStructEnd()
8286
 
8287
  def validate(self):
8288
    return
8289
 
8290
 
8291
  def __repr__(self):
8292
    L = ['%s=%r' % (key, value)
8293
      for key, value in self.__dict__.iteritems()]
8294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8295
 
8296
  def __eq__(self, other):
8297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8298
 
8299
  def __ne__(self, other):
8300
    return not (self == other)
8301
 
8302
class getAllCategories_result:
8303
  """
8304
  Attributes:
8305
   - success
8306
  """
8307
 
8308
  thrift_spec = (
8309
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8310
  )
8311
 
8312
  def __init__(self, success=None,):
8313
    self.success = success
8314
 
8315
  def read(self, iprot):
8316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8318
      return
8319
    iprot.readStructBegin()
8320
    while True:
8321
      (fname, ftype, fid) = iprot.readFieldBegin()
8322
      if ftype == TType.STOP:
8323
        break
8324
      if fid == 0:
8325
        if ftype == TType.LIST:
8326
          self.success = []
8327
          (_etype124, _size121) = iprot.readListBegin()
8328
          for _i125 in xrange(_size121):
8329
            _elem126 = Category()
8330
            _elem126.read(iprot)
8331
            self.success.append(_elem126)
8332
          iprot.readListEnd()
8333
        else:
8334
          iprot.skip(ftype)
8335
      else:
8336
        iprot.skip(ftype)
8337
      iprot.readFieldEnd()
8338
    iprot.readStructEnd()
8339
 
8340
  def write(self, oprot):
8341
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8342
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8343
      return
8344
    oprot.writeStructBegin('getAllCategories_result')
8345
    if self.success is not None:
8346
      oprot.writeFieldBegin('success', TType.LIST, 0)
8347
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8348
      for iter127 in self.success:
8349
        iter127.write(oprot)
8350
      oprot.writeListEnd()
8351
      oprot.writeFieldEnd()
8352
    oprot.writeFieldStop()
8353
    oprot.writeStructEnd()
8354
 
8355
  def validate(self):
8356
    return
8357
 
8358
 
8359
  def __repr__(self):
8360
    L = ['%s=%r' % (key, value)
8361
      for key, value in self.__dict__.iteritems()]
8362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8363
 
8364
  def __eq__(self, other):
8365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8366
 
8367
  def __ne__(self, other):
8368
    return not (self == other)
8369
 
8370
class getAllSimilarItems_args:
8371
  """
8372
  Attributes:
8373
   - itemId
8374
  """
8375
 
8376
  thrift_spec = (
8377
    None, # 0
8378
    (1, TType.I64, 'itemId', None, None, ), # 1
8379
  )
8380
 
8381
  def __init__(self, itemId=None,):
8382
    self.itemId = itemId
8383
 
8384
  def read(self, iprot):
8385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8387
      return
8388
    iprot.readStructBegin()
8389
    while True:
8390
      (fname, ftype, fid) = iprot.readFieldBegin()
8391
      if ftype == TType.STOP:
8392
        break
8393
      if fid == 1:
8394
        if ftype == TType.I64:
8395
          self.itemId = iprot.readI64();
8396
        else:
8397
          iprot.skip(ftype)
8398
      else:
8399
        iprot.skip(ftype)
8400
      iprot.readFieldEnd()
8401
    iprot.readStructEnd()
8402
 
8403
  def write(self, oprot):
8404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8406
      return
8407
    oprot.writeStructBegin('getAllSimilarItems_args')
8408
    if self.itemId is not None:
8409
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8410
      oprot.writeI64(self.itemId)
8411
      oprot.writeFieldEnd()
8412
    oprot.writeFieldStop()
8413
    oprot.writeStructEnd()
8414
 
8415
  def validate(self):
8416
    return
8417
 
8418
 
8419
  def __repr__(self):
8420
    L = ['%s=%r' % (key, value)
8421
      for key, value in self.__dict__.iteritems()]
8422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8423
 
8424
  def __eq__(self, other):
8425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8426
 
8427
  def __ne__(self, other):
8428
    return not (self == other)
8429
 
8430
class getAllSimilarItems_result:
8431
  """
8432
  Attributes:
8433
   - success
8434
  """
8435
 
8436
  thrift_spec = (
8437
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8438
  )
8439
 
8440
  def __init__(self, success=None,):
8441
    self.success = success
8442
 
8443
  def read(self, iprot):
8444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8446
      return
8447
    iprot.readStructBegin()
8448
    while True:
8449
      (fname, ftype, fid) = iprot.readFieldBegin()
8450
      if ftype == TType.STOP:
8451
        break
8452
      if fid == 0:
8453
        if ftype == TType.LIST:
8454
          self.success = []
8455
          (_etype131, _size128) = iprot.readListBegin()
8456
          for _i132 in xrange(_size128):
8457
            _elem133 = Item()
8458
            _elem133.read(iprot)
8459
            self.success.append(_elem133)
8460
          iprot.readListEnd()
8461
        else:
8462
          iprot.skip(ftype)
8463
      else:
8464
        iprot.skip(ftype)
8465
      iprot.readFieldEnd()
8466
    iprot.readStructEnd()
8467
 
8468
  def write(self, oprot):
8469
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8470
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8471
      return
8472
    oprot.writeStructBegin('getAllSimilarItems_result')
8473
    if self.success is not None:
8474
      oprot.writeFieldBegin('success', TType.LIST, 0)
8475
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8476
      for iter134 in self.success:
8477
        iter134.write(oprot)
8478
      oprot.writeListEnd()
8479
      oprot.writeFieldEnd()
8480
    oprot.writeFieldStop()
8481
    oprot.writeStructEnd()
8482
 
8483
  def validate(self):
8484
    return
8485
 
8486
 
8487
  def __repr__(self):
8488
    L = ['%s=%r' % (key, value)
8489
      for key, value in self.__dict__.iteritems()]
8490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8491
 
8492
  def __eq__(self, other):
8493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8494
 
8495
  def __ne__(self, other):
8496
    return not (self == other)
8497
 
8498
class addSimilarItem_args:
8499
  """
8500
  Attributes:
8501
   - itemId
8502
   - catalogItemId
8503
  """
8504
 
8505
  thrift_spec = (
8506
    None, # 0
8507
    (1, TType.I64, 'itemId', None, None, ), # 1
8508
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
8509
  )
8510
 
8511
  def __init__(self, itemId=None, catalogItemId=None,):
8512
    self.itemId = itemId
8513
    self.catalogItemId = catalogItemId
8514
 
8515
  def read(self, iprot):
8516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8518
      return
8519
    iprot.readStructBegin()
8520
    while True:
8521
      (fname, ftype, fid) = iprot.readFieldBegin()
8522
      if ftype == TType.STOP:
8523
        break
8524
      if fid == 1:
8525
        if ftype == TType.I64:
8526
          self.itemId = iprot.readI64();
8527
        else:
8528
          iprot.skip(ftype)
8529
      elif fid == 2:
8530
        if ftype == TType.I64:
8531
          self.catalogItemId = iprot.readI64();
8532
        else:
8533
          iprot.skip(ftype)
8534
      else:
8535
        iprot.skip(ftype)
8536
      iprot.readFieldEnd()
8537
    iprot.readStructEnd()
8538
 
8539
  def write(self, oprot):
8540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8542
      return
8543
    oprot.writeStructBegin('addSimilarItem_args')
8544
    if self.itemId is not None:
8545
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8546
      oprot.writeI64(self.itemId)
8547
      oprot.writeFieldEnd()
8548
    if self.catalogItemId is not None:
8549
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
8550
      oprot.writeI64(self.catalogItemId)
8551
      oprot.writeFieldEnd()
8552
    oprot.writeFieldStop()
8553
    oprot.writeStructEnd()
8554
 
8555
  def validate(self):
8556
    return
8557
 
8558
 
8559
  def __repr__(self):
8560
    L = ['%s=%r' % (key, value)
8561
      for key, value in self.__dict__.iteritems()]
8562
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8563
 
8564
  def __eq__(self, other):
8565
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8566
 
8567
  def __ne__(self, other):
8568
    return not (self == other)
8569
 
8570
class addSimilarItem_result:
8571
  """
8572
  Attributes:
8573
   - success
8574
   - cex
8575
  """
8576
 
8577
  thrift_spec = (
8578
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8579
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8580
  )
8581
 
8582
  def __init__(self, success=None, cex=None,):
8583
    self.success = success
8584
    self.cex = cex
8585
 
8586
  def read(self, iprot):
8587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8589
      return
8590
    iprot.readStructBegin()
8591
    while True:
8592
      (fname, ftype, fid) = iprot.readFieldBegin()
8593
      if ftype == TType.STOP:
8594
        break
8595
      if fid == 0:
8596
        if ftype == TType.STRUCT:
8597
          self.success = Item()
8598
          self.success.read(iprot)
8599
        else:
8600
          iprot.skip(ftype)
8601
      elif fid == 1:
8602
        if ftype == TType.STRUCT:
8603
          self.cex = CatalogServiceException()
8604
          self.cex.read(iprot)
8605
        else:
8606
          iprot.skip(ftype)
8607
      else:
8608
        iprot.skip(ftype)
8609
      iprot.readFieldEnd()
8610
    iprot.readStructEnd()
8611
 
8612
  def write(self, oprot):
8613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8615
      return
8616
    oprot.writeStructBegin('addSimilarItem_result')
8617
    if self.success is not None:
8618
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8619
      self.success.write(oprot)
8620
      oprot.writeFieldEnd()
8621
    if self.cex is not None:
8622
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8623
      self.cex.write(oprot)
8624
      oprot.writeFieldEnd()
8625
    oprot.writeFieldStop()
8626
    oprot.writeStructEnd()
8627
 
8628
  def validate(self):
8629
    return
8630
 
8631
 
8632
  def __repr__(self):
8633
    L = ['%s=%r' % (key, value)
8634
      for key, value in self.__dict__.iteritems()]
8635
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8636
 
8637
  def __eq__(self, other):
8638
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8639
 
8640
  def __ne__(self, other):
8641
    return not (self == other)
8642
 
6512 kshitij.so 8643
class addTag_args:
8644
  """
8645
  Attributes:
8646
   - displayName
8647
   - itemId
8648
  """
8649
 
8650
  thrift_spec = (
8651
    None, # 0
8652
    (1, TType.STRING, 'displayName', None, None, ), # 1
8653
    (2, TType.I64, 'itemId', None, None, ), # 2
8654
  )
8655
 
8656
  def __init__(self, displayName=None, itemId=None,):
8657
    self.displayName = displayName
8658
    self.itemId = itemId
8659
 
8660
  def read(self, iprot):
8661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8663
      return
8664
    iprot.readStructBegin()
8665
    while True:
8666
      (fname, ftype, fid) = iprot.readFieldBegin()
8667
      if ftype == TType.STOP:
8668
        break
8669
      if fid == 1:
8670
        if ftype == TType.STRING:
8671
          self.displayName = iprot.readString();
8672
        else:
8673
          iprot.skip(ftype)
8674
      elif fid == 2:
8675
        if ftype == TType.I64:
8676
          self.itemId = iprot.readI64();
8677
        else:
8678
          iprot.skip(ftype)
8679
      else:
8680
        iprot.skip(ftype)
8681
      iprot.readFieldEnd()
8682
    iprot.readStructEnd()
8683
 
8684
  def write(self, oprot):
8685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8687
      return
8688
    oprot.writeStructBegin('addTag_args')
8689
    if self.displayName is not None:
8690
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8691
      oprot.writeString(self.displayName)
8692
      oprot.writeFieldEnd()
8693
    if self.itemId is not None:
8694
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8695
      oprot.writeI64(self.itemId)
8696
      oprot.writeFieldEnd()
8697
    oprot.writeFieldStop()
8698
    oprot.writeStructEnd()
8699
 
8700
  def validate(self):
8701
    return
8702
 
8703
 
8704
  def __repr__(self):
8705
    L = ['%s=%r' % (key, value)
8706
      for key, value in self.__dict__.iteritems()]
8707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8708
 
8709
  def __eq__(self, other):
8710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8711
 
8712
  def __ne__(self, other):
8713
    return not (self == other)
8714
 
8715
class addTag_result:
8716
  """
8717
  Attributes:
8718
   - success
8719
  """
8720
 
8721
  thrift_spec = (
8722
    (0, TType.BOOL, 'success', None, None, ), # 0
8723
  )
8724
 
8725
  def __init__(self, success=None,):
8726
    self.success = success
8727
 
8728
  def read(self, iprot):
8729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8731
      return
8732
    iprot.readStructBegin()
8733
    while True:
8734
      (fname, ftype, fid) = iprot.readFieldBegin()
8735
      if ftype == TType.STOP:
8736
        break
8737
      if fid == 0:
8738
        if ftype == TType.BOOL:
8739
          self.success = iprot.readBool();
8740
        else:
8741
          iprot.skip(ftype)
8742
      else:
8743
        iprot.skip(ftype)
8744
      iprot.readFieldEnd()
8745
    iprot.readStructEnd()
8746
 
8747
  def write(self, oprot):
8748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8750
      return
8751
    oprot.writeStructBegin('addTag_result')
8752
    if self.success is not None:
8753
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8754
      oprot.writeBool(self.success)
8755
      oprot.writeFieldEnd()
8756
    oprot.writeFieldStop()
8757
    oprot.writeStructEnd()
8758
 
8759
  def validate(self):
8760
    return
8761
 
8762
 
8763
  def __repr__(self):
8764
    L = ['%s=%r' % (key, value)
8765
      for key, value in self.__dict__.iteritems()]
8766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8767
 
8768
  def __eq__(self, other):
8769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8770
 
8771
  def __ne__(self, other):
8772
    return not (self == other)
8773
 
8774
class deleteEntityTag_args:
8775
  """
8776
  Attributes:
8777
   - displayName
8778
   - itemId
8779
  """
8780
 
8781
  thrift_spec = (
8782
    None, # 0
8783
    (1, TType.STRING, 'displayName', None, None, ), # 1
8784
    (2, TType.I64, 'itemId', None, None, ), # 2
8785
  )
8786
 
8787
  def __init__(self, displayName=None, itemId=None,):
8788
    self.displayName = displayName
8789
    self.itemId = itemId
8790
 
8791
  def read(self, iprot):
8792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8794
      return
8795
    iprot.readStructBegin()
8796
    while True:
8797
      (fname, ftype, fid) = iprot.readFieldBegin()
8798
      if ftype == TType.STOP:
8799
        break
8800
      if fid == 1:
8801
        if ftype == TType.STRING:
8802
          self.displayName = iprot.readString();
8803
        else:
8804
          iprot.skip(ftype)
8805
      elif fid == 2:
8806
        if ftype == TType.I64:
8807
          self.itemId = iprot.readI64();
8808
        else:
8809
          iprot.skip(ftype)
8810
      else:
8811
        iprot.skip(ftype)
8812
      iprot.readFieldEnd()
8813
    iprot.readStructEnd()
8814
 
8815
  def write(self, oprot):
8816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8818
      return
8819
    oprot.writeStructBegin('deleteEntityTag_args')
8820
    if self.displayName is not None:
8821
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8822
      oprot.writeString(self.displayName)
8823
      oprot.writeFieldEnd()
8824
    if self.itemId is not None:
8825
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8826
      oprot.writeI64(self.itemId)
8827
      oprot.writeFieldEnd()
8828
    oprot.writeFieldStop()
8829
    oprot.writeStructEnd()
8830
 
8831
  def validate(self):
8832
    return
8833
 
8834
 
8835
  def __repr__(self):
8836
    L = ['%s=%r' % (key, value)
8837
      for key, value in self.__dict__.iteritems()]
8838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8839
 
8840
  def __eq__(self, other):
8841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8842
 
8843
  def __ne__(self, other):
8844
    return not (self == other)
8845
 
8846
class deleteEntityTag_result:
8847
  """
8848
  Attributes:
8849
   - success
8850
  """
8851
 
8852
  thrift_spec = (
8853
    (0, TType.BOOL, 'success', None, None, ), # 0
8854
  )
8855
 
8856
  def __init__(self, success=None,):
8857
    self.success = success
8858
 
8859
  def read(self, iprot):
8860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8862
      return
8863
    iprot.readStructBegin()
8864
    while True:
8865
      (fname, ftype, fid) = iprot.readFieldBegin()
8866
      if ftype == TType.STOP:
8867
        break
8868
      if fid == 0:
8869
        if ftype == TType.BOOL:
8870
          self.success = iprot.readBool();
8871
        else:
8872
          iprot.skip(ftype)
8873
      else:
8874
        iprot.skip(ftype)
8875
      iprot.readFieldEnd()
8876
    iprot.readStructEnd()
8877
 
8878
  def write(self, oprot):
8879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8881
      return
8882
    oprot.writeStructBegin('deleteEntityTag_result')
8883
    if self.success is not None:
8884
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8885
      oprot.writeBool(self.success)
8886
      oprot.writeFieldEnd()
8887
    oprot.writeFieldStop()
8888
    oprot.writeStructEnd()
8889
 
8890
  def validate(self):
8891
    return
8892
 
8893
 
8894
  def __repr__(self):
8895
    L = ['%s=%r' % (key, value)
8896
      for key, value in self.__dict__.iteritems()]
8897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8898
 
8899
  def __eq__(self, other):
8900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8901
 
8902
  def __ne__(self, other):
8903
    return not (self == other)
8904
 
8905
class deleteTag_args:
8906
  """
8907
  Attributes:
8908
   - displayName
8909
  """
8910
 
8911
  thrift_spec = (
8912
    None, # 0
8913
    (1, TType.STRING, 'displayName', None, None, ), # 1
8914
  )
8915
 
8916
  def __init__(self, displayName=None,):
8917
    self.displayName = displayName
8918
 
8919
  def read(self, iprot):
8920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8922
      return
8923
    iprot.readStructBegin()
8924
    while True:
8925
      (fname, ftype, fid) = iprot.readFieldBegin()
8926
      if ftype == TType.STOP:
8927
        break
8928
      if fid == 1:
8929
        if ftype == TType.STRING:
8930
          self.displayName = iprot.readString();
8931
        else:
8932
          iprot.skip(ftype)
8933
      else:
8934
        iprot.skip(ftype)
8935
      iprot.readFieldEnd()
8936
    iprot.readStructEnd()
8937
 
8938
  def write(self, oprot):
8939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8941
      return
8942
    oprot.writeStructBegin('deleteTag_args')
8943
    if self.displayName is not None:
8944
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8945
      oprot.writeString(self.displayName)
8946
      oprot.writeFieldEnd()
8947
    oprot.writeFieldStop()
8948
    oprot.writeStructEnd()
8949
 
8950
  def validate(self):
8951
    return
8952
 
8953
 
8954
  def __repr__(self):
8955
    L = ['%s=%r' % (key, value)
8956
      for key, value in self.__dict__.iteritems()]
8957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8958
 
8959
  def __eq__(self, other):
8960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8961
 
8962
  def __ne__(self, other):
8963
    return not (self == other)
8964
 
8965
class deleteTag_result:
8966
  """
8967
  Attributes:
8968
   - success
8969
  """
8970
 
8971
  thrift_spec = (
8972
    (0, TType.BOOL, 'success', None, None, ), # 0
8973
  )
8974
 
8975
  def __init__(self, success=None,):
8976
    self.success = success
8977
 
8978
  def read(self, iprot):
8979
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8980
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8981
      return
8982
    iprot.readStructBegin()
8983
    while True:
8984
      (fname, ftype, fid) = iprot.readFieldBegin()
8985
      if ftype == TType.STOP:
8986
        break
8987
      if fid == 0:
8988
        if ftype == TType.BOOL:
8989
          self.success = iprot.readBool();
8990
        else:
8991
          iprot.skip(ftype)
8992
      else:
8993
        iprot.skip(ftype)
8994
      iprot.readFieldEnd()
8995
    iprot.readStructEnd()
8996
 
8997
  def write(self, oprot):
8998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9000
      return
9001
    oprot.writeStructBegin('deleteTag_result')
9002
    if self.success is not None:
9003
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9004
      oprot.writeBool(self.success)
9005
      oprot.writeFieldEnd()
9006
    oprot.writeFieldStop()
9007
    oprot.writeStructEnd()
9008
 
9009
  def validate(self):
9010
    return
9011
 
9012
 
9013
  def __repr__(self):
9014
    L = ['%s=%r' % (key, value)
9015
      for key, value in self.__dict__.iteritems()]
9016
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9017
 
9018
  def __eq__(self, other):
9019
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9020
 
9021
  def __ne__(self, other):
9022
    return not (self == other)
9023
 
9024
class getAllTags_args:
9025
 
9026
  thrift_spec = (
9027
  )
9028
 
9029
  def read(self, iprot):
9030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9032
      return
9033
    iprot.readStructBegin()
9034
    while True:
9035
      (fname, ftype, fid) = iprot.readFieldBegin()
9036
      if ftype == TType.STOP:
9037
        break
9038
      else:
9039
        iprot.skip(ftype)
9040
      iprot.readFieldEnd()
9041
    iprot.readStructEnd()
9042
 
9043
  def write(self, oprot):
9044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9046
      return
9047
    oprot.writeStructBegin('getAllTags_args')
9048
    oprot.writeFieldStop()
9049
    oprot.writeStructEnd()
9050
 
9051
  def validate(self):
9052
    return
9053
 
9054
 
9055
  def __repr__(self):
9056
    L = ['%s=%r' % (key, value)
9057
      for key, value in self.__dict__.iteritems()]
9058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9059
 
9060
  def __eq__(self, other):
9061
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9062
 
9063
  def __ne__(self, other):
9064
    return not (self == other)
9065
 
9066
class getAllTags_result:
9067
  """
9068
  Attributes:
9069
   - success
9070
  """
9071
 
9072
  thrift_spec = (
9073
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
9074
  )
9075
 
9076
  def __init__(self, success=None,):
9077
    self.success = success
9078
 
9079
  def read(self, iprot):
9080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9082
      return
9083
    iprot.readStructBegin()
9084
    while True:
9085
      (fname, ftype, fid) = iprot.readFieldBegin()
9086
      if ftype == TType.STOP:
9087
        break
9088
      if fid == 0:
9089
        if ftype == TType.LIST:
9090
          self.success = []
9091
          (_etype138, _size135) = iprot.readListBegin()
9092
          for _i139 in xrange(_size135):
9093
            _elem140 = iprot.readString();
9094
            self.success.append(_elem140)
9095
          iprot.readListEnd()
9096
        else:
9097
          iprot.skip(ftype)
9098
      else:
9099
        iprot.skip(ftype)
9100
      iprot.readFieldEnd()
9101
    iprot.readStructEnd()
9102
 
9103
  def write(self, oprot):
9104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9106
      return
9107
    oprot.writeStructBegin('getAllTags_result')
9108
    if self.success is not None:
9109
      oprot.writeFieldBegin('success', TType.LIST, 0)
9110
      oprot.writeListBegin(TType.STRING, len(self.success))
9111
      for iter141 in self.success:
9112
        oprot.writeString(iter141)
9113
      oprot.writeListEnd()
9114
      oprot.writeFieldEnd()
9115
    oprot.writeFieldStop()
9116
    oprot.writeStructEnd()
9117
 
9118
  def validate(self):
9119
    return
9120
 
9121
 
9122
  def __repr__(self):
9123
    L = ['%s=%r' % (key, value)
9124
      for key, value in self.__dict__.iteritems()]
9125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9126
 
9127
  def __eq__(self, other):
9128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9129
 
9130
  def __ne__(self, other):
9131
    return not (self == other)
9132
 
9133
class getAllEntitiesByTagName_args:
9134
  """
9135
  Attributes:
9136
   - displayName
9137
  """
9138
 
9139
  thrift_spec = (
9140
    None, # 0
9141
    (1, TType.STRING, 'displayName', None, None, ), # 1
9142
  )
9143
 
9144
  def __init__(self, displayName=None,):
9145
    self.displayName = displayName
9146
 
9147
  def read(self, iprot):
9148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9150
      return
9151
    iprot.readStructBegin()
9152
    while True:
9153
      (fname, ftype, fid) = iprot.readFieldBegin()
9154
      if ftype == TType.STOP:
9155
        break
9156
      if fid == 1:
9157
        if ftype == TType.STRING:
9158
          self.displayName = iprot.readString();
9159
        else:
9160
          iprot.skip(ftype)
9161
      else:
9162
        iprot.skip(ftype)
9163
      iprot.readFieldEnd()
9164
    iprot.readStructEnd()
9165
 
9166
  def write(self, oprot):
9167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9169
      return
9170
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9171
    if self.displayName is not None:
9172
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9173
      oprot.writeString(self.displayName)
9174
      oprot.writeFieldEnd()
9175
    oprot.writeFieldStop()
9176
    oprot.writeStructEnd()
9177
 
9178
  def validate(self):
9179
    return
9180
 
9181
 
9182
  def __repr__(self):
9183
    L = ['%s=%r' % (key, value)
9184
      for key, value in self.__dict__.iteritems()]
9185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9186
 
9187
  def __eq__(self, other):
9188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9189
 
9190
  def __ne__(self, other):
9191
    return not (self == other)
9192
 
9193
class getAllEntitiesByTagName_result:
9194
  """
9195
  Attributes:
9196
   - success
9197
  """
9198
 
9199
  thrift_spec = (
9200
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9201
  )
9202
 
9203
  def __init__(self, success=None,):
9204
    self.success = success
9205
 
9206
  def read(self, iprot):
9207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9209
      return
9210
    iprot.readStructBegin()
9211
    while True:
9212
      (fname, ftype, fid) = iprot.readFieldBegin()
9213
      if ftype == TType.STOP:
9214
        break
9215
      if fid == 0:
9216
        if ftype == TType.LIST:
9217
          self.success = []
9218
          (_etype145, _size142) = iprot.readListBegin()
9219
          for _i146 in xrange(_size142):
9220
            _elem147 = iprot.readI64();
9221
            self.success.append(_elem147)
9222
          iprot.readListEnd()
9223
        else:
9224
          iprot.skip(ftype)
9225
      else:
9226
        iprot.skip(ftype)
9227
      iprot.readFieldEnd()
9228
    iprot.readStructEnd()
9229
 
9230
  def write(self, oprot):
9231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9233
      return
9234
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9235
    if self.success is not None:
9236
      oprot.writeFieldBegin('success', TType.LIST, 0)
9237
      oprot.writeListBegin(TType.I64, len(self.success))
9238
      for iter148 in self.success:
9239
        oprot.writeI64(iter148)
9240
      oprot.writeListEnd()
9241
      oprot.writeFieldEnd()
9242
    oprot.writeFieldStop()
9243
    oprot.writeStructEnd()
9244
 
9245
  def validate(self):
9246
    return
9247
 
9248
 
9249
  def __repr__(self):
9250
    L = ['%s=%r' % (key, value)
9251
      for key, value in self.__dict__.iteritems()]
9252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9253
 
9254
  def __eq__(self, other):
9255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9256
 
9257
  def __ne__(self, other):
9258
    return not (self == other)
9259
 
6845 amit.gupta 9260
class getAllEntityTags_args:
9261
 
9262
  thrift_spec = (
9263
  )
9264
 
9265
  def read(self, iprot):
9266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9268
      return
9269
    iprot.readStructBegin()
9270
    while True:
9271
      (fname, ftype, fid) = iprot.readFieldBegin()
9272
      if ftype == TType.STOP:
9273
        break
9274
      else:
9275
        iprot.skip(ftype)
9276
      iprot.readFieldEnd()
9277
    iprot.readStructEnd()
9278
 
9279
  def write(self, oprot):
9280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9282
      return
9283
    oprot.writeStructBegin('getAllEntityTags_args')
9284
    oprot.writeFieldStop()
9285
    oprot.writeStructEnd()
9286
 
9287
  def validate(self):
9288
    return
9289
 
9290
 
9291
  def __repr__(self):
9292
    L = ['%s=%r' % (key, value)
9293
      for key, value in self.__dict__.iteritems()]
9294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9295
 
9296
  def __eq__(self, other):
9297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9298
 
9299
  def __ne__(self, other):
9300
    return not (self == other)
9301
 
9302
class getAllEntityTags_result:
9303
  """
9304
  Attributes:
9305
   - success
9306
  """
9307
 
9308
  thrift_spec = (
9309
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
9310
  )
9311
 
9312
  def __init__(self, success=None,):
9313
    self.success = success
9314
 
9315
  def read(self, iprot):
9316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9318
      return
9319
    iprot.readStructBegin()
9320
    while True:
9321
      (fname, ftype, fid) = iprot.readFieldBegin()
9322
      if ftype == TType.STOP:
9323
        break
9324
      if fid == 0:
9325
        if ftype == TType.MAP:
9326
          self.success = {}
9327
          (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() 
9328
          for _i153 in xrange(_size149):
9329
            _key154 = iprot.readI64();
9330
            _val155 = []
9331
            (_etype159, _size156) = iprot.readListBegin()
9332
            for _i160 in xrange(_size156):
9333
              _elem161 = iprot.readString();
9334
              _val155.append(_elem161)
9335
            iprot.readListEnd()
9336
            self.success[_key154] = _val155
9337
          iprot.readMapEnd()
9338
        else:
9339
          iprot.skip(ftype)
9340
      else:
9341
        iprot.skip(ftype)
9342
      iprot.readFieldEnd()
9343
    iprot.readStructEnd()
9344
 
9345
  def write(self, oprot):
9346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9348
      return
9349
    oprot.writeStructBegin('getAllEntityTags_result')
9350
    if self.success is not None:
9351
      oprot.writeFieldBegin('success', TType.MAP, 0)
9352
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
9353
      for kiter162,viter163 in self.success.items():
9354
        oprot.writeI64(kiter162)
9355
        oprot.writeListBegin(TType.STRING, len(viter163))
9356
        for iter164 in viter163:
9357
          oprot.writeString(iter164)
9358
        oprot.writeListEnd()
9359
      oprot.writeMapEnd()
9360
      oprot.writeFieldEnd()
9361
    oprot.writeFieldStop()
9362
    oprot.writeStructEnd()
9363
 
9364
  def validate(self):
9365
    return
9366
 
9367
 
9368
  def __repr__(self):
9369
    L = ['%s=%r' % (key, value)
9370
      for key, value in self.__dict__.iteritems()]
9371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9372
 
9373
  def __eq__(self, other):
9374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9375
 
9376
  def __ne__(self, other):
9377
    return not (self == other)
9378
 
5944 mandeep.dh 9379
class deleteSimilarItem_args:
9380
  """
9381
  Attributes:
9382
   - itemId
9383
   - catalogItemId
9384
  """
9385
 
9386
  thrift_spec = (
9387
    None, # 0
9388
    (1, TType.I64, 'itemId', None, None, ), # 1
9389
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
9390
  )
9391
 
9392
  def __init__(self, itemId=None, catalogItemId=None,):
9393
    self.itemId = itemId
9394
    self.catalogItemId = catalogItemId
9395
 
9396
  def read(self, iprot):
9397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9399
      return
9400
    iprot.readStructBegin()
9401
    while True:
9402
      (fname, ftype, fid) = iprot.readFieldBegin()
9403
      if ftype == TType.STOP:
9404
        break
9405
      if fid == 1:
9406
        if ftype == TType.I64:
9407
          self.itemId = iprot.readI64();
9408
        else:
9409
          iprot.skip(ftype)
9410
      elif fid == 2:
9411
        if ftype == TType.I64:
9412
          self.catalogItemId = iprot.readI64();
9413
        else:
9414
          iprot.skip(ftype)
9415
      else:
9416
        iprot.skip(ftype)
9417
      iprot.readFieldEnd()
9418
    iprot.readStructEnd()
9419
 
9420
  def write(self, oprot):
9421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9423
      return
9424
    oprot.writeStructBegin('deleteSimilarItem_args')
9425
    if self.itemId is not None:
9426
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9427
      oprot.writeI64(self.itemId)
9428
      oprot.writeFieldEnd()
9429
    if self.catalogItemId is not None:
9430
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
9431
      oprot.writeI64(self.catalogItemId)
9432
      oprot.writeFieldEnd()
9433
    oprot.writeFieldStop()
9434
    oprot.writeStructEnd()
9435
 
9436
  def validate(self):
9437
    return
9438
 
9439
 
9440
  def __repr__(self):
9441
    L = ['%s=%r' % (key, value)
9442
      for key, value in self.__dict__.iteritems()]
9443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9444
 
9445
  def __eq__(self, other):
9446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9447
 
9448
  def __ne__(self, other):
9449
    return not (self == other)
9450
 
9451
class deleteSimilarItem_result:
9452
  """
9453
  Attributes:
9454
   - success
9455
   - cex
9456
  """
9457
 
9458
  thrift_spec = (
9459
    (0, TType.BOOL, 'success', None, None, ), # 0
9460
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9461
  )
9462
 
9463
  def __init__(self, success=None, cex=None,):
9464
    self.success = success
9465
    self.cex = cex
9466
 
9467
  def read(self, iprot):
9468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9470
      return
9471
    iprot.readStructBegin()
9472
    while True:
9473
      (fname, ftype, fid) = iprot.readFieldBegin()
9474
      if ftype == TType.STOP:
9475
        break
9476
      if fid == 0:
9477
        if ftype == TType.BOOL:
9478
          self.success = iprot.readBool();
9479
        else:
9480
          iprot.skip(ftype)
9481
      elif fid == 1:
9482
        if ftype == TType.STRUCT:
9483
          self.cex = CatalogServiceException()
9484
          self.cex.read(iprot)
9485
        else:
9486
          iprot.skip(ftype)
9487
      else:
9488
        iprot.skip(ftype)
9489
      iprot.readFieldEnd()
9490
    iprot.readStructEnd()
9491
 
9492
  def write(self, oprot):
9493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9495
      return
9496
    oprot.writeStructBegin('deleteSimilarItem_result')
9497
    if self.success is not None:
9498
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9499
      oprot.writeBool(self.success)
9500
      oprot.writeFieldEnd()
9501
    if self.cex is not None:
9502
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9503
      self.cex.write(oprot)
9504
      oprot.writeFieldEnd()
9505
    oprot.writeFieldStop()
9506
    oprot.writeStructEnd()
9507
 
9508
  def validate(self):
9509
    return
9510
 
9511
 
9512
  def __repr__(self):
9513
    L = ['%s=%r' % (key, value)
9514
      for key, value in self.__dict__.iteritems()]
9515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9516
 
9517
  def __eq__(self, other):
9518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9519
 
9520
  def __ne__(self, other):
9521
    return not (self == other)
9522
 
9523
class checkSimilarItem_args:
9524
  """
9525
  Attributes:
9526
   - brand
9527
   - modelNumber
9528
   - modelName
9529
   - color
9530
  """
9531
 
9532
  thrift_spec = (
9533
    None, # 0
9534
    (1, TType.STRING, 'brand', None, None, ), # 1
9535
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
9536
    (3, TType.STRING, 'modelName', None, None, ), # 3
9537
    (4, TType.STRING, 'color', None, None, ), # 4
9538
  )
9539
 
9540
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
9541
    self.brand = brand
9542
    self.modelNumber = modelNumber
9543
    self.modelName = modelName
9544
    self.color = color
9545
 
9546
  def read(self, iprot):
9547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9549
      return
9550
    iprot.readStructBegin()
9551
    while True:
9552
      (fname, ftype, fid) = iprot.readFieldBegin()
9553
      if ftype == TType.STOP:
9554
        break
9555
      if fid == 1:
9556
        if ftype == TType.STRING:
9557
          self.brand = iprot.readString();
9558
        else:
9559
          iprot.skip(ftype)
9560
      elif fid == 2:
9561
        if ftype == TType.STRING:
9562
          self.modelNumber = iprot.readString();
9563
        else:
9564
          iprot.skip(ftype)
9565
      elif fid == 3:
9566
        if ftype == TType.STRING:
9567
          self.modelName = iprot.readString();
9568
        else:
9569
          iprot.skip(ftype)
9570
      elif fid == 4:
9571
        if ftype == TType.STRING:
9572
          self.color = iprot.readString();
9573
        else:
9574
          iprot.skip(ftype)
9575
      else:
9576
        iprot.skip(ftype)
9577
      iprot.readFieldEnd()
9578
    iprot.readStructEnd()
9579
 
9580
  def write(self, oprot):
9581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9583
      return
9584
    oprot.writeStructBegin('checkSimilarItem_args')
9585
    if self.brand is not None:
9586
      oprot.writeFieldBegin('brand', TType.STRING, 1)
9587
      oprot.writeString(self.brand)
9588
      oprot.writeFieldEnd()
9589
    if self.modelNumber is not None:
9590
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
9591
      oprot.writeString(self.modelNumber)
9592
      oprot.writeFieldEnd()
9593
    if self.modelName is not None:
9594
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
9595
      oprot.writeString(self.modelName)
9596
      oprot.writeFieldEnd()
9597
    if self.color is not None:
9598
      oprot.writeFieldBegin('color', TType.STRING, 4)
9599
      oprot.writeString(self.color)
9600
      oprot.writeFieldEnd()
9601
    oprot.writeFieldStop()
9602
    oprot.writeStructEnd()
9603
 
9604
  def validate(self):
9605
    return
9606
 
9607
 
9608
  def __repr__(self):
9609
    L = ['%s=%r' % (key, value)
9610
      for key, value in self.__dict__.iteritems()]
9611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9612
 
9613
  def __eq__(self, other):
9614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9615
 
9616
  def __ne__(self, other):
9617
    return not (self == other)
9618
 
9619
class checkSimilarItem_result:
9620
  """
9621
  Attributes:
9622
   - success
9623
  """
9624
 
9625
  thrift_spec = (
9626
    (0, TType.I64, 'success', None, None, ), # 0
9627
  )
9628
 
9629
  def __init__(self, success=None,):
9630
    self.success = success
9631
 
9632
  def read(self, iprot):
9633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9635
      return
9636
    iprot.readStructBegin()
9637
    while True:
9638
      (fname, ftype, fid) = iprot.readFieldBegin()
9639
      if ftype == TType.STOP:
9640
        break
9641
      if fid == 0:
9642
        if ftype == TType.I64:
9643
          self.success = iprot.readI64();
9644
        else:
9645
          iprot.skip(ftype)
9646
      else:
9647
        iprot.skip(ftype)
9648
      iprot.readFieldEnd()
9649
    iprot.readStructEnd()
9650
 
9651
  def write(self, oprot):
9652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9654
      return
9655
    oprot.writeStructBegin('checkSimilarItem_result')
9656
    if self.success is not None:
9657
      oprot.writeFieldBegin('success', TType.I64, 0)
9658
      oprot.writeI64(self.success)
9659
      oprot.writeFieldEnd()
9660
    oprot.writeFieldStop()
9661
    oprot.writeStructEnd()
9662
 
9663
  def validate(self):
9664
    return
9665
 
9666
 
9667
  def __repr__(self):
9668
    L = ['%s=%r' % (key, value)
9669
      for key, value in self.__dict__.iteritems()]
9670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9671
 
9672
  def __eq__(self, other):
9673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9674
 
9675
  def __ne__(self, other):
9676
    return not (self == other)
9677
 
9678
class validateRiskyStatus_args:
9679
  """
9680
  Attributes:
9681
   - itemId
9682
  """
9683
 
9684
  thrift_spec = (
9685
    None, # 0
9686
    (1, TType.I64, 'itemId', None, None, ), # 1
9687
  )
9688
 
9689
  def __init__(self, itemId=None,):
9690
    self.itemId = itemId
9691
 
9692
  def read(self, iprot):
9693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9695
      return
9696
    iprot.readStructBegin()
9697
    while True:
9698
      (fname, ftype, fid) = iprot.readFieldBegin()
9699
      if ftype == TType.STOP:
9700
        break
9701
      if fid == 1:
9702
        if ftype == TType.I64:
9703
          self.itemId = iprot.readI64();
9704
        else:
9705
          iprot.skip(ftype)
9706
      else:
9707
        iprot.skip(ftype)
9708
      iprot.readFieldEnd()
9709
    iprot.readStructEnd()
9710
 
9711
  def write(self, oprot):
9712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9714
      return
9715
    oprot.writeStructBegin('validateRiskyStatus_args')
9716
    if self.itemId is not None:
9717
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9718
      oprot.writeI64(self.itemId)
9719
      oprot.writeFieldEnd()
9720
    oprot.writeFieldStop()
9721
    oprot.writeStructEnd()
9722
 
9723
  def validate(self):
9724
    return
9725
 
9726
 
9727
  def __repr__(self):
9728
    L = ['%s=%r' % (key, value)
9729
      for key, value in self.__dict__.iteritems()]
9730
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9731
 
9732
  def __eq__(self, other):
9733
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9734
 
9735
  def __ne__(self, other):
9736
    return not (self == other)
9737
 
9738
class validateRiskyStatus_result:
9739
 
9740
  thrift_spec = (
9741
  )
9742
 
9743
  def read(self, iprot):
9744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9746
      return
9747
    iprot.readStructBegin()
9748
    while True:
9749
      (fname, ftype, fid) = iprot.readFieldBegin()
9750
      if ftype == TType.STOP:
9751
        break
9752
      else:
9753
        iprot.skip(ftype)
9754
      iprot.readFieldEnd()
9755
    iprot.readStructEnd()
9756
 
9757
  def write(self, oprot):
9758
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9759
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9760
      return
9761
    oprot.writeStructBegin('validateRiskyStatus_result')
9762
    oprot.writeFieldStop()
9763
    oprot.writeStructEnd()
9764
 
9765
  def validate(self):
9766
    return
9767
 
9768
 
9769
  def __repr__(self):
9770
    L = ['%s=%r' % (key, value)
9771
      for key, value in self.__dict__.iteritems()]
9772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9773
 
9774
  def __eq__(self, other):
9775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9776
 
9777
  def __ne__(self, other):
9778
    return not (self == other)
9779
 
9780
class changeItemRiskyFlag_args:
9781
  """
9782
  Attributes:
9783
   - itemId
9784
   - risky
9785
  """
9786
 
9787
  thrift_spec = (
9788
    None, # 0
9789
    (1, TType.I64, 'itemId', None, None, ), # 1
9790
    (2, TType.BOOL, 'risky', None, None, ), # 2
9791
  )
9792
 
9793
  def __init__(self, itemId=None, risky=None,):
9794
    self.itemId = itemId
9795
    self.risky = risky
9796
 
9797
  def read(self, iprot):
9798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9800
      return
9801
    iprot.readStructBegin()
9802
    while True:
9803
      (fname, ftype, fid) = iprot.readFieldBegin()
9804
      if ftype == TType.STOP:
9805
        break
9806
      if fid == 1:
9807
        if ftype == TType.I64:
9808
          self.itemId = iprot.readI64();
9809
        else:
9810
          iprot.skip(ftype)
9811
      elif fid == 2:
9812
        if ftype == TType.BOOL:
9813
          self.risky = iprot.readBool();
9814
        else:
9815
          iprot.skip(ftype)
9816
      else:
9817
        iprot.skip(ftype)
9818
      iprot.readFieldEnd()
9819
    iprot.readStructEnd()
9820
 
9821
  def write(self, oprot):
9822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9824
      return
9825
    oprot.writeStructBegin('changeItemRiskyFlag_args')
9826
    if self.itemId is not None:
9827
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9828
      oprot.writeI64(self.itemId)
9829
      oprot.writeFieldEnd()
9830
    if self.risky is not None:
9831
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
9832
      oprot.writeBool(self.risky)
9833
      oprot.writeFieldEnd()
9834
    oprot.writeFieldStop()
9835
    oprot.writeStructEnd()
9836
 
9837
  def validate(self):
9838
    return
9839
 
9840
 
9841
  def __repr__(self):
9842
    L = ['%s=%r' % (key, value)
9843
      for key, value in self.__dict__.iteritems()]
9844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9845
 
9846
  def __eq__(self, other):
9847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9848
 
9849
  def __ne__(self, other):
9850
    return not (self == other)
9851
 
9852
class changeItemRiskyFlag_result:
9853
 
9854
  thrift_spec = (
9855
  )
9856
 
9857
  def read(self, iprot):
9858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9860
      return
9861
    iprot.readStructBegin()
9862
    while True:
9863
      (fname, ftype, fid) = iprot.readFieldBegin()
9864
      if ftype == TType.STOP:
9865
        break
9866
      else:
9867
        iprot.skip(ftype)
9868
      iprot.readFieldEnd()
9869
    iprot.readStructEnd()
9870
 
9871
  def write(self, oprot):
9872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9874
      return
9875
    oprot.writeStructBegin('changeItemRiskyFlag_result')
9876
    oprot.writeFieldStop()
9877
    oprot.writeStructEnd()
9878
 
9879
  def validate(self):
9880
    return
9881
 
9882
 
9883
  def __repr__(self):
9884
    L = ['%s=%r' % (key, value)
9885
      for key, value in self.__dict__.iteritems()]
9886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9887
 
9888
  def __eq__(self, other):
9889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9890
 
9891
  def __ne__(self, other):
9892
    return not (self == other)
9893
 
9894
class getItemsByRiskyFlag_args:
9895
 
9896
  thrift_spec = (
9897
  )
9898
 
9899
  def read(self, iprot):
9900
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9901
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9902
      return
9903
    iprot.readStructBegin()
9904
    while True:
9905
      (fname, ftype, fid) = iprot.readFieldBegin()
9906
      if ftype == TType.STOP:
9907
        break
9908
      else:
9909
        iprot.skip(ftype)
9910
      iprot.readFieldEnd()
9911
    iprot.readStructEnd()
9912
 
9913
  def write(self, oprot):
9914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9916
      return
9917
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
9918
    oprot.writeFieldStop()
9919
    oprot.writeStructEnd()
9920
 
9921
  def validate(self):
9922
    return
9923
 
9924
 
9925
  def __repr__(self):
9926
    L = ['%s=%r' % (key, value)
9927
      for key, value in self.__dict__.iteritems()]
9928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9929
 
9930
  def __eq__(self, other):
9931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9932
 
9933
  def __ne__(self, other):
9934
    return not (self == other)
9935
 
9936
class getItemsByRiskyFlag_result:
9937
  """
9938
  Attributes:
9939
   - success
9940
  """
9941
 
9942
  thrift_spec = (
9943
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9944
  )
9945
 
9946
  def __init__(self, success=None,):
9947
    self.success = success
9948
 
9949
  def read(self, iprot):
9950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9952
      return
9953
    iprot.readStructBegin()
9954
    while True:
9955
      (fname, ftype, fid) = iprot.readFieldBegin()
9956
      if ftype == TType.STOP:
9957
        break
9958
      if fid == 0:
9959
        if ftype == TType.LIST:
9960
          self.success = []
6845 amit.gupta 9961
          (_etype168, _size165) = iprot.readListBegin()
9962
          for _i169 in xrange(_size165):
9963
            _elem170 = Item()
9964
            _elem170.read(iprot)
9965
            self.success.append(_elem170)
5944 mandeep.dh 9966
          iprot.readListEnd()
9967
        else:
9968
          iprot.skip(ftype)
9969
      else:
9970
        iprot.skip(ftype)
9971
      iprot.readFieldEnd()
9972
    iprot.readStructEnd()
9973
 
9974
  def write(self, oprot):
9975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9977
      return
9978
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
9979
    if self.success is not None:
9980
      oprot.writeFieldBegin('success', TType.LIST, 0)
9981
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6845 amit.gupta 9982
      for iter171 in self.success:
9983
        iter171.write(oprot)
5944 mandeep.dh 9984
      oprot.writeListEnd()
9985
      oprot.writeFieldEnd()
9986
    oprot.writeFieldStop()
9987
    oprot.writeStructEnd()
9988
 
9989
  def validate(self):
9990
    return
9991
 
9992
 
9993
  def __repr__(self):
9994
    L = ['%s=%r' % (key, value)
9995
      for key, value in self.__dict__.iteritems()]
9996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9997
 
9998
  def __eq__(self, other):
9999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10000
 
10001
  def __ne__(self, other):
10002
    return not (self == other)
10003
 
10004
class getItemsForMasterSheet_args:
10005
  """
10006
  Attributes:
10007
   - category
10008
   - brand
10009
  """
10010
 
10011
  thrift_spec = (
10012
    None, # 0
10013
    (1, TType.STRING, 'category', None, None, ), # 1
10014
    (2, TType.STRING, 'brand', None, None, ), # 2
10015
  )
10016
 
10017
  def __init__(self, category=None, brand=None,):
10018
    self.category = category
10019
    self.brand = brand
10020
 
10021
  def read(self, iprot):
10022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10024
      return
10025
    iprot.readStructBegin()
10026
    while True:
10027
      (fname, ftype, fid) = iprot.readFieldBegin()
10028
      if ftype == TType.STOP:
10029
        break
10030
      if fid == 1:
10031
        if ftype == TType.STRING:
10032
          self.category = iprot.readString();
10033
        else:
10034
          iprot.skip(ftype)
10035
      elif fid == 2:
10036
        if ftype == TType.STRING:
10037
          self.brand = iprot.readString();
10038
        else:
10039
          iprot.skip(ftype)
10040
      else:
10041
        iprot.skip(ftype)
10042
      iprot.readFieldEnd()
10043
    iprot.readStructEnd()
10044
 
10045
  def write(self, oprot):
10046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10048
      return
10049
    oprot.writeStructBegin('getItemsForMasterSheet_args')
10050
    if self.category is not None:
10051
      oprot.writeFieldBegin('category', TType.STRING, 1)
10052
      oprot.writeString(self.category)
10053
      oprot.writeFieldEnd()
10054
    if self.brand is not None:
10055
      oprot.writeFieldBegin('brand', TType.STRING, 2)
10056
      oprot.writeString(self.brand)
10057
      oprot.writeFieldEnd()
10058
    oprot.writeFieldStop()
10059
    oprot.writeStructEnd()
10060
 
10061
  def validate(self):
10062
    return
10063
 
10064
 
10065
  def __repr__(self):
10066
    L = ['%s=%r' % (key, value)
10067
      for key, value in self.__dict__.iteritems()]
10068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10069
 
10070
  def __eq__(self, other):
10071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10072
 
10073
  def __ne__(self, other):
10074
    return not (self == other)
10075
 
10076
class getItemsForMasterSheet_result:
10077
  """
10078
  Attributes:
10079
   - success
10080
  """
10081
 
10082
  thrift_spec = (
10083
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10084
  )
10085
 
10086
  def __init__(self, success=None,):
10087
    self.success = success
10088
 
10089
  def read(self, iprot):
10090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10092
      return
10093
    iprot.readStructBegin()
10094
    while True:
10095
      (fname, ftype, fid) = iprot.readFieldBegin()
10096
      if ftype == TType.STOP:
10097
        break
10098
      if fid == 0:
10099
        if ftype == TType.LIST:
10100
          self.success = []
6845 amit.gupta 10101
          (_etype175, _size172) = iprot.readListBegin()
10102
          for _i176 in xrange(_size172):
10103
            _elem177 = Item()
10104
            _elem177.read(iprot)
10105
            self.success.append(_elem177)
5944 mandeep.dh 10106
          iprot.readListEnd()
10107
        else:
10108
          iprot.skip(ftype)
10109
      else:
10110
        iprot.skip(ftype)
10111
      iprot.readFieldEnd()
10112
    iprot.readStructEnd()
10113
 
10114
  def write(self, oprot):
10115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10117
      return
10118
    oprot.writeStructBegin('getItemsForMasterSheet_result')
10119
    if self.success is not None:
10120
      oprot.writeFieldBegin('success', TType.LIST, 0)
10121
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6845 amit.gupta 10122
      for iter178 in self.success:
10123
        iter178.write(oprot)
5944 mandeep.dh 10124
      oprot.writeListEnd()
10125
      oprot.writeFieldEnd()
10126
    oprot.writeFieldStop()
10127
    oprot.writeStructEnd()
10128
 
10129
  def validate(self):
10130
    return
10131
 
10132
 
10133
  def __repr__(self):
10134
    L = ['%s=%r' % (key, value)
10135
      for key, value in self.__dict__.iteritems()]
10136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10137
 
10138
  def __eq__(self, other):
10139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10140
 
10141
  def __ne__(self, other):
10142
    return not (self == other)
10143
 
10144
class getSimilarItemsCatalogIds_args:
10145
  """
10146
  Attributes:
10147
   - beginIndex
10148
   - totalItems
10149
   - itemId
10150
  """
10151
 
10152
  thrift_spec = (
10153
    None, # 0
10154
    (1, TType.I64, 'beginIndex', None, None, ), # 1
10155
    (2, TType.I64, 'totalItems', None, None, ), # 2
10156
    (3, TType.I64, 'itemId', None, None, ), # 3
10157
  )
10158
 
10159
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
10160
    self.beginIndex = beginIndex
10161
    self.totalItems = totalItems
10162
    self.itemId = itemId
10163
 
10164
  def read(self, iprot):
10165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10167
      return
10168
    iprot.readStructBegin()
10169
    while True:
10170
      (fname, ftype, fid) = iprot.readFieldBegin()
10171
      if ftype == TType.STOP:
10172
        break
10173
      if fid == 1:
10174
        if ftype == TType.I64:
10175
          self.beginIndex = iprot.readI64();
10176
        else:
10177
          iprot.skip(ftype)
10178
      elif fid == 2:
10179
        if ftype == TType.I64:
10180
          self.totalItems = iprot.readI64();
10181
        else:
10182
          iprot.skip(ftype)
10183
      elif fid == 3:
10184
        if ftype == TType.I64:
10185
          self.itemId = iprot.readI64();
10186
        else:
10187
          iprot.skip(ftype)
10188
      else:
10189
        iprot.skip(ftype)
10190
      iprot.readFieldEnd()
10191
    iprot.readStructEnd()
10192
 
10193
  def write(self, oprot):
10194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10196
      return
10197
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
10198
    if self.beginIndex is not None:
10199
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
10200
      oprot.writeI64(self.beginIndex)
10201
      oprot.writeFieldEnd()
10202
    if self.totalItems is not None:
10203
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
10204
      oprot.writeI64(self.totalItems)
10205
      oprot.writeFieldEnd()
10206
    if self.itemId is not None:
10207
      oprot.writeFieldBegin('itemId', TType.I64, 3)
10208
      oprot.writeI64(self.itemId)
10209
      oprot.writeFieldEnd()
10210
    oprot.writeFieldStop()
10211
    oprot.writeStructEnd()
10212
 
10213
  def validate(self):
10214
    return
10215
 
10216
 
10217
  def __repr__(self):
10218
    L = ['%s=%r' % (key, value)
10219
      for key, value in self.__dict__.iteritems()]
10220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10221
 
10222
  def __eq__(self, other):
10223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10224
 
10225
  def __ne__(self, other):
10226
    return not (self == other)
10227
 
10228
class getSimilarItemsCatalogIds_result:
10229
  """
10230
  Attributes:
10231
   - success
10232
  """
10233
 
10234
  thrift_spec = (
10235
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10236
  )
10237
 
10238
  def __init__(self, success=None,):
10239
    self.success = success
10240
 
10241
  def read(self, iprot):
10242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10244
      return
10245
    iprot.readStructBegin()
10246
    while True:
10247
      (fname, ftype, fid) = iprot.readFieldBegin()
10248
      if ftype == TType.STOP:
10249
        break
10250
      if fid == 0:
10251
        if ftype == TType.LIST:
10252
          self.success = []
6845 amit.gupta 10253
          (_etype182, _size179) = iprot.readListBegin()
10254
          for _i183 in xrange(_size179):
10255
            _elem184 = iprot.readI64();
10256
            self.success.append(_elem184)
5944 mandeep.dh 10257
          iprot.readListEnd()
10258
        else:
10259
          iprot.skip(ftype)
10260
      else:
10261
        iprot.skip(ftype)
10262
      iprot.readFieldEnd()
10263
    iprot.readStructEnd()
10264
 
10265
  def write(self, oprot):
10266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10268
      return
10269
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
10270
    if self.success is not None:
10271
      oprot.writeFieldBegin('success', TType.LIST, 0)
10272
      oprot.writeListBegin(TType.I64, len(self.success))
6845 amit.gupta 10273
      for iter185 in self.success:
10274
        oprot.writeI64(iter185)
5944 mandeep.dh 10275
      oprot.writeListEnd()
10276
      oprot.writeFieldEnd()
10277
    oprot.writeFieldStop()
10278
    oprot.writeStructEnd()
10279
 
10280
  def validate(self):
10281
    return
10282
 
10283
 
10284
  def __repr__(self):
10285
    L = ['%s=%r' % (key, value)
10286
      for key, value in self.__dict__.iteritems()]
10287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10288
 
10289
  def __eq__(self, other):
10290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10291
 
10292
  def __ne__(self, other):
10293
    return not (self == other)
10294
 
10295
class addProductNotification_args:
10296
  """
10297
  Attributes:
10298
   - itemId
10299
   - email
10300
  """
10301
 
10302
  thrift_spec = None
10303
  def __init__(self, itemId=None, email=None,):
10304
    self.itemId = itemId
10305
    self.email = email
10306
 
10307
  def read(self, iprot):
10308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10310
      return
10311
    iprot.readStructBegin()
10312
    while True:
10313
      (fname, ftype, fid) = iprot.readFieldBegin()
10314
      if ftype == TType.STOP:
10315
        break
10316
      if fid == -1:
10317
        if ftype == TType.I64:
10318
          self.itemId = iprot.readI64();
10319
        else:
10320
          iprot.skip(ftype)
10321
      elif fid == -2:
10322
        if ftype == TType.STRING:
10323
          self.email = iprot.readString();
10324
        else:
10325
          iprot.skip(ftype)
10326
      else:
10327
        iprot.skip(ftype)
10328
      iprot.readFieldEnd()
10329
    iprot.readStructEnd()
10330
 
10331
  def write(self, oprot):
10332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10334
      return
10335
    oprot.writeStructBegin('addProductNotification_args')
10336
    if self.email is not None:
10337
      oprot.writeFieldBegin('email', TType.STRING, -2)
10338
      oprot.writeString(self.email)
10339
      oprot.writeFieldEnd()
10340
    if self.itemId is not None:
10341
      oprot.writeFieldBegin('itemId', TType.I64, -1)
10342
      oprot.writeI64(self.itemId)
10343
      oprot.writeFieldEnd()
10344
    oprot.writeFieldStop()
10345
    oprot.writeStructEnd()
10346
 
10347
  def validate(self):
10348
    return
10349
 
10350
 
10351
  def __repr__(self):
10352
    L = ['%s=%r' % (key, value)
10353
      for key, value in self.__dict__.iteritems()]
10354
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10355
 
10356
  def __eq__(self, other):
10357
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10358
 
10359
  def __ne__(self, other):
10360
    return not (self == other)
10361
 
10362
class addProductNotification_result:
10363
  """
10364
  Attributes:
10365
   - success
10366
  """
10367
 
10368
  thrift_spec = (
10369
    (0, TType.BOOL, 'success', None, None, ), # 0
10370
  )
10371
 
10372
  def __init__(self, success=None,):
10373
    self.success = success
10374
 
10375
  def read(self, iprot):
10376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10378
      return
10379
    iprot.readStructBegin()
10380
    while True:
10381
      (fname, ftype, fid) = iprot.readFieldBegin()
10382
      if ftype == TType.STOP:
10383
        break
10384
      if fid == 0:
10385
        if ftype == TType.BOOL:
10386
          self.success = iprot.readBool();
10387
        else:
10388
          iprot.skip(ftype)
10389
      else:
10390
        iprot.skip(ftype)
10391
      iprot.readFieldEnd()
10392
    iprot.readStructEnd()
10393
 
10394
  def write(self, oprot):
10395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10397
      return
10398
    oprot.writeStructBegin('addProductNotification_result')
10399
    if self.success is not None:
10400
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10401
      oprot.writeBool(self.success)
10402
      oprot.writeFieldEnd()
10403
    oprot.writeFieldStop()
10404
    oprot.writeStructEnd()
10405
 
10406
  def validate(self):
10407
    return
10408
 
10409
 
10410
  def __repr__(self):
10411
    L = ['%s=%r' % (key, value)
10412
      for key, value in self.__dict__.iteritems()]
10413
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10414
 
10415
  def __eq__(self, other):
10416
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10417
 
10418
  def __ne__(self, other):
10419
    return not (self == other)
10420
 
10421
class sendProductNotifications_args:
10422
 
10423
  thrift_spec = (
10424
  )
10425
 
10426
  def read(self, iprot):
10427
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10428
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10429
      return
10430
    iprot.readStructBegin()
10431
    while True:
10432
      (fname, ftype, fid) = iprot.readFieldBegin()
10433
      if ftype == TType.STOP:
10434
        break
10435
      else:
10436
        iprot.skip(ftype)
10437
      iprot.readFieldEnd()
10438
    iprot.readStructEnd()
10439
 
10440
  def write(self, oprot):
10441
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10442
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10443
      return
10444
    oprot.writeStructBegin('sendProductNotifications_args')
10445
    oprot.writeFieldStop()
10446
    oprot.writeStructEnd()
10447
 
10448
  def validate(self):
10449
    return
10450
 
10451
 
10452
  def __repr__(self):
10453
    L = ['%s=%r' % (key, value)
10454
      for key, value in self.__dict__.iteritems()]
10455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10456
 
10457
  def __eq__(self, other):
10458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10459
 
10460
  def __ne__(self, other):
10461
    return not (self == other)
10462
 
10463
class sendProductNotifications_result:
10464
  """
10465
  Attributes:
10466
   - success
10467
  """
10468
 
10469
  thrift_spec = (
10470
    (0, TType.BOOL, 'success', None, None, ), # 0
10471
  )
10472
 
10473
  def __init__(self, success=None,):
10474
    self.success = success
10475
 
10476
  def read(self, iprot):
10477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10479
      return
10480
    iprot.readStructBegin()
10481
    while True:
10482
      (fname, ftype, fid) = iprot.readFieldBegin()
10483
      if ftype == TType.STOP:
10484
        break
10485
      if fid == 0:
10486
        if ftype == TType.BOOL:
10487
          self.success = iprot.readBool();
10488
        else:
10489
          iprot.skip(ftype)
10490
      else:
10491
        iprot.skip(ftype)
10492
      iprot.readFieldEnd()
10493
    iprot.readStructEnd()
10494
 
10495
  def write(self, oprot):
10496
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10497
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10498
      return
10499
    oprot.writeStructBegin('sendProductNotifications_result')
10500
    if self.success is not None:
10501
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10502
      oprot.writeBool(self.success)
10503
      oprot.writeFieldEnd()
10504
    oprot.writeFieldStop()
10505
    oprot.writeStructEnd()
10506
 
10507
  def validate(self):
10508
    return
10509
 
10510
 
10511
  def __repr__(self):
10512
    L = ['%s=%r' % (key, value)
10513
      for key, value in self.__dict__.iteritems()]
10514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10515
 
10516
  def __eq__(self, other):
10517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10518
 
10519
  def __ne__(self, other):
10520
    return not (self == other)
10521
 
10522
class getAllBrandsByCategory_args:
10523
  """
10524
  Attributes:
10525
   - categoryId
10526
  """
10527
 
10528
  thrift_spec = (
10529
    None, # 0
10530
    (1, TType.I64, 'categoryId', None, None, ), # 1
10531
  )
10532
 
10533
  def __init__(self, categoryId=None,):
10534
    self.categoryId = categoryId
10535
 
10536
  def read(self, iprot):
10537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10539
      return
10540
    iprot.readStructBegin()
10541
    while True:
10542
      (fname, ftype, fid) = iprot.readFieldBegin()
10543
      if ftype == TType.STOP:
10544
        break
10545
      if fid == 1:
10546
        if ftype == TType.I64:
10547
          self.categoryId = iprot.readI64();
10548
        else:
10549
          iprot.skip(ftype)
10550
      else:
10551
        iprot.skip(ftype)
10552
      iprot.readFieldEnd()
10553
    iprot.readStructEnd()
10554
 
10555
  def write(self, oprot):
10556
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10557
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10558
      return
10559
    oprot.writeStructBegin('getAllBrandsByCategory_args')
10560
    if self.categoryId is not None:
10561
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
10562
      oprot.writeI64(self.categoryId)
10563
      oprot.writeFieldEnd()
10564
    oprot.writeFieldStop()
10565
    oprot.writeStructEnd()
10566
 
10567
  def validate(self):
10568
    return
10569
 
10570
 
10571
  def __repr__(self):
10572
    L = ['%s=%r' % (key, value)
10573
      for key, value in self.__dict__.iteritems()]
10574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10575
 
10576
  def __eq__(self, other):
10577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10578
 
10579
  def __ne__(self, other):
10580
    return not (self == other)
10581
 
10582
class getAllBrandsByCategory_result:
10583
  """
10584
  Attributes:
10585
   - success
10586
  """
10587
 
10588
  thrift_spec = (
10589
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10590
  )
10591
 
10592
  def __init__(self, success=None,):
10593
    self.success = success
10594
 
10595
  def read(self, iprot):
10596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10598
      return
10599
    iprot.readStructBegin()
10600
    while True:
10601
      (fname, ftype, fid) = iprot.readFieldBegin()
10602
      if ftype == TType.STOP:
10603
        break
10604
      if fid == 0:
10605
        if ftype == TType.LIST:
10606
          self.success = []
6845 amit.gupta 10607
          (_etype189, _size186) = iprot.readListBegin()
10608
          for _i190 in xrange(_size186):
10609
            _elem191 = iprot.readString();
10610
            self.success.append(_elem191)
5944 mandeep.dh 10611
          iprot.readListEnd()
10612
        else:
10613
          iprot.skip(ftype)
10614
      else:
10615
        iprot.skip(ftype)
10616
      iprot.readFieldEnd()
10617
    iprot.readStructEnd()
10618
 
10619
  def write(self, oprot):
10620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10622
      return
10623
    oprot.writeStructBegin('getAllBrandsByCategory_result')
10624
    if self.success is not None:
10625
      oprot.writeFieldBegin('success', TType.LIST, 0)
10626
      oprot.writeListBegin(TType.STRING, len(self.success))
6845 amit.gupta 10627
      for iter192 in self.success:
10628
        oprot.writeString(iter192)
5944 mandeep.dh 10629
      oprot.writeListEnd()
10630
      oprot.writeFieldEnd()
10631
    oprot.writeFieldStop()
10632
    oprot.writeStructEnd()
10633
 
10634
  def validate(self):
10635
    return
10636
 
10637
 
10638
  def __repr__(self):
10639
    L = ['%s=%r' % (key, value)
10640
      for key, value in self.__dict__.iteritems()]
10641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10642
 
10643
  def __eq__(self, other):
10644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10645
 
10646
  def __ne__(self, other):
10647
    return not (self == other)
10648
 
10649
class getAllBrands_args:
10650
 
10651
  thrift_spec = (
10652
  )
10653
 
10654
  def read(self, iprot):
10655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10657
      return
10658
    iprot.readStructBegin()
10659
    while True:
10660
      (fname, ftype, fid) = iprot.readFieldBegin()
10661
      if ftype == TType.STOP:
10662
        break
10663
      else:
10664
        iprot.skip(ftype)
10665
      iprot.readFieldEnd()
10666
    iprot.readStructEnd()
10667
 
10668
  def write(self, oprot):
10669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10671
      return
10672
    oprot.writeStructBegin('getAllBrands_args')
10673
    oprot.writeFieldStop()
10674
    oprot.writeStructEnd()
10675
 
10676
  def validate(self):
10677
    return
10678
 
10679
 
10680
  def __repr__(self):
10681
    L = ['%s=%r' % (key, value)
10682
      for key, value in self.__dict__.iteritems()]
10683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10684
 
10685
  def __eq__(self, other):
10686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10687
 
10688
  def __ne__(self, other):
10689
    return not (self == other)
10690
 
10691
class getAllBrands_result:
10692
  """
10693
  Attributes:
10694
   - success
10695
  """
10696
 
10697
  thrift_spec = (
10698
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10699
  )
10700
 
10701
  def __init__(self, success=None,):
10702
    self.success = success
10703
 
10704
  def read(self, iprot):
10705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10707
      return
10708
    iprot.readStructBegin()
10709
    while True:
10710
      (fname, ftype, fid) = iprot.readFieldBegin()
10711
      if ftype == TType.STOP:
10712
        break
10713
      if fid == 0:
10714
        if ftype == TType.LIST:
10715
          self.success = []
6845 amit.gupta 10716
          (_etype196, _size193) = iprot.readListBegin()
10717
          for _i197 in xrange(_size193):
10718
            _elem198 = iprot.readString();
10719
            self.success.append(_elem198)
5944 mandeep.dh 10720
          iprot.readListEnd()
10721
        else:
10722
          iprot.skip(ftype)
10723
      else:
10724
        iprot.skip(ftype)
10725
      iprot.readFieldEnd()
10726
    iprot.readStructEnd()
10727
 
10728
  def write(self, oprot):
10729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10731
      return
10732
    oprot.writeStructBegin('getAllBrands_result')
10733
    if self.success is not None:
10734
      oprot.writeFieldBegin('success', TType.LIST, 0)
10735
      oprot.writeListBegin(TType.STRING, len(self.success))
6845 amit.gupta 10736
      for iter199 in self.success:
10737
        oprot.writeString(iter199)
5944 mandeep.dh 10738
      oprot.writeListEnd()
10739
      oprot.writeFieldEnd()
10740
    oprot.writeFieldStop()
10741
    oprot.writeStructEnd()
10742
 
10743
  def validate(self):
10744
    return
10745
 
10746
 
10747
  def __repr__(self):
10748
    L = ['%s=%r' % (key, value)
10749
      for key, value in self.__dict__.iteritems()]
10750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10751
 
10752
  def __eq__(self, other):
10753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10754
 
10755
  def __ne__(self, other):
10756
    return not (self == other)
10757
 
10758
class getAllSources_args:
10759
 
10760
  thrift_spec = (
10761
  )
10762
 
10763
  def read(self, iprot):
10764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10766
      return
10767
    iprot.readStructBegin()
10768
    while True:
10769
      (fname, ftype, fid) = iprot.readFieldBegin()
10770
      if ftype == TType.STOP:
10771
        break
10772
      else:
10773
        iprot.skip(ftype)
10774
      iprot.readFieldEnd()
10775
    iprot.readStructEnd()
10776
 
10777
  def write(self, oprot):
10778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10780
      return
10781
    oprot.writeStructBegin('getAllSources_args')
10782
    oprot.writeFieldStop()
10783
    oprot.writeStructEnd()
10784
 
10785
  def validate(self):
10786
    return
10787
 
10788
 
10789
  def __repr__(self):
10790
    L = ['%s=%r' % (key, value)
10791
      for key, value in self.__dict__.iteritems()]
10792
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10793
 
10794
  def __eq__(self, other):
10795
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10796
 
10797
  def __ne__(self, other):
10798
    return not (self == other)
10799
 
10800
class getAllSources_result:
10801
  """
10802
  Attributes:
10803
   - success
10804
  """
10805
 
10806
  thrift_spec = (
10807
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
10808
  )
10809
 
10810
  def __init__(self, success=None,):
10811
    self.success = success
10812
 
10813
  def read(self, iprot):
10814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10816
      return
10817
    iprot.readStructBegin()
10818
    while True:
10819
      (fname, ftype, fid) = iprot.readFieldBegin()
10820
      if ftype == TType.STOP:
10821
        break
10822
      if fid == 0:
10823
        if ftype == TType.LIST:
10824
          self.success = []
6845 amit.gupta 10825
          (_etype203, _size200) = iprot.readListBegin()
10826
          for _i204 in xrange(_size200):
10827
            _elem205 = Source()
10828
            _elem205.read(iprot)
10829
            self.success.append(_elem205)
5944 mandeep.dh 10830
          iprot.readListEnd()
10831
        else:
10832
          iprot.skip(ftype)
10833
      else:
10834
        iprot.skip(ftype)
10835
      iprot.readFieldEnd()
10836
    iprot.readStructEnd()
10837
 
10838
  def write(self, oprot):
10839
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10840
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10841
      return
10842
    oprot.writeStructBegin('getAllSources_result')
10843
    if self.success is not None:
10844
      oprot.writeFieldBegin('success', TType.LIST, 0)
10845
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6845 amit.gupta 10846
      for iter206 in self.success:
10847
        iter206.write(oprot)
5944 mandeep.dh 10848
      oprot.writeListEnd()
10849
      oprot.writeFieldEnd()
10850
    oprot.writeFieldStop()
10851
    oprot.writeStructEnd()
10852
 
10853
  def validate(self):
10854
    return
10855
 
10856
 
10857
  def __repr__(self):
10858
    L = ['%s=%r' % (key, value)
10859
      for key, value in self.__dict__.iteritems()]
10860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10861
 
10862
  def __eq__(self, other):
10863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10864
 
10865
  def __ne__(self, other):
10866
    return not (self == other)
10867
 
10868
class getItemPricingBySource_args:
10869
  """
10870
  Attributes:
10871
   - itemId
10872
   - sourceId
10873
  """
10874
 
10875
  thrift_spec = (
10876
    None, # 0
10877
    (1, TType.I64, 'itemId', None, None, ), # 1
10878
    (2, TType.I64, 'sourceId', None, None, ), # 2
10879
  )
10880
 
10881
  def __init__(self, itemId=None, sourceId=None,):
10882
    self.itemId = itemId
10883
    self.sourceId = sourceId
10884
 
10885
  def read(self, iprot):
10886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10888
      return
10889
    iprot.readStructBegin()
10890
    while True:
10891
      (fname, ftype, fid) = iprot.readFieldBegin()
10892
      if ftype == TType.STOP:
10893
        break
10894
      if fid == 1:
10895
        if ftype == TType.I64:
10896
          self.itemId = iprot.readI64();
10897
        else:
10898
          iprot.skip(ftype)
10899
      elif fid == 2:
10900
        if ftype == TType.I64:
10901
          self.sourceId = iprot.readI64();
10902
        else:
10903
          iprot.skip(ftype)
10904
      else:
10905
        iprot.skip(ftype)
10906
      iprot.readFieldEnd()
10907
    iprot.readStructEnd()
10908
 
10909
  def write(self, oprot):
10910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10912
      return
10913
    oprot.writeStructBegin('getItemPricingBySource_args')
10914
    if self.itemId is not None:
10915
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10916
      oprot.writeI64(self.itemId)
10917
      oprot.writeFieldEnd()
10918
    if self.sourceId is not None:
10919
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
10920
      oprot.writeI64(self.sourceId)
10921
      oprot.writeFieldEnd()
10922
    oprot.writeFieldStop()
10923
    oprot.writeStructEnd()
10924
 
10925
  def validate(self):
10926
    return
10927
 
10928
 
10929
  def __repr__(self):
10930
    L = ['%s=%r' % (key, value)
10931
      for key, value in self.__dict__.iteritems()]
10932
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10933
 
10934
  def __eq__(self, other):
10935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10936
 
10937
  def __ne__(self, other):
10938
    return not (self == other)
10939
 
10940
class getItemPricingBySource_result:
10941
  """
10942
  Attributes:
10943
   - success
10944
   - cex
10945
  """
10946
 
10947
  thrift_spec = (
10948
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
10949
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10950
  )
10951
 
10952
  def __init__(self, success=None, cex=None,):
10953
    self.success = success
10954
    self.cex = cex
10955
 
10956
  def read(self, iprot):
10957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10959
      return
10960
    iprot.readStructBegin()
10961
    while True:
10962
      (fname, ftype, fid) = iprot.readFieldBegin()
10963
      if ftype == TType.STOP:
10964
        break
10965
      if fid == 0:
10966
        if ftype == TType.STRUCT:
10967
          self.success = SourceItemPricing()
10968
          self.success.read(iprot)
10969
        else:
10970
          iprot.skip(ftype)
10971
      elif fid == 1:
10972
        if ftype == TType.STRUCT:
10973
          self.cex = CatalogServiceException()
10974
          self.cex.read(iprot)
10975
        else:
10976
          iprot.skip(ftype)
10977
      else:
10978
        iprot.skip(ftype)
10979
      iprot.readFieldEnd()
10980
    iprot.readStructEnd()
10981
 
10982
  def write(self, oprot):
10983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10985
      return
10986
    oprot.writeStructBegin('getItemPricingBySource_result')
10987
    if self.success is not None:
10988
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10989
      self.success.write(oprot)
10990
      oprot.writeFieldEnd()
10991
    if self.cex is not None:
10992
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10993
      self.cex.write(oprot)
10994
      oprot.writeFieldEnd()
10995
    oprot.writeFieldStop()
10996
    oprot.writeStructEnd()
10997
 
10998
  def validate(self):
10999
    return
11000
 
11001
 
11002
  def __repr__(self):
11003
    L = ['%s=%r' % (key, value)
11004
      for key, value in self.__dict__.iteritems()]
11005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11006
 
11007
  def __eq__(self, other):
11008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11009
 
11010
  def __ne__(self, other):
11011
    return not (self == other)
11012
 
11013
class addSourceItemPricing_args:
11014
  """
11015
  Attributes:
11016
   - sourceItemPricing
11017
  """
11018
 
11019
  thrift_spec = (
11020
    None, # 0
11021
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
11022
  )
11023
 
11024
  def __init__(self, sourceItemPricing=None,):
11025
    self.sourceItemPricing = sourceItemPricing
11026
 
11027
  def read(self, iprot):
11028
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11029
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11030
      return
11031
    iprot.readStructBegin()
11032
    while True:
11033
      (fname, ftype, fid) = iprot.readFieldBegin()
11034
      if ftype == TType.STOP:
11035
        break
11036
      if fid == 1:
11037
        if ftype == TType.STRUCT:
11038
          self.sourceItemPricing = SourceItemPricing()
11039
          self.sourceItemPricing.read(iprot)
11040
        else:
11041
          iprot.skip(ftype)
11042
      else:
11043
        iprot.skip(ftype)
11044
      iprot.readFieldEnd()
11045
    iprot.readStructEnd()
11046
 
11047
  def write(self, oprot):
11048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11050
      return
11051
    oprot.writeStructBegin('addSourceItemPricing_args')
11052
    if self.sourceItemPricing is not None:
11053
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
11054
      self.sourceItemPricing.write(oprot)
11055
      oprot.writeFieldEnd()
11056
    oprot.writeFieldStop()
11057
    oprot.writeStructEnd()
11058
 
11059
  def validate(self):
11060
    return
11061
 
11062
 
11063
  def __repr__(self):
11064
    L = ['%s=%r' % (key, value)
11065
      for key, value in self.__dict__.iteritems()]
11066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11067
 
11068
  def __eq__(self, other):
11069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11070
 
11071
  def __ne__(self, other):
11072
    return not (self == other)
11073
 
11074
class addSourceItemPricing_result:
11075
  """
11076
  Attributes:
11077
   - cex
11078
  """
11079
 
11080
  thrift_spec = (
11081
    None, # 0
11082
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11083
  )
11084
 
11085
  def __init__(self, cex=None,):
11086
    self.cex = cex
11087
 
11088
  def read(self, iprot):
11089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11091
      return
11092
    iprot.readStructBegin()
11093
    while True:
11094
      (fname, ftype, fid) = iprot.readFieldBegin()
11095
      if ftype == TType.STOP:
11096
        break
11097
      if fid == 1:
11098
        if ftype == TType.STRUCT:
11099
          self.cex = CatalogServiceException()
11100
          self.cex.read(iprot)
11101
        else:
11102
          iprot.skip(ftype)
11103
      else:
11104
        iprot.skip(ftype)
11105
      iprot.readFieldEnd()
11106
    iprot.readStructEnd()
11107
 
11108
  def write(self, oprot):
11109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11111
      return
11112
    oprot.writeStructBegin('addSourceItemPricing_result')
11113
    if self.cex is not None:
11114
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11115
      self.cex.write(oprot)
11116
      oprot.writeFieldEnd()
11117
    oprot.writeFieldStop()
11118
    oprot.writeStructEnd()
11119
 
11120
  def validate(self):
11121
    return
11122
 
11123
 
11124
  def __repr__(self):
11125
    L = ['%s=%r' % (key, value)
11126
      for key, value in self.__dict__.iteritems()]
11127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11128
 
11129
  def __eq__(self, other):
11130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11131
 
11132
  def __ne__(self, other):
11133
    return not (self == other)
11134
 
11135
class getAllSourcePricing_args:
11136
  """
11137
  Attributes:
11138
   - itemId
11139
  """
11140
 
11141
  thrift_spec = (
11142
    None, # 0
11143
    (1, TType.I64, 'itemId', None, None, ), # 1
11144
  )
11145
 
11146
  def __init__(self, itemId=None,):
11147
    self.itemId = itemId
11148
 
11149
  def read(self, iprot):
11150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11152
      return
11153
    iprot.readStructBegin()
11154
    while True:
11155
      (fname, ftype, fid) = iprot.readFieldBegin()
11156
      if ftype == TType.STOP:
11157
        break
11158
      if fid == 1:
11159
        if ftype == TType.I64:
11160
          self.itemId = iprot.readI64();
11161
        else:
11162
          iprot.skip(ftype)
11163
      else:
11164
        iprot.skip(ftype)
11165
      iprot.readFieldEnd()
11166
    iprot.readStructEnd()
11167
 
11168
  def write(self, oprot):
11169
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11170
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11171
      return
11172
    oprot.writeStructBegin('getAllSourcePricing_args')
11173
    if self.itemId is not None:
11174
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11175
      oprot.writeI64(self.itemId)
11176
      oprot.writeFieldEnd()
11177
    oprot.writeFieldStop()
11178
    oprot.writeStructEnd()
11179
 
11180
  def validate(self):
11181
    return
11182
 
11183
 
11184
  def __repr__(self):
11185
    L = ['%s=%r' % (key, value)
11186
      for key, value in self.__dict__.iteritems()]
11187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11188
 
11189
  def __eq__(self, other):
11190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11191
 
11192
  def __ne__(self, other):
11193
    return not (self == other)
11194
 
11195
class getAllSourcePricing_result:
11196
  """
11197
  Attributes:
11198
   - success
11199
   - cex
11200
  """
11201
 
11202
  thrift_spec = (
11203
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
11204
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11205
  )
11206
 
11207
  def __init__(self, success=None, cex=None,):
11208
    self.success = success
11209
    self.cex = cex
11210
 
11211
  def read(self, iprot):
11212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11214
      return
11215
    iprot.readStructBegin()
11216
    while True:
11217
      (fname, ftype, fid) = iprot.readFieldBegin()
11218
      if ftype == TType.STOP:
11219
        break
11220
      if fid == 0:
11221
        if ftype == TType.LIST:
11222
          self.success = []
6845 amit.gupta 11223
          (_etype210, _size207) = iprot.readListBegin()
11224
          for _i211 in xrange(_size207):
11225
            _elem212 = SourceItemPricing()
11226
            _elem212.read(iprot)
11227
            self.success.append(_elem212)
5944 mandeep.dh 11228
          iprot.readListEnd()
11229
        else:
11230
          iprot.skip(ftype)
11231
      elif fid == 1:
11232
        if ftype == TType.STRUCT:
11233
          self.cex = CatalogServiceException()
11234
          self.cex.read(iprot)
11235
        else:
11236
          iprot.skip(ftype)
11237
      else:
11238
        iprot.skip(ftype)
11239
      iprot.readFieldEnd()
11240
    iprot.readStructEnd()
11241
 
11242
  def write(self, oprot):
11243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11245
      return
11246
    oprot.writeStructBegin('getAllSourcePricing_result')
11247
    if self.success is not None:
11248
      oprot.writeFieldBegin('success', TType.LIST, 0)
11249
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6845 amit.gupta 11250
      for iter213 in self.success:
11251
        iter213.write(oprot)
5944 mandeep.dh 11252
      oprot.writeListEnd()
11253
      oprot.writeFieldEnd()
11254
    if self.cex is not None:
11255
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11256
      self.cex.write(oprot)
11257
      oprot.writeFieldEnd()
11258
    oprot.writeFieldStop()
11259
    oprot.writeStructEnd()
11260
 
11261
  def validate(self):
11262
    return
11263
 
11264
 
11265
  def __repr__(self):
11266
    L = ['%s=%r' % (key, value)
11267
      for key, value in self.__dict__.iteritems()]
11268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11269
 
11270
  def __eq__(self, other):
11271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11272
 
11273
  def __ne__(self, other):
11274
    return not (self == other)
11275
 
11276
class getItemForSource_args:
11277
  """
11278
  Attributes:
11279
   - item_id
11280
   - sourceId
11281
  """
11282
 
11283
  thrift_spec = (
11284
    None, # 0
11285
    (1, TType.I64, 'item_id', None, None, ), # 1
11286
    (2, TType.I64, 'sourceId', None, None, ), # 2
11287
  )
11288
 
11289
  def __init__(self, item_id=None, sourceId=None,):
11290
    self.item_id = item_id
11291
    self.sourceId = sourceId
11292
 
11293
  def read(self, iprot):
11294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11296
      return
11297
    iprot.readStructBegin()
11298
    while True:
11299
      (fname, ftype, fid) = iprot.readFieldBegin()
11300
      if ftype == TType.STOP:
11301
        break
11302
      if fid == 1:
11303
        if ftype == TType.I64:
11304
          self.item_id = iprot.readI64();
11305
        else:
11306
          iprot.skip(ftype)
11307
      elif fid == 2:
11308
        if ftype == TType.I64:
11309
          self.sourceId = iprot.readI64();
11310
        else:
11311
          iprot.skip(ftype)
11312
      else:
11313
        iprot.skip(ftype)
11314
      iprot.readFieldEnd()
11315
    iprot.readStructEnd()
11316
 
11317
  def write(self, oprot):
11318
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11319
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11320
      return
11321
    oprot.writeStructBegin('getItemForSource_args')
11322
    if self.item_id is not None:
11323
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11324
      oprot.writeI64(self.item_id)
11325
      oprot.writeFieldEnd()
11326
    if self.sourceId is not None:
11327
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11328
      oprot.writeI64(self.sourceId)
11329
      oprot.writeFieldEnd()
11330
    oprot.writeFieldStop()
11331
    oprot.writeStructEnd()
11332
 
11333
  def validate(self):
11334
    return
11335
 
11336
 
11337
  def __repr__(self):
11338
    L = ['%s=%r' % (key, value)
11339
      for key, value in self.__dict__.iteritems()]
11340
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11341
 
11342
  def __eq__(self, other):
11343
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11344
 
11345
  def __ne__(self, other):
11346
    return not (self == other)
11347
 
11348
class getItemForSource_result:
11349
  """
11350
  Attributes:
11351
   - success
11352
   - cex
11353
  """
11354
 
11355
  thrift_spec = (
11356
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
11357
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11358
  )
11359
 
11360
  def __init__(self, success=None, cex=None,):
11361
    self.success = success
11362
    self.cex = cex
11363
 
11364
  def read(self, iprot):
11365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11367
      return
11368
    iprot.readStructBegin()
11369
    while True:
11370
      (fname, ftype, fid) = iprot.readFieldBegin()
11371
      if ftype == TType.STOP:
11372
        break
11373
      if fid == 0:
11374
        if ftype == TType.STRUCT:
11375
          self.success = Item()
11376
          self.success.read(iprot)
11377
        else:
11378
          iprot.skip(ftype)
11379
      elif fid == 1:
11380
        if ftype == TType.STRUCT:
11381
          self.cex = CatalogServiceException()
11382
          self.cex.read(iprot)
11383
        else:
11384
          iprot.skip(ftype)
11385
      else:
11386
        iprot.skip(ftype)
11387
      iprot.readFieldEnd()
11388
    iprot.readStructEnd()
11389
 
11390
  def write(self, oprot):
11391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11393
      return
11394
    oprot.writeStructBegin('getItemForSource_result')
11395
    if self.success is not None:
11396
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11397
      self.success.write(oprot)
11398
      oprot.writeFieldEnd()
11399
    if self.cex is not None:
11400
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11401
      self.cex.write(oprot)
11402
      oprot.writeFieldEnd()
11403
    oprot.writeFieldStop()
11404
    oprot.writeStructEnd()
11405
 
11406
  def validate(self):
11407
    return
11408
 
11409
 
11410
  def __repr__(self):
11411
    L = ['%s=%r' % (key, value)
11412
      for key, value in self.__dict__.iteritems()]
11413
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11414
 
11415
  def __eq__(self, other):
11416
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11417
 
11418
  def __ne__(self, other):
11419
    return not (self == other)
11420
 
11421
class searchItemsInRange_args:
11422
  """
11423
  Attributes:
11424
   - searchTerms
11425
   - offset
11426
   - limit
11427
  """
11428
 
11429
  thrift_spec = (
11430
    None, # 0
11431
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11432
    (2, TType.I64, 'offset', None, None, ), # 2
11433
    (3, TType.I64, 'limit', None, None, ), # 3
11434
  )
11435
 
11436
  def __init__(self, searchTerms=None, offset=None, limit=None,):
11437
    self.searchTerms = searchTerms
11438
    self.offset = offset
11439
    self.limit = limit
11440
 
11441
  def read(self, iprot):
11442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11444
      return
11445
    iprot.readStructBegin()
11446
    while True:
11447
      (fname, ftype, fid) = iprot.readFieldBegin()
11448
      if ftype == TType.STOP:
11449
        break
11450
      if fid == 1:
11451
        if ftype == TType.LIST:
11452
          self.searchTerms = []
6845 amit.gupta 11453
          (_etype217, _size214) = iprot.readListBegin()
11454
          for _i218 in xrange(_size214):
11455
            _elem219 = iprot.readString();
11456
            self.searchTerms.append(_elem219)
5944 mandeep.dh 11457
          iprot.readListEnd()
11458
        else:
11459
          iprot.skip(ftype)
11460
      elif fid == 2:
11461
        if ftype == TType.I64:
11462
          self.offset = iprot.readI64();
11463
        else:
11464
          iprot.skip(ftype)
11465
      elif fid == 3:
11466
        if ftype == TType.I64:
11467
          self.limit = iprot.readI64();
11468
        else:
11469
          iprot.skip(ftype)
11470
      else:
11471
        iprot.skip(ftype)
11472
      iprot.readFieldEnd()
11473
    iprot.readStructEnd()
11474
 
11475
  def write(self, oprot):
11476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11478
      return
11479
    oprot.writeStructBegin('searchItemsInRange_args')
11480
    if self.searchTerms is not None:
11481
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11482
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6845 amit.gupta 11483
      for iter220 in self.searchTerms:
11484
        oprot.writeString(iter220)
5944 mandeep.dh 11485
      oprot.writeListEnd()
11486
      oprot.writeFieldEnd()
11487
    if self.offset is not None:
11488
      oprot.writeFieldBegin('offset', TType.I64, 2)
11489
      oprot.writeI64(self.offset)
11490
      oprot.writeFieldEnd()
11491
    if self.limit is not None:
11492
      oprot.writeFieldBegin('limit', TType.I64, 3)
11493
      oprot.writeI64(self.limit)
11494
      oprot.writeFieldEnd()
11495
    oprot.writeFieldStop()
11496
    oprot.writeStructEnd()
11497
 
11498
  def validate(self):
11499
    return
11500
 
11501
 
11502
  def __repr__(self):
11503
    L = ['%s=%r' % (key, value)
11504
      for key, value in self.__dict__.iteritems()]
11505
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11506
 
11507
  def __eq__(self, other):
11508
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11509
 
11510
  def __ne__(self, other):
11511
    return not (self == other)
11512
 
11513
class searchItemsInRange_result:
11514
  """
11515
  Attributes:
11516
   - success
11517
  """
11518
 
11519
  thrift_spec = (
11520
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11521
  )
11522
 
11523
  def __init__(self, success=None,):
11524
    self.success = success
11525
 
11526
  def read(self, iprot):
11527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11529
      return
11530
    iprot.readStructBegin()
11531
    while True:
11532
      (fname, ftype, fid) = iprot.readFieldBegin()
11533
      if ftype == TType.STOP:
11534
        break
11535
      if fid == 0:
11536
        if ftype == TType.LIST:
11537
          self.success = []
6845 amit.gupta 11538
          (_etype224, _size221) = iprot.readListBegin()
11539
          for _i225 in xrange(_size221):
11540
            _elem226 = Item()
11541
            _elem226.read(iprot)
11542
            self.success.append(_elem226)
5944 mandeep.dh 11543
          iprot.readListEnd()
11544
        else:
11545
          iprot.skip(ftype)
11546
      else:
11547
        iprot.skip(ftype)
11548
      iprot.readFieldEnd()
11549
    iprot.readStructEnd()
11550
 
11551
  def write(self, oprot):
11552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11554
      return
11555
    oprot.writeStructBegin('searchItemsInRange_result')
11556
    if self.success is not None:
11557
      oprot.writeFieldBegin('success', TType.LIST, 0)
11558
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6845 amit.gupta 11559
      for iter227 in self.success:
11560
        iter227.write(oprot)
5944 mandeep.dh 11561
      oprot.writeListEnd()
11562
      oprot.writeFieldEnd()
11563
    oprot.writeFieldStop()
11564
    oprot.writeStructEnd()
11565
 
11566
  def validate(self):
11567
    return
11568
 
11569
 
11570
  def __repr__(self):
11571
    L = ['%s=%r' % (key, value)
11572
      for key, value in self.__dict__.iteritems()]
11573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11574
 
11575
  def __eq__(self, other):
11576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11577
 
11578
  def __ne__(self, other):
11579
    return not (self == other)
11580
 
11581
class getSearchResultCount_args:
11582
  """
11583
  Attributes:
11584
   - searchTerms
11585
  """
11586
 
11587
  thrift_spec = (
11588
    None, # 0
11589
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11590
  )
11591
 
11592
  def __init__(self, searchTerms=None,):
11593
    self.searchTerms = searchTerms
11594
 
11595
  def read(self, iprot):
11596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11598
      return
11599
    iprot.readStructBegin()
11600
    while True:
11601
      (fname, ftype, fid) = iprot.readFieldBegin()
11602
      if ftype == TType.STOP:
11603
        break
11604
      if fid == 1:
11605
        if ftype == TType.LIST:
11606
          self.searchTerms = []
6845 amit.gupta 11607
          (_etype231, _size228) = iprot.readListBegin()
11608
          for _i232 in xrange(_size228):
11609
            _elem233 = iprot.readString();
11610
            self.searchTerms.append(_elem233)
5944 mandeep.dh 11611
          iprot.readListEnd()
11612
        else:
11613
          iprot.skip(ftype)
11614
      else:
11615
        iprot.skip(ftype)
11616
      iprot.readFieldEnd()
11617
    iprot.readStructEnd()
11618
 
11619
  def write(self, oprot):
11620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11622
      return
11623
    oprot.writeStructBegin('getSearchResultCount_args')
11624
    if self.searchTerms is not None:
11625
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11626
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6845 amit.gupta 11627
      for iter234 in self.searchTerms:
11628
        oprot.writeString(iter234)
5944 mandeep.dh 11629
      oprot.writeListEnd()
11630
      oprot.writeFieldEnd()
11631
    oprot.writeFieldStop()
11632
    oprot.writeStructEnd()
11633
 
11634
  def validate(self):
11635
    return
11636
 
11637
 
11638
  def __repr__(self):
11639
    L = ['%s=%r' % (key, value)
11640
      for key, value in self.__dict__.iteritems()]
11641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11642
 
11643
  def __eq__(self, other):
11644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11645
 
11646
  def __ne__(self, other):
11647
    return not (self == other)
11648
 
11649
class getSearchResultCount_result:
11650
  """
11651
  Attributes:
11652
   - success
11653
  """
11654
 
11655
  thrift_spec = (
11656
    (0, TType.I32, 'success', None, None, ), # 0
11657
  )
11658
 
11659
  def __init__(self, success=None,):
11660
    self.success = success
11661
 
11662
  def read(self, iprot):
11663
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11664
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11665
      return
11666
    iprot.readStructBegin()
11667
    while True:
11668
      (fname, ftype, fid) = iprot.readFieldBegin()
11669
      if ftype == TType.STOP:
11670
        break
11671
      if fid == 0:
11672
        if ftype == TType.I32:
11673
          self.success = iprot.readI32();
11674
        else:
11675
          iprot.skip(ftype)
11676
      else:
11677
        iprot.skip(ftype)
11678
      iprot.readFieldEnd()
11679
    iprot.readStructEnd()
11680
 
11681
  def write(self, oprot):
11682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11684
      return
11685
    oprot.writeStructBegin('getSearchResultCount_result')
11686
    if self.success is not None:
11687
      oprot.writeFieldBegin('success', TType.I32, 0)
11688
      oprot.writeI32(self.success)
11689
      oprot.writeFieldEnd()
11690
    oprot.writeFieldStop()
11691
    oprot.writeStructEnd()
11692
 
11693
  def validate(self):
11694
    return
11695
 
11696
 
11697
  def __repr__(self):
11698
    L = ['%s=%r' % (key, value)
11699
      for key, value in self.__dict__.iteritems()]
11700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11701
 
11702
  def __eq__(self, other):
11703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11704
 
11705
  def __ne__(self, other):
11706
    return not (self == other)
11707
 
11708
class getProductNotifications_args:
11709
  """
11710
  Attributes:
11711
   - startDateTime
11712
  """
11713
 
11714
  thrift_spec = (
11715
    None, # 0
11716
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11717
  )
11718
 
11719
  def __init__(self, startDateTime=None,):
11720
    self.startDateTime = startDateTime
11721
 
11722
  def read(self, iprot):
11723
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11724
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11725
      return
11726
    iprot.readStructBegin()
11727
    while True:
11728
      (fname, ftype, fid) = iprot.readFieldBegin()
11729
      if ftype == TType.STOP:
11730
        break
11731
      if fid == 1:
11732
        if ftype == TType.I64:
11733
          self.startDateTime = iprot.readI64();
11734
        else:
11735
          iprot.skip(ftype)
11736
      else:
11737
        iprot.skip(ftype)
11738
      iprot.readFieldEnd()
11739
    iprot.readStructEnd()
11740
 
11741
  def write(self, oprot):
11742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11744
      return
11745
    oprot.writeStructBegin('getProductNotifications_args')
11746
    if self.startDateTime is not None:
11747
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11748
      oprot.writeI64(self.startDateTime)
11749
      oprot.writeFieldEnd()
11750
    oprot.writeFieldStop()
11751
    oprot.writeStructEnd()
11752
 
11753
  def validate(self):
11754
    return
11755
 
11756
 
11757
  def __repr__(self):
11758
    L = ['%s=%r' % (key, value)
11759
      for key, value in self.__dict__.iteritems()]
11760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11761
 
11762
  def __eq__(self, other):
11763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11764
 
11765
  def __ne__(self, other):
11766
    return not (self == other)
11767
 
11768
class getProductNotifications_result:
11769
  """
11770
  Attributes:
11771
   - success
11772
  """
11773
 
11774
  thrift_spec = (
11775
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
11776
  )
11777
 
11778
  def __init__(self, success=None,):
11779
    self.success = success
11780
 
11781
  def read(self, iprot):
11782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11784
      return
11785
    iprot.readStructBegin()
11786
    while True:
11787
      (fname, ftype, fid) = iprot.readFieldBegin()
11788
      if ftype == TType.STOP:
11789
        break
11790
      if fid == 0:
11791
        if ftype == TType.LIST:
11792
          self.success = []
6845 amit.gupta 11793
          (_etype238, _size235) = iprot.readListBegin()
11794
          for _i239 in xrange(_size235):
11795
            _elem240 = ProductNotificationRequest()
11796
            _elem240.read(iprot)
11797
            self.success.append(_elem240)
5944 mandeep.dh 11798
          iprot.readListEnd()
11799
        else:
11800
          iprot.skip(ftype)
11801
      else:
11802
        iprot.skip(ftype)
11803
      iprot.readFieldEnd()
11804
    iprot.readStructEnd()
11805
 
11806
  def write(self, oprot):
11807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11809
      return
11810
    oprot.writeStructBegin('getProductNotifications_result')
11811
    if self.success is not None:
11812
      oprot.writeFieldBegin('success', TType.LIST, 0)
11813
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6845 amit.gupta 11814
      for iter241 in self.success:
11815
        iter241.write(oprot)
5944 mandeep.dh 11816
      oprot.writeListEnd()
11817
      oprot.writeFieldEnd()
11818
    oprot.writeFieldStop()
11819
    oprot.writeStructEnd()
11820
 
11821
  def validate(self):
11822
    return
11823
 
11824
 
11825
  def __repr__(self):
11826
    L = ['%s=%r' % (key, value)
11827
      for key, value in self.__dict__.iteritems()]
11828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11829
 
11830
  def __eq__(self, other):
11831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11832
 
11833
  def __ne__(self, other):
11834
    return not (self == other)
11835
 
11836
class getProductNotificationRequestCount_args:
11837
  """
11838
  Attributes:
11839
   - startDateTime
11840
  """
11841
 
11842
  thrift_spec = (
11843
    None, # 0
11844
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11845
  )
11846
 
11847
  def __init__(self, startDateTime=None,):
11848
    self.startDateTime = startDateTime
11849
 
11850
  def read(self, iprot):
11851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11853
      return
11854
    iprot.readStructBegin()
11855
    while True:
11856
      (fname, ftype, fid) = iprot.readFieldBegin()
11857
      if ftype == TType.STOP:
11858
        break
11859
      if fid == 1:
11860
        if ftype == TType.I64:
11861
          self.startDateTime = iprot.readI64();
11862
        else:
11863
          iprot.skip(ftype)
11864
      else:
11865
        iprot.skip(ftype)
11866
      iprot.readFieldEnd()
11867
    iprot.readStructEnd()
11868
 
11869
  def write(self, oprot):
11870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11872
      return
11873
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
11874
    if self.startDateTime is not None:
11875
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11876
      oprot.writeI64(self.startDateTime)
11877
      oprot.writeFieldEnd()
11878
    oprot.writeFieldStop()
11879
    oprot.writeStructEnd()
11880
 
11881
  def validate(self):
11882
    return
11883
 
11884
 
11885
  def __repr__(self):
11886
    L = ['%s=%r' % (key, value)
11887
      for key, value in self.__dict__.iteritems()]
11888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11889
 
11890
  def __eq__(self, other):
11891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11892
 
11893
  def __ne__(self, other):
11894
    return not (self == other)
11895
 
11896
class getProductNotificationRequestCount_result:
11897
  """
11898
  Attributes:
11899
   - success
11900
  """
11901
 
11902
  thrift_spec = (
11903
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
11904
  )
11905
 
11906
  def __init__(self, success=None,):
11907
    self.success = success
11908
 
11909
  def read(self, iprot):
11910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11912
      return
11913
    iprot.readStructBegin()
11914
    while True:
11915
      (fname, ftype, fid) = iprot.readFieldBegin()
11916
      if ftype == TType.STOP:
11917
        break
11918
      if fid == 0:
11919
        if ftype == TType.LIST:
11920
          self.success = []
6845 amit.gupta 11921
          (_etype245, _size242) = iprot.readListBegin()
11922
          for _i246 in xrange(_size242):
11923
            _elem247 = ProductNotificationRequestCount()
11924
            _elem247.read(iprot)
11925
            self.success.append(_elem247)
5944 mandeep.dh 11926
          iprot.readListEnd()
11927
        else:
11928
          iprot.skip(ftype)
11929
      else:
11930
        iprot.skip(ftype)
11931
      iprot.readFieldEnd()
11932
    iprot.readStructEnd()
11933
 
11934
  def write(self, oprot):
11935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11937
      return
11938
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
11939
    if self.success is not None:
11940
      oprot.writeFieldBegin('success', TType.LIST, 0)
11941
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6845 amit.gupta 11942
      for iter248 in self.success:
11943
        iter248.write(oprot)
5944 mandeep.dh 11944
      oprot.writeListEnd()
11945
      oprot.writeFieldEnd()
11946
    oprot.writeFieldStop()
11947
    oprot.writeStructEnd()
11948
 
11949
  def validate(self):
11950
    return
11951
 
11952
 
11953
  def __repr__(self):
11954
    L = ['%s=%r' % (key, value)
11955
      for key, value in self.__dict__.iteritems()]
11956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11957
 
11958
  def __eq__(self, other):
11959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11960
 
11961
  def __ne__(self, other):
11962
    return not (self == other)
11963
 
11964
class addAuthorizationLog_args:
11965
  """
11966
  Attributes:
11967
   - itemId
11968
   - username
11969
   - reason
11970
  """
11971
 
11972
  thrift_spec = (
11973
    None, # 0
11974
    (1, TType.I64, 'itemId', None, None, ), # 1
11975
    (2, TType.STRING, 'username', None, None, ), # 2
11976
    (3, TType.STRING, 'reason', None, None, ), # 3
11977
  )
11978
 
11979
  def __init__(self, itemId=None, username=None, reason=None,):
11980
    self.itemId = itemId
11981
    self.username = username
11982
    self.reason = reason
11983
 
11984
  def read(self, iprot):
11985
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11986
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11987
      return
11988
    iprot.readStructBegin()
11989
    while True:
11990
      (fname, ftype, fid) = iprot.readFieldBegin()
11991
      if ftype == TType.STOP:
11992
        break
11993
      if fid == 1:
11994
        if ftype == TType.I64:
11995
          self.itemId = iprot.readI64();
11996
        else:
11997
          iprot.skip(ftype)
11998
      elif fid == 2:
11999
        if ftype == TType.STRING:
12000
          self.username = iprot.readString();
12001
        else:
12002
          iprot.skip(ftype)
12003
      elif fid == 3:
12004
        if ftype == TType.STRING:
12005
          self.reason = iprot.readString();
12006
        else:
12007
          iprot.skip(ftype)
12008
      else:
12009
        iprot.skip(ftype)
12010
      iprot.readFieldEnd()
12011
    iprot.readStructEnd()
12012
 
12013
  def write(self, oprot):
12014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12016
      return
12017
    oprot.writeStructBegin('addAuthorizationLog_args')
12018
    if self.itemId is not None:
12019
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12020
      oprot.writeI64(self.itemId)
12021
      oprot.writeFieldEnd()
12022
    if self.username is not None:
12023
      oprot.writeFieldBegin('username', TType.STRING, 2)
12024
      oprot.writeString(self.username)
12025
      oprot.writeFieldEnd()
12026
    if self.reason is not None:
12027
      oprot.writeFieldBegin('reason', TType.STRING, 3)
12028
      oprot.writeString(self.reason)
12029
      oprot.writeFieldEnd()
12030
    oprot.writeFieldStop()
12031
    oprot.writeStructEnd()
12032
 
12033
  def validate(self):
12034
    return
12035
 
12036
 
12037
  def __repr__(self):
12038
    L = ['%s=%r' % (key, value)
12039
      for key, value in self.__dict__.iteritems()]
12040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12041
 
12042
  def __eq__(self, other):
12043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12044
 
12045
  def __ne__(self, other):
12046
    return not (self == other)
12047
 
12048
class addAuthorizationLog_result:
12049
  """
12050
  Attributes:
12051
   - success
12052
   - cex
12053
  """
12054
 
12055
  thrift_spec = (
12056
    (0, TType.BOOL, 'success', None, None, ), # 0
12057
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12058
  )
12059
 
12060
  def __init__(self, success=None, cex=None,):
12061
    self.success = success
12062
    self.cex = cex
12063
 
12064
  def read(self, iprot):
12065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12067
      return
12068
    iprot.readStructBegin()
12069
    while True:
12070
      (fname, ftype, fid) = iprot.readFieldBegin()
12071
      if ftype == TType.STOP:
12072
        break
12073
      if fid == 0:
12074
        if ftype == TType.BOOL:
12075
          self.success = iprot.readBool();
12076
        else:
12077
          iprot.skip(ftype)
12078
      elif fid == 1:
12079
        if ftype == TType.STRUCT:
12080
          self.cex = CatalogServiceException()
12081
          self.cex.read(iprot)
12082
        else:
12083
          iprot.skip(ftype)
12084
      else:
12085
        iprot.skip(ftype)
12086
      iprot.readFieldEnd()
12087
    iprot.readStructEnd()
12088
 
12089
  def write(self, oprot):
12090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12092
      return
12093
    oprot.writeStructBegin('addAuthorizationLog_result')
12094
    if self.success is not None:
12095
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12096
      oprot.writeBool(self.success)
12097
      oprot.writeFieldEnd()
12098
    if self.cex is not None:
12099
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12100
      self.cex.write(oprot)
12101
      oprot.writeFieldEnd()
12102
    oprot.writeFieldStop()
12103
    oprot.writeStructEnd()
12104
 
12105
  def validate(self):
12106
    return
12107
 
12108
 
12109
  def __repr__(self):
12110
    L = ['%s=%r' % (key, value)
12111
      for key, value in self.__dict__.iteritems()]
12112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12113
 
12114
  def __eq__(self, other):
12115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12116
 
12117
  def __ne__(self, other):
12118
    return not (self == other)
12119
 
12120
class getClearanceSaleCatalogIds_args:
12121
 
12122
  thrift_spec = (
12123
  )
12124
 
12125
  def read(self, iprot):
12126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12128
      return
12129
    iprot.readStructBegin()
12130
    while True:
12131
      (fname, ftype, fid) = iprot.readFieldBegin()
12132
      if ftype == TType.STOP:
12133
        break
12134
      else:
12135
        iprot.skip(ftype)
12136
      iprot.readFieldEnd()
12137
    iprot.readStructEnd()
12138
 
12139
  def write(self, oprot):
12140
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12141
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12142
      return
12143
    oprot.writeStructBegin('getClearanceSaleCatalogIds_args')
12144
    oprot.writeFieldStop()
12145
    oprot.writeStructEnd()
12146
 
12147
  def validate(self):
12148
    return
12149
 
12150
 
12151
  def __repr__(self):
12152
    L = ['%s=%r' % (key, value)
12153
      for key, value in self.__dict__.iteritems()]
12154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12155
 
12156
  def __eq__(self, other):
12157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12158
 
12159
  def __ne__(self, other):
12160
    return not (self == other)
12161
 
12162
class getClearanceSaleCatalogIds_result:
12163
  """
12164
  Attributes:
12165
   - success
12166
   - cex
12167
  """
12168
 
12169
  thrift_spec = (
12170
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12171
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12172
  )
12173
 
12174
  def __init__(self, success=None, cex=None,):
12175
    self.success = success
12176
    self.cex = cex
12177
 
12178
  def read(self, iprot):
12179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12181
      return
12182
    iprot.readStructBegin()
12183
    while True:
12184
      (fname, ftype, fid) = iprot.readFieldBegin()
12185
      if ftype == TType.STOP:
12186
        break
12187
      if fid == 0:
12188
        if ftype == TType.LIST:
12189
          self.success = []
6845 amit.gupta 12190
          (_etype252, _size249) = iprot.readListBegin()
12191
          for _i253 in xrange(_size249):
12192
            _elem254 = iprot.readI64();
12193
            self.success.append(_elem254)
5944 mandeep.dh 12194
          iprot.readListEnd()
12195
        else:
12196
          iprot.skip(ftype)
12197
      elif fid == 1:
12198
        if ftype == TType.STRUCT:
12199
          self.cex = CatalogServiceException()
12200
          self.cex.read(iprot)
12201
        else:
12202
          iprot.skip(ftype)
12203
      else:
12204
        iprot.skip(ftype)
12205
      iprot.readFieldEnd()
12206
    iprot.readStructEnd()
12207
 
12208
  def write(self, oprot):
12209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12211
      return
12212
    oprot.writeStructBegin('getClearanceSaleCatalogIds_result')
12213
    if self.success is not None:
12214
      oprot.writeFieldBegin('success', TType.LIST, 0)
12215
      oprot.writeListBegin(TType.I64, len(self.success))
6845 amit.gupta 12216
      for iter255 in self.success:
12217
        oprot.writeI64(iter255)
5944 mandeep.dh 12218
      oprot.writeListEnd()
12219
      oprot.writeFieldEnd()
12220
    if self.cex is not None:
12221
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12222
      self.cex.write(oprot)
12223
      oprot.writeFieldEnd()
12224
    oprot.writeFieldStop()
12225
    oprot.writeStructEnd()
12226
 
12227
  def validate(self):
12228
    return
12229
 
12230
 
12231
  def __repr__(self):
12232
    L = ['%s=%r' % (key, value)
12233
      for key, value in self.__dict__.iteritems()]
12234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12235
 
12236
  def __eq__(self, other):
12237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12238
 
12239
  def __ne__(self, other):
12240
    return not (self == other)
12241
 
12242
class addupdateVoucherForItem_args:
12243
  """
12244
  Attributes:
12245
   - catalog_item_id
12246
   - voucherType
12247
   - voucherAmount
12248
  """
12249
 
12250
  thrift_spec = (
12251
    None, # 0
12252
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12253
    (2, TType.I64, 'voucherType', None, None, ), # 2
12254
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
12255
  )
12256
 
12257
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
12258
    self.catalog_item_id = catalog_item_id
12259
    self.voucherType = voucherType
12260
    self.voucherAmount = voucherAmount
12261
 
12262
  def read(self, iprot):
12263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12265
      return
12266
    iprot.readStructBegin()
12267
    while True:
12268
      (fname, ftype, fid) = iprot.readFieldBegin()
12269
      if ftype == TType.STOP:
12270
        break
12271
      if fid == 1:
12272
        if ftype == TType.I64:
12273
          self.catalog_item_id = iprot.readI64();
12274
        else:
12275
          iprot.skip(ftype)
12276
      elif fid == 2:
12277
        if ftype == TType.I64:
12278
          self.voucherType = iprot.readI64();
12279
        else:
12280
          iprot.skip(ftype)
12281
      elif fid == 3:
12282
        if ftype == TType.I64:
12283
          self.voucherAmount = iprot.readI64();
12284
        else:
12285
          iprot.skip(ftype)
12286
      else:
12287
        iprot.skip(ftype)
12288
      iprot.readFieldEnd()
12289
    iprot.readStructEnd()
12290
 
12291
  def write(self, oprot):
12292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12294
      return
12295
    oprot.writeStructBegin('addupdateVoucherForItem_args')
12296
    if self.catalog_item_id is not None:
12297
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12298
      oprot.writeI64(self.catalog_item_id)
12299
      oprot.writeFieldEnd()
12300
    if self.voucherType is not None:
12301
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12302
      oprot.writeI64(self.voucherType)
12303
      oprot.writeFieldEnd()
12304
    if self.voucherAmount is not None:
12305
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
12306
      oprot.writeI64(self.voucherAmount)
12307
      oprot.writeFieldEnd()
12308
    oprot.writeFieldStop()
12309
    oprot.writeStructEnd()
12310
 
12311
  def validate(self):
12312
    return
12313
 
12314
 
12315
  def __repr__(self):
12316
    L = ['%s=%r' % (key, value)
12317
      for key, value in self.__dict__.iteritems()]
12318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12319
 
12320
  def __eq__(self, other):
12321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12322
 
12323
  def __ne__(self, other):
12324
    return not (self == other)
12325
 
12326
class addupdateVoucherForItem_result:
12327
  """
12328
  Attributes:
12329
   - success
12330
   - cex
12331
  """
12332
 
12333
  thrift_spec = (
12334
    (0, TType.BOOL, 'success', None, None, ), # 0
12335
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12336
  )
12337
 
12338
  def __init__(self, success=None, cex=None,):
12339
    self.success = success
12340
    self.cex = cex
12341
 
12342
  def read(self, iprot):
12343
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12344
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12345
      return
12346
    iprot.readStructBegin()
12347
    while True:
12348
      (fname, ftype, fid) = iprot.readFieldBegin()
12349
      if ftype == TType.STOP:
12350
        break
12351
      if fid == 0:
12352
        if ftype == TType.BOOL:
12353
          self.success = iprot.readBool();
12354
        else:
12355
          iprot.skip(ftype)
12356
      elif fid == 1:
12357
        if ftype == TType.STRUCT:
12358
          self.cex = CatalogServiceException()
12359
          self.cex.read(iprot)
12360
        else:
12361
          iprot.skip(ftype)
12362
      else:
12363
        iprot.skip(ftype)
12364
      iprot.readFieldEnd()
12365
    iprot.readStructEnd()
12366
 
12367
  def write(self, oprot):
12368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12370
      return
12371
    oprot.writeStructBegin('addupdateVoucherForItem_result')
12372
    if self.success is not None:
12373
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12374
      oprot.writeBool(self.success)
12375
      oprot.writeFieldEnd()
12376
    if self.cex is not None:
12377
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12378
      self.cex.write(oprot)
12379
      oprot.writeFieldEnd()
12380
    oprot.writeFieldStop()
12381
    oprot.writeStructEnd()
12382
 
12383
  def validate(self):
12384
    return
12385
 
12386
 
12387
  def __repr__(self):
12388
    L = ['%s=%r' % (key, value)
12389
      for key, value in self.__dict__.iteritems()]
12390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12391
 
12392
  def __eq__(self, other):
12393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12394
 
12395
  def __ne__(self, other):
12396
    return not (self == other)
12397
 
12398
class deleteVoucherForItem_args:
12399
  """
12400
  Attributes:
12401
   - catalog_item_id
12402
   - voucherType
12403
  """
12404
 
12405
  thrift_spec = (
12406
    None, # 0
12407
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12408
    (2, TType.I64, 'voucherType', None, None, ), # 2
12409
  )
12410
 
12411
  def __init__(self, catalog_item_id=None, voucherType=None,):
12412
    self.catalog_item_id = catalog_item_id
12413
    self.voucherType = voucherType
12414
 
12415
  def read(self, iprot):
12416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12418
      return
12419
    iprot.readStructBegin()
12420
    while True:
12421
      (fname, ftype, fid) = iprot.readFieldBegin()
12422
      if ftype == TType.STOP:
12423
        break
12424
      if fid == 1:
12425
        if ftype == TType.I64:
12426
          self.catalog_item_id = iprot.readI64();
12427
        else:
12428
          iprot.skip(ftype)
12429
      elif fid == 2:
12430
        if ftype == TType.I64:
12431
          self.voucherType = iprot.readI64();
12432
        else:
12433
          iprot.skip(ftype)
12434
      else:
12435
        iprot.skip(ftype)
12436
      iprot.readFieldEnd()
12437
    iprot.readStructEnd()
12438
 
12439
  def write(self, oprot):
12440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12442
      return
12443
    oprot.writeStructBegin('deleteVoucherForItem_args')
12444
    if self.catalog_item_id is not None:
12445
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12446
      oprot.writeI64(self.catalog_item_id)
12447
      oprot.writeFieldEnd()
12448
    if self.voucherType is not None:
12449
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12450
      oprot.writeI64(self.voucherType)
12451
      oprot.writeFieldEnd()
12452
    oprot.writeFieldStop()
12453
    oprot.writeStructEnd()
12454
 
12455
  def validate(self):
12456
    return
12457
 
12458
 
12459
  def __repr__(self):
12460
    L = ['%s=%r' % (key, value)
12461
      for key, value in self.__dict__.iteritems()]
12462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12463
 
12464
  def __eq__(self, other):
12465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12466
 
12467
  def __ne__(self, other):
12468
    return not (self == other)
12469
 
12470
class deleteVoucherForItem_result:
12471
  """
12472
  Attributes:
12473
   - success
12474
   - cex
12475
  """
12476
 
12477
  thrift_spec = (
12478
    (0, TType.BOOL, 'success', None, None, ), # 0
12479
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12480
  )
12481
 
12482
  def __init__(self, success=None, cex=None,):
12483
    self.success = success
12484
    self.cex = cex
12485
 
12486
  def read(self, iprot):
12487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12489
      return
12490
    iprot.readStructBegin()
12491
    while True:
12492
      (fname, ftype, fid) = iprot.readFieldBegin()
12493
      if ftype == TType.STOP:
12494
        break
12495
      if fid == 0:
12496
        if ftype == TType.BOOL:
12497
          self.success = iprot.readBool();
12498
        else:
12499
          iprot.skip(ftype)
12500
      elif fid == 1:
12501
        if ftype == TType.STRUCT:
12502
          self.cex = CatalogServiceException()
12503
          self.cex.read(iprot)
12504
        else:
12505
          iprot.skip(ftype)
12506
      else:
12507
        iprot.skip(ftype)
12508
      iprot.readFieldEnd()
12509
    iprot.readStructEnd()
12510
 
12511
  def write(self, oprot):
12512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12514
      return
12515
    oprot.writeStructBegin('deleteVoucherForItem_result')
12516
    if self.success is not None:
12517
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12518
      oprot.writeBool(self.success)
12519
      oprot.writeFieldEnd()
12520
    if self.cex is not None:
12521
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12522
      self.cex.write(oprot)
12523
      oprot.writeFieldEnd()
12524
    oprot.writeFieldStop()
12525
    oprot.writeStructEnd()
12526
 
12527
  def validate(self):
12528
    return
12529
 
12530
 
12531
  def __repr__(self):
12532
    L = ['%s=%r' % (key, value)
12533
      for key, value in self.__dict__.iteritems()]
12534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12535
 
12536
  def __eq__(self, other):
12537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12538
 
12539
  def __ne__(self, other):
12540
    return not (self == other)
12541
 
12542
class getVoucherAmount_args:
12543
  """
12544
  Attributes:
12545
   - itemId
12546
   - voucherType
12547
  """
12548
 
12549
  thrift_spec = (
12550
    None, # 0
12551
    (1, TType.I64, 'itemId', None, None, ), # 1
12552
    (2, TType.I64, 'voucherType', None, None, ), # 2
12553
  )
12554
 
12555
  def __init__(self, itemId=None, voucherType=None,):
12556
    self.itemId = itemId
12557
    self.voucherType = voucherType
12558
 
12559
  def read(self, iprot):
12560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12562
      return
12563
    iprot.readStructBegin()
12564
    while True:
12565
      (fname, ftype, fid) = iprot.readFieldBegin()
12566
      if ftype == TType.STOP:
12567
        break
12568
      if fid == 1:
12569
        if ftype == TType.I64:
12570
          self.itemId = iprot.readI64();
12571
        else:
12572
          iprot.skip(ftype)
12573
      elif fid == 2:
12574
        if ftype == TType.I64:
12575
          self.voucherType = iprot.readI64();
12576
        else:
12577
          iprot.skip(ftype)
12578
      else:
12579
        iprot.skip(ftype)
12580
      iprot.readFieldEnd()
12581
    iprot.readStructEnd()
12582
 
12583
  def write(self, oprot):
12584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12586
      return
12587
    oprot.writeStructBegin('getVoucherAmount_args')
12588
    if self.itemId is not None:
12589
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12590
      oprot.writeI64(self.itemId)
12591
      oprot.writeFieldEnd()
12592
    if self.voucherType is not None:
12593
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12594
      oprot.writeI64(self.voucherType)
12595
      oprot.writeFieldEnd()
12596
    oprot.writeFieldStop()
12597
    oprot.writeStructEnd()
12598
 
12599
  def validate(self):
12600
    return
12601
 
12602
 
12603
  def __repr__(self):
12604
    L = ['%s=%r' % (key, value)
12605
      for key, value in self.__dict__.iteritems()]
12606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12607
 
12608
  def __eq__(self, other):
12609
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12610
 
12611
  def __ne__(self, other):
12612
    return not (self == other)
12613
 
12614
class getVoucherAmount_result:
12615
  """
12616
  Attributes:
12617
   - success
12618
  """
12619
 
12620
  thrift_spec = (
12621
    (0, TType.I64, 'success', None, None, ), # 0
12622
  )
12623
 
12624
  def __init__(self, success=None,):
12625
    self.success = success
12626
 
12627
  def read(self, iprot):
12628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12630
      return
12631
    iprot.readStructBegin()
12632
    while True:
12633
      (fname, ftype, fid) = iprot.readFieldBegin()
12634
      if ftype == TType.STOP:
12635
        break
12636
      if fid == 0:
12637
        if ftype == TType.I64:
12638
          self.success = iprot.readI64();
12639
        else:
12640
          iprot.skip(ftype)
12641
      else:
12642
        iprot.skip(ftype)
12643
      iprot.readFieldEnd()
12644
    iprot.readStructEnd()
12645
 
12646
  def write(self, oprot):
12647
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12648
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12649
      return
12650
    oprot.writeStructBegin('getVoucherAmount_result')
12651
    if self.success is not None:
12652
      oprot.writeFieldBegin('success', TType.I64, 0)
12653
      oprot.writeI64(self.success)
12654
      oprot.writeFieldEnd()
12655
    oprot.writeFieldStop()
12656
    oprot.writeStructEnd()
12657
 
12658
  def validate(self):
12659
    return
12660
 
12661
 
12662
  def __repr__(self):
12663
    L = ['%s=%r' % (key, value)
12664
      for key, value in self.__dict__.iteritems()]
12665
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12666
 
12667
  def __eq__(self, other):
12668
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12669
 
12670
  def __ne__(self, other):
12671
    return not (self == other)
12672
 
12673
class getAllItemVouchers_args:
12674
  """
12675
  Attributes:
12676
   - itemId
12677
  """
12678
 
12679
  thrift_spec = (
12680
    None, # 0
12681
    (1, TType.I64, 'itemId', None, None, ), # 1
12682
  )
12683
 
12684
  def __init__(self, itemId=None,):
12685
    self.itemId = itemId
12686
 
12687
  def read(self, iprot):
12688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12690
      return
12691
    iprot.readStructBegin()
12692
    while True:
12693
      (fname, ftype, fid) = iprot.readFieldBegin()
12694
      if ftype == TType.STOP:
12695
        break
12696
      if fid == 1:
12697
        if ftype == TType.I64:
12698
          self.itemId = iprot.readI64();
12699
        else:
12700
          iprot.skip(ftype)
12701
      else:
12702
        iprot.skip(ftype)
12703
      iprot.readFieldEnd()
12704
    iprot.readStructEnd()
12705
 
12706
  def write(self, oprot):
12707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12709
      return
12710
    oprot.writeStructBegin('getAllItemVouchers_args')
12711
    if self.itemId is not None:
12712
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12713
      oprot.writeI64(self.itemId)
12714
      oprot.writeFieldEnd()
12715
    oprot.writeFieldStop()
12716
    oprot.writeStructEnd()
12717
 
12718
  def validate(self):
12719
    return
12720
 
12721
 
12722
  def __repr__(self):
12723
    L = ['%s=%r' % (key, value)
12724
      for key, value in self.__dict__.iteritems()]
12725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12726
 
12727
  def __eq__(self, other):
12728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12729
 
12730
  def __ne__(self, other):
12731
    return not (self == other)
12732
 
12733
class getAllItemVouchers_result:
12734
  """
12735
  Attributes:
12736
   - success
12737
  """
12738
 
12739
  thrift_spec = (
12740
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
12741
  )
12742
 
12743
  def __init__(self, success=None,):
12744
    self.success = success
12745
 
12746
  def read(self, iprot):
12747
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12748
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12749
      return
12750
    iprot.readStructBegin()
12751
    while True:
12752
      (fname, ftype, fid) = iprot.readFieldBegin()
12753
      if ftype == TType.STOP:
12754
        break
12755
      if fid == 0:
12756
        if ftype == TType.LIST:
12757
          self.success = []
6845 amit.gupta 12758
          (_etype259, _size256) = iprot.readListBegin()
12759
          for _i260 in xrange(_size256):
12760
            _elem261 = VoucherItemMapping()
12761
            _elem261.read(iprot)
12762
            self.success.append(_elem261)
5944 mandeep.dh 12763
          iprot.readListEnd()
12764
        else:
12765
          iprot.skip(ftype)
12766
      else:
12767
        iprot.skip(ftype)
12768
      iprot.readFieldEnd()
12769
    iprot.readStructEnd()
12770
 
12771
  def write(self, oprot):
12772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12774
      return
12775
    oprot.writeStructBegin('getAllItemVouchers_result')
12776
    if self.success is not None:
12777
      oprot.writeFieldBegin('success', TType.LIST, 0)
12778
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6845 amit.gupta 12779
      for iter262 in self.success:
12780
        iter262.write(oprot)
5944 mandeep.dh 12781
      oprot.writeListEnd()
12782
      oprot.writeFieldEnd()
12783
    oprot.writeFieldStop()
12784
    oprot.writeStructEnd()
12785
 
12786
  def validate(self):
12787
    return
12788
 
12789
 
12790
  def __repr__(self):
12791
    L = ['%s=%r' % (key, value)
12792
      for key, value in self.__dict__.iteritems()]
12793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12794
 
12795
  def __eq__(self, other):
12796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12797
 
12798
  def __ne__(self, other):
12799
    return not (self == other)
12800
 
12801
class isValidCatalogItemId_args:
12802
  """
12803
  Attributes:
12804
   - catalog_item_id
12805
  """
12806
 
12807
  thrift_spec = (
12808
    None, # 0
12809
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12810
  )
12811
 
12812
  def __init__(self, catalog_item_id=None,):
12813
    self.catalog_item_id = catalog_item_id
12814
 
12815
  def read(self, iprot):
12816
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12817
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12818
      return
12819
    iprot.readStructBegin()
12820
    while True:
12821
      (fname, ftype, fid) = iprot.readFieldBegin()
12822
      if ftype == TType.STOP:
12823
        break
12824
      if fid == 1:
12825
        if ftype == TType.I64:
12826
          self.catalog_item_id = iprot.readI64();
12827
        else:
12828
          iprot.skip(ftype)
12829
      else:
12830
        iprot.skip(ftype)
12831
      iprot.readFieldEnd()
12832
    iprot.readStructEnd()
12833
 
12834
  def write(self, oprot):
12835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12837
      return
12838
    oprot.writeStructBegin('isValidCatalogItemId_args')
12839
    if self.catalog_item_id is not None:
12840
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12841
      oprot.writeI64(self.catalog_item_id)
12842
      oprot.writeFieldEnd()
12843
    oprot.writeFieldStop()
12844
    oprot.writeStructEnd()
12845
 
12846
  def validate(self):
12847
    return
12848
 
12849
 
12850
  def __repr__(self):
12851
    L = ['%s=%r' % (key, value)
12852
      for key, value in self.__dict__.iteritems()]
12853
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12854
 
12855
  def __eq__(self, other):
12856
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12857
 
12858
  def __ne__(self, other):
12859
    return not (self == other)
12860
 
12861
class isValidCatalogItemId_result:
12862
  """
12863
  Attributes:
12864
   - success
12865
  """
12866
 
12867
  thrift_spec = (
12868
    (0, TType.BOOL, 'success', None, None, ), # 0
12869
  )
12870
 
12871
  def __init__(self, success=None,):
12872
    self.success = success
12873
 
12874
  def read(self, iprot):
12875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12877
      return
12878
    iprot.readStructBegin()
12879
    while True:
12880
      (fname, ftype, fid) = iprot.readFieldBegin()
12881
      if ftype == TType.STOP:
12882
        break
12883
      if fid == 0:
12884
        if ftype == TType.BOOL:
12885
          self.success = iprot.readBool();
12886
        else:
12887
          iprot.skip(ftype)
12888
      else:
12889
        iprot.skip(ftype)
12890
      iprot.readFieldEnd()
12891
    iprot.readStructEnd()
12892
 
12893
  def write(self, oprot):
12894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12896
      return
12897
    oprot.writeStructBegin('isValidCatalogItemId_result')
12898
    if self.success is not None:
12899
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12900
      oprot.writeBool(self.success)
12901
      oprot.writeFieldEnd()
12902
    oprot.writeFieldStop()
12903
    oprot.writeStructEnd()
12904
 
12905
  def validate(self):
12906
    return
12907
 
12908
 
12909
  def __repr__(self):
12910
    L = ['%s=%r' % (key, value)
12911
      for key, value in self.__dict__.iteritems()]
12912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12913
 
12914
  def __eq__(self, other):
12915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12916
 
12917
  def __ne__(self, other):
12918
    return not (self == other)
6039 amit.gupta 12919
 
12920
class getVatPercentageForItem_args:
12921
  """
12922
  Attributes:
12923
   - itemId
12924
   - price
12925
  """
12926
 
12927
  thrift_spec = (
12928
    None, # 0
12929
    (1, TType.I64, 'itemId', None, None, ), # 1
12930
    (2, TType.DOUBLE, 'price', None, None, ), # 2
12931
  )
12932
 
12933
  def __init__(self, itemId=None, price=None,):
12934
    self.itemId = itemId
12935
    self.price = price
12936
 
12937
  def read(self, iprot):
12938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12940
      return
12941
    iprot.readStructBegin()
12942
    while True:
12943
      (fname, ftype, fid) = iprot.readFieldBegin()
12944
      if ftype == TType.STOP:
12945
        break
12946
      if fid == 1:
12947
        if ftype == TType.I64:
12948
          self.itemId = iprot.readI64();
12949
        else:
12950
          iprot.skip(ftype)
12951
      elif fid == 2:
12952
        if ftype == TType.DOUBLE:
12953
          self.price = iprot.readDouble();
12954
        else:
12955
          iprot.skip(ftype)
12956
      else:
12957
        iprot.skip(ftype)
12958
      iprot.readFieldEnd()
12959
    iprot.readStructEnd()
12960
 
12961
  def write(self, oprot):
12962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12964
      return
12965
    oprot.writeStructBegin('getVatPercentageForItem_args')
12966
    if self.itemId is not None:
12967
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12968
      oprot.writeI64(self.itemId)
12969
      oprot.writeFieldEnd()
12970
    if self.price is not None:
12971
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
12972
      oprot.writeDouble(self.price)
12973
      oprot.writeFieldEnd()
12974
    oprot.writeFieldStop()
12975
    oprot.writeStructEnd()
12976
 
12977
  def validate(self):
12978
    return
12979
 
12980
 
12981
  def __repr__(self):
12982
    L = ['%s=%r' % (key, value)
12983
      for key, value in self.__dict__.iteritems()]
12984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12985
 
12986
  def __eq__(self, other):
12987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12988
 
12989
  def __ne__(self, other):
12990
    return not (self == other)
12991
 
12992
class getVatPercentageForItem_result:
12993
  """
12994
  Attributes:
12995
   - success
12996
  """
12997
 
12998
  thrift_spec = (
12999
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13000
  )
13001
 
13002
  def __init__(self, success=None,):
13003
    self.success = success
13004
 
13005
  def read(self, iprot):
13006
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13007
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13008
      return
13009
    iprot.readStructBegin()
13010
    while True:
13011
      (fname, ftype, fid) = iprot.readFieldBegin()
13012
      if ftype == TType.STOP:
13013
        break
13014
      if fid == 0:
13015
        if ftype == TType.DOUBLE:
13016
          self.success = iprot.readDouble();
13017
        else:
13018
          iprot.skip(ftype)
13019
      else:
13020
        iprot.skip(ftype)
13021
      iprot.readFieldEnd()
13022
    iprot.readStructEnd()
13023
 
13024
  def write(self, oprot):
13025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13027
      return
13028
    oprot.writeStructBegin('getVatPercentageForItem_result')
13029
    if self.success is not None:
13030
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13031
      oprot.writeDouble(self.success)
13032
      oprot.writeFieldEnd()
13033
    oprot.writeFieldStop()
13034
    oprot.writeStructEnd()
13035
 
13036
  def validate(self):
13037
    return
13038
 
13039
 
13040
  def __repr__(self):
13041
    L = ['%s=%r' % (key, value)
13042
      for key, value in self.__dict__.iteritems()]
13043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13044
 
13045
  def __eq__(self, other):
13046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13047
 
13048
  def __ne__(self, other):
13049
    return not (self == other)
13050
 
13051
class getVatAmountForItem_args:
13052
  """
13053
  Attributes:
13054
   - itemId
13055
   - price
13056
  """
13057
 
13058
  thrift_spec = (
13059
    None, # 0
13060
    (1, TType.I64, 'itemId', None, None, ), # 1
13061
    (2, TType.DOUBLE, 'price', None, None, ), # 2
13062
  )
13063
 
13064
  def __init__(self, itemId=None, price=None,):
13065
    self.itemId = itemId
13066
    self.price = price
13067
 
13068
  def read(self, iprot):
13069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13071
      return
13072
    iprot.readStructBegin()
13073
    while True:
13074
      (fname, ftype, fid) = iprot.readFieldBegin()
13075
      if ftype == TType.STOP:
13076
        break
13077
      if fid == 1:
13078
        if ftype == TType.I64:
13079
          self.itemId = iprot.readI64();
13080
        else:
13081
          iprot.skip(ftype)
13082
      elif fid == 2:
13083
        if ftype == TType.DOUBLE:
13084
          self.price = iprot.readDouble();
13085
        else:
13086
          iprot.skip(ftype)
13087
      else:
13088
        iprot.skip(ftype)
13089
      iprot.readFieldEnd()
13090
    iprot.readStructEnd()
13091
 
13092
  def write(self, oprot):
13093
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13094
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13095
      return
13096
    oprot.writeStructBegin('getVatAmountForItem_args')
13097
    if self.itemId is not None:
13098
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13099
      oprot.writeI64(self.itemId)
13100
      oprot.writeFieldEnd()
13101
    if self.price is not None:
13102
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
13103
      oprot.writeDouble(self.price)
13104
      oprot.writeFieldEnd()
13105
    oprot.writeFieldStop()
13106
    oprot.writeStructEnd()
13107
 
13108
  def validate(self):
13109
    return
13110
 
13111
 
13112
  def __repr__(self):
13113
    L = ['%s=%r' % (key, value)
13114
      for key, value in self.__dict__.iteritems()]
13115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13116
 
13117
  def __eq__(self, other):
13118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13119
 
13120
  def __ne__(self, other):
13121
    return not (self == other)
13122
 
13123
class getVatAmountForItem_result:
13124
  """
13125
  Attributes:
13126
   - success
13127
  """
13128
 
13129
  thrift_spec = (
13130
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13131
  )
13132
 
13133
  def __init__(self, success=None,):
13134
    self.success = success
13135
 
13136
  def read(self, iprot):
13137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13139
      return
13140
    iprot.readStructBegin()
13141
    while True:
13142
      (fname, ftype, fid) = iprot.readFieldBegin()
13143
      if ftype == TType.STOP:
13144
        break
13145
      if fid == 0:
13146
        if ftype == TType.DOUBLE:
13147
          self.success = iprot.readDouble();
13148
        else:
13149
          iprot.skip(ftype)
13150
      else:
13151
        iprot.skip(ftype)
13152
      iprot.readFieldEnd()
13153
    iprot.readStructEnd()
13154
 
13155
  def write(self, oprot):
13156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13158
      return
13159
    oprot.writeStructBegin('getVatAmountForItem_result')
13160
    if self.success is not None:
13161
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13162
      oprot.writeDouble(self.success)
13163
      oprot.writeFieldEnd()
13164
    oprot.writeFieldStop()
13165
    oprot.writeStructEnd()
13166
 
13167
  def validate(self):
13168
    return
13169
 
13170
 
13171
  def __repr__(self):
13172
    L = ['%s=%r' % (key, value)
13173
      for key, value in self.__dict__.iteritems()]
13174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13175
 
13176
  def __eq__(self, other):
13177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13178
 
13179
  def __ne__(self, other):
13180
    return not (self == other)
6531 vikram.rag 13181
 
13182
class getAllIgnoredInventoryUpdateItemsList_args:
13183
  """
13184
  Attributes:
13185
   - offset
13186
   - limit
13187
  """
13188
 
13189
  thrift_spec = (
13190
    None, # 0
13191
    (1, TType.I32, 'offset', None, None, ), # 1
13192
    (2, TType.I32, 'limit', None, None, ), # 2
13193
  )
13194
 
13195
  def __init__(self, offset=None, limit=None,):
13196
    self.offset = offset
13197
    self.limit = limit
13198
 
13199
  def read(self, iprot):
13200
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13201
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13202
      return
13203
    iprot.readStructBegin()
13204
    while True:
13205
      (fname, ftype, fid) = iprot.readFieldBegin()
13206
      if ftype == TType.STOP:
13207
        break
13208
      if fid == 1:
13209
        if ftype == TType.I32:
13210
          self.offset = iprot.readI32();
13211
        else:
13212
          iprot.skip(ftype)
13213
      elif fid == 2:
13214
        if ftype == TType.I32:
13215
          self.limit = iprot.readI32();
13216
        else:
13217
          iprot.skip(ftype)
13218
      else:
13219
        iprot.skip(ftype)
13220
      iprot.readFieldEnd()
13221
    iprot.readStructEnd()
13222
 
13223
  def write(self, oprot):
13224
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13225
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13226
      return
13227
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
13228
    if self.offset is not None:
13229
      oprot.writeFieldBegin('offset', TType.I32, 1)
13230
      oprot.writeI32(self.offset)
13231
      oprot.writeFieldEnd()
13232
    if self.limit is not None:
13233
      oprot.writeFieldBegin('limit', TType.I32, 2)
13234
      oprot.writeI32(self.limit)
13235
      oprot.writeFieldEnd()
13236
    oprot.writeFieldStop()
13237
    oprot.writeStructEnd()
13238
 
13239
  def validate(self):
13240
    return
13241
 
13242
 
13243
  def __repr__(self):
13244
    L = ['%s=%r' % (key, value)
13245
      for key, value in self.__dict__.iteritems()]
13246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13247
 
13248
  def __eq__(self, other):
13249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13250
 
13251
  def __ne__(self, other):
13252
    return not (self == other)
13253
 
13254
class getAllIgnoredInventoryUpdateItemsList_result:
13255
  """
13256
  Attributes:
13257
   - success
13258
  """
13259
 
13260
  thrift_spec = (
13261
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13262
  )
13263
 
13264
  def __init__(self, success=None,):
13265
    self.success = success
13266
 
13267
  def read(self, iprot):
13268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13270
      return
13271
    iprot.readStructBegin()
13272
    while True:
13273
      (fname, ftype, fid) = iprot.readFieldBegin()
13274
      if ftype == TType.STOP:
13275
        break
13276
      if fid == 0:
13277
        if ftype == TType.LIST:
13278
          self.success = []
6845 amit.gupta 13279
          (_etype266, _size263) = iprot.readListBegin()
13280
          for _i267 in xrange(_size263):
13281
            _elem268 = Item()
13282
            _elem268.read(iprot)
13283
            self.success.append(_elem268)
6531 vikram.rag 13284
          iprot.readListEnd()
13285
        else:
13286
          iprot.skip(ftype)
13287
      else:
13288
        iprot.skip(ftype)
13289
      iprot.readFieldEnd()
13290
    iprot.readStructEnd()
13291
 
13292
  def write(self, oprot):
13293
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13294
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13295
      return
13296
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
13297
    if self.success is not None:
13298
      oprot.writeFieldBegin('success', TType.LIST, 0)
13299
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6845 amit.gupta 13300
      for iter269 in self.success:
13301
        iter269.write(oprot)
6531 vikram.rag 13302
      oprot.writeListEnd()
13303
      oprot.writeFieldEnd()
13304
    oprot.writeFieldStop()
13305
    oprot.writeStructEnd()
13306
 
13307
  def validate(self):
13308
    return
13309
 
13310
 
13311
  def __repr__(self):
13312
    L = ['%s=%r' % (key, value)
13313
      for key, value in self.__dict__.iteritems()]
13314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13315
 
13316
  def __eq__(self, other):
13317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13318
 
13319
  def __ne__(self, other):
13320
    return not (self == other)
6805 anupam.sin 13321
 
6821 amar.kumar 13322
class getAllAliveItems_args:
13323
 
13324
  thrift_spec = (
13325
  )
13326
 
13327
  def read(self, iprot):
13328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13330
      return
13331
    iprot.readStructBegin()
13332
    while True:
13333
      (fname, ftype, fid) = iprot.readFieldBegin()
13334
      if ftype == TType.STOP:
13335
        break
13336
      else:
13337
        iprot.skip(ftype)
13338
      iprot.readFieldEnd()
13339
    iprot.readStructEnd()
13340
 
13341
  def write(self, oprot):
13342
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13343
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13344
      return
13345
    oprot.writeStructBegin('getAllAliveItems_args')
13346
    oprot.writeFieldStop()
13347
    oprot.writeStructEnd()
13348
 
13349
  def validate(self):
13350
    return
13351
 
13352
 
13353
  def __repr__(self):
13354
    L = ['%s=%r' % (key, value)
13355
      for key, value in self.__dict__.iteritems()]
13356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13357
 
13358
  def __eq__(self, other):
13359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13360
 
13361
  def __ne__(self, other):
13362
    return not (self == other)
13363
 
13364
class getAllAliveItems_result:
13365
  """
13366
  Attributes:
13367
   - success
13368
  """
13369
 
13370
  thrift_spec = (
13371
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13372
  )
13373
 
13374
  def __init__(self, success=None,):
13375
    self.success = success
13376
 
13377
  def read(self, iprot):
13378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13380
      return
13381
    iprot.readStructBegin()
13382
    while True:
13383
      (fname, ftype, fid) = iprot.readFieldBegin()
13384
      if ftype == TType.STOP:
13385
        break
13386
      if fid == 0:
13387
        if ftype == TType.LIST:
13388
          self.success = []
6845 amit.gupta 13389
          (_etype273, _size270) = iprot.readListBegin()
13390
          for _i274 in xrange(_size270):
13391
            _elem275 = Item()
13392
            _elem275.read(iprot)
13393
            self.success.append(_elem275)
6821 amar.kumar 13394
          iprot.readListEnd()
13395
        else:
13396
          iprot.skip(ftype)
13397
      else:
13398
        iprot.skip(ftype)
13399
      iprot.readFieldEnd()
13400
    iprot.readStructEnd()
13401
 
13402
  def write(self, oprot):
13403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13405
      return
13406
    oprot.writeStructBegin('getAllAliveItems_result')
13407
    if self.success is not None:
13408
      oprot.writeFieldBegin('success', TType.LIST, 0)
13409
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6845 amit.gupta 13410
      for iter276 in self.success:
13411
        iter276.write(oprot)
6821 amar.kumar 13412
      oprot.writeListEnd()
13413
      oprot.writeFieldEnd()
13414
    oprot.writeFieldStop()
13415
    oprot.writeStructEnd()
13416
 
13417
  def validate(self):
13418
    return
13419
 
13420
 
13421
  def __repr__(self):
13422
    L = ['%s=%r' % (key, value)
13423
      for key, value in self.__dict__.iteritems()]
13424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13425
 
13426
  def __eq__(self, other):
13427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13428
 
13429
  def __ne__(self, other):
13430
    return not (self == other)
13431
 
6805 anupam.sin 13432
class getInsuranceAmount_args:
13433
  """
13434
  Attributes:
13435
   - itemId
13436
   - insurerId
13437
   - quantity
13438
  """
13439
 
13440
  thrift_spec = (
13441
    None, # 0
13442
    (1, TType.I64, 'itemId', None, None, ), # 1
13443
    (2, TType.I64, 'insurerId', None, None, ), # 2
13444
    (3, TType.I64, 'quantity', None, None, ), # 3
13445
  )
13446
 
13447
  def __init__(self, itemId=None, insurerId=None, quantity=None,):
13448
    self.itemId = itemId
13449
    self.insurerId = insurerId
13450
    self.quantity = quantity
13451
 
13452
  def read(self, iprot):
13453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13455
      return
13456
    iprot.readStructBegin()
13457
    while True:
13458
      (fname, ftype, fid) = iprot.readFieldBegin()
13459
      if ftype == TType.STOP:
13460
        break
13461
      if fid == 1:
13462
        if ftype == TType.I64:
13463
          self.itemId = iprot.readI64();
13464
        else:
13465
          iprot.skip(ftype)
13466
      elif fid == 2:
13467
        if ftype == TType.I64:
13468
          self.insurerId = iprot.readI64();
13469
        else:
13470
          iprot.skip(ftype)
13471
      elif fid == 3:
13472
        if ftype == TType.I64:
13473
          self.quantity = iprot.readI64();
13474
        else:
13475
          iprot.skip(ftype)
13476
      else:
13477
        iprot.skip(ftype)
13478
      iprot.readFieldEnd()
13479
    iprot.readStructEnd()
13480
 
13481
  def write(self, oprot):
13482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13484
      return
13485
    oprot.writeStructBegin('getInsuranceAmount_args')
13486
    if self.itemId is not None:
13487
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13488
      oprot.writeI64(self.itemId)
13489
      oprot.writeFieldEnd()
13490
    if self.insurerId is not None:
13491
      oprot.writeFieldBegin('insurerId', TType.I64, 2)
13492
      oprot.writeI64(self.insurerId)
13493
      oprot.writeFieldEnd()
13494
    if self.quantity is not None:
13495
      oprot.writeFieldBegin('quantity', TType.I64, 3)
13496
      oprot.writeI64(self.quantity)
13497
      oprot.writeFieldEnd()
13498
    oprot.writeFieldStop()
13499
    oprot.writeStructEnd()
13500
 
13501
  def validate(self):
13502
    return
13503
 
13504
 
13505
  def __repr__(self):
13506
    L = ['%s=%r' % (key, value)
13507
      for key, value in self.__dict__.iteritems()]
13508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13509
 
13510
  def __eq__(self, other):
13511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13512
 
13513
  def __ne__(self, other):
13514
    return not (self == other)
13515
 
13516
class getInsuranceAmount_result:
13517
  """
13518
  Attributes:
13519
   - success
13520
  """
13521
 
13522
  thrift_spec = (
13523
    (0, TType.I64, 'success', None, None, ), # 0
13524
  )
13525
 
13526
  def __init__(self, success=None,):
13527
    self.success = success
13528
 
13529
  def read(self, iprot):
13530
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13531
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13532
      return
13533
    iprot.readStructBegin()
13534
    while True:
13535
      (fname, ftype, fid) = iprot.readFieldBegin()
13536
      if ftype == TType.STOP:
13537
        break
13538
      if fid == 0:
13539
        if ftype == TType.I64:
13540
          self.success = iprot.readI64();
13541
        else:
13542
          iprot.skip(ftype)
13543
      else:
13544
        iprot.skip(ftype)
13545
      iprot.readFieldEnd()
13546
    iprot.readStructEnd()
13547
 
13548
  def write(self, oprot):
13549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13551
      return
13552
    oprot.writeStructBegin('getInsuranceAmount_result')
13553
    if self.success is not None:
13554
      oprot.writeFieldBegin('success', TType.I64, 0)
13555
      oprot.writeI64(self.success)
13556
      oprot.writeFieldEnd()
13557
    oprot.writeFieldStop()
13558
    oprot.writeStructEnd()
13559
 
13560
  def validate(self):
13561
    return
13562
 
13563
 
13564
  def __repr__(self):
13565
    L = ['%s=%r' % (key, value)
13566
      for key, value in self.__dict__.iteritems()]
13567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13568
 
13569
  def __eq__(self, other):
13570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13571
 
13572
  def __ne__(self, other):
13573
    return not (self == other)
13574
 
13575
class getInsurer_args:
13576
  """
13577
  Attributes:
13578
   - insurerId
13579
  """
13580
 
13581
  thrift_spec = (
13582
    None, # 0
13583
    (1, TType.I64, 'insurerId', None, None, ), # 1
13584
  )
13585
 
13586
  def __init__(self, insurerId=None,):
13587
    self.insurerId = insurerId
13588
 
13589
  def read(self, iprot):
13590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13592
      return
13593
    iprot.readStructBegin()
13594
    while True:
13595
      (fname, ftype, fid) = iprot.readFieldBegin()
13596
      if ftype == TType.STOP:
13597
        break
13598
      if fid == 1:
13599
        if ftype == TType.I64:
13600
          self.insurerId = iprot.readI64();
13601
        else:
13602
          iprot.skip(ftype)
13603
      else:
13604
        iprot.skip(ftype)
13605
      iprot.readFieldEnd()
13606
    iprot.readStructEnd()
13607
 
13608
  def write(self, oprot):
13609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13611
      return
13612
    oprot.writeStructBegin('getInsurer_args')
13613
    if self.insurerId is not None:
13614
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
13615
      oprot.writeI64(self.insurerId)
13616
      oprot.writeFieldEnd()
13617
    oprot.writeFieldStop()
13618
    oprot.writeStructEnd()
13619
 
13620
  def validate(self):
13621
    return
13622
 
13623
 
13624
  def __repr__(self):
13625
    L = ['%s=%r' % (key, value)
13626
      for key, value in self.__dict__.iteritems()]
13627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13628
 
13629
  def __eq__(self, other):
13630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13631
 
13632
  def __ne__(self, other):
13633
    return not (self == other)
13634
 
13635
class getInsurer_result:
13636
  """
13637
  Attributes:
13638
   - success
13639
  """
13640
 
13641
  thrift_spec = (
13642
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
13643
  )
13644
 
13645
  def __init__(self, success=None,):
13646
    self.success = success
13647
 
13648
  def read(self, iprot):
13649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13651
      return
13652
    iprot.readStructBegin()
13653
    while True:
13654
      (fname, ftype, fid) = iprot.readFieldBegin()
13655
      if ftype == TType.STOP:
13656
        break
13657
      if fid == 0:
13658
        if ftype == TType.STRUCT:
13659
          self.success = Insurer()
13660
          self.success.read(iprot)
13661
        else:
13662
          iprot.skip(ftype)
13663
      else:
13664
        iprot.skip(ftype)
13665
      iprot.readFieldEnd()
13666
    iprot.readStructEnd()
13667
 
13668
  def write(self, oprot):
13669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13671
      return
13672
    oprot.writeStructBegin('getInsurer_result')
13673
    if self.success is not None:
13674
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13675
      self.success.write(oprot)
13676
      oprot.writeFieldEnd()
13677
    oprot.writeFieldStop()
13678
    oprot.writeStructEnd()
13679
 
13680
  def validate(self):
13681
    return
13682
 
13683
 
13684
  def __repr__(self):
13685
    L = ['%s=%r' % (key, value)
13686
      for key, value in self.__dict__.iteritems()]
13687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13688
 
13689
  def __eq__(self, other):
13690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13691
 
13692
  def __ne__(self, other):
13693
    return not (self == other)
6838 vikram.rag 13694
 
13695
class getAllInsurers_args:
13696
 
13697
  thrift_spec = (
13698
  )
13699
 
13700
  def read(self, iprot):
13701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13703
      return
13704
    iprot.readStructBegin()
13705
    while True:
13706
      (fname, ftype, fid) = iprot.readFieldBegin()
13707
      if ftype == TType.STOP:
13708
        break
13709
      else:
13710
        iprot.skip(ftype)
13711
      iprot.readFieldEnd()
13712
    iprot.readStructEnd()
13713
 
13714
  def write(self, oprot):
13715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13717
      return
13718
    oprot.writeStructBegin('getAllInsurers_args')
13719
    oprot.writeFieldStop()
13720
    oprot.writeStructEnd()
13721
 
13722
  def validate(self):
13723
    return
13724
 
13725
 
13726
  def __repr__(self):
13727
    L = ['%s=%r' % (key, value)
13728
      for key, value in self.__dict__.iteritems()]
13729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13730
 
13731
  def __eq__(self, other):
13732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13733
 
13734
  def __ne__(self, other):
13735
    return not (self == other)
13736
 
13737
class getAllInsurers_result:
13738
  """
13739
  Attributes:
13740
   - success
13741
  """
13742
 
13743
  thrift_spec = (
13744
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
13745
  )
13746
 
13747
  def __init__(self, success=None,):
13748
    self.success = success
13749
 
13750
  def read(self, iprot):
13751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13753
      return
13754
    iprot.readStructBegin()
13755
    while True:
13756
      (fname, ftype, fid) = iprot.readFieldBegin()
13757
      if ftype == TType.STOP:
13758
        break
13759
      if fid == 0:
13760
        if ftype == TType.LIST:
13761
          self.success = []
13762
          (_etype264, _size261) = iprot.readListBegin()
13763
          for _i265 in xrange(_size261):
13764
            _elem266 = Insurer()
13765
            _elem266.read(iprot)
13766
            self.success.append(_elem266)
13767
          iprot.readListEnd()
13768
        else:
13769
          iprot.skip(ftype)
13770
      else:
13771
        iprot.skip(ftype)
13772
      iprot.readFieldEnd()
13773
    iprot.readStructEnd()
13774
 
13775
  def write(self, oprot):
13776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13778
      return
13779
    oprot.writeStructBegin('getAllInsurers_result')
13780
    if self.success is not None:
13781
      oprot.writeFieldBegin('success', TType.LIST, 0)
13782
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13783
      for iter267 in self.success:
13784
        iter267.write(oprot)
13785
      oprot.writeListEnd()
13786
      oprot.writeFieldEnd()
13787
    oprot.writeFieldStop()
13788
    oprot.writeStructEnd()
13789
 
13790
  def validate(self):
13791
    return
13792
 
13793
 
13794
  def __repr__(self):
13795
    L = ['%s=%r' % (key, value)
13796
      for key, value in self.__dict__.iteritems()]
13797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13798
 
13799
  def __eq__(self, other):
13800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13801
 
13802
  def __ne__(self, other):
13803
    return not (self == other)