Rev 6838 | Rev 6849 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
## Autogenerated by Thrift Compiler (0.7.0)## DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING#from thrift.Thrift import *import shop2020.thriftpy.generic.GenericServicefrom ttypes import *from thrift.Thrift import TProcessorfrom thrift.transport import TTransportfrom thrift.protocol import TBinaryProtocol, TProtocoltry:from thrift.protocol import fastbinaryexcept:fastbinary = Noneclass Iface(shop2020.thriftpy.generic.GenericService.Iface):def addItem(self, item):"""Availability and inventory attributesParameters:- item"""passdef updateItem(self, item):"""Parameters:- item"""passdef isActive(self, itemId):"""Checks if the item given to the corresponding itemId is active. If it's active,whether it's risky and if it's risky, its inventory position.Parameters:- itemId"""passdef getItemStatusDescription(self, itemId):"""Parameters:- itemId"""passdef startItemOn(self, item_id, timestamp):"""Parameters:- item_id- timestamp"""passdef retireItemOn(self, item_id, timestamp):"""Parameters:- item_id- timestamp"""passdef changeItemStatus(self, item_id, timestamp, newstatus):"""Parameters:- item_id- timestamp- newstatus"""passdef getItem(self, item_id):"""Parameters:- item_id"""passdef getItemsByCatalogId(self, catalog_item_id):"""Parameters:- catalog_item_id"""passdef getValidItemsByCatalogId(self, catalog_item_id):"""Parameters:- catalog_item_id"""passdef getAllItems(self, isActive):"""Parameters:- isActive"""passdef getAllItemsByStatus(self, itemStatus):"""Parameters:- itemStatus"""passdef markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):"""Parameters:- entityId- category- brand- modelName- modelNumber"""passdef getAllItemsInRange(self, offset, limit):"""Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.Parameters:- offset- limit"""passdef getAllItemsByStatusInRange(self, itemStatus, offset, limit):"""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.Parameters:- itemStatus- offset- limit"""passdef getItemCountByStatus(self, useStatus, itemStatus):"""Gets a count of all items by statusParameters:- useStatus- itemStatus"""passdef getBestSellers(self, ):passdef getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):"""Parameters:- beginIndex- totalItems- brand- category"""passdef getBestSellersCount(self, ):passdef getBestDeals(self, ):passdef getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):"""Parameters:- beginIndex- totalItems- brand- category"""passdef getBestDealsCount(self, ):passdef getComingSoon(self, ):passdef getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):"""Parameters:- beginIndex- totalItems- brand- category"""passdef getComingSoonCount(self, ):passdef getLatestArrivals(self, ):"""Returns a list of items sorted in the descending order by start date.The list is limited to the 'latest_arrivals_count' configuraiton parameter."""passdef getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):"""Returns the list of catalog ids of latest arrivals in the given categories of the given brand.To ignore the categories, pass the list as empty. To ignore brand, pass it as null.Parameters:- beginIndex- totalItems- brand- categories"""passdef getLatestArrivalsCount(self, ):"""Get the total number of latest arrivals we are willing to show.The count's upper bound is the 'latest_arrivals_count' configuraiton parameter."""passdef generateNewEntityID(self, ):passdef addCategory(self, category):"""All category related functionsParameters:- category"""passdef getCategory(self, id):"""Parameters:- id"""passdef getAllCategories(self, ):passdef getAllSimilarItems(self, itemId):"""Returns the list of similar items.Parameters:- itemId"""passdef addSimilarItem(self, itemId, catalogItemId):"""Adds similar item.Parameters:- itemId- catalogItemId"""passdef addTag(self, displayName, itemId):"""Tag RelatedParameters:- displayName- itemId"""passdef deleteEntityTag(self, displayName, itemId):"""Parameters:- displayName- itemId"""passdef deleteTag(self, displayName):"""Parameters:- displayName"""passdef getAllTags(self, ):passdef getAllEntitiesByTagName(self, displayName):"""Parameters:- displayName"""passdef getAllEntityTags(self, ):passdef deleteSimilarItem(self, itemId, catalogItemId):"""Delete similar item.Parameters:- itemId- catalogItemId"""passdef checkSimilarItem(self, brand, modelNumber, modelName, color):"""Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)If yes, returns the itemId else returns 0Parameters:- brand- modelNumber- modelName- color"""passdef validateRiskyStatus(self, itemId):"""Check wether item is risky and change status if inventory is not available for risky itemsParameters:- itemId"""passdef changeItemRiskyFlag(self, itemId, risky):"""Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.Parameters:- itemId- risky"""passdef getItemsByRiskyFlag(self, ):"""Returns list of items marked as risky."""passdef getItemsForMasterSheet(self, category, brand):"""Returns list of items with any status except PHASED_OUT and filtered by category, brand.Parameters:- category- brand"""passdef getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):"""Returns list of catalog ids of items with same similarity index as of the given itemIdParameters:- beginIndex- totalItems- itemId"""passdef addProductNotification(self, itemId, email):"""Add user requests for out of stock items. Once user will ask for notify me an entry willParameters:- itemId"""passdef sendProductNotifications(self, ):"""Send the product notifications to the users for items which has stock."""passdef getAllBrandsByCategory(self, categoryId):"""Returns list of brand names for a given category IdParameters:- categoryId"""passdef getAllBrands(self, ):"""Returns list of brand names"""passdef getAllSources(self, ):"""Return list of all sources"""passdef getItemPricingBySource(self, itemId, sourceId):"""Returns the pricing information of an item. If no information is found, exception will be thrown.Parameters:- itemId- sourceId"""passdef addSourceItemPricing(self, sourceItemPricing):"""Adds prices to be displayed corresponding to the item if user comes from a source.If item is not found or source is not found, it will throw exception.Parameters:- sourceItemPricing"""passdef getAllSourcePricing(self, itemId):"""Returns the list of source pricing information of an item.Raises an exception if item not found corresponding to itemIdParameters:- itemId"""passdef getItemForSource(self, item_id, sourceId):"""Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.Parameters:- item_id- sourceId"""passdef searchItemsInRange(self, searchTerms, offset, limit):"""Searches items matching the the given terms in the catalog and returns results within the specified range.Parameters:- searchTerms- offset- limit"""passdef getSearchResultCount(self, searchTerms):"""Gets the count of search results for the given search terms so that the user can go through all the pages.Parameters:- searchTerms"""passdef getProductNotifications(self, startDateTime):"""Returns a list of product notifications added after a supplied datetimeParameters:- startDateTime"""passdef getProductNotificationRequestCount(self, startDateTime):"""Returns a list of count of requests for product notification against each itemParameters:- startDateTime"""passdef addAuthorizationLog(self, itemId, username, reason):"""This method adds a log to authorize table with Item Id, username who authorized the change, reason.Parameters:- itemId- username- reason"""passdef getClearanceSaleCatalogIds(self, ):passdef addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):"""Parameters:- catalog_item_id- voucherType- voucherAmount"""passdef deleteVoucherForItem(self, catalog_item_id, voucherType):"""Parameters:- catalog_item_id- voucherType"""passdef getVoucherAmount(self, itemId, voucherType):"""Parameters:- itemId- voucherType"""passdef getAllItemVouchers(self, itemId):"""Parameters:- itemId"""passdef isValidCatalogItemId(self, catalog_item_id):"""Parameters:- catalog_item_id"""passdef getVatPercentageForItem(self, itemId, price):"""Parameters:- itemId- price"""passdef getVatAmountForItem(self, itemId, price):"""Parameters:- itemId- price"""passdef getAllIgnoredInventoryUpdateItemsList(self, offset, limit):"""Parameters:- offset- limit"""passdef getAllAliveItems(self, ):passdef getInsuranceAmount(self, itemId, insurerId, quantity):"""This method returns the insurance amount needed to insure the given item for a given quantity.Parameters:- itemId- insurerId- quantity"""passdef getInsurer(self, insurerId):"""Parameters:- insurerId"""passdef getAllInsurers(self, ):passclass Client(shop2020.thriftpy.generic.GenericService.Client, Iface):def __init__(self, iprot, oprot=None):shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)def addItem(self, item):"""Availability and inventory attributesParameters:- item"""self.send_addItem(item)return self.recv_addItem()def send_addItem(self, item):self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)args = addItem_args()args.item = itemargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");def updateItem(self, item):"""Parameters:- item"""self.send_updateItem(item)return self.recv_updateItem()def send_updateItem(self, item):self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)args = updateItem_args()args.item = itemargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");def isActive(self, itemId):"""Checks if the item given to the corresponding itemId is active. If it's active,whether it's risky and if it's risky, its inventory position.Parameters:- itemId"""self.send_isActive(itemId)return self.recv_isActive()def send_isActive(self, itemId):self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)args = isActive_args()args.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_isActive(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = isActive_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.isex is not None:raise result.isexraise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");def getItemStatusDescription(self, itemId):"""Parameters:- itemId"""self.send_getItemStatusDescription(itemId)return self.recv_getItemStatusDescription()def send_getItemStatusDescription(self, itemId):self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)args = getItemStatusDescription_args()args.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItemStatusDescription(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItemStatusDescription_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.isex is not None:raise result.isexraise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");def startItemOn(self, item_id, timestamp):"""Parameters:- item_id- timestamp"""self.send_startItemOn(item_id, timestamp)self.recv_startItemOn()def send_startItemOn(self, item_id, timestamp):self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)args = startItemOn_args()args.item_id = item_idargs.timestamp = timestampargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_startItemOn(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = startItemOn_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.cex is not None:raise result.cexreturndef retireItemOn(self, item_id, timestamp):"""Parameters:- item_id- timestamp"""self.send_retireItemOn(item_id, timestamp)self.recv_retireItemOn()def send_retireItemOn(self, item_id, timestamp):self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)args = retireItemOn_args()args.item_id = item_idargs.timestamp = timestampargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_retireItemOn(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = retireItemOn_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.cex is not None:raise result.cexreturndef changeItemStatus(self, item_id, timestamp, newstatus):"""Parameters:- item_id- timestamp- newstatus"""self.send_changeItemStatus(item_id, timestamp, newstatus)self.recv_changeItemStatus()def send_changeItemStatus(self, item_id, timestamp, newstatus):self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)args = changeItemStatus_args()args.item_id = item_idargs.timestamp = timestampargs.newstatus = newstatusargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_changeItemStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = changeItemStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.cex is not None:raise result.cexreturndef getItem(self, item_id):"""Parameters:- item_id"""self.send_getItem(item_id)return self.recv_getItem()def send_getItem(self, item_id):self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)args = getItem_args()args.item_id = item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");def getItemsByCatalogId(self, catalog_item_id):"""Parameters:- catalog_item_id"""self.send_getItemsByCatalogId(catalog_item_id)return self.recv_getItemsByCatalogId()def send_getItemsByCatalogId(self, catalog_item_id):self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)args = getItemsByCatalogId_args()args.catalog_item_id = catalog_item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItemsByCatalogId(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItemsByCatalogId_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");def getValidItemsByCatalogId(self, catalog_item_id):"""Parameters:- catalog_item_id"""self.send_getValidItemsByCatalogId(catalog_item_id)return self.recv_getValidItemsByCatalogId()def send_getValidItemsByCatalogId(self, catalog_item_id):self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)args = getValidItemsByCatalogId_args()args.catalog_item_id = catalog_item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getValidItemsByCatalogId(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getValidItemsByCatalogId_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");def getAllItems(self, isActive):"""Parameters:- isActive"""self.send_getAllItems(isActive)return self.recv_getAllItems()def send_getAllItems(self, isActive):self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)args = getAllItems_args()args.isActive = isActiveargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");def getAllItemsByStatus(self, itemStatus):"""Parameters:- itemStatus"""self.send_getAllItemsByStatus(itemStatus)return self.recv_getAllItemsByStatus()def send_getAllItemsByStatus(self, itemStatus):self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)args = getAllItemsByStatus_args()args.itemStatus = itemStatusargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllItemsByStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllItemsByStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):"""Parameters:- entityId- category- brand- modelName- modelNumber"""self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)return self.recv_markItemAsContentComplete()def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)args = markItemAsContentComplete_args()args.entityId = entityIdargs.category = categoryargs.brand = brandargs.modelName = modelNameargs.modelNumber = modelNumberargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_markItemAsContentComplete(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = markItemAsContentComplete_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");def getAllItemsInRange(self, offset, limit):"""Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.Parameters:- offset- limit"""self.send_getAllItemsInRange(offset, limit)return self.recv_getAllItemsInRange()def send_getAllItemsInRange(self, offset, limit):self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)args = getAllItemsInRange_args()args.offset = offsetargs.limit = limitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllItemsInRange(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllItemsInRange_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");def getAllItemsByStatusInRange(self, itemStatus, offset, limit):"""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.Parameters:- itemStatus- offset- limit"""self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)return self.recv_getAllItemsByStatusInRange()def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)args = getAllItemsByStatusInRange_args()args.itemStatus = itemStatusargs.offset = offsetargs.limit = limitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllItemsByStatusInRange(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllItemsByStatusInRange_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");def getItemCountByStatus(self, useStatus, itemStatus):"""Gets a count of all items by statusParameters:- useStatus- itemStatus"""self.send_getItemCountByStatus(useStatus, itemStatus)return self.recv_getItemCountByStatus()def send_getItemCountByStatus(self, useStatus, itemStatus):self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)args = getItemCountByStatus_args()args.useStatus = useStatusargs.itemStatus = itemStatusargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItemCountByStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItemCountByStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");def getBestSellers(self, ):self.send_getBestSellers()return self.recv_getBestSellers()def send_getBestSellers(self, ):self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)args = getBestSellers_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBestSellers(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBestSellers_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.isex is not None:raise result.isexraise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):"""Parameters:- beginIndex- totalItems- brand- category"""self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)return self.recv_getBestSellersCatalogIds()def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)args = getBestSellersCatalogIds_args()args.beginIndex = beginIndexargs.totalItems = totalItemsargs.brand = brandargs.category = categoryargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBestSellersCatalogIds(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBestSellersCatalogIds_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");def getBestSellersCount(self, ):self.send_getBestSellersCount()return self.recv_getBestSellersCount()def send_getBestSellersCount(self, ):self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)args = getBestSellersCount_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBestSellersCount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBestSellersCount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");def getBestDeals(self, ):self.send_getBestDeals()return self.recv_getBestDeals()def send_getBestDeals(self, ):self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)args = getBestDeals_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBestDeals(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBestDeals_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.isex is not None:raise result.isexraise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):"""Parameters:- beginIndex- totalItems- brand- category"""self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)return self.recv_getBestDealsCatalogIds()def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)args = getBestDealsCatalogIds_args()args.beginIndex = beginIndexargs.totalItems = totalItemsargs.brand = brandargs.category = categoryargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBestDealsCatalogIds(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBestDealsCatalogIds_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");def getBestDealsCount(self, ):self.send_getBestDealsCount()return self.recv_getBestDealsCount()def send_getBestDealsCount(self, ):self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)args = getBestDealsCount_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBestDealsCount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBestDealsCount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");def getComingSoon(self, ):self.send_getComingSoon()return self.recv_getComingSoon()def send_getComingSoon(self, ):self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)args = getComingSoon_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getComingSoon(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getComingSoon_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.isex is not None:raise result.isexraise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):"""Parameters:- beginIndex- totalItems- brand- category"""self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)return self.recv_getComingSoonCatalogIds()def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)args = getComingSoonCatalogIds_args()args.beginIndex = beginIndexargs.totalItems = totalItemsargs.brand = brandargs.category = categoryargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getComingSoonCatalogIds(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getComingSoonCatalogIds_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");def getComingSoonCount(self, ):self.send_getComingSoonCount()return self.recv_getComingSoonCount()def send_getComingSoonCount(self, ):self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)args = getComingSoonCount_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getComingSoonCount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getComingSoonCount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");def getLatestArrivals(self, ):"""Returns a list of items sorted in the descending order by start date.The list is limited to the 'latest_arrivals_count' configuraiton parameter."""self.send_getLatestArrivals()return self.recv_getLatestArrivals()def send_getLatestArrivals(self, ):self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)args = getLatestArrivals_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getLatestArrivals(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getLatestArrivals_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.isex is not None:raise result.isexraise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):"""Returns the list of catalog ids of latest arrivals in the given categories of the given brand.To ignore the categories, pass the list as empty. To ignore brand, pass it as null.Parameters:- beginIndex- totalItems- brand- categories"""self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)return self.recv_getLatestArrivalsCatalogIds()def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)args = getLatestArrivalsCatalogIds_args()args.beginIndex = beginIndexargs.totalItems = totalItemsargs.brand = brandargs.categories = categoriesargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getLatestArrivalsCatalogIds(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getLatestArrivalsCatalogIds_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");def getLatestArrivalsCount(self, ):"""Get the total number of latest arrivals we are willing to show.The count's upper bound is the 'latest_arrivals_count' configuraiton parameter."""self.send_getLatestArrivalsCount()return self.recv_getLatestArrivalsCount()def send_getLatestArrivalsCount(self, ):self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)args = getLatestArrivalsCount_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getLatestArrivalsCount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getLatestArrivalsCount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");def generateNewEntityID(self, ):self.send_generateNewEntityID()return self.recv_generateNewEntityID()def send_generateNewEntityID(self, ):self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)args = generateNewEntityID_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_generateNewEntityID(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = generateNewEntityID_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");def addCategory(self, category):"""All category related functionsParameters:- category"""self.send_addCategory(category)return self.recv_addCategory()def send_addCategory(self, category):self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)args = addCategory_args()args.category = categoryargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addCategory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addCategory_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");def getCategory(self, id):"""Parameters:- id"""self.send_getCategory(id)return self.recv_getCategory()def send_getCategory(self, id):self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)args = getCategory_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCategory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCategory_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");def getAllCategories(self, ):self.send_getAllCategories()return self.recv_getAllCategories()def send_getAllCategories(self, ):self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)args = getAllCategories_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllCategories(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllCategories_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");def getAllSimilarItems(self, itemId):"""Returns the list of similar items.Parameters:- itemId"""self.send_getAllSimilarItems(itemId)return self.recv_getAllSimilarItems()def send_getAllSimilarItems(self, itemId):self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)args = getAllSimilarItems_args()args.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllSimilarItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllSimilarItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");def addSimilarItem(self, itemId, catalogItemId):"""Adds similar item.Parameters:- itemId- catalogItemId"""self.send_addSimilarItem(itemId, catalogItemId)return self.recv_addSimilarItem()def send_addSimilarItem(self, itemId, catalogItemId):self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)args = addSimilarItem_args()args.itemId = itemIdargs.catalogItemId = catalogItemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addSimilarItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addSimilarItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");def addTag(self, displayName, itemId):"""Tag RelatedParameters:- displayName- itemId"""self.send_addTag(displayName, itemId)return self.recv_addTag()def send_addTag(self, displayName, itemId):self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)args = addTag_args()args.displayName = displayNameargs.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addTag(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addTag_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");def deleteEntityTag(self, displayName, itemId):"""Parameters:- displayName- itemId"""self.send_deleteEntityTag(displayName, itemId)return self.recv_deleteEntityTag()def send_deleteEntityTag(self, displayName, itemId):self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)args = deleteEntityTag_args()args.displayName = displayNameargs.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteEntityTag(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteEntityTag_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");def deleteTag(self, displayName):"""Parameters:- displayName"""self.send_deleteTag(displayName)return self.recv_deleteTag()def send_deleteTag(self, displayName):self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)args = deleteTag_args()args.displayName = displayNameargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteTag(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteTag_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");def getAllTags(self, ):self.send_getAllTags()return self.recv_getAllTags()def send_getAllTags(self, ):self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)args = getAllTags_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllTags(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllTags_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");def getAllEntitiesByTagName(self, displayName):"""Parameters:- displayName"""self.send_getAllEntitiesByTagName(displayName)return self.recv_getAllEntitiesByTagName()def send_getAllEntitiesByTagName(self, displayName):self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)args = getAllEntitiesByTagName_args()args.displayName = displayNameargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllEntitiesByTagName(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllEntitiesByTagName_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");def getAllEntityTags(self, ):self.send_getAllEntityTags()return self.recv_getAllEntityTags()def send_getAllEntityTags(self, ):self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)args = getAllEntityTags_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllEntityTags(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllEntityTags_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");def deleteSimilarItem(self, itemId, catalogItemId):"""Delete similar item.Parameters:- itemId- catalogItemId"""self.send_deleteSimilarItem(itemId, catalogItemId)return self.recv_deleteSimilarItem()def send_deleteSimilarItem(self, itemId, catalogItemId):self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)args = deleteSimilarItem_args()args.itemId = itemIdargs.catalogItemId = catalogItemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteSimilarItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteSimilarItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");def checkSimilarItem(self, brand, modelNumber, modelName, color):"""Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)If yes, returns the itemId else returns 0Parameters:- brand- modelNumber- modelName- color"""self.send_checkSimilarItem(brand, modelNumber, modelName, color)return self.recv_checkSimilarItem()def send_checkSimilarItem(self, brand, modelNumber, modelName, color):self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)args = checkSimilarItem_args()args.brand = brandargs.modelNumber = modelNumberargs.modelName = modelNameargs.color = colorargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_checkSimilarItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = checkSimilarItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");def validateRiskyStatus(self, itemId):"""Check wether item is risky and change status if inventory is not available for risky itemsParameters:- itemId"""self.send_validateRiskyStatus(itemId)self.recv_validateRiskyStatus()def send_validateRiskyStatus(self, itemId):self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)args = validateRiskyStatus_args()args.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_validateRiskyStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = validateRiskyStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef changeItemRiskyFlag(self, itemId, risky):"""Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.Parameters:- itemId- risky"""self.send_changeItemRiskyFlag(itemId, risky)self.recv_changeItemRiskyFlag()def send_changeItemRiskyFlag(self, itemId, risky):self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)args = changeItemRiskyFlag_args()args.itemId = itemIdargs.risky = riskyargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_changeItemRiskyFlag(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = changeItemRiskyFlag_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getItemsByRiskyFlag(self, ):"""Returns list of items marked as risky."""self.send_getItemsByRiskyFlag()return self.recv_getItemsByRiskyFlag()def send_getItemsByRiskyFlag(self, ):self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)args = getItemsByRiskyFlag_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItemsByRiskyFlag(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItemsByRiskyFlag_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");def getItemsForMasterSheet(self, category, brand):"""Returns list of items with any status except PHASED_OUT and filtered by category, brand.Parameters:- category- brand"""self.send_getItemsForMasterSheet(category, brand)return self.recv_getItemsForMasterSheet()def send_getItemsForMasterSheet(self, category, brand):self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)args = getItemsForMasterSheet_args()args.category = categoryargs.brand = brandargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItemsForMasterSheet(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItemsForMasterSheet_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):"""Returns list of catalog ids of items with same similarity index as of the given itemIdParameters:- beginIndex- totalItems- itemId"""self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)return self.recv_getSimilarItemsCatalogIds()def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)args = getSimilarItemsCatalogIds_args()args.beginIndex = beginIndexargs.totalItems = totalItemsargs.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getSimilarItemsCatalogIds(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getSimilarItemsCatalogIds_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");def addProductNotification(self, itemId, email):"""Add user requests for out of stock items. Once user will ask for notify me an entry willParameters:- itemId"""self.send_addProductNotification(itemId, email)return self.recv_addProductNotification()def send_addProductNotification(self, itemId, email):self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)args = addProductNotification_args()args.itemId = itemIdargs.email = emailargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addProductNotification(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addProductNotification_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");def sendProductNotifications(self, ):"""Send the product notifications to the users for items which has stock."""self.send_sendProductNotifications()return self.recv_sendProductNotifications()def send_sendProductNotifications(self, ):self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)args = sendProductNotifications_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_sendProductNotifications(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = sendProductNotifications_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");def getAllBrandsByCategory(self, categoryId):"""Returns list of brand names for a given category IdParameters:- categoryId"""self.send_getAllBrandsByCategory(categoryId)return self.recv_getAllBrandsByCategory()def send_getAllBrandsByCategory(self, categoryId):self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)args = getAllBrandsByCategory_args()args.categoryId = categoryIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllBrandsByCategory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllBrandsByCategory_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");def getAllBrands(self, ):"""Returns list of brand names"""self.send_getAllBrands()return self.recv_getAllBrands()def send_getAllBrands(self, ):self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)args = getAllBrands_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllBrands(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllBrands_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");def getAllSources(self, ):"""Return list of all sources"""self.send_getAllSources()return self.recv_getAllSources()def send_getAllSources(self, ):self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)args = getAllSources_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllSources(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllSources_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");def getItemPricingBySource(self, itemId, sourceId):"""Returns the pricing information of an item. If no information is found, exception will be thrown.Parameters:- itemId- sourceId"""self.send_getItemPricingBySource(itemId, sourceId)return self.recv_getItemPricingBySource()def send_getItemPricingBySource(self, itemId, sourceId):self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)args = getItemPricingBySource_args()args.itemId = itemIdargs.sourceId = sourceIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItemPricingBySource(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItemPricingBySource_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");def addSourceItemPricing(self, sourceItemPricing):"""Adds prices to be displayed corresponding to the item if user comes from a source.If item is not found or source is not found, it will throw exception.Parameters:- sourceItemPricing"""self.send_addSourceItemPricing(sourceItemPricing)self.recv_addSourceItemPricing()def send_addSourceItemPricing(self, sourceItemPricing):self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)args = addSourceItemPricing_args()args.sourceItemPricing = sourceItemPricingargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addSourceItemPricing(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addSourceItemPricing_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.cex is not None:raise result.cexreturndef getAllSourcePricing(self, itemId):"""Returns the list of source pricing information of an item.Raises an exception if item not found corresponding to itemIdParameters:- itemId"""self.send_getAllSourcePricing(itemId)return self.recv_getAllSourcePricing()def send_getAllSourcePricing(self, itemId):self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)args = getAllSourcePricing_args()args.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllSourcePricing(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllSourcePricing_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");def getItemForSource(self, item_id, sourceId):"""Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.Parameters:- item_id- sourceId"""self.send_getItemForSource(item_id, sourceId)return self.recv_getItemForSource()def send_getItemForSource(self, item_id, sourceId):self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)args = getItemForSource_args()args.item_id = item_idargs.sourceId = sourceIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItemForSource(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItemForSource_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");def searchItemsInRange(self, searchTerms, offset, limit):"""Searches items matching the the given terms in the catalog and returns results within the specified range.Parameters:- searchTerms- offset- limit"""self.send_searchItemsInRange(searchTerms, offset, limit)return self.recv_searchItemsInRange()def send_searchItemsInRange(self, searchTerms, offset, limit):self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)args = searchItemsInRange_args()args.searchTerms = searchTermsargs.offset = offsetargs.limit = limitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_searchItemsInRange(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = searchItemsInRange_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");def getSearchResultCount(self, searchTerms):"""Gets the count of search results for the given search terms so that the user can go through all the pages.Parameters:- searchTerms"""self.send_getSearchResultCount(searchTerms)return self.recv_getSearchResultCount()def send_getSearchResultCount(self, searchTerms):self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)args = getSearchResultCount_args()args.searchTerms = searchTermsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getSearchResultCount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getSearchResultCount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");def getProductNotifications(self, startDateTime):"""Returns a list of product notifications added after a supplied datetimeParameters:- startDateTime"""self.send_getProductNotifications(startDateTime)return self.recv_getProductNotifications()def send_getProductNotifications(self, startDateTime):self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)args = getProductNotifications_args()args.startDateTime = startDateTimeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getProductNotifications(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getProductNotifications_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");def getProductNotificationRequestCount(self, startDateTime):"""Returns a list of count of requests for product notification against each itemParameters:- startDateTime"""self.send_getProductNotificationRequestCount(startDateTime)return self.recv_getProductNotificationRequestCount()def send_getProductNotificationRequestCount(self, startDateTime):self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)args = getProductNotificationRequestCount_args()args.startDateTime = startDateTimeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getProductNotificationRequestCount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getProductNotificationRequestCount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");def addAuthorizationLog(self, itemId, username, reason):"""This method adds a log to authorize table with Item Id, username who authorized the change, reason.Parameters:- itemId- username- reason"""self.send_addAuthorizationLog(itemId, username, reason)return self.recv_addAuthorizationLog()def send_addAuthorizationLog(self, itemId, username, reason):self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)args = addAuthorizationLog_args()args.itemId = itemIdargs.username = usernameargs.reason = reasonargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addAuthorizationLog(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addAuthorizationLog_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");def getClearanceSaleCatalogIds(self, ):self.send_getClearanceSaleCatalogIds()return self.recv_getClearanceSaleCatalogIds()def send_getClearanceSaleCatalogIds(self, ):self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)args = getClearanceSaleCatalogIds_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getClearanceSaleCatalogIds(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getClearanceSaleCatalogIds_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):"""Parameters:- catalog_item_id- voucherType- voucherAmount"""self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)return self.recv_addupdateVoucherForItem()def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)args = addupdateVoucherForItem_args()args.catalog_item_id = catalog_item_idargs.voucherType = voucherTypeargs.voucherAmount = voucherAmountargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addupdateVoucherForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addupdateVoucherForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");def deleteVoucherForItem(self, catalog_item_id, voucherType):"""Parameters:- catalog_item_id- voucherType"""self.send_deleteVoucherForItem(catalog_item_id, voucherType)return self.recv_deleteVoucherForItem()def send_deleteVoucherForItem(self, catalog_item_id, voucherType):self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)args = deleteVoucherForItem_args()args.catalog_item_id = catalog_item_idargs.voucherType = voucherTypeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteVoucherForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteVoucherForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.cex is not None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");def getVoucherAmount(self, itemId, voucherType):"""Parameters:- itemId- voucherType"""self.send_getVoucherAmount(itemId, voucherType)return self.recv_getVoucherAmount()def send_getVoucherAmount(self, itemId, voucherType):self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)args = getVoucherAmount_args()args.itemId = itemIdargs.voucherType = voucherTypeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getVoucherAmount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getVoucherAmount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");def getAllItemVouchers(self, itemId):"""Parameters:- itemId"""self.send_getAllItemVouchers(itemId)return self.recv_getAllItemVouchers()def send_getAllItemVouchers(self, itemId):self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)args = getAllItemVouchers_args()args.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllItemVouchers(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllItemVouchers_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");def isValidCatalogItemId(self, catalog_item_id):"""Parameters:- catalog_item_id"""self.send_isValidCatalogItemId(catalog_item_id)return self.recv_isValidCatalogItemId()def send_isValidCatalogItemId(self, catalog_item_id):self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)args = isValidCatalogItemId_args()args.catalog_item_id = catalog_item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_isValidCatalogItemId(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = isValidCatalogItemId_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");def getVatPercentageForItem(self, itemId, price):"""Parameters:- itemId- price"""self.send_getVatPercentageForItem(itemId, price)return self.recv_getVatPercentageForItem()def send_getVatPercentageForItem(self, itemId, price):self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)args = getVatPercentageForItem_args()args.itemId = itemIdargs.price = priceargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getVatPercentageForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getVatPercentageForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");def getVatAmountForItem(self, itemId, price):"""Parameters:- itemId- price"""self.send_getVatAmountForItem(itemId, price)return self.recv_getVatAmountForItem()def send_getVatAmountForItem(self, itemId, price):self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)args = getVatAmountForItem_args()args.itemId = itemIdargs.price = priceargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getVatAmountForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getVatAmountForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):"""Parameters:- offset- limit"""self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)return self.recv_getAllIgnoredInventoryUpdateItemsList()def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)args = getAllIgnoredInventoryUpdateItemsList_args()args.offset = offsetargs.limit = limitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllIgnoredInventoryUpdateItemsList(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllIgnoredInventoryUpdateItemsList_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");def getAllAliveItems(self, ):self.send_getAllAliveItems()return self.recv_getAllAliveItems()def send_getAllAliveItems(self, ):self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)args = getAllAliveItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllAliveItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllAliveItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");def getInsuranceAmount(self, itemId, insurerId, quantity):"""This method returns the insurance amount needed to insure the given item for a given quantity.Parameters:- itemId- insurerId- quantity"""self.send_getInsuranceAmount(itemId, insurerId, quantity)return self.recv_getInsuranceAmount()def send_getInsuranceAmount(self, itemId, insurerId, quantity):self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)args = getInsuranceAmount_args()args.itemId = itemIdargs.insurerId = insurerIdargs.quantity = quantityargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getInsuranceAmount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getInsuranceAmount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");def getInsurer(self, insurerId):"""Parameters:- insurerId"""self.send_getInsurer(insurerId)return self.recv_getInsurer()def send_getInsurer(self, insurerId):self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)args = getInsurer_args()args.insurerId = insurerIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getInsurer(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getInsurer_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");def getAllInsurers(self, ):self.send_getAllInsurers()return self.recv_getAllInsurers()def send_getAllInsurers(self, ):self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)args = getAllInsurers_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllInsurers(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllInsurers_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):def __init__(self, handler):shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)self._processMap["addItem"] = Processor.process_addItemself._processMap["updateItem"] = Processor.process_updateItemself._processMap["isActive"] = Processor.process_isActiveself._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescriptionself._processMap["startItemOn"] = Processor.process_startItemOnself._processMap["retireItemOn"] = Processor.process_retireItemOnself._processMap["changeItemStatus"] = Processor.process_changeItemStatusself._processMap["getItem"] = Processor.process_getItemself._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogIdself._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogIdself._processMap["getAllItems"] = Processor.process_getAllItemsself._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatusself._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentCompleteself._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRangeself._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRangeself._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatusself._processMap["getBestSellers"] = Processor.process_getBestSellersself._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIdsself._processMap["getBestSellersCount"] = Processor.process_getBestSellersCountself._processMap["getBestDeals"] = Processor.process_getBestDealsself._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIdsself._processMap["getBestDealsCount"] = Processor.process_getBestDealsCountself._processMap["getComingSoon"] = Processor.process_getComingSoonself._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIdsself._processMap["getComingSoonCount"] = Processor.process_getComingSoonCountself._processMap["getLatestArrivals"] = Processor.process_getLatestArrivalsself._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIdsself._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCountself._processMap["generateNewEntityID"] = Processor.process_generateNewEntityIDself._processMap["addCategory"] = Processor.process_addCategoryself._processMap["getCategory"] = Processor.process_getCategoryself._processMap["getAllCategories"] = Processor.process_getAllCategoriesself._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItemsself._processMap["addSimilarItem"] = Processor.process_addSimilarItemself._processMap["addTag"] = Processor.process_addTagself._processMap["deleteEntityTag"] = Processor.process_deleteEntityTagself._processMap["deleteTag"] = Processor.process_deleteTagself._processMap["getAllTags"] = Processor.process_getAllTagsself._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagNameself._processMap["getAllEntityTags"] = Processor.process_getAllEntityTagsself._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItemself._processMap["checkSimilarItem"] = Processor.process_checkSimilarItemself._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatusself._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlagself._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlagself._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheetself._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIdsself._processMap["addProductNotification"] = Processor.process_addProductNotificationself._processMap["sendProductNotifications"] = Processor.process_sendProductNotificationsself._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategoryself._processMap["getAllBrands"] = Processor.process_getAllBrandsself._processMap["getAllSources"] = Processor.process_getAllSourcesself._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySourceself._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricingself._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricingself._processMap["getItemForSource"] = Processor.process_getItemForSourceself._processMap["searchItemsInRange"] = Processor.process_searchItemsInRangeself._processMap["getSearchResultCount"] = Processor.process_getSearchResultCountself._processMap["getProductNotifications"] = Processor.process_getProductNotificationsself._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCountself._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLogself._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIdsself._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItemself._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItemself._processMap["getVoucherAmount"] = Processor.process_getVoucherAmountself._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchersself._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemIdself._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItemself._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItemself._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsListself._processMap["getAllAliveItems"] = Processor.process_getAllAliveItemsself._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmountself._processMap["getInsurer"] = Processor.process_getInsurerself._processMap["getAllInsurers"] = Processor.process_getAllInsurersdef process(self, iprot, oprot):(name, type, seqid) = iprot.readMessageBegin()if name not in self._processMap:iprot.skip(TType.STRUCT)iprot.readMessageEnd()x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)x.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()returnelse:self._processMap[name](self, seqid, iprot, oprot)return Truedef process_addItem(self, seqid, iprot, oprot):args = addItem_args()args.read(iprot)iprot.readMessageEnd()result = addItem_result()try:result.success = self._handler.addItem(args.item)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateItem(self, seqid, iprot, oprot):args = updateItem_args()args.read(iprot)iprot.readMessageEnd()result = updateItem_result()try:result.success = self._handler.updateItem(args.item)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_isActive(self, seqid, iprot, oprot):args = isActive_args()args.read(iprot)iprot.readMessageEnd()result = isActive_result()try:result.success = self._handler.isActive(args.itemId)except CatalogServiceException, isex:result.isex = isexoprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getItemStatusDescription(self, seqid, iprot, oprot):args = getItemStatusDescription_args()args.read(iprot)iprot.readMessageEnd()result = getItemStatusDescription_result()try:result.success = self._handler.getItemStatusDescription(args.itemId)except CatalogServiceException, isex:result.isex = isexoprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_startItemOn(self, seqid, iprot, oprot):args = startItemOn_args()args.read(iprot)iprot.readMessageEnd()result = startItemOn_result()try:self._handler.startItemOn(args.item_id, args.timestamp)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_retireItemOn(self, seqid, iprot, oprot):args = retireItemOn_args()args.read(iprot)iprot.readMessageEnd()result = retireItemOn_result()try:self._handler.retireItemOn(args.item_id, args.timestamp)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_changeItemStatus(self, seqid, iprot, oprot):args = changeItemStatus_args()args.read(iprot)iprot.readMessageEnd()result = changeItemStatus_result()try:self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getItem(self, seqid, iprot, oprot):args = getItem_args()args.read(iprot)iprot.readMessageEnd()result = getItem_result()try:result.success = self._handler.getItem(args.item_id)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getItemsByCatalogId(self, seqid, iprot, oprot):args = getItemsByCatalogId_args()args.read(iprot)iprot.readMessageEnd()result = getItemsByCatalogId_result()try:result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):args = getValidItemsByCatalogId_args()args.read(iprot)iprot.readMessageEnd()result = getValidItemsByCatalogId_result()try:result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllItems(self, seqid, iprot, oprot):args = getAllItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllItems_result()try:result.success = self._handler.getAllItems(args.isActive)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllItemsByStatus(self, seqid, iprot, oprot):args = getAllItemsByStatus_args()args.read(iprot)iprot.readMessageEnd()result = getAllItemsByStatus_result()try:result.success = self._handler.getAllItemsByStatus(args.itemStatus)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_markItemAsContentComplete(self, seqid, iprot, oprot):args = markItemAsContentComplete_args()args.read(iprot)iprot.readMessageEnd()result = markItemAsContentComplete_result()try:result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllItemsInRange(self, seqid, iprot, oprot):args = getAllItemsInRange_args()args.read(iprot)iprot.readMessageEnd()result = getAllItemsInRange_result()try:result.success = self._handler.getAllItemsInRange(args.offset, args.limit)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):args = getAllItemsByStatusInRange_args()args.read(iprot)iprot.readMessageEnd()result = getAllItemsByStatusInRange_result()try:result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getItemCountByStatus(self, seqid, iprot, oprot):args = getItemCountByStatus_args()args.read(iprot)iprot.readMessageEnd()result = getItemCountByStatus_result()result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBestSellers(self, seqid, iprot, oprot):args = getBestSellers_args()args.read(iprot)iprot.readMessageEnd()result = getBestSellers_result()try:result.success = self._handler.getBestSellers()except CatalogServiceException, isex:result.isex = isexoprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):args = getBestSellersCatalogIds_args()args.read(iprot)iprot.readMessageEnd()result = getBestSellersCatalogIds_result()try:result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBestSellersCount(self, seqid, iprot, oprot):args = getBestSellersCount_args()args.read(iprot)iprot.readMessageEnd()result = getBestSellersCount_result()try:result.success = self._handler.getBestSellersCount()except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBestDeals(self, seqid, iprot, oprot):args = getBestDeals_args()args.read(iprot)iprot.readMessageEnd()result = getBestDeals_result()try:result.success = self._handler.getBestDeals()except CatalogServiceException, isex:result.isex = isexoprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):args = getBestDealsCatalogIds_args()args.read(iprot)iprot.readMessageEnd()result = getBestDealsCatalogIds_result()try:result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBestDealsCount(self, seqid, iprot, oprot):args = getBestDealsCount_args()args.read(iprot)iprot.readMessageEnd()result = getBestDealsCount_result()try:result.success = self._handler.getBestDealsCount()except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getComingSoon(self, seqid, iprot, oprot):args = getComingSoon_args()args.read(iprot)iprot.readMessageEnd()result = getComingSoon_result()try:result.success = self._handler.getComingSoon()except CatalogServiceException, isex:result.isex = isexoprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):args = getComingSoonCatalogIds_args()args.read(iprot)iprot.readMessageEnd()result = getComingSoonCatalogIds_result()try:result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getComingSoonCount(self, seqid, iprot, oprot):args = getComingSoonCount_args()args.read(iprot)iprot.readMessageEnd()result = getComingSoonCount_result()try:result.success = self._handler.getComingSoonCount()except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getLatestArrivals(self, seqid, iprot, oprot):args = getLatestArrivals_args()args.read(iprot)iprot.readMessageEnd()result = getLatestArrivals_result()try:result.success = self._handler.getLatestArrivals()except CatalogServiceException, isex:result.isex = isexoprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):args = getLatestArrivalsCatalogIds_args()args.read(iprot)iprot.readMessageEnd()result = getLatestArrivalsCatalogIds_result()try:result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getLatestArrivalsCount(self, seqid, iprot, oprot):args = getLatestArrivalsCount_args()args.read(iprot)iprot.readMessageEnd()result = getLatestArrivalsCount_result()try:result.success = self._handler.getLatestArrivalsCount()except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_generateNewEntityID(self, seqid, iprot, oprot):args = generateNewEntityID_args()args.read(iprot)iprot.readMessageEnd()result = generateNewEntityID_result()result.success = self._handler.generateNewEntityID()oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addCategory(self, seqid, iprot, oprot):args = addCategory_args()args.read(iprot)iprot.readMessageEnd()result = addCategory_result()result.success = self._handler.addCategory(args.category)oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCategory(self, seqid, iprot, oprot):args = getCategory_args()args.read(iprot)iprot.readMessageEnd()result = getCategory_result()result.success = self._handler.getCategory(args.id)oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllCategories(self, seqid, iprot, oprot):args = getAllCategories_args()args.read(iprot)iprot.readMessageEnd()result = getAllCategories_result()result.success = self._handler.getAllCategories()oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllSimilarItems(self, seqid, iprot, oprot):args = getAllSimilarItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllSimilarItems_result()result.success = self._handler.getAllSimilarItems(args.itemId)oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addSimilarItem(self, seqid, iprot, oprot):args = addSimilarItem_args()args.read(iprot)iprot.readMessageEnd()result = addSimilarItem_result()try:result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addTag(self, seqid, iprot, oprot):args = addTag_args()args.read(iprot)iprot.readMessageEnd()result = addTag_result()result.success = self._handler.addTag(args.displayName, args.itemId)oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteEntityTag(self, seqid, iprot, oprot):args = deleteEntityTag_args()args.read(iprot)iprot.readMessageEnd()result = deleteEntityTag_result()result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteTag(self, seqid, iprot, oprot):args = deleteTag_args()args.read(iprot)iprot.readMessageEnd()result = deleteTag_result()result.success = self._handler.deleteTag(args.displayName)oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllTags(self, seqid, iprot, oprot):args = getAllTags_args()args.read(iprot)iprot.readMessageEnd()result = getAllTags_result()result.success = self._handler.getAllTags()oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):args = getAllEntitiesByTagName_args()args.read(iprot)iprot.readMessageEnd()result = getAllEntitiesByTagName_result()result.success = self._handler.getAllEntitiesByTagName(args.displayName)oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllEntityTags(self, seqid, iprot, oprot):args = getAllEntityTags_args()args.read(iprot)iprot.readMessageEnd()result = getAllEntityTags_result()result.success = self._handler.getAllEntityTags()oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteSimilarItem(self, seqid, iprot, oprot):args = deleteSimilarItem_args()args.read(iprot)iprot.readMessageEnd()result = deleteSimilarItem_result()try:result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_checkSimilarItem(self, seqid, iprot, oprot):args = checkSimilarItem_args()args.read(iprot)iprot.readMessageEnd()result = checkSimilarItem_result()result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_validateRiskyStatus(self, seqid, iprot, oprot):args = validateRiskyStatus_args()args.read(iprot)iprot.readMessageEnd()result = validateRiskyStatus_result()self._handler.validateRiskyStatus(args.itemId)oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_changeItemRiskyFlag(self, seqid, iprot, oprot):args = changeItemRiskyFlag_args()args.read(iprot)iprot.readMessageEnd()result = changeItemRiskyFlag_result()self._handler.changeItemRiskyFlag(args.itemId, args.risky)oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):args = getItemsByRiskyFlag_args()args.read(iprot)iprot.readMessageEnd()result = getItemsByRiskyFlag_result()result.success = self._handler.getItemsByRiskyFlag()oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getItemsForMasterSheet(self, seqid, iprot, oprot):args = getItemsForMasterSheet_args()args.read(iprot)iprot.readMessageEnd()result = getItemsForMasterSheet_result()result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):args = getSimilarItemsCatalogIds_args()args.read(iprot)iprot.readMessageEnd()result = getSimilarItemsCatalogIds_result()result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addProductNotification(self, seqid, iprot, oprot):args = addProductNotification_args()args.read(iprot)iprot.readMessageEnd()result = addProductNotification_result()result.success = self._handler.addProductNotification(args.itemId, args.email)oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_sendProductNotifications(self, seqid, iprot, oprot):args = sendProductNotifications_args()args.read(iprot)iprot.readMessageEnd()result = sendProductNotifications_result()result.success = self._handler.sendProductNotifications()oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllBrandsByCategory(self, seqid, iprot, oprot):args = getAllBrandsByCategory_args()args.read(iprot)iprot.readMessageEnd()result = getAllBrandsByCategory_result()result.success = self._handler.getAllBrandsByCategory(args.categoryId)oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllBrands(self, seqid, iprot, oprot):args = getAllBrands_args()args.read(iprot)iprot.readMessageEnd()result = getAllBrands_result()result.success = self._handler.getAllBrands()oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllSources(self, seqid, iprot, oprot):args = getAllSources_args()args.read(iprot)iprot.readMessageEnd()result = getAllSources_result()result.success = self._handler.getAllSources()oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getItemPricingBySource(self, seqid, iprot, oprot):args = getItemPricingBySource_args()args.read(iprot)iprot.readMessageEnd()result = getItemPricingBySource_result()try:result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addSourceItemPricing(self, seqid, iprot, oprot):args = addSourceItemPricing_args()args.read(iprot)iprot.readMessageEnd()result = addSourceItemPricing_result()try:self._handler.addSourceItemPricing(args.sourceItemPricing)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllSourcePricing(self, seqid, iprot, oprot):args = getAllSourcePricing_args()args.read(iprot)iprot.readMessageEnd()result = getAllSourcePricing_result()try:result.success = self._handler.getAllSourcePricing(args.itemId)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getItemForSource(self, seqid, iprot, oprot):args = getItemForSource_args()args.read(iprot)iprot.readMessageEnd()result = getItemForSource_result()try:result.success = self._handler.getItemForSource(args.item_id, args.sourceId)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_searchItemsInRange(self, seqid, iprot, oprot):args = searchItemsInRange_args()args.read(iprot)iprot.readMessageEnd()result = searchItemsInRange_result()result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getSearchResultCount(self, seqid, iprot, oprot):args = getSearchResultCount_args()args.read(iprot)iprot.readMessageEnd()result = getSearchResultCount_result()result.success = self._handler.getSearchResultCount(args.searchTerms)oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getProductNotifications(self, seqid, iprot, oprot):args = getProductNotifications_args()args.read(iprot)iprot.readMessageEnd()result = getProductNotifications_result()result.success = self._handler.getProductNotifications(args.startDateTime)oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):args = getProductNotificationRequestCount_args()args.read(iprot)iprot.readMessageEnd()result = getProductNotificationRequestCount_result()result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addAuthorizationLog(self, seqid, iprot, oprot):args = addAuthorizationLog_args()args.read(iprot)iprot.readMessageEnd()result = addAuthorizationLog_result()try:result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):args = getClearanceSaleCatalogIds_args()args.read(iprot)iprot.readMessageEnd()result = getClearanceSaleCatalogIds_result()try:result.success = self._handler.getClearanceSaleCatalogIds()except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addupdateVoucherForItem(self, seqid, iprot, oprot):args = addupdateVoucherForItem_args()args.read(iprot)iprot.readMessageEnd()result = addupdateVoucherForItem_result()try:result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteVoucherForItem(self, seqid, iprot, oprot):args = deleteVoucherForItem_args()args.read(iprot)iprot.readMessageEnd()result = deleteVoucherForItem_result()try:result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getVoucherAmount(self, seqid, iprot, oprot):args = getVoucherAmount_args()args.read(iprot)iprot.readMessageEnd()result = getVoucherAmount_result()result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllItemVouchers(self, seqid, iprot, oprot):args = getAllItemVouchers_args()args.read(iprot)iprot.readMessageEnd()result = getAllItemVouchers_result()result.success = self._handler.getAllItemVouchers(args.itemId)oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_isValidCatalogItemId(self, seqid, iprot, oprot):args = isValidCatalogItemId_args()args.read(iprot)iprot.readMessageEnd()result = isValidCatalogItemId_result()result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getVatPercentageForItem(self, seqid, iprot, oprot):args = getVatPercentageForItem_args()args.read(iprot)iprot.readMessageEnd()result = getVatPercentageForItem_result()result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getVatAmountForItem(self, seqid, iprot, oprot):args = getVatAmountForItem_args()args.read(iprot)iprot.readMessageEnd()result = getVatAmountForItem_result()result.success = self._handler.getVatAmountForItem(args.itemId, args.price)oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):args = getAllIgnoredInventoryUpdateItemsList_args()args.read(iprot)iprot.readMessageEnd()result = getAllIgnoredInventoryUpdateItemsList_result()result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllAliveItems(self, seqid, iprot, oprot):args = getAllAliveItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllAliveItems_result()result.success = self._handler.getAllAliveItems()oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getInsuranceAmount(self, seqid, iprot, oprot):args = getInsuranceAmount_args()args.read(iprot)iprot.readMessageEnd()result = getInsuranceAmount_result()result.success = self._handler.getInsuranceAmount(args.itemId, args.insurerId, args.quantity)oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getInsurer(self, seqid, iprot, oprot):args = getInsurer_args()args.read(iprot)iprot.readMessageEnd()result = getInsurer_result()result.success = self._handler.getInsurer(args.insurerId)oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllInsurers(self, seqid, iprot, oprot):args = getAllInsurers_args()args.read(iprot)iprot.readMessageEnd()result = getAllInsurers_result()result.success = self._handler.getAllInsurers()oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()# HELPER FUNCTIONS AND STRUCTURESclass addItem_args:"""Attributes:- item"""thrift_spec = (None, # 0(1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1)def __init__(self, item=None,):self.item = itemdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.item = Item()self.item.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addItem_args')if self.item is not None:oprot.writeFieldBegin('item', TType.STRUCT, 1)self.item.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addItem_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updateItem_args:"""Attributes:- item"""thrift_spec = (None, # 0(1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1)def __init__(self, item=None,):self.item = itemdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.item = Item()self.item.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('updateItem_args')if self.item is not None:oprot.writeFieldBegin('item', TType.STRUCT, 1)self.item.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updateItem_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('updateItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class isActive_args:"""Attributes:- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1)def __init__(self, itemId=None,):self.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('isActive_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class isActive_result:"""Attributes:- success- isex"""thrift_spec = ((0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0(1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, isex=None,):self.success = successself.isex = isexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = ItemShippingInfo()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.isex = CatalogServiceException()self.isex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('isActive_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.isex is not None:oprot.writeFieldBegin('isex', TType.STRUCT, 1)self.isex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemStatusDescription_args:"""Attributes:- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1)def __init__(self, itemId=None,):self.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemStatusDescription_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemStatusDescription_result:"""Attributes:- success- isex"""thrift_spec = ((0, TType.STRING, 'success', None, None, ), # 0(1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, isex=None,):self.success = successself.isex = isexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRING:self.success = iprot.readString();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.isex = CatalogServiceException()self.isex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemStatusDescription_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRING, 0)oprot.writeString(self.success)oprot.writeFieldEnd()if self.isex is not None:oprot.writeFieldBegin('isex', TType.STRUCT, 1)self.isex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class startItemOn_args:"""Attributes:- item_id- timestamp"""thrift_spec = (None, # 0(1, TType.I64, 'item_id', None, None, ), # 1(2, TType.I64, 'timestamp', None, None, ), # 2)def __init__(self, item_id=None, timestamp=None,):self.item_id = item_idself.timestamp = timestampdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.item_id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.timestamp = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('startItemOn_args')if self.item_id is not None:oprot.writeFieldBegin('item_id', TType.I64, 1)oprot.writeI64(self.item_id)oprot.writeFieldEnd()if self.timestamp is not None:oprot.writeFieldBegin('timestamp', TType.I64, 2)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class startItemOn_result:"""Attributes:- cex"""thrift_spec = (None, # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, cex=None,):self.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('startItemOn_result')if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class retireItemOn_args:"""Attributes:- item_id- timestamp"""thrift_spec = (None, # 0(1, TType.I64, 'item_id', None, None, ), # 1(2, TType.I64, 'timestamp', None, None, ), # 2)def __init__(self, item_id=None, timestamp=None,):self.item_id = item_idself.timestamp = timestampdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.item_id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.timestamp = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('retireItemOn_args')if self.item_id is not None:oprot.writeFieldBegin('item_id', TType.I64, 1)oprot.writeI64(self.item_id)oprot.writeFieldEnd()if self.timestamp is not None:oprot.writeFieldBegin('timestamp', TType.I64, 2)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class retireItemOn_result:"""Attributes:- cex"""thrift_spec = (None, # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, cex=None,):self.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('retireItemOn_result')if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class changeItemStatus_args:"""Attributes:- item_id- timestamp- newstatus"""thrift_spec = (None, # 0(1, TType.I64, 'item_id', None, None, ), # 1(2, TType.I64, 'timestamp', None, None, ), # 2(3, TType.I32, 'newstatus', None, None, ), # 3)def __init__(self, item_id=None, timestamp=None, newstatus=None,):self.item_id = item_idself.timestamp = timestampself.newstatus = newstatusdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.item_id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.timestamp = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I32:self.newstatus = iprot.readI32();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('changeItemStatus_args')if self.item_id is not None:oprot.writeFieldBegin('item_id', TType.I64, 1)oprot.writeI64(self.item_id)oprot.writeFieldEnd()if self.timestamp is not None:oprot.writeFieldBegin('timestamp', TType.I64, 2)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()if self.newstatus is not None:oprot.writeFieldBegin('newstatus', TType.I32, 3)oprot.writeI32(self.newstatus)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class changeItemStatus_result:"""Attributes:- cex"""thrift_spec = (None, # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, cex=None,):self.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('changeItemStatus_result')if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItem_args:"""Attributes:- item_id"""thrift_spec = (None, # 0(1, TType.I64, 'item_id', None, None, ), # 1)def __init__(self, item_id=None,):self.item_id = item_iddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.item_id = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItem_args')if self.item_id is not None:oprot.writeFieldBegin('item_id', TType.I64, 1)oprot.writeI64(self.item_id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItem_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = Item()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemsByCatalogId_args:"""Attributes:- catalog_item_id"""thrift_spec = (None, # 0(1, TType.I64, 'catalog_item_id', None, None, ), # 1)def __init__(self, catalog_item_id=None,):self.catalog_item_id = catalog_item_iddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.catalog_item_id = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemsByCatalogId_args')if self.catalog_item_id is not None:oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)oprot.writeI64(self.catalog_item_id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemsByCatalogId_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype19, _size16) = iprot.readListBegin()for _i20 in xrange(_size16):_elem21 = Item()_elem21.read(iprot)self.success.append(_elem21)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemsByCatalogId_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter22 in self.success:iter22.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getValidItemsByCatalogId_args:"""Attributes:- catalog_item_id"""thrift_spec = (None, # 0(1, TType.I64, 'catalog_item_id', None, None, ), # 1)def __init__(self, catalog_item_id=None,):self.catalog_item_id = catalog_item_iddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.catalog_item_id = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getValidItemsByCatalogId_args')if self.catalog_item_id is not None:oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)oprot.writeI64(self.catalog_item_id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getValidItemsByCatalogId_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype26, _size23) = iprot.readListBegin()for _i27 in xrange(_size23):_elem28 = Item()_elem28.read(iprot)self.success.append(_elem28)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getValidItemsByCatalogId_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter29 in self.success:iter29.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllItems_args:"""Attributes:- isActive"""thrift_spec = (None, # 0(1, TType.BOOL, 'isActive', None, None, ), # 1)def __init__(self, isActive=None,):self.isActive = isActivedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.BOOL:self.isActive = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllItems_args')if self.isActive is not None:oprot.writeFieldBegin('isActive', TType.BOOL, 1)oprot.writeBool(self.isActive)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllItems_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype33, _size30) = iprot.readListBegin()for _i34 in xrange(_size30):_elem35 = Item()_elem35.read(iprot)self.success.append(_elem35)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter36 in self.success:iter36.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllItemsByStatus_args:"""Attributes:- itemStatus"""thrift_spec = (None, # 0(1, TType.I32, 'itemStatus', None, None, ), # 1)def __init__(self, itemStatus=None,):self.itemStatus = itemStatusdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I32:self.itemStatus = iprot.readI32();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllItemsByStatus_args')if self.itemStatus is not None:oprot.writeFieldBegin('itemStatus', TType.I32, 1)oprot.writeI32(self.itemStatus)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllItemsByStatus_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype40, _size37) = iprot.readListBegin()for _i41 in xrange(_size37):_elem42 = Item()_elem42.read(iprot)self.success.append(_elem42)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllItemsByStatus_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter43 in self.success:iter43.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class markItemAsContentComplete_args:"""Attributes:- entityId- category- brand- modelName- modelNumber"""thrift_spec = (None, # 0(1, TType.I64, 'entityId', None, None, ), # 1(2, TType.I64, 'category', None, None, ), # 2(3, TType.STRING, 'brand', None, None, ), # 3(4, TType.STRING, 'modelName', None, None, ), # 4(5, TType.STRING, 'modelNumber', None, None, ), # 5)def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):self.entityId = entityIdself.category = categoryself.brand = brandself.modelName = modelNameself.modelNumber = modelNumberdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.entityId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.category = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.brand = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.modelName = iprot.readString();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.STRING:self.modelNumber = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('markItemAsContentComplete_args')if self.entityId is not None:oprot.writeFieldBegin('entityId', TType.I64, 1)oprot.writeI64(self.entityId)oprot.writeFieldEnd()if self.category is not None:oprot.writeFieldBegin('category', TType.I64, 2)oprot.writeI64(self.category)oprot.writeFieldEnd()if self.brand is not None:oprot.writeFieldBegin('brand', TType.STRING, 3)oprot.writeString(self.brand)oprot.writeFieldEnd()if self.modelName is not None:oprot.writeFieldBegin('modelName', TType.STRING, 4)oprot.writeString(self.modelName)oprot.writeFieldEnd()if self.modelNumber is not None:oprot.writeFieldBegin('modelNumber', TType.STRING, 5)oprot.writeString(self.modelNumber)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class markItemAsContentComplete_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('markItemAsContentComplete_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllItemsInRange_args:"""Attributes:- offset- limit"""thrift_spec = (None, # 0(1, TType.I64, 'offset', None, None, ), # 1(2, TType.I64, 'limit', None, None, ), # 2)def __init__(self, offset=None, limit=None,):self.offset = offsetself.limit = limitdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.offset = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.limit = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllItemsInRange_args')if self.offset is not None:oprot.writeFieldBegin('offset', TType.I64, 1)oprot.writeI64(self.offset)oprot.writeFieldEnd()if self.limit is not None:oprot.writeFieldBegin('limit', TType.I64, 2)oprot.writeI64(self.limit)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllItemsInRange_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype47, _size44) = iprot.readListBegin()for _i48 in xrange(_size44):_elem49 = Item()_elem49.read(iprot)self.success.append(_elem49)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllItemsInRange_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter50 in self.success:iter50.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllItemsByStatusInRange_args:"""Attributes:- itemStatus- offset- limit"""thrift_spec = (None, # 0(1, TType.I32, 'itemStatus', None, None, ), # 1(2, TType.I64, 'offset', None, None, ), # 2(3, TType.I64, 'limit', None, None, ), # 3)def __init__(self, itemStatus=None, offset=None, limit=None,):self.itemStatus = itemStatusself.offset = offsetself.limit = limitdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I32:self.itemStatus = iprot.readI32();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.offset = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.limit = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllItemsByStatusInRange_args')if self.itemStatus is not None:oprot.writeFieldBegin('itemStatus', TType.I32, 1)oprot.writeI32(self.itemStatus)oprot.writeFieldEnd()if self.offset is not None:oprot.writeFieldBegin('offset', TType.I64, 2)oprot.writeI64(self.offset)oprot.writeFieldEnd()if self.limit is not None:oprot.writeFieldBegin('limit', TType.I64, 3)oprot.writeI64(self.limit)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllItemsByStatusInRange_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype54, _size51) = iprot.readListBegin()for _i55 in xrange(_size51):_elem56 = Item()_elem56.read(iprot)self.success.append(_elem56)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllItemsByStatusInRange_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter57 in self.success:iter57.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemCountByStatus_args:"""Attributes:- useStatus- itemStatus"""thrift_spec = (None, # 0(1, TType.BOOL, 'useStatus', None, None, ), # 1(2, TType.I32, 'itemStatus', None, None, ), # 2)def __init__(self, useStatus=None, itemStatus=None,):self.useStatus = useStatusself.itemStatus = itemStatusdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.BOOL:self.useStatus = iprot.readBool();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.itemStatus = iprot.readI32();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemCountByStatus_args')if self.useStatus is not None:oprot.writeFieldBegin('useStatus', TType.BOOL, 1)oprot.writeBool(self.useStatus)oprot.writeFieldEnd()if self.itemStatus is not None:oprot.writeFieldBegin('itemStatus', TType.I32, 2)oprot.writeI32(self.itemStatus)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemCountByStatus_result:"""Attributes:- success"""thrift_spec = ((0, TType.I32, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I32:self.success = iprot.readI32();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemCountByStatus_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I32, 0)oprot.writeI32(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestSellers_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestSellers_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestSellers_result:"""Attributes:- success- isex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, isex=None,):self.success = successself.isex = isexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype61, _size58) = iprot.readListBegin()for _i62 in xrange(_size58):_elem63 = Item()_elem63.read(iprot)self.success.append(_elem63)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.isex = CatalogServiceException()self.isex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestSellers_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter64 in self.success:iter64.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.isex is not None:oprot.writeFieldBegin('isex', TType.STRUCT, 1)self.isex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestSellersCatalogIds_args:"""Attributes:- beginIndex- totalItems- brand- category"""thrift_spec = (None, # 0(1, TType.I64, 'beginIndex', None, None, ), # 1(2, TType.I64, 'totalItems', None, None, ), # 2(3, TType.STRING, 'brand', None, None, ), # 3(4, TType.I64, 'category', None, None, ), # 4)def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):self.beginIndex = beginIndexself.totalItems = totalItemsself.brand = brandself.category = categorydef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.beginIndex = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.totalItems = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.brand = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.category = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestSellersCatalogIds_args')if self.beginIndex is not None:oprot.writeFieldBegin('beginIndex', TType.I64, 1)oprot.writeI64(self.beginIndex)oprot.writeFieldEnd()if self.totalItems is not None:oprot.writeFieldBegin('totalItems', TType.I64, 2)oprot.writeI64(self.totalItems)oprot.writeFieldEnd()if self.brand is not None:oprot.writeFieldBegin('brand', TType.STRING, 3)oprot.writeString(self.brand)oprot.writeFieldEnd()if self.category is not None:oprot.writeFieldBegin('category', TType.I64, 4)oprot.writeI64(self.category)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestSellersCatalogIds_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.I64,None), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype68, _size65) = iprot.readListBegin()for _i69 in xrange(_size65):_elem70 = iprot.readI64();self.success.append(_elem70)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestSellersCatalogIds_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter71 in self.success:oprot.writeI64(iter71)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestSellersCount_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestSellersCount_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestSellersCount_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestSellersCount_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestDeals_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestDeals_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestDeals_result:"""Attributes:- success- isex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, isex=None,):self.success = successself.isex = isexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype75, _size72) = iprot.readListBegin()for _i76 in xrange(_size72):_elem77 = Item()_elem77.read(iprot)self.success.append(_elem77)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.isex = CatalogServiceException()self.isex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestDeals_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter78 in self.success:iter78.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.isex is not None:oprot.writeFieldBegin('isex', TType.STRUCT, 1)self.isex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestDealsCatalogIds_args:"""Attributes:- beginIndex- totalItems- brand- category"""thrift_spec = (None, # 0(1, TType.I64, 'beginIndex', None, None, ), # 1(2, TType.I64, 'totalItems', None, None, ), # 2(3, TType.STRING, 'brand', None, None, ), # 3(4, TType.I64, 'category', None, None, ), # 4)def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):self.beginIndex = beginIndexself.totalItems = totalItemsself.brand = brandself.category = categorydef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.beginIndex = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.totalItems = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.brand = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.category = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestDealsCatalogIds_args')if self.beginIndex is not None:oprot.writeFieldBegin('beginIndex', TType.I64, 1)oprot.writeI64(self.beginIndex)oprot.writeFieldEnd()if self.totalItems is not None:oprot.writeFieldBegin('totalItems', TType.I64, 2)oprot.writeI64(self.totalItems)oprot.writeFieldEnd()if self.brand is not None:oprot.writeFieldBegin('brand', TType.STRING, 3)oprot.writeString(self.brand)oprot.writeFieldEnd()if self.category is not None:oprot.writeFieldBegin('category', TType.I64, 4)oprot.writeI64(self.category)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestDealsCatalogIds_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.I64,None), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype82, _size79) = iprot.readListBegin()for _i83 in xrange(_size79):_elem84 = iprot.readI64();self.success.append(_elem84)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestDealsCatalogIds_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter85 in self.success:oprot.writeI64(iter85)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestDealsCount_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestDealsCount_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBestDealsCount_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBestDealsCount_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getComingSoon_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getComingSoon_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getComingSoon_result:"""Attributes:- success- isex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, isex=None,):self.success = successself.isex = isexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype89, _size86) = iprot.readListBegin()for _i90 in xrange(_size86):_elem91 = Item()_elem91.read(iprot)self.success.append(_elem91)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.isex = CatalogServiceException()self.isex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getComingSoon_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter92 in self.success:iter92.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.isex is not None:oprot.writeFieldBegin('isex', TType.STRUCT, 1)self.isex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getComingSoonCatalogIds_args:"""Attributes:- beginIndex- totalItems- brand- category"""thrift_spec = (None, # 0(1, TType.I64, 'beginIndex', None, None, ), # 1(2, TType.I64, 'totalItems', None, None, ), # 2(3, TType.STRING, 'brand', None, None, ), # 3(4, TType.I64, 'category', None, None, ), # 4)def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):self.beginIndex = beginIndexself.totalItems = totalItemsself.brand = brandself.category = categorydef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.beginIndex = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.totalItems = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.brand = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.category = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getComingSoonCatalogIds_args')if self.beginIndex is not None:oprot.writeFieldBegin('beginIndex', TType.I64, 1)oprot.writeI64(self.beginIndex)oprot.writeFieldEnd()if self.totalItems is not None:oprot.writeFieldBegin('totalItems', TType.I64, 2)oprot.writeI64(self.totalItems)oprot.writeFieldEnd()if self.brand is not None:oprot.writeFieldBegin('brand', TType.STRING, 3)oprot.writeString(self.brand)oprot.writeFieldEnd()if self.category is not None:oprot.writeFieldBegin('category', TType.I64, 4)oprot.writeI64(self.category)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getComingSoonCatalogIds_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.I64,None), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype96, _size93) = iprot.readListBegin()for _i97 in xrange(_size93):_elem98 = iprot.readI64();self.success.append(_elem98)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getComingSoonCatalogIds_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter99 in self.success:oprot.writeI64(iter99)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getComingSoonCount_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getComingSoonCount_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getComingSoonCount_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getComingSoonCount_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getLatestArrivals_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getLatestArrivals_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getLatestArrivals_result:"""Attributes:- success- isex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, isex=None,):self.success = successself.isex = isexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype103, _size100) = iprot.readListBegin()for _i104 in xrange(_size100):_elem105 = Item()_elem105.read(iprot)self.success.append(_elem105)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.isex = CatalogServiceException()self.isex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getLatestArrivals_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter106 in self.success:iter106.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.isex is not None:oprot.writeFieldBegin('isex', TType.STRUCT, 1)self.isex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getLatestArrivalsCatalogIds_args:"""Attributes:- beginIndex- totalItems- brand- categories"""thrift_spec = (None, # 0(1, TType.I64, 'beginIndex', None, None, ), # 1(2, TType.I64, 'totalItems', None, None, ), # 2(3, TType.STRING, 'brand', None, None, ), # 3(4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4)def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):self.beginIndex = beginIndexself.totalItems = totalItemsself.brand = brandself.categories = categoriesdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.beginIndex = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.totalItems = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.brand = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.LIST:self.categories = [](_etype110, _size107) = iprot.readListBegin()for _i111 in xrange(_size107):_elem112 = iprot.readI64();self.categories.append(_elem112)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getLatestArrivalsCatalogIds_args')if self.beginIndex is not None:oprot.writeFieldBegin('beginIndex', TType.I64, 1)oprot.writeI64(self.beginIndex)oprot.writeFieldEnd()if self.totalItems is not None:oprot.writeFieldBegin('totalItems', TType.I64, 2)oprot.writeI64(self.totalItems)oprot.writeFieldEnd()if self.brand is not None:oprot.writeFieldBegin('brand', TType.STRING, 3)oprot.writeString(self.brand)oprot.writeFieldEnd()if self.categories is not None:oprot.writeFieldBegin('categories', TType.LIST, 4)oprot.writeListBegin(TType.I64, len(self.categories))for iter113 in self.categories:oprot.writeI64(iter113)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getLatestArrivalsCatalogIds_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.I64,None), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype117, _size114) = iprot.readListBegin()for _i118 in xrange(_size114):_elem119 = iprot.readI64();self.success.append(_elem119)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getLatestArrivalsCatalogIds_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter120 in self.success:oprot.writeI64(iter120)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getLatestArrivalsCount_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getLatestArrivalsCount_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getLatestArrivalsCount_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getLatestArrivalsCount_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class generateNewEntityID_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('generateNewEntityID_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class generateNewEntityID_result:"""Attributes:- success"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('generateNewEntityID_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addCategory_args:"""Attributes:- category"""thrift_spec = (None, # 0(1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1)def __init__(self, category=None,):self.category = categorydef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.category = Category()self.category.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addCategory_args')if self.category is not None:oprot.writeFieldBegin('category', TType.STRUCT, 1)self.category.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addCategory_result:"""Attributes:- success"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addCategory_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCategory_args:"""Attributes:- id"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1)def __init__(self, id=None,):self.id = iddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.id = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getCategory_args')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCategory_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = Category()self.success.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getCategory_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllCategories_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllCategories_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllCategories_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype124, _size121) = iprot.readListBegin()for _i125 in xrange(_size121):_elem126 = Category()_elem126.read(iprot)self.success.append(_elem126)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllCategories_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter127 in self.success:iter127.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllSimilarItems_args:"""Attributes:- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1)def __init__(self, itemId=None,):self.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllSimilarItems_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllSimilarItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype131, _size128) = iprot.readListBegin()for _i132 in xrange(_size128):_elem133 = Item()_elem133.read(iprot)self.success.append(_elem133)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllSimilarItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter134 in self.success:iter134.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addSimilarItem_args:"""Attributes:- itemId- catalogItemId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I64, 'catalogItemId', None, None, ), # 2)def __init__(self, itemId=None, catalogItemId=None,):self.itemId = itemIdself.catalogItemId = catalogItemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.catalogItemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addSimilarItem_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.catalogItemId is not None:oprot.writeFieldBegin('catalogItemId', TType.I64, 2)oprot.writeI64(self.catalogItemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addSimilarItem_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = Item()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addSimilarItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addTag_args:"""Attributes:- displayName- itemId"""thrift_spec = (None, # 0(1, TType.STRING, 'displayName', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2)def __init__(self, displayName=None, itemId=None,):self.displayName = displayNameself.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.displayName = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addTag_args')if self.displayName is not None:oprot.writeFieldBegin('displayName', TType.STRING, 1)oprot.writeString(self.displayName)oprot.writeFieldEnd()if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 2)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addTag_result:"""Attributes:- success"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addTag_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteEntityTag_args:"""Attributes:- displayName- itemId"""thrift_spec = (None, # 0(1, TType.STRING, 'displayName', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2)def __init__(self, displayName=None, itemId=None,):self.displayName = displayNameself.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.displayName = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteEntityTag_args')if self.displayName is not None:oprot.writeFieldBegin('displayName', TType.STRING, 1)oprot.writeString(self.displayName)oprot.writeFieldEnd()if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 2)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteEntityTag_result:"""Attributes:- success"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteEntityTag_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteTag_args:"""Attributes:- displayName"""thrift_spec = (None, # 0(1, TType.STRING, 'displayName', None, None, ), # 1)def __init__(self, displayName=None,):self.displayName = displayNamedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.displayName = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteTag_args')if self.displayName is not None:oprot.writeFieldBegin('displayName', TType.STRING, 1)oprot.writeString(self.displayName)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteTag_result:"""Attributes:- success"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteTag_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllTags_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllTags_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllTags_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype138, _size135) = iprot.readListBegin()for _i139 in xrange(_size135):_elem140 = iprot.readString();self.success.append(_elem140)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllTags_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRING, len(self.success))for iter141 in self.success:oprot.writeString(iter141)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllEntitiesByTagName_args:"""Attributes:- displayName"""thrift_spec = (None, # 0(1, TType.STRING, 'displayName', None, None, ), # 1)def __init__(self, displayName=None,):self.displayName = displayNamedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.displayName = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllEntitiesByTagName_args')if self.displayName is not None:oprot.writeFieldBegin('displayName', TType.STRING, 1)oprot.writeString(self.displayName)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllEntitiesByTagName_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.I64,None), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype145, _size142) = iprot.readListBegin()for _i146 in xrange(_size142):_elem147 = iprot.readI64();self.success.append(_elem147)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllEntitiesByTagName_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter148 in self.success:oprot.writeI64(iter148)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllEntityTags_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllEntityTags_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllEntityTags_result:"""Attributes:- success"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.MAP:self.success = {}(_ktype150, _vtype151, _size149 ) = iprot.readMapBegin()for _i153 in xrange(_size149):_key154 = iprot.readI64();_val155 = [](_etype159, _size156) = iprot.readListBegin()for _i160 in xrange(_size156):_elem161 = iprot.readString();_val155.append(_elem161)iprot.readListEnd()self.success[_key154] = _val155iprot.readMapEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllEntityTags_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))for kiter162,viter163 in self.success.items():oprot.writeI64(kiter162)oprot.writeListBegin(TType.STRING, len(viter163))for iter164 in viter163:oprot.writeString(iter164)oprot.writeListEnd()oprot.writeMapEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteSimilarItem_args:"""Attributes:- itemId- catalogItemId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I64, 'catalogItemId', None, None, ), # 2)def __init__(self, itemId=None, catalogItemId=None,):self.itemId = itemIdself.catalogItemId = catalogItemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.catalogItemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteSimilarItem_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.catalogItemId is not None:oprot.writeFieldBegin('catalogItemId', TType.I64, 2)oprot.writeI64(self.catalogItemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteSimilarItem_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteSimilarItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class checkSimilarItem_args:"""Attributes:- brand- modelNumber- modelName- color"""thrift_spec = (None, # 0(1, TType.STRING, 'brand', None, None, ), # 1(2, TType.STRING, 'modelNumber', None, None, ), # 2(3, TType.STRING, 'modelName', None, None, ), # 3(4, TType.STRING, 'color', None, None, ), # 4)def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):self.brand = brandself.modelNumber = modelNumberself.modelName = modelNameself.color = colordef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.brand = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.modelNumber = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.modelName = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.color = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('checkSimilarItem_args')if self.brand is not None:oprot.writeFieldBegin('brand', TType.STRING, 1)oprot.writeString(self.brand)oprot.writeFieldEnd()if self.modelNumber is not None:oprot.writeFieldBegin('modelNumber', TType.STRING, 2)oprot.writeString(self.modelNumber)oprot.writeFieldEnd()if self.modelName is not None:oprot.writeFieldBegin('modelName', TType.STRING, 3)oprot.writeString(self.modelName)oprot.writeFieldEnd()if self.color is not None:oprot.writeFieldBegin('color', TType.STRING, 4)oprot.writeString(self.color)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class checkSimilarItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('checkSimilarItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class validateRiskyStatus_args:"""Attributes:- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1)def __init__(self, itemId=None,):self.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('validateRiskyStatus_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class validateRiskyStatus_result:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('validateRiskyStatus_result')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class changeItemRiskyFlag_args:"""Attributes:- itemId- risky"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.BOOL, 'risky', None, None, ), # 2)def __init__(self, itemId=None, risky=None,):self.itemId = itemIdself.risky = riskydef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.risky = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('changeItemRiskyFlag_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.risky is not None:oprot.writeFieldBegin('risky', TType.BOOL, 2)oprot.writeBool(self.risky)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class changeItemRiskyFlag_result:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('changeItemRiskyFlag_result')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemsByRiskyFlag_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemsByRiskyFlag_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemsByRiskyFlag_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype168, _size165) = iprot.readListBegin()for _i169 in xrange(_size165):_elem170 = Item()_elem170.read(iprot)self.success.append(_elem170)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemsByRiskyFlag_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter171 in self.success:iter171.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemsForMasterSheet_args:"""Attributes:- category- brand"""thrift_spec = (None, # 0(1, TType.STRING, 'category', None, None, ), # 1(2, TType.STRING, 'brand', None, None, ), # 2)def __init__(self, category=None, brand=None,):self.category = categoryself.brand = branddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.category = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.brand = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemsForMasterSheet_args')if self.category is not None:oprot.writeFieldBegin('category', TType.STRING, 1)oprot.writeString(self.category)oprot.writeFieldEnd()if self.brand is not None:oprot.writeFieldBegin('brand', TType.STRING, 2)oprot.writeString(self.brand)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemsForMasterSheet_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype175, _size172) = iprot.readListBegin()for _i176 in xrange(_size172):_elem177 = Item()_elem177.read(iprot)self.success.append(_elem177)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemsForMasterSheet_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter178 in self.success:iter178.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getSimilarItemsCatalogIds_args:"""Attributes:- beginIndex- totalItems- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'beginIndex', None, None, ), # 1(2, TType.I64, 'totalItems', None, None, ), # 2(3, TType.I64, 'itemId', None, None, ), # 3)def __init__(self, beginIndex=None, totalItems=None, itemId=None,):self.beginIndex = beginIndexself.totalItems = totalItemsself.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.beginIndex = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.totalItems = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getSimilarItemsCatalogIds_args')if self.beginIndex is not None:oprot.writeFieldBegin('beginIndex', TType.I64, 1)oprot.writeI64(self.beginIndex)oprot.writeFieldEnd()if self.totalItems is not None:oprot.writeFieldBegin('totalItems', TType.I64, 2)oprot.writeI64(self.totalItems)oprot.writeFieldEnd()if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 3)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getSimilarItemsCatalogIds_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.I64,None), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype182, _size179) = iprot.readListBegin()for _i183 in xrange(_size179):_elem184 = iprot.readI64();self.success.append(_elem184)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getSimilarItemsCatalogIds_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter185 in self.success:oprot.writeI64(iter185)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addProductNotification_args:"""Attributes:- itemId"""thrift_spec = Nonedef __init__(self, itemId=None, email=None,):self.itemId = itemIdself.email = emaildef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == -1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == -2:if ftype == TType.STRING:self.email = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addProductNotification_args')if self.email is not None:oprot.writeFieldBegin('email', TType.STRING, -2)oprot.writeString(self.email)oprot.writeFieldEnd()if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, -1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addProductNotification_result:"""Attributes:- success"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addProductNotification_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class sendProductNotifications_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('sendProductNotifications_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class sendProductNotifications_result:"""Attributes:- success"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('sendProductNotifications_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllBrandsByCategory_args:"""Attributes:- categoryId"""thrift_spec = (None, # 0(1, TType.I64, 'categoryId', None, None, ), # 1)def __init__(self, categoryId=None,):self.categoryId = categoryIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.categoryId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllBrandsByCategory_args')if self.categoryId is not None:oprot.writeFieldBegin('categoryId', TType.I64, 1)oprot.writeI64(self.categoryId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllBrandsByCategory_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype189, _size186) = iprot.readListBegin()for _i190 in xrange(_size186):_elem191 = iprot.readString();self.success.append(_elem191)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllBrandsByCategory_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRING, len(self.success))for iter192 in self.success:oprot.writeString(iter192)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllBrands_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllBrands_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllBrands_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype196, _size193) = iprot.readListBegin()for _i197 in xrange(_size193):_elem198 = iprot.readString();self.success.append(_elem198)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllBrands_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRING, len(self.success))for iter199 in self.success:oprot.writeString(iter199)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllSources_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllSources_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllSources_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype203, _size200) = iprot.readListBegin()for _i204 in xrange(_size200):_elem205 = Source()_elem205.read(iprot)self.success.append(_elem205)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllSources_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter206 in self.success:iter206.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemPricingBySource_args:"""Attributes:- itemId- sourceId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I64, 'sourceId', None, None, ), # 2)def __init__(self, itemId=None, sourceId=None,):self.itemId = itemIdself.sourceId = sourceIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.sourceId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemPricingBySource_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.sourceId is not None:oprot.writeFieldBegin('sourceId', TType.I64, 2)oprot.writeI64(self.sourceId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemPricingBySource_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = SourceItemPricing()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemPricingBySource_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addSourceItemPricing_args:"""Attributes:- sourceItemPricing"""thrift_spec = (None, # 0(1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1)def __init__(self, sourceItemPricing=None,):self.sourceItemPricing = sourceItemPricingdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.sourceItemPricing = SourceItemPricing()self.sourceItemPricing.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addSourceItemPricing_args')if self.sourceItemPricing is not None:oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)self.sourceItemPricing.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addSourceItemPricing_result:"""Attributes:- cex"""thrift_spec = (None, # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, cex=None,):self.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addSourceItemPricing_result')if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllSourcePricing_args:"""Attributes:- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1)def __init__(self, itemId=None,):self.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllSourcePricing_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllSourcePricing_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype210, _size207) = iprot.readListBegin()for _i211 in xrange(_size207):_elem212 = SourceItemPricing()_elem212.read(iprot)self.success.append(_elem212)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllSourcePricing_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter213 in self.success:iter213.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemForSource_args:"""Attributes:- item_id- sourceId"""thrift_spec = (None, # 0(1, TType.I64, 'item_id', None, None, ), # 1(2, TType.I64, 'sourceId', None, None, ), # 2)def __init__(self, item_id=None, sourceId=None,):self.item_id = item_idself.sourceId = sourceIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.item_id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.sourceId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemForSource_args')if self.item_id is not None:oprot.writeFieldBegin('item_id', TType.I64, 1)oprot.writeI64(self.item_id)oprot.writeFieldEnd()if self.sourceId is not None:oprot.writeFieldBegin('sourceId', TType.I64, 2)oprot.writeI64(self.sourceId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemForSource_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = Item()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemForSource_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class searchItemsInRange_args:"""Attributes:- searchTerms- offset- limit"""thrift_spec = (None, # 0(1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1(2, TType.I64, 'offset', None, None, ), # 2(3, TType.I64, 'limit', None, None, ), # 3)def __init__(self, searchTerms=None, offset=None, limit=None,):self.searchTerms = searchTermsself.offset = offsetself.limit = limitdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.LIST:self.searchTerms = [](_etype217, _size214) = iprot.readListBegin()for _i218 in xrange(_size214):_elem219 = iprot.readString();self.searchTerms.append(_elem219)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.offset = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.limit = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('searchItemsInRange_args')if self.searchTerms is not None:oprot.writeFieldBegin('searchTerms', TType.LIST, 1)oprot.writeListBegin(TType.STRING, len(self.searchTerms))for iter220 in self.searchTerms:oprot.writeString(iter220)oprot.writeListEnd()oprot.writeFieldEnd()if self.offset is not None:oprot.writeFieldBegin('offset', TType.I64, 2)oprot.writeI64(self.offset)oprot.writeFieldEnd()if self.limit is not None:oprot.writeFieldBegin('limit', TType.I64, 3)oprot.writeI64(self.limit)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class searchItemsInRange_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype224, _size221) = iprot.readListBegin()for _i225 in xrange(_size221):_elem226 = Item()_elem226.read(iprot)self.success.append(_elem226)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('searchItemsInRange_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter227 in self.success:iter227.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getSearchResultCount_args:"""Attributes:- searchTerms"""thrift_spec = (None, # 0(1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1)def __init__(self, searchTerms=None,):self.searchTerms = searchTermsdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.LIST:self.searchTerms = [](_etype231, _size228) = iprot.readListBegin()for _i232 in xrange(_size228):_elem233 = iprot.readString();self.searchTerms.append(_elem233)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getSearchResultCount_args')if self.searchTerms is not None:oprot.writeFieldBegin('searchTerms', TType.LIST, 1)oprot.writeListBegin(TType.STRING, len(self.searchTerms))for iter234 in self.searchTerms:oprot.writeString(iter234)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getSearchResultCount_result:"""Attributes:- success"""thrift_spec = ((0, TType.I32, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I32:self.success = iprot.readI32();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getSearchResultCount_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I32, 0)oprot.writeI32(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getProductNotifications_args:"""Attributes:- startDateTime"""thrift_spec = (None, # 0(1, TType.I64, 'startDateTime', None, None, ), # 1)def __init__(self, startDateTime=None,):self.startDateTime = startDateTimedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.startDateTime = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getProductNotifications_args')if self.startDateTime is not None:oprot.writeFieldBegin('startDateTime', TType.I64, 1)oprot.writeI64(self.startDateTime)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getProductNotifications_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype238, _size235) = iprot.readListBegin()for _i239 in xrange(_size235):_elem240 = ProductNotificationRequest()_elem240.read(iprot)self.success.append(_elem240)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getProductNotifications_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter241 in self.success:iter241.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getProductNotificationRequestCount_args:"""Attributes:- startDateTime"""thrift_spec = (None, # 0(1, TType.I64, 'startDateTime', None, None, ), # 1)def __init__(self, startDateTime=None,):self.startDateTime = startDateTimedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.startDateTime = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getProductNotificationRequestCount_args')if self.startDateTime is not None:oprot.writeFieldBegin('startDateTime', TType.I64, 1)oprot.writeI64(self.startDateTime)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getProductNotificationRequestCount_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype245, _size242) = iprot.readListBegin()for _i246 in xrange(_size242):_elem247 = ProductNotificationRequestCount()_elem247.read(iprot)self.success.append(_elem247)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getProductNotificationRequestCount_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter248 in self.success:iter248.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addAuthorizationLog_args:"""Attributes:- itemId- username- reason"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.STRING, 'username', None, None, ), # 2(3, TType.STRING, 'reason', None, None, ), # 3)def __init__(self, itemId=None, username=None, reason=None,):self.itemId = itemIdself.username = usernameself.reason = reasondef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.username = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.reason = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addAuthorizationLog_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 2)oprot.writeString(self.username)oprot.writeFieldEnd()if self.reason is not None:oprot.writeFieldBegin('reason', TType.STRING, 3)oprot.writeString(self.reason)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addAuthorizationLog_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addAuthorizationLog_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getClearanceSaleCatalogIds_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getClearanceSaleCatalogIds_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getClearanceSaleCatalogIds_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.I64,None), None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype252, _size249) = iprot.readListBegin()for _i253 in xrange(_size249):_elem254 = iprot.readI64();self.success.append(_elem254)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getClearanceSaleCatalogIds_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter255 in self.success:oprot.writeI64(iter255)oprot.writeListEnd()oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addupdateVoucherForItem_args:"""Attributes:- catalog_item_id- voucherType- voucherAmount"""thrift_spec = (None, # 0(1, TType.I64, 'catalog_item_id', None, None, ), # 1(2, TType.I64, 'voucherType', None, None, ), # 2(3, TType.I64, 'voucherAmount', None, None, ), # 3)def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):self.catalog_item_id = catalog_item_idself.voucherType = voucherTypeself.voucherAmount = voucherAmountdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.catalog_item_id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.voucherType = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.voucherAmount = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addupdateVoucherForItem_args')if self.catalog_item_id is not None:oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)oprot.writeI64(self.catalog_item_id)oprot.writeFieldEnd()if self.voucherType is not None:oprot.writeFieldBegin('voucherType', TType.I64, 2)oprot.writeI64(self.voucherType)oprot.writeFieldEnd()if self.voucherAmount is not None:oprot.writeFieldBegin('voucherAmount', TType.I64, 3)oprot.writeI64(self.voucherAmount)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addupdateVoucherForItem_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addupdateVoucherForItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteVoucherForItem_args:"""Attributes:- catalog_item_id- voucherType"""thrift_spec = (None, # 0(1, TType.I64, 'catalog_item_id', None, None, ), # 1(2, TType.I64, 'voucherType', None, None, ), # 2)def __init__(self, catalog_item_id=None, voucherType=None,):self.catalog_item_id = catalog_item_idself.voucherType = voucherTypedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.catalog_item_id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.voucherType = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteVoucherForItem_args')if self.catalog_item_id is not None:oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)oprot.writeI64(self.catalog_item_id)oprot.writeFieldEnd()if self.voucherType is not None:oprot.writeFieldBegin('voucherType', TType.I64, 2)oprot.writeI64(self.voucherType)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteVoucherForItem_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = CatalogServiceException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteVoucherForItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.cex is not None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getVoucherAmount_args:"""Attributes:- itemId- voucherType"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I64, 'voucherType', None, None, ), # 2)def __init__(self, itemId=None, voucherType=None,):self.itemId = itemIdself.voucherType = voucherTypedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.voucherType = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getVoucherAmount_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.voucherType is not None:oprot.writeFieldBegin('voucherType', TType.I64, 2)oprot.writeI64(self.voucherType)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getVoucherAmount_result:"""Attributes:- success"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getVoucherAmount_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllItemVouchers_args:"""Attributes:- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1)def __init__(self, itemId=None,):self.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllItemVouchers_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllItemVouchers_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype259, _size256) = iprot.readListBegin()for _i260 in xrange(_size256):_elem261 = VoucherItemMapping()_elem261.read(iprot)self.success.append(_elem261)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllItemVouchers_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter262 in self.success:iter262.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class isValidCatalogItemId_args:"""Attributes:- catalog_item_id"""thrift_spec = (None, # 0(1, TType.I64, 'catalog_item_id', None, None, ), # 1)def __init__(self, catalog_item_id=None,):self.catalog_item_id = catalog_item_iddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.catalog_item_id = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('isValidCatalogItemId_args')if self.catalog_item_id is not None:oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)oprot.writeI64(self.catalog_item_id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class isValidCatalogItemId_result:"""Attributes:- success"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('isValidCatalogItemId_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getVatPercentageForItem_args:"""Attributes:- itemId- price"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.DOUBLE, 'price', None, None, ), # 2)def __init__(self, itemId=None, price=None,):self.itemId = itemIdself.price = pricedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.DOUBLE:self.price = iprot.readDouble();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getVatPercentageForItem_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.price is not None:oprot.writeFieldBegin('price', TType.DOUBLE, 2)oprot.writeDouble(self.price)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getVatPercentageForItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.DOUBLE, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.DOUBLE:self.success = iprot.readDouble();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getVatPercentageForItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.DOUBLE, 0)oprot.writeDouble(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getVatAmountForItem_args:"""Attributes:- itemId- price"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.DOUBLE, 'price', None, None, ), # 2)def __init__(self, itemId=None, price=None,):self.itemId = itemIdself.price = pricedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.DOUBLE:self.price = iprot.readDouble();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getVatAmountForItem_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.price is not None:oprot.writeFieldBegin('price', TType.DOUBLE, 2)oprot.writeDouble(self.price)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getVatAmountForItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.DOUBLE, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.DOUBLE:self.success = iprot.readDouble();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getVatAmountForItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.DOUBLE, 0)oprot.writeDouble(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllIgnoredInventoryUpdateItemsList_args:"""Attributes:- offset- limit"""thrift_spec = (None, # 0(1, TType.I32, 'offset', None, None, ), # 1(2, TType.I32, 'limit', None, None, ), # 2)def __init__(self, offset=None, limit=None,):self.offset = offsetself.limit = limitdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I32:self.offset = iprot.readI32();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.limit = iprot.readI32();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')if self.offset is not None:oprot.writeFieldBegin('offset', TType.I32, 1)oprot.writeI32(self.offset)oprot.writeFieldEnd()if self.limit is not None:oprot.writeFieldBegin('limit', TType.I32, 2)oprot.writeI32(self.limit)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllIgnoredInventoryUpdateItemsList_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype266, _size263) = iprot.readListBegin()for _i267 in xrange(_size263):_elem268 = Item()_elem268.read(iprot)self.success.append(_elem268)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter269 in self.success:iter269.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllAliveItems_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllAliveItems_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllAliveItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype273, _size270) = iprot.readListBegin()for _i274 in xrange(_size270):_elem275 = Item()_elem275.read(iprot)self.success.append(_elem275)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllAliveItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter276 in self.success:iter276.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getInsuranceAmount_args:"""Attributes:- itemId- insurerId- quantity"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I64, 'insurerId', None, None, ), # 2(3, TType.I64, 'quantity', None, None, ), # 3)def __init__(self, itemId=None, insurerId=None, quantity=None,):self.itemId = itemIdself.insurerId = insurerIdself.quantity = quantitydef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.insurerId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.quantity = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInsuranceAmount_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.insurerId is not None:oprot.writeFieldBegin('insurerId', TType.I64, 2)oprot.writeI64(self.insurerId)oprot.writeFieldEnd()if self.quantity is not None:oprot.writeFieldBegin('quantity', TType.I64, 3)oprot.writeI64(self.quantity)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getInsuranceAmount_result:"""Attributes:- success"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInsuranceAmount_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getInsurer_args:"""Attributes:- insurerId"""thrift_spec = (None, # 0(1, TType.I64, 'insurerId', None, None, ), # 1)def __init__(self, insurerId=None,):self.insurerId = insurerIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.insurerId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInsurer_args')if self.insurerId is not None:oprot.writeFieldBegin('insurerId', TType.I64, 1)oprot.writeI64(self.insurerId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getInsurer_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = Insurer()self.success.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInsurer_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllInsurers_args:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllInsurers_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllInsurers_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype264, _size261) = iprot.readListBegin()for _i265 in xrange(_size261):_elem266 = Insurer()_elem266.read(iprot)self.success.append(_elem266)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllInsurers_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter267 in self.success:iter267.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)