Rev 15702 | Rev 18602 | 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 getItemsStatus(self, itemIds):"""Parameters:- itemIds"""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 getItems(self, item_ids):"""Parameters:- item_ids"""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, isAndroid):"""Parameters:- entityId- category- brand- modelName- modelNumber- isAndroid"""passdef getVatRates(self, itemId, categoryId):"""Parameters:- itemId- categoryId"""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 addBanner(self, bannerCongregate):"""Banner RelatedParameters:- bannerCongregate"""passdef updateBanner(self, banner):"""Parameters:- banner"""passdef getAllBanners(self, ):passdef deleteBanner(self, bannerName, bannerType):"""Parameters:- bannerName- bannerType"""passdef getBannerDetails(self, bannerName, bannerType):"""Parameters:- bannerName- bannerType"""passdef getActiveBanners(self, ):passdef addBannerMap(self, bannerMaps):"""Parameters:- bannerMaps"""passdef updateBannerMap(self, bannerMap):"""Parameters:- bannerMap"""passdef deleteBannerMap(self, bannerName):"""Parameters:- bannerName"""passdef getBannerMapDetails(self, bannerName, bannerType):"""Parameters:- bannerName- bannerType"""passdef addBannerUri(self, bannerUriMappings):"""Parameters:- bannerUriMappings"""passdef getUriMapping(self, bannerName, bannerType):"""Parameters:- bannerName- bannerType"""passdef addCampaign(self, campaign):"""Parameters:- campaign"""passdef getCampaigns(self, campaignName):"""Parameters:- campaignName"""passdef deleteCampaign(self, campaignId):"""Parameters:- campaignId"""passdef getAllCampaigns(self, ):passdef getActiveBannersForMobileSite(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, categoryId):"""Returns a list of count of requests for product notification against each itemParameters:- startDateTime- categoryId"""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 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, stateId, price):"""Parameters:- itemId- stateId- price"""passdef getVatAmountForItem(self, itemId, price):"""Parameters:- itemId- price"""passdef getAllIgnoredInventoryUpdateItemsList(self, offset, limit):"""Parameters:- offset- limit"""passdef getAllAliveItems(self, ):passdef getInsuranceAmount(self, itemId, price, insurerId, quantity):"""This method returns the insurance amount needed to insure the given item for a given quantity.Parameters:- itemId- price- insurerId- quantity"""passdef getInsurer(self, insurerId):"""Parameters:- insurerId"""passdef getAllInsurers(self, ):passdef updateInsuranceDeclaredAmount(self, insurerId, amount):"""Parameters:- insurerId- amount"""passdef getFreebieForItem(self, itemId):"""Parameters:- itemId"""passdef addOrUpdateFreebieForItem(self, freebieItem):"""Parameters:- freebieItem"""passdef addOrUpdateBrandInfo(self, brandInfo):"""Parameters:- brandInfo"""passdef getBrandInfo(self, ):passdef getStorePricing(self, itemId):"""Parameters:- itemId"""passdef getStorePricings(self, itemIds):"""Parameters:- itemIds"""passdef updateStorePricing(self, sp, allColors):"""Parameters:- sp- allColors"""passdef getAllAmazonListedItems(self, ):passdef searchAmazonItems(self, searchTerm, offset, limit):"""Parameters:- searchTerm- offset- limit"""passdef getAmazonSearchResultCount(self, searchTerm):"""Parameters:- searchTerm"""passdef getCountForAmazonlistedItems(self, ):passdef getAmazonItemDetails(self, itemId):"""Parameters:- itemId"""passdef updateAmazonItemDetails(self, amazonlisted):"""Parameters:- amazonlisted"""passdef addAmazonItem(self, amazonlisted):"""Parameters:- amazonlisted"""passdef getAsinItems(self, ):passdef getAllFbaListedItems(self, ):passdef getAllNonFbaListedItems(self, ):passdef updateItemInventory(self, itemId, holdInventory, defaultInventory):"""Parameters:- itemId- holdInventory- defaultInventory"""passdef updateTimestampForAmazonFeeds(self, type, sku, timestamp):"""Parameters:- type- sku- timestamp"""passdef getAllParentCategories(self, ):passdef addPageViewEvent(self, pageViewEvents):"""Parameters:- pageViewEvents"""passdef addCartEvent(self, cartEvents):"""Parameters:- cartEvents"""passdef addEbayItem(self, ebayItem):"""Parameters:- ebayItem"""passdef getEbayItem(self, listingId):"""Parameters:- listingId"""passdef updateEbayItem(self, ebayItem):"""Parameters:- ebayItem"""passdef getAmazonListedItems(self, offset, limit):"""Parameters:- offset- limit"""passdef updateAmazonAttributesInBulk(self, amazonlisted):"""Parameters:- amazonlisted"""passdef getAllItemstoListOnFba(self, ):passdef getAllItemstoListOnNonFba(self, ):passdef updateAsin(self, item):"""Parameters:- item"""passdef addOrUpdateSnapdealItem(self, snapdealitem):"""Parameters:- snapdealitem"""passdef getSnapdealItem(self, item_id):"""Parameters:- item_id"""passdef getSnapdealItemDetails(self, item_id):"""Parameters:- item_id"""passdef getAllSnapdealItems(self, ):passdef getSnapdealItems(self, offset, limit):"""Parameters:- offset- limit"""passdef searchSnapdealItems(self, searchTerm, offset, limit):"""Parameters:- searchTerm- offset- limit"""passdef getCountForSnapdealItems(self, ):passdef getSnapdealSearchResultCount(self, searchTerm):"""Parameters:- searchTerm"""passdef getPrefferedInsurerForItem(self, itemId, insurerType):"""Parameters:- itemId- insurerType"""passdef getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):"""Parameters:- skuAtSnapdeal"""passdef getProductFeedSubmit(self, catalogItemId):"""Parameters:- catalogItemId"""passdef addProductFeedSubmit(self, productFeedSubmit):"""Parameters:- productFeedSubmit"""passdef updateProductFeedSubmit(self, productFeedSubmit):"""Parameters:- productFeedSubmit"""passdef deleteProductFeedSubmit(self, catalogItemId):"""Parameters:- catalogItemId"""passdef getAllProductFeedSubmit(self, ):passdef getMarketplacedetailsForItem(self, itemId, sourceId):"""Parameters:- itemId- sourceId"""passdef updateMarketplaceAttributesForItem(self, marketPlaceItem):"""Parameters:- marketPlaceItem"""passdef getCostingForMarketplace(self, source, item_id):"""Parameters:- source- item_id"""passdef getMarketPlaceItemsForPriceUpdate(self, source):"""Parameters:- source"""passdef updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):"""Parameters:- skulist- timestamp- source"""passdef updateItemHoldInventory(self, itemHoldMap):"""Parameters:- itemHoldMap"""passdef updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):"""Parameters:- item_id- vendor_id- nlc"""passdef getAllFlipkartItems(self, ):passdef addOrUpdateFlipkartItem(self, flipkartitem):"""Parameters:- flipkartitem"""passdef getFlipkartItem(self, item_id):"""Parameters:- item_id"""passdef getFlipkartItemDetails(self, item_id):"""Parameters:- item_id"""passdef getFlipkartItems(self, offset, limit):"""Parameters:- offset- limit"""passdef searchFlipkartItems(self, searchTerm, offset, limit):"""Parameters:- searchTerm- offset- limit"""passdef getCountForFlipkartItems(self, ):passdef getFlipkartSearchResultCount(self, searchTerm):"""Parameters:- searchTerm"""passdef getAllFkItems(self, ):passdef getFlipkartItemBySkyAtFlipkart(self, sku):"""Parameters:- sku"""passdef getMarketplaceHistory(self, source, offset, itemId):"""Parameters:- source- offset- itemId"""passdef getAllFbbListedItems(self, ):passdef getAllFbbPricingItems(self, ):passdef getCountForMarketplaceHistory(self, source, itemId):"""Parameters:- source- itemId"""passdef getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):"""Parameters:- source- startDate- endDate- offset- limit- itemId"""passdef getPrivateDealDetails(self, item_id):"""Parameters:- item_id"""passdef getPrivateDealItems(self, offset, limit):"""Parameters:- offset- limit"""passdef getAllActivePrivateDeals(self, itemIds, daysDelta):"""Parameters:- itemIds- daysDelta"""passdef addOrUpdatePrivateDeal(self, privateDeal):"""Parameters:- privateDeal"""passdef getPrivateDealsCatalogIds(self, beginIndex, totalItems):"""Parameters:- beginIndex- totalItems"""passdef getPrivateDealsCount(self, ):passdef getAmazonOutSyncItems(self, item_id):"""Parameters:- item_id"""passdef getAllPrivateDealsComparison(self, ):passdef getAllSnapdealMarketplaceItem(self, ):passdef getAllFlipkartMarketplaceItem(self, ):passdef addCompetitorScraping(self, competitorPricingMap):"""Parameters:- competitorPricingMap"""passdef getPreviousCompetitorScraping(self, delta):"""Parameters:- delta"""passdef getUploadResultById(self, uploadId):"""Parameters:- uploadId"""passdef addAmazonPromotion(self, amazonPromotions):"""Parameters:- amazonPromotions"""passdef getAmazonPromotion(self, startDate, endDate):"""Parameters:- startDate- endDate"""passdef updateAmazonPromotion(self, amazonPromotions):"""Parameters:- amazonPromotions"""passdef markPartiallyActive(self, itemId, categoryId):"""Parameters:- itemId- categoryId"""passdef updateItemStateVat(self, itemId, statevat):"""Parameters:- itemId- statevat"""passdef getExAffiliateItemInfo(self, ):passdef getAllItemstoListOnFbg(self, ):passdef getAllFbgListedItems(self, ):passdef checkServices(self, lines):"""Parameters:- lines"""passdef addHsItem(self, hsItems):"""Parameters:- hsItems"""passdef getHsItem(self, hsItemId):"""Parameters:- hsItemId"""passdef updateHsItem(self, hsItem):"""Parameters:- hsItem"""passdef getPricingForDtr(self, catalogItemId):"""Parameters:- catalogItemId"""passdef getAllItemstoListOnFbd(self, ):passdef getAllFbdListedItems(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 getItemsStatus(self, itemIds):"""Parameters:- itemIds"""self.send_getItemsStatus(itemIds)return self.recv_getItemsStatus()def send_getItemsStatus(self, itemIds):self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)args = getItemsStatus_args()args.itemIds = itemIdsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItemsStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItemsStatus_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, "getItemsStatus 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 getItems(self, item_ids):"""Parameters:- item_ids"""self.send_getItems(item_ids)return self.recv_getItems()def send_getItems(self, item_ids):self._oprot.writeMessageBegin('getItems', TMessageType.CALL, self._seqid)args = getItems_args()args.item_ids = item_idsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItems_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, "getItems 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, isAndroid):"""Parameters:- entityId- category- brand- modelName- modelNumber- isAndroid"""self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)return self.recv_markItemAsContentComplete()def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)args = markItemAsContentComplete_args()args.entityId = entityIdargs.category = categoryargs.brand = brandargs.modelName = modelNameargs.modelNumber = modelNumberargs.isAndroid = isAndroidargs.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 getVatRates(self, itemId, categoryId):"""Parameters:- itemId- categoryId"""self.send_getVatRates(itemId, categoryId)return self.recv_getVatRates()def send_getVatRates(self, itemId, categoryId):self._oprot.writeMessageBegin('getVatRates', TMessageType.CALL, self._seqid)args = getVatRates_args()args.itemId = itemIdargs.categoryId = categoryIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getVatRates(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getVatRates_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, "getVatRates 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 addBanner(self, bannerCongregate):"""Banner RelatedParameters:- bannerCongregate"""self.send_addBanner(bannerCongregate)return self.recv_addBanner()def send_addBanner(self, bannerCongregate):self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)args = addBanner_args()args.bannerCongregate = bannerCongregateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addBanner(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addBanner_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");def updateBanner(self, banner):"""Parameters:- banner"""self.send_updateBanner(banner)return self.recv_updateBanner()def send_updateBanner(self, banner):self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)args = updateBanner_args()args.banner = bannerargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateBanner(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateBanner_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");def getAllBanners(self, ):self.send_getAllBanners()return self.recv_getAllBanners()def send_getAllBanners(self, ):self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)args = getAllBanners_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllBanners(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllBanners_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");def deleteBanner(self, bannerName, bannerType):"""Parameters:- bannerName- bannerType"""self.send_deleteBanner(bannerName, bannerType)return self.recv_deleteBanner()def send_deleteBanner(self, bannerName, bannerType):self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)args = deleteBanner_args()args.bannerName = bannerNameargs.bannerType = bannerTypeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteBanner(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteBanner_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");def getBannerDetails(self, bannerName, bannerType):"""Parameters:- bannerName- bannerType"""self.send_getBannerDetails(bannerName, bannerType)return self.recv_getBannerDetails()def send_getBannerDetails(self, bannerName, bannerType):self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)args = getBannerDetails_args()args.bannerName = bannerNameargs.bannerType = bannerTypeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBannerDetails(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBannerDetails_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");def getActiveBanners(self, ):self.send_getActiveBanners()return self.recv_getActiveBanners()def send_getActiveBanners(self, ):self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)args = getActiveBanners_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getActiveBanners(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getActiveBanners_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");def addBannerMap(self, bannerMaps):"""Parameters:- bannerMaps"""self.send_addBannerMap(bannerMaps)return self.recv_addBannerMap()def send_addBannerMap(self, bannerMaps):self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)args = addBannerMap_args()args.bannerMaps = bannerMapsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addBannerMap(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addBannerMap_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");def updateBannerMap(self, bannerMap):"""Parameters:- bannerMap"""self.send_updateBannerMap(bannerMap)return self.recv_updateBannerMap()def send_updateBannerMap(self, bannerMap):self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)args = updateBannerMap_args()args.bannerMap = bannerMapargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateBannerMap(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateBannerMap_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");def deleteBannerMap(self, bannerName):"""Parameters:- bannerName"""self.send_deleteBannerMap(bannerName)return self.recv_deleteBannerMap()def send_deleteBannerMap(self, bannerName):self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)args = deleteBannerMap_args()args.bannerName = bannerNameargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteBannerMap(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteBannerMap_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");def getBannerMapDetails(self, bannerName, bannerType):"""Parameters:- bannerName- bannerType"""self.send_getBannerMapDetails(bannerName, bannerType)return self.recv_getBannerMapDetails()def send_getBannerMapDetails(self, bannerName, bannerType):self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)args = getBannerMapDetails_args()args.bannerName = bannerNameargs.bannerType = bannerTypeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBannerMapDetails(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBannerMapDetails_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");def addBannerUri(self, bannerUriMappings):"""Parameters:- bannerUriMappings"""self.send_addBannerUri(bannerUriMappings)self.recv_addBannerUri()def send_addBannerUri(self, bannerUriMappings):self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)args = addBannerUri_args()args.bannerUriMappings = bannerUriMappingsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addBannerUri(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addBannerUri_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getUriMapping(self, bannerName, bannerType):"""Parameters:- bannerName- bannerType"""self.send_getUriMapping(bannerName, bannerType)return self.recv_getUriMapping()def send_getUriMapping(self, bannerName, bannerType):self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)args = getUriMapping_args()args.bannerName = bannerNameargs.bannerType = bannerTypeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getUriMapping(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getUriMapping_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");def addCampaign(self, campaign):"""Parameters:- campaign"""self.send_addCampaign(campaign)self.recv_addCampaign()def send_addCampaign(self, campaign):self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)args = addCampaign_args()args.campaign = campaignargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addCampaign(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addCampaign_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getCampaigns(self, campaignName):"""Parameters:- campaignName"""self.send_getCampaigns(campaignName)return self.recv_getCampaigns()def send_getCampaigns(self, campaignName):self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)args = getCampaigns_args()args.campaignName = campaignNameargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCampaigns(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCampaigns_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");def deleteCampaign(self, campaignId):"""Parameters:- campaignId"""self.send_deleteCampaign(campaignId)self.recv_deleteCampaign()def send_deleteCampaign(self, campaignId):self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)args = deleteCampaign_args()args.campaignId = campaignIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteCampaign(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteCampaign_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getAllCampaigns(self, ):self.send_getAllCampaigns()return self.recv_getAllCampaigns()def send_getAllCampaigns(self, ):self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)args = getAllCampaigns_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllCampaigns(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllCampaigns_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");def getActiveBannersForMobileSite(self, ):self.send_getActiveBannersForMobileSite()return self.recv_getActiveBannersForMobileSite()def send_getActiveBannersForMobileSite(self, ):self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)args = getActiveBannersForMobileSite_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getActiveBannersForMobileSite(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getActiveBannersForMobileSite_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite 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, categoryId):"""Returns a list of count of requests for product notification against each itemParameters:- startDateTime- categoryId"""self.send_getProductNotificationRequestCount(startDateTime, categoryId)return self.recv_getProductNotificationRequestCount()def send_getProductNotificationRequestCount(self, startDateTime, categoryId):self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)args = getProductNotificationRequestCount_args()args.startDateTime = startDateTimeargs.categoryId = categoryIdargs.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 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, stateId, price):"""Parameters:- itemId- stateId- price"""self.send_getVatPercentageForItem(itemId, stateId, price)return self.recv_getVatPercentageForItem()def send_getVatPercentageForItem(self, itemId, stateId, price):self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)args = getVatPercentageForItem_args()args.itemId = itemIdargs.stateId = stateIdargs.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.successif result.cex is not None:raise result.cexraise 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, price, insurerId, quantity):"""This method returns the insurance amount needed to insure the given item for a given quantity.Parameters:- itemId- price- insurerId- quantity"""self.send_getInsuranceAmount(itemId, price, insurerId, quantity)return self.recv_getInsuranceAmount()def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)args = getInsuranceAmount_args()args.itemId = itemIdargs.price = priceargs.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");def updateInsuranceDeclaredAmount(self, insurerId, amount):"""Parameters:- insurerId- amount"""self.send_updateInsuranceDeclaredAmount(insurerId, amount)self.recv_updateInsuranceDeclaredAmount()def send_updateInsuranceDeclaredAmount(self, insurerId, amount):self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)args = updateInsuranceDeclaredAmount_args()args.insurerId = insurerIdargs.amount = amountargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateInsuranceDeclaredAmount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateInsuranceDeclaredAmount_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getFreebieForItem(self, itemId):"""Parameters:- itemId"""self.send_getFreebieForItem(itemId)return self.recv_getFreebieForItem()def send_getFreebieForItem(self, itemId):self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)args = getFreebieForItem_args()args.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getFreebieForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getFreebieForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");def addOrUpdateFreebieForItem(self, freebieItem):"""Parameters:- freebieItem"""self.send_addOrUpdateFreebieForItem(freebieItem)self.recv_addOrUpdateFreebieForItem()def send_addOrUpdateFreebieForItem(self, freebieItem):self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)args = addOrUpdateFreebieForItem_args()args.freebieItem = freebieItemargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addOrUpdateFreebieForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addOrUpdateFreebieForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef addOrUpdateBrandInfo(self, brandInfo):"""Parameters:- brandInfo"""self.send_addOrUpdateBrandInfo(brandInfo)self.recv_addOrUpdateBrandInfo()def send_addOrUpdateBrandInfo(self, brandInfo):self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)args = addOrUpdateBrandInfo_args()args.brandInfo = brandInfoargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addOrUpdateBrandInfo(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addOrUpdateBrandInfo_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getBrandInfo(self, ):self.send_getBrandInfo()return self.recv_getBrandInfo()def send_getBrandInfo(self, ):self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)args = getBrandInfo_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBrandInfo(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBrandInfo_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");def getStorePricing(self, itemId):"""Parameters:- itemId"""self.send_getStorePricing(itemId)return self.recv_getStorePricing()def send_getStorePricing(self, itemId):self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)args = getStorePricing_args()args.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getStorePricing(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getStorePricing_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");def getStorePricings(self, itemIds):"""Parameters:- itemIds"""self.send_getStorePricings(itemIds)return self.recv_getStorePricings()def send_getStorePricings(self, itemIds):self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)args = getStorePricings_args()args.itemIds = itemIdsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getStorePricings(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getStorePricings_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");def updateStorePricing(self, sp, allColors):"""Parameters:- sp- allColors"""self.send_updateStorePricing(sp, allColors)self.recv_updateStorePricing()def send_updateStorePricing(self, sp, allColors):self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)args = updateStorePricing_args()args.sp = spargs.allColors = allColorsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateStorePricing(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateStorePricing_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getAllAmazonListedItems(self, ):self.send_getAllAmazonListedItems()return self.recv_getAllAmazonListedItems()def send_getAllAmazonListedItems(self, ):self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)args = getAllAmazonListedItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllAmazonListedItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllAmazonListedItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");def searchAmazonItems(self, searchTerm, offset, limit):"""Parameters:- searchTerm- offset- limit"""self.send_searchAmazonItems(searchTerm, offset, limit)return self.recv_searchAmazonItems()def send_searchAmazonItems(self, searchTerm, offset, limit):self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)args = searchAmazonItems_args()args.searchTerm = searchTermargs.offset = offsetargs.limit = limitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_searchAmazonItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = searchAmazonItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");def getAmazonSearchResultCount(self, searchTerm):"""Parameters:- searchTerm"""self.send_getAmazonSearchResultCount(searchTerm)return self.recv_getAmazonSearchResultCount()def send_getAmazonSearchResultCount(self, searchTerm):self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)args = getAmazonSearchResultCount_args()args.searchTerm = searchTermargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAmazonSearchResultCount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAmazonSearchResultCount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");def getCountForAmazonlistedItems(self, ):self.send_getCountForAmazonlistedItems()return self.recv_getCountForAmazonlistedItems()def send_getCountForAmazonlistedItems(self, ):self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)args = getCountForAmazonlistedItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCountForAmazonlistedItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCountForAmazonlistedItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");def getAmazonItemDetails(self, itemId):"""Parameters:- itemId"""self.send_getAmazonItemDetails(itemId)return self.recv_getAmazonItemDetails()def send_getAmazonItemDetails(self, itemId):self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)args = getAmazonItemDetails_args()args.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAmazonItemDetails(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAmazonItemDetails_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");def updateAmazonItemDetails(self, amazonlisted):"""Parameters:- amazonlisted"""self.send_updateAmazonItemDetails(amazonlisted)self.recv_updateAmazonItemDetails()def send_updateAmazonItemDetails(self, amazonlisted):self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)args = updateAmazonItemDetails_args()args.amazonlisted = amazonlistedargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateAmazonItemDetails(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateAmazonItemDetails_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef addAmazonItem(self, amazonlisted):"""Parameters:- amazonlisted"""self.send_addAmazonItem(amazonlisted)self.recv_addAmazonItem()def send_addAmazonItem(self, amazonlisted):self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)args = addAmazonItem_args()args.amazonlisted = amazonlistedargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addAmazonItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addAmazonItem_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getAsinItems(self, ):self.send_getAsinItems()return self.recv_getAsinItems()def send_getAsinItems(self, ):self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)args = getAsinItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAsinItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAsinItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");def getAllFbaListedItems(self, ):self.send_getAllFbaListedItems()return self.recv_getAllFbaListedItems()def send_getAllFbaListedItems(self, ):self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)args = getAllFbaListedItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllFbaListedItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllFbaListedItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");def getAllNonFbaListedItems(self, ):self.send_getAllNonFbaListedItems()return self.recv_getAllNonFbaListedItems()def send_getAllNonFbaListedItems(self, ):self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)args = getAllNonFbaListedItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllNonFbaListedItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllNonFbaListedItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");def updateItemInventory(self, itemId, holdInventory, defaultInventory):"""Parameters:- itemId- holdInventory- defaultInventory"""self.send_updateItemInventory(itemId, holdInventory, defaultInventory)return self.recv_updateItemInventory()def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)args = updateItemInventory_args()args.itemId = itemIdargs.holdInventory = holdInventoryargs.defaultInventory = defaultInventoryargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateItemInventory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateItemInventory_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");def updateTimestampForAmazonFeeds(self, type, sku, timestamp):"""Parameters:- type- sku- timestamp"""self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)return self.recv_updateTimestampForAmazonFeeds()def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)args = updateTimestampForAmazonFeeds_args()args.type = typeargs.sku = skuargs.timestamp = timestampargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateTimestampForAmazonFeeds(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateTimestampForAmazonFeeds_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");def getAllParentCategories(self, ):self.send_getAllParentCategories()return self.recv_getAllParentCategories()def send_getAllParentCategories(self, ):self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)args = getAllParentCategories_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllParentCategories(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllParentCategories_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");def addPageViewEvent(self, pageViewEvents):"""Parameters:- pageViewEvents"""self.send_addPageViewEvent(pageViewEvents)self.recv_addPageViewEvent()def send_addPageViewEvent(self, pageViewEvents):self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)args = addPageViewEvent_args()args.pageViewEvents = pageViewEventsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addPageViewEvent(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addPageViewEvent_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef addCartEvent(self, cartEvents):"""Parameters:- cartEvents"""self.send_addCartEvent(cartEvents)self.recv_addCartEvent()def send_addCartEvent(self, cartEvents):self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)args = addCartEvent_args()args.cartEvents = cartEventsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addCartEvent(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addCartEvent_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef addEbayItem(self, ebayItem):"""Parameters:- ebayItem"""self.send_addEbayItem(ebayItem)self.recv_addEbayItem()def send_addEbayItem(self, ebayItem):self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)args = addEbayItem_args()args.ebayItem = ebayItemargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addEbayItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addEbayItem_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getEbayItem(self, listingId):"""Parameters:- listingId"""self.send_getEbayItem(listingId)return self.recv_getEbayItem()def send_getEbayItem(self, listingId):self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)args = getEbayItem_args()args.listingId = listingIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getEbayItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getEbayItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");def updateEbayItem(self, ebayItem):"""Parameters:- ebayItem"""self.send_updateEbayItem(ebayItem)self.recv_updateEbayItem()def send_updateEbayItem(self, ebayItem):self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)args = updateEbayItem_args()args.ebayItem = ebayItemargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateEbayItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateEbayItem_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getAmazonListedItems(self, offset, limit):"""Parameters:- offset- limit"""self.send_getAmazonListedItems(offset, limit)return self.recv_getAmazonListedItems()def send_getAmazonListedItems(self, offset, limit):self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)args = getAmazonListedItems_args()args.offset = offsetargs.limit = limitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAmazonListedItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAmazonListedItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");def updateAmazonAttributesInBulk(self, amazonlisted):"""Parameters:- amazonlisted"""self.send_updateAmazonAttributesInBulk(amazonlisted)return self.recv_updateAmazonAttributesInBulk()def send_updateAmazonAttributesInBulk(self, amazonlisted):self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)args = updateAmazonAttributesInBulk_args()args.amazonlisted = amazonlistedargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateAmazonAttributesInBulk(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateAmazonAttributesInBulk_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");def getAllItemstoListOnFba(self, ):self.send_getAllItemstoListOnFba()return self.recv_getAllItemstoListOnFba()def send_getAllItemstoListOnFba(self, ):self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)args = getAllItemstoListOnFba_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllItemstoListOnFba(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllItemstoListOnFba_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");def getAllItemstoListOnNonFba(self, ):self.send_getAllItemstoListOnNonFba()return self.recv_getAllItemstoListOnNonFba()def send_getAllItemstoListOnNonFba(self, ):self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)args = getAllItemstoListOnNonFba_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllItemstoListOnNonFba(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllItemstoListOnNonFba_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");def updateAsin(self, item):"""Parameters:- item"""self.send_updateAsin(item)self.recv_updateAsin()def send_updateAsin(self, item):self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)args = updateAsin_args()args.item = itemargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateAsin(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateAsin_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef addOrUpdateSnapdealItem(self, snapdealitem):"""Parameters:- snapdealitem"""self.send_addOrUpdateSnapdealItem(snapdealitem)return self.recv_addOrUpdateSnapdealItem()def send_addOrUpdateSnapdealItem(self, snapdealitem):self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)args = addOrUpdateSnapdealItem_args()args.snapdealitem = snapdealitemargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addOrUpdateSnapdealItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addOrUpdateSnapdealItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");def getSnapdealItem(self, item_id):"""Parameters:- item_id"""self.send_getSnapdealItem(item_id)return self.recv_getSnapdealItem()def send_getSnapdealItem(self, item_id):self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)args = getSnapdealItem_args()args.item_id = item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getSnapdealItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getSnapdealItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");def getSnapdealItemDetails(self, item_id):"""Parameters:- item_id"""self.send_getSnapdealItemDetails(item_id)return self.recv_getSnapdealItemDetails()def send_getSnapdealItemDetails(self, item_id):self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)args = getSnapdealItemDetails_args()args.item_id = item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getSnapdealItemDetails(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getSnapdealItemDetails_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");def getAllSnapdealItems(self, ):self.send_getAllSnapdealItems()return self.recv_getAllSnapdealItems()def send_getAllSnapdealItems(self, ):self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)args = getAllSnapdealItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllSnapdealItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllSnapdealItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");def getSnapdealItems(self, offset, limit):"""Parameters:- offset- limit"""self.send_getSnapdealItems(offset, limit)return self.recv_getSnapdealItems()def send_getSnapdealItems(self, offset, limit):self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)args = getSnapdealItems_args()args.offset = offsetargs.limit = limitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getSnapdealItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getSnapdealItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");def searchSnapdealItems(self, searchTerm, offset, limit):"""Parameters:- searchTerm- offset- limit"""self.send_searchSnapdealItems(searchTerm, offset, limit)return self.recv_searchSnapdealItems()def send_searchSnapdealItems(self, searchTerm, offset, limit):self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)args = searchSnapdealItems_args()args.searchTerm = searchTermargs.offset = offsetargs.limit = limitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_searchSnapdealItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = searchSnapdealItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");def getCountForSnapdealItems(self, ):self.send_getCountForSnapdealItems()return self.recv_getCountForSnapdealItems()def send_getCountForSnapdealItems(self, ):self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)args = getCountForSnapdealItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCountForSnapdealItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCountForSnapdealItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");def getSnapdealSearchResultCount(self, searchTerm):"""Parameters:- searchTerm"""self.send_getSnapdealSearchResultCount(searchTerm)return self.recv_getSnapdealSearchResultCount()def send_getSnapdealSearchResultCount(self, searchTerm):self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)args = getSnapdealSearchResultCount_args()args.searchTerm = searchTermargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getSnapdealSearchResultCount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getSnapdealSearchResultCount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");def getPrefferedInsurerForItem(self, itemId, insurerType):"""Parameters:- itemId- insurerType"""self.send_getPrefferedInsurerForItem(itemId, insurerType)return self.recv_getPrefferedInsurerForItem()def send_getPrefferedInsurerForItem(self, itemId, insurerType):self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)args = getPrefferedInsurerForItem_args()args.itemId = itemIdargs.insurerType = insurerTypeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getPrefferedInsurerForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getPrefferedInsurerForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):"""Parameters:- skuAtSnapdeal"""self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)return self.recv_getSnapdealItembySkuAtSnapdeal()def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)args = getSnapdealItembySkuAtSnapdeal_args()args.skuAtSnapdeal = skuAtSnapdealargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getSnapdealItembySkuAtSnapdeal(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getSnapdealItembySkuAtSnapdeal_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");def getProductFeedSubmit(self, catalogItemId):"""Parameters:- catalogItemId"""self.send_getProductFeedSubmit(catalogItemId)return self.recv_getProductFeedSubmit()def send_getProductFeedSubmit(self, catalogItemId):self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)args = getProductFeedSubmit_args()args.catalogItemId = catalogItemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getProductFeedSubmit(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getProductFeedSubmit_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, "getProductFeedSubmit failed: unknown result");def addProductFeedSubmit(self, productFeedSubmit):"""Parameters:- productFeedSubmit"""self.send_addProductFeedSubmit(productFeedSubmit)return self.recv_addProductFeedSubmit()def send_addProductFeedSubmit(self, productFeedSubmit):self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)args = addProductFeedSubmit_args()args.productFeedSubmit = productFeedSubmitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addProductFeedSubmit(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addProductFeedSubmit_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, "addProductFeedSubmit failed: unknown result");def updateProductFeedSubmit(self, productFeedSubmit):"""Parameters:- productFeedSubmit"""self.send_updateProductFeedSubmit(productFeedSubmit)return self.recv_updateProductFeedSubmit()def send_updateProductFeedSubmit(self, productFeedSubmit):self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)args = updateProductFeedSubmit_args()args.productFeedSubmit = productFeedSubmitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateProductFeedSubmit(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateProductFeedSubmit_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, "updateProductFeedSubmit failed: unknown result");def deleteProductFeedSubmit(self, catalogItemId):"""Parameters:- catalogItemId"""self.send_deleteProductFeedSubmit(catalogItemId)return self.recv_deleteProductFeedSubmit()def send_deleteProductFeedSubmit(self, catalogItemId):self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)args = deleteProductFeedSubmit_args()args.catalogItemId = catalogItemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteProductFeedSubmit(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteProductFeedSubmit_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, "deleteProductFeedSubmit failed: unknown result");def getAllProductFeedSubmit(self, ):self.send_getAllProductFeedSubmit()return self.recv_getAllProductFeedSubmit()def send_getAllProductFeedSubmit(self, ):self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)args = getAllProductFeedSubmit_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllProductFeedSubmit(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllProductFeedSubmit_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, "getAllProductFeedSubmit failed: unknown result");def getMarketplacedetailsForItem(self, itemId, sourceId):"""Parameters:- itemId- sourceId"""self.send_getMarketplacedetailsForItem(itemId, sourceId)return self.recv_getMarketplacedetailsForItem()def send_getMarketplacedetailsForItem(self, itemId, sourceId):self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)args = getMarketplacedetailsForItem_args()args.itemId = itemIdargs.sourceId = sourceIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getMarketplacedetailsForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getMarketplacedetailsForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");def updateMarketplaceAttributesForItem(self, marketPlaceItem):"""Parameters:- marketPlaceItem"""self.send_updateMarketplaceAttributesForItem(marketPlaceItem)return self.recv_updateMarketplaceAttributesForItem()def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)args = updateMarketplaceAttributesForItem_args()args.marketPlaceItem = marketPlaceItemargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateMarketplaceAttributesForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateMarketplaceAttributesForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");def getCostingForMarketplace(self, source, item_id):"""Parameters:- source- item_id"""self.send_getCostingForMarketplace(source, item_id)return self.recv_getCostingForMarketplace()def send_getCostingForMarketplace(self, source, item_id):self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)args = getCostingForMarketplace_args()args.source = sourceargs.item_id = item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCostingForMarketplace(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCostingForMarketplace_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");def getMarketPlaceItemsForPriceUpdate(self, source):"""Parameters:- source"""self.send_getMarketPlaceItemsForPriceUpdate(source)return self.recv_getMarketPlaceItemsForPriceUpdate()def send_getMarketPlaceItemsForPriceUpdate(self, source):self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)args = getMarketPlaceItemsForPriceUpdate_args()args.source = sourceargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getMarketPlaceItemsForPriceUpdate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getMarketPlaceItemsForPriceUpdate_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):"""Parameters:- skulist- timestamp- source"""self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source)self.recv_updateMarketPlacePriceUpdateStatus()def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)args = updateMarketPlacePriceUpdateStatus_args()args.skulist = skulistargs.timestamp = timestampargs.source = sourceargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateMarketPlacePriceUpdateStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateMarketPlacePriceUpdateStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef updateItemHoldInventory(self, itemHoldMap):"""Parameters:- itemHoldMap"""self.send_updateItemHoldInventory(itemHoldMap)self.recv_updateItemHoldInventory()def send_updateItemHoldInventory(self, itemHoldMap):self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)args = updateItemHoldInventory_args()args.itemHoldMap = itemHoldMapargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateItemHoldInventory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateItemHoldInventory_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):"""Parameters:- item_id- vendor_id- nlc"""self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)self.recv_updateNlcAtMarketplaces()def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)args = updateNlcAtMarketplaces_args()args.item_id = item_idargs.vendor_id = vendor_idargs.nlc = nlcargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateNlcAtMarketplaces(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateNlcAtMarketplaces_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getAllFlipkartItems(self, ):self.send_getAllFlipkartItems()return self.recv_getAllFlipkartItems()def send_getAllFlipkartItems(self, ):self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)args = getAllFlipkartItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllFlipkartItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllFlipkartItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");def addOrUpdateFlipkartItem(self, flipkartitem):"""Parameters:- flipkartitem"""self.send_addOrUpdateFlipkartItem(flipkartitem)return self.recv_addOrUpdateFlipkartItem()def send_addOrUpdateFlipkartItem(self, flipkartitem):self._oprot.writeMessageBegin('addOrUpdateFlipkartItem', TMessageType.CALL, self._seqid)args = addOrUpdateFlipkartItem_args()args.flipkartitem = flipkartitemargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addOrUpdateFlipkartItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addOrUpdateFlipkartItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");def getFlipkartItem(self, item_id):"""Parameters:- item_id"""self.send_getFlipkartItem(item_id)return self.recv_getFlipkartItem()def send_getFlipkartItem(self, item_id):self._oprot.writeMessageBegin('getFlipkartItem', TMessageType.CALL, self._seqid)args = getFlipkartItem_args()args.item_id = item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getFlipkartItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getFlipkartItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");def getFlipkartItemDetails(self, item_id):"""Parameters:- item_id"""self.send_getFlipkartItemDetails(item_id)return self.recv_getFlipkartItemDetails()def send_getFlipkartItemDetails(self, item_id):self._oprot.writeMessageBegin('getFlipkartItemDetails', TMessageType.CALL, self._seqid)args = getFlipkartItemDetails_args()args.item_id = item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getFlipkartItemDetails(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getFlipkartItemDetails_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");def getFlipkartItems(self, offset, limit):"""Parameters:- offset- limit"""self.send_getFlipkartItems(offset, limit)return self.recv_getFlipkartItems()def send_getFlipkartItems(self, offset, limit):self._oprot.writeMessageBegin('getFlipkartItems', TMessageType.CALL, self._seqid)args = getFlipkartItems_args()args.offset = offsetargs.limit = limitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getFlipkartItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getFlipkartItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");def searchFlipkartItems(self, searchTerm, offset, limit):"""Parameters:- searchTerm- offset- limit"""self.send_searchFlipkartItems(searchTerm, offset, limit)return self.recv_searchFlipkartItems()def send_searchFlipkartItems(self, searchTerm, offset, limit):self._oprot.writeMessageBegin('searchFlipkartItems', TMessageType.CALL, self._seqid)args = searchFlipkartItems_args()args.searchTerm = searchTermargs.offset = offsetargs.limit = limitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_searchFlipkartItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = searchFlipkartItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");def getCountForFlipkartItems(self, ):self.send_getCountForFlipkartItems()return self.recv_getCountForFlipkartItems()def send_getCountForFlipkartItems(self, ):self._oprot.writeMessageBegin('getCountForFlipkartItems', TMessageType.CALL, self._seqid)args = getCountForFlipkartItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCountForFlipkartItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCountForFlipkartItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");def getFlipkartSearchResultCount(self, searchTerm):"""Parameters:- searchTerm"""self.send_getFlipkartSearchResultCount(searchTerm)return self.recv_getFlipkartSearchResultCount()def send_getFlipkartSearchResultCount(self, searchTerm):self._oprot.writeMessageBegin('getFlipkartSearchResultCount', TMessageType.CALL, self._seqid)args = getFlipkartSearchResultCount_args()args.searchTerm = searchTermargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getFlipkartSearchResultCount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getFlipkartSearchResultCount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");def getAllFkItems(self, ):self.send_getAllFkItems()return self.recv_getAllFkItems()def send_getAllFkItems(self, ):self._oprot.writeMessageBegin('getAllFkItems', TMessageType.CALL, self._seqid)args = getAllFkItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllFkItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllFkItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");def getFlipkartItemBySkyAtFlipkart(self, sku):"""Parameters:- sku"""self.send_getFlipkartItemBySkyAtFlipkart(sku)return self.recv_getFlipkartItemBySkyAtFlipkart()def send_getFlipkartItemBySkyAtFlipkart(self, sku):self._oprot.writeMessageBegin('getFlipkartItemBySkyAtFlipkart', TMessageType.CALL, self._seqid)args = getFlipkartItemBySkyAtFlipkart_args()args.sku = skuargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getFlipkartItemBySkyAtFlipkart(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getFlipkartItemBySkyAtFlipkart_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");def getMarketplaceHistory(self, source, offset, itemId):"""Parameters:- source- offset- itemId"""self.send_getMarketplaceHistory(source, offset, itemId)return self.recv_getMarketplaceHistory()def send_getMarketplaceHistory(self, source, offset, itemId):self._oprot.writeMessageBegin('getMarketplaceHistory', TMessageType.CALL, self._seqid)args = getMarketplaceHistory_args()args.source = sourceargs.offset = offsetargs.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getMarketplaceHistory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getMarketplaceHistory_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistory failed: unknown result");def getAllFbbListedItems(self, ):self.send_getAllFbbListedItems()return self.recv_getAllFbbListedItems()def send_getAllFbbListedItems(self, ):self._oprot.writeMessageBegin('getAllFbbListedItems', TMessageType.CALL, self._seqid)args = getAllFbbListedItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllFbbListedItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllFbbListedItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");def getAllFbbPricingItems(self, ):self.send_getAllFbbPricingItems()return self.recv_getAllFbbPricingItems()def send_getAllFbbPricingItems(self, ):self._oprot.writeMessageBegin('getAllFbbPricingItems', TMessageType.CALL, self._seqid)args = getAllFbbPricingItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllFbbPricingItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllFbbPricingItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");def getCountForMarketplaceHistory(self, source, itemId):"""Parameters:- source- itemId"""self.send_getCountForMarketplaceHistory(source, itemId)return self.recv_getCountForMarketplaceHistory()def send_getCountForMarketplaceHistory(self, source, itemId):self._oprot.writeMessageBegin('getCountForMarketplaceHistory', TMessageType.CALL, self._seqid)args = getCountForMarketplaceHistory_args()args.source = sourceargs.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCountForMarketplaceHistory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCountForMarketplaceHistory_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForMarketplaceHistory failed: unknown result");def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):"""Parameters:- source- startDate- endDate- offset- limit- itemId"""self.send_getMarketplaceHistoryByDate(source, startDate, endDate, offset, limit, itemId)return self.recv_getMarketplaceHistoryByDate()def send_getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):self._oprot.writeMessageBegin('getMarketplaceHistoryByDate', TMessageType.CALL, self._seqid)args = getMarketplaceHistoryByDate_args()args.source = sourceargs.startDate = startDateargs.endDate = endDateargs.offset = offsetargs.limit = limitargs.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getMarketplaceHistoryByDate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getMarketplaceHistoryByDate_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");def getPrivateDealDetails(self, item_id):"""Parameters:- item_id"""self.send_getPrivateDealDetails(item_id)return self.recv_getPrivateDealDetails()def send_getPrivateDealDetails(self, item_id):self._oprot.writeMessageBegin('getPrivateDealDetails', TMessageType.CALL, self._seqid)args = getPrivateDealDetails_args()args.item_id = item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getPrivateDealDetails(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getPrivateDealDetails_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");def getPrivateDealItems(self, offset, limit):"""Parameters:- offset- limit"""self.send_getPrivateDealItems(offset, limit)return self.recv_getPrivateDealItems()def send_getPrivateDealItems(self, offset, limit):self._oprot.writeMessageBegin('getPrivateDealItems', TMessageType.CALL, self._seqid)args = getPrivateDealItems_args()args.offset = offsetargs.limit = limitargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getPrivateDealItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getPrivateDealItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");def getAllActivePrivateDeals(self, itemIds, daysDelta):"""Parameters:- itemIds- daysDelta"""self.send_getAllActivePrivateDeals(itemIds, daysDelta)return self.recv_getAllActivePrivateDeals()def send_getAllActivePrivateDeals(self, itemIds, daysDelta):self._oprot.writeMessageBegin('getAllActivePrivateDeals', TMessageType.CALL, self._seqid)args = getAllActivePrivateDeals_args()args.itemIds = itemIdsargs.daysDelta = daysDeltaargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllActivePrivateDeals(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllActivePrivateDeals_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllActivePrivateDeals failed: unknown result");def addOrUpdatePrivateDeal(self, privateDeal):"""Parameters:- privateDeal"""self.send_addOrUpdatePrivateDeal(privateDeal)return self.recv_addOrUpdatePrivateDeal()def send_addOrUpdatePrivateDeal(self, privateDeal):self._oprot.writeMessageBegin('addOrUpdatePrivateDeal', TMessageType.CALL, self._seqid)args = addOrUpdatePrivateDeal_args()args.privateDeal = privateDealargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addOrUpdatePrivateDeal(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addOrUpdatePrivateDeal_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");def getPrivateDealsCatalogIds(self, beginIndex, totalItems):"""Parameters:- beginIndex- totalItems"""self.send_getPrivateDealsCatalogIds(beginIndex, totalItems)return self.recv_getPrivateDealsCatalogIds()def send_getPrivateDealsCatalogIds(self, beginIndex, totalItems):self._oprot.writeMessageBegin('getPrivateDealsCatalogIds', TMessageType.CALL, self._seqid)args = getPrivateDealsCatalogIds_args()args.beginIndex = beginIndexargs.totalItems = totalItemsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getPrivateDealsCatalogIds(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getPrivateDealsCatalogIds_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, "getPrivateDealsCatalogIds failed: unknown result");def getPrivateDealsCount(self, ):self.send_getPrivateDealsCount()return self.recv_getPrivateDealsCount()def send_getPrivateDealsCount(self, ):self._oprot.writeMessageBegin('getPrivateDealsCount', TMessageType.CALL, self._seqid)args = getPrivateDealsCount_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getPrivateDealsCount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getPrivateDealsCount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");def getAmazonOutSyncItems(self, item_id):"""Parameters:- item_id"""self.send_getAmazonOutSyncItems(item_id)return self.recv_getAmazonOutSyncItems()def send_getAmazonOutSyncItems(self, item_id):self._oprot.writeMessageBegin('getAmazonOutSyncItems', TMessageType.CALL, self._seqid)args = getAmazonOutSyncItems_args()args.item_id = item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAmazonOutSyncItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAmazonOutSyncItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOutSyncItems failed: unknown result");def getAllPrivateDealsComparison(self, ):self.send_getAllPrivateDealsComparison()return self.recv_getAllPrivateDealsComparison()def send_getAllPrivateDealsComparison(self, ):self._oprot.writeMessageBegin('getAllPrivateDealsComparison', TMessageType.CALL, self._seqid)args = getAllPrivateDealsComparison_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllPrivateDealsComparison(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllPrivateDealsComparison_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");def getAllSnapdealMarketplaceItem(self, ):self.send_getAllSnapdealMarketplaceItem()return self.recv_getAllSnapdealMarketplaceItem()def send_getAllSnapdealMarketplaceItem(self, ):self._oprot.writeMessageBegin('getAllSnapdealMarketplaceItem', TMessageType.CALL, self._seqid)args = getAllSnapdealMarketplaceItem_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllSnapdealMarketplaceItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllSnapdealMarketplaceItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealMarketplaceItem failed: unknown result");def getAllFlipkartMarketplaceItem(self, ):self.send_getAllFlipkartMarketplaceItem()return self.recv_getAllFlipkartMarketplaceItem()def send_getAllFlipkartMarketplaceItem(self, ):self._oprot.writeMessageBegin('getAllFlipkartMarketplaceItem', TMessageType.CALL, self._seqid)args = getAllFlipkartMarketplaceItem_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllFlipkartMarketplaceItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllFlipkartMarketplaceItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartMarketplaceItem failed: unknown result");def addCompetitorScraping(self, competitorPricingMap):"""Parameters:- competitorPricingMap"""self.send_addCompetitorScraping(competitorPricingMap)self.recv_addCompetitorScraping()def send_addCompetitorScraping(self, competitorPricingMap):self._oprot.writeMessageBegin('addCompetitorScraping', TMessageType.CALL, self._seqid)args = addCompetitorScraping_args()args.competitorPricingMap = competitorPricingMapargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addCompetitorScraping(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addCompetitorScraping_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getPreviousCompetitorScraping(self, delta):"""Parameters:- delta"""self.send_getPreviousCompetitorScraping(delta)return self.recv_getPreviousCompetitorScraping()def send_getPreviousCompetitorScraping(self, delta):self._oprot.writeMessageBegin('getPreviousCompetitorScraping', TMessageType.CALL, self._seqid)args = getPreviousCompetitorScraping_args()args.delta = deltaargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getPreviousCompetitorScraping(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getPreviousCompetitorScraping_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");def getUploadResultById(self, uploadId):"""Parameters:- uploadId"""self.send_getUploadResultById(uploadId)return self.recv_getUploadResultById()def send_getUploadResultById(self, uploadId):self._oprot.writeMessageBegin('getUploadResultById', TMessageType.CALL, self._seqid)args = getUploadResultById_args()args.uploadId = uploadIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getUploadResultById(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getUploadResultById_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");def addAmazonPromotion(self, amazonPromotions):"""Parameters:- amazonPromotions"""self.send_addAmazonPromotion(amazonPromotions)return self.recv_addAmazonPromotion()def send_addAmazonPromotion(self, amazonPromotions):self._oprot.writeMessageBegin('addAmazonPromotion', TMessageType.CALL, self._seqid)args = addAmazonPromotion_args()args.amazonPromotions = amazonPromotionsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addAmazonPromotion(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addAmazonPromotion_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, "addAmazonPromotion failed: unknown result");def getAmazonPromotion(self, startDate, endDate):"""Parameters:- startDate- endDate"""self.send_getAmazonPromotion(startDate, endDate)return self.recv_getAmazonPromotion()def send_getAmazonPromotion(self, startDate, endDate):self._oprot.writeMessageBegin('getAmazonPromotion', TMessageType.CALL, self._seqid)args = getAmazonPromotion_args()args.startDate = startDateargs.endDate = endDateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAmazonPromotion(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAmazonPromotion_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");def updateAmazonPromotion(self, amazonPromotions):"""Parameters:- amazonPromotions"""self.send_updateAmazonPromotion(amazonPromotions)return self.recv_updateAmazonPromotion()def send_updateAmazonPromotion(self, amazonPromotions):self._oprot.writeMessageBegin('updateAmazonPromotion', TMessageType.CALL, self._seqid)args = updateAmazonPromotion_args()args.amazonPromotions = amazonPromotionsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateAmazonPromotion(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateAmazonPromotion_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");def markPartiallyActive(self, itemId, categoryId):"""Parameters:- itemId- categoryId"""self.send_markPartiallyActive(itemId, categoryId)return self.recv_markPartiallyActive()def send_markPartiallyActive(self, itemId, categoryId):self._oprot.writeMessageBegin('markPartiallyActive', TMessageType.CALL, self._seqid)args = markPartiallyActive_args()args.itemId = itemIdargs.categoryId = categoryIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_markPartiallyActive(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = markPartiallyActive_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "markPartiallyActive failed: unknown result");def updateItemStateVat(self, itemId, statevat):"""Parameters:- itemId- statevat"""self.send_updateItemStateVat(itemId, statevat)return self.recv_updateItemStateVat()def send_updateItemStateVat(self, itemId, statevat):self._oprot.writeMessageBegin('updateItemStateVat', TMessageType.CALL, self._seqid)args = updateItemStateVat_args()args.itemId = itemIdargs.statevat = statevatargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateItemStateVat(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateItemStateVat_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");def getExAffiliateItemInfo(self, ):self.send_getExAffiliateItemInfo()return self.recv_getExAffiliateItemInfo()def send_getExAffiliateItemInfo(self, ):self._oprot.writeMessageBegin('getExAffiliateItemInfo', TMessageType.CALL, self._seqid)args = getExAffiliateItemInfo_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getExAffiliateItemInfo(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getExAffiliateItemInfo_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");def getAllItemstoListOnFbg(self, ):self.send_getAllItemstoListOnFbg()return self.recv_getAllItemstoListOnFbg()def send_getAllItemstoListOnFbg(self, ):self._oprot.writeMessageBegin('getAllItemstoListOnFbg', TMessageType.CALL, self._seqid)args = getAllItemstoListOnFbg_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllItemstoListOnFbg(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllItemstoListOnFbg_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");def getAllFbgListedItems(self, ):self.send_getAllFbgListedItems()return self.recv_getAllFbgListedItems()def send_getAllFbgListedItems(self, ):self._oprot.writeMessageBegin('getAllFbgListedItems', TMessageType.CALL, self._seqid)args = getAllFbgListedItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllFbgListedItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllFbgListedItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbgListedItems failed: unknown result");def checkServices(self, lines):"""Parameters:- lines"""self.send_checkServices(lines)return self.recv_checkServices()def send_checkServices(self, lines):self._oprot.writeMessageBegin('checkServices', TMessageType.CALL, self._seqid)args = checkServices_args()args.lines = linesargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_checkServices(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = checkServices_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, "checkServices failed: unknown result");def addHsItem(self, hsItems):"""Parameters:- hsItems"""self.send_addHsItem(hsItems)self.recv_addHsItem()def send_addHsItem(self, hsItems):self._oprot.writeMessageBegin('addHsItem', TMessageType.CALL, self._seqid)args = addHsItem_args()args.hsItems = hsItemsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addHsItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addHsItem_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getHsItem(self, hsItemId):"""Parameters:- hsItemId"""self.send_getHsItem(hsItemId)return self.recv_getHsItem()def send_getHsItem(self, hsItemId):self._oprot.writeMessageBegin('getHsItem', TMessageType.CALL, self._seqid)args = getHsItem_args()args.hsItemId = hsItemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getHsItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getHsItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getHsItem failed: unknown result");def updateHsItem(self, hsItem):"""Parameters:- hsItem"""self.send_updateHsItem(hsItem)self.recv_updateHsItem()def send_updateHsItem(self, hsItem):self._oprot.writeMessageBegin('updateHsItem', TMessageType.CALL, self._seqid)args = updateHsItem_args()args.hsItem = hsItemargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateHsItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateHsItem_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getPricingForDtr(self, catalogItemId):"""Parameters:- catalogItemId"""self.send_getPricingForDtr(catalogItemId)return self.recv_getPricingForDtr()def send_getPricingForDtr(self, catalogItemId):self._oprot.writeMessageBegin('getPricingForDtr', TMessageType.CALL, self._seqid)args = getPricingForDtr_args()args.catalogItemId = catalogItemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getPricingForDtr(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getPricingForDtr_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getPricingForDtr failed: unknown result");def getAllItemstoListOnFbd(self, ):self.send_getAllItemstoListOnFbd()return self.recv_getAllItemstoListOnFbd()def send_getAllItemstoListOnFbd(self, ):self._oprot.writeMessageBegin('getAllItemstoListOnFbd', TMessageType.CALL, self._seqid)args = getAllItemstoListOnFbd_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllItemstoListOnFbd(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllItemstoListOnFbd_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbd failed: unknown result");def getAllFbdListedItems(self, ):self.send_getAllFbdListedItems()return self.recv_getAllFbdListedItems()def send_getAllFbdListedItems(self, ):self._oprot.writeMessageBegin('getAllFbdListedItems', TMessageType.CALL, self._seqid)args = getAllFbdListedItems_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllFbdListedItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllFbdListedItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbdListedItems 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["getItemsStatus"] = Processor.process_getItemsStatusself._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["getItems"] = Processor.process_getItemsself._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["getVatRates"] = Processor.process_getVatRatesself._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["addBanner"] = Processor.process_addBannerself._processMap["updateBanner"] = Processor.process_updateBannerself._processMap["getAllBanners"] = Processor.process_getAllBannersself._processMap["deleteBanner"] = Processor.process_deleteBannerself._processMap["getBannerDetails"] = Processor.process_getBannerDetailsself._processMap["getActiveBanners"] = Processor.process_getActiveBannersself._processMap["addBannerMap"] = Processor.process_addBannerMapself._processMap["updateBannerMap"] = Processor.process_updateBannerMapself._processMap["deleteBannerMap"] = Processor.process_deleteBannerMapself._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetailsself._processMap["addBannerUri"] = Processor.process_addBannerUriself._processMap["getUriMapping"] = Processor.process_getUriMappingself._processMap["addCampaign"] = Processor.process_addCampaignself._processMap["getCampaigns"] = Processor.process_getCampaignsself._processMap["deleteCampaign"] = Processor.process_deleteCampaignself._processMap["getAllCampaigns"] = Processor.process_getAllCampaignsself._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSiteself._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["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_getAllInsurersself._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmountself._processMap["getFreebieForItem"] = Processor.process_getFreebieForItemself._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItemself._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfoself._processMap["getBrandInfo"] = Processor.process_getBrandInfoself._processMap["getStorePricing"] = Processor.process_getStorePricingself._processMap["getStorePricings"] = Processor.process_getStorePricingsself._processMap["updateStorePricing"] = Processor.process_updateStorePricingself._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItemsself._processMap["searchAmazonItems"] = Processor.process_searchAmazonItemsself._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCountself._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItemsself._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetailsself._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetailsself._processMap["addAmazonItem"] = Processor.process_addAmazonItemself._processMap["getAsinItems"] = Processor.process_getAsinItemsself._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItemsself._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItemsself._processMap["updateItemInventory"] = Processor.process_updateItemInventoryself._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeedsself._processMap["getAllParentCategories"] = Processor.process_getAllParentCategoriesself._processMap["addPageViewEvent"] = Processor.process_addPageViewEventself._processMap["addCartEvent"] = Processor.process_addCartEventself._processMap["addEbayItem"] = Processor.process_addEbayItemself._processMap["getEbayItem"] = Processor.process_getEbayItemself._processMap["updateEbayItem"] = Processor.process_updateEbayItemself._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItemsself._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulkself._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFbaself._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFbaself._processMap["updateAsin"] = Processor.process_updateAsinself._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItemself._processMap["getSnapdealItem"] = Processor.process_getSnapdealItemself._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetailsself._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItemsself._processMap["getSnapdealItems"] = Processor.process_getSnapdealItemsself._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItemsself._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItemsself._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCountself._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItemself._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdealself._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmitself._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmitself._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmitself._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmitself._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmitself._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItemself._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItemself._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplaceself._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdateself._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatusself._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventoryself._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplacesself._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItemsself._processMap["addOrUpdateFlipkartItem"] = Processor.process_addOrUpdateFlipkartItemself._processMap["getFlipkartItem"] = Processor.process_getFlipkartItemself._processMap["getFlipkartItemDetails"] = Processor.process_getFlipkartItemDetailsself._processMap["getFlipkartItems"] = Processor.process_getFlipkartItemsself._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItemsself._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItemsself._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCountself._processMap["getAllFkItems"] = Processor.process_getAllFkItemsself._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkartself._processMap["getMarketplaceHistory"] = Processor.process_getMarketplaceHistoryself._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItemsself._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItemsself._processMap["getCountForMarketplaceHistory"] = Processor.process_getCountForMarketplaceHistoryself._processMap["getMarketplaceHistoryByDate"] = Processor.process_getMarketplaceHistoryByDateself._processMap["getPrivateDealDetails"] = Processor.process_getPrivateDealDetailsself._processMap["getPrivateDealItems"] = Processor.process_getPrivateDealItemsself._processMap["getAllActivePrivateDeals"] = Processor.process_getAllActivePrivateDealsself._processMap["addOrUpdatePrivateDeal"] = Processor.process_addOrUpdatePrivateDealself._processMap["getPrivateDealsCatalogIds"] = Processor.process_getPrivateDealsCatalogIdsself._processMap["getPrivateDealsCount"] = Processor.process_getPrivateDealsCountself._processMap["getAmazonOutSyncItems"] = Processor.process_getAmazonOutSyncItemsself._processMap["getAllPrivateDealsComparison"] = Processor.process_getAllPrivateDealsComparisonself._processMap["getAllSnapdealMarketplaceItem"] = Processor.process_getAllSnapdealMarketplaceItemself._processMap["getAllFlipkartMarketplaceItem"] = Processor.process_getAllFlipkartMarketplaceItemself._processMap["addCompetitorScraping"] = Processor.process_addCompetitorScrapingself._processMap["getPreviousCompetitorScraping"] = Processor.process_getPreviousCompetitorScrapingself._processMap["getUploadResultById"] = Processor.process_getUploadResultByIdself._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotionself._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotionself._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotionself._processMap["markPartiallyActive"] = Processor.process_markPartiallyActiveself._processMap["updateItemStateVat"] = Processor.process_updateItemStateVatself._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfoself._processMap["getAllItemstoListOnFbg"] = Processor.process_getAllItemstoListOnFbgself._processMap["getAllFbgListedItems"] = Processor.process_getAllFbgListedItemsself._processMap["checkServices"] = Processor.process_checkServicesself._processMap["addHsItem"] = Processor.process_addHsItemself._processMap["getHsItem"] = Processor.process_getHsItemself._processMap["updateHsItem"] = Processor.process_updateHsItemself._processMap["getPricingForDtr"] = Processor.process_getPricingForDtrself._processMap["getAllItemstoListOnFbd"] = Processor.process_getAllItemstoListOnFbdself._processMap["getAllFbdListedItems"] = Processor.process_getAllFbdListedItemsdef 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_getItemsStatus(self, seqid, iprot, oprot):args = getItemsStatus_args()args.read(iprot)iprot.readMessageEnd()result = getItemsStatus_result()try:result.success = self._handler.getItemsStatus(args.itemIds)except CatalogServiceException, isex:result.isex = isexoprot.writeMessageBegin("getItemsStatus", 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_getItems(self, seqid, iprot, oprot):args = getItems_args()args.read(iprot)iprot.readMessageEnd()result = getItems_result()try:result.success = self._handler.getItems(args.item_ids)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getItems", 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, args.isAndroid)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getVatRates(self, seqid, iprot, oprot):args = getVatRates_args()args.read(iprot)iprot.readMessageEnd()result = getVatRates_result()try:result.success = self._handler.getVatRates(args.itemId, args.categoryId)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getVatRates", 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_addBanner(self, seqid, iprot, oprot):args = addBanner_args()args.read(iprot)iprot.readMessageEnd()result = addBanner_result()result.success = self._handler.addBanner(args.bannerCongregate)oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateBanner(self, seqid, iprot, oprot):args = updateBanner_args()args.read(iprot)iprot.readMessageEnd()result = updateBanner_result()result.success = self._handler.updateBanner(args.banner)oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllBanners(self, seqid, iprot, oprot):args = getAllBanners_args()args.read(iprot)iprot.readMessageEnd()result = getAllBanners_result()result.success = self._handler.getAllBanners()oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteBanner(self, seqid, iprot, oprot):args = deleteBanner_args()args.read(iprot)iprot.readMessageEnd()result = deleteBanner_result()result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBannerDetails(self, seqid, iprot, oprot):args = getBannerDetails_args()args.read(iprot)iprot.readMessageEnd()result = getBannerDetails_result()result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getActiveBanners(self, seqid, iprot, oprot):args = getActiveBanners_args()args.read(iprot)iprot.readMessageEnd()result = getActiveBanners_result()result.success = self._handler.getActiveBanners()oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addBannerMap(self, seqid, iprot, oprot):args = addBannerMap_args()args.read(iprot)iprot.readMessageEnd()result = addBannerMap_result()result.success = self._handler.addBannerMap(args.bannerMaps)oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateBannerMap(self, seqid, iprot, oprot):args = updateBannerMap_args()args.read(iprot)iprot.readMessageEnd()result = updateBannerMap_result()result.success = self._handler.updateBannerMap(args.bannerMap)oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteBannerMap(self, seqid, iprot, oprot):args = deleteBannerMap_args()args.read(iprot)iprot.readMessageEnd()result = deleteBannerMap_result()result.success = self._handler.deleteBannerMap(args.bannerName)oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBannerMapDetails(self, seqid, iprot, oprot):args = getBannerMapDetails_args()args.read(iprot)iprot.readMessageEnd()result = getBannerMapDetails_result()result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addBannerUri(self, seqid, iprot, oprot):args = addBannerUri_args()args.read(iprot)iprot.readMessageEnd()result = addBannerUri_result()self._handler.addBannerUri(args.bannerUriMappings)oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getUriMapping(self, seqid, iprot, oprot):args = getUriMapping_args()args.read(iprot)iprot.readMessageEnd()result = getUriMapping_result()result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addCampaign(self, seqid, iprot, oprot):args = addCampaign_args()args.read(iprot)iprot.readMessageEnd()result = addCampaign_result()self._handler.addCampaign(args.campaign)oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCampaigns(self, seqid, iprot, oprot):args = getCampaigns_args()args.read(iprot)iprot.readMessageEnd()result = getCampaigns_result()result.success = self._handler.getCampaigns(args.campaignName)oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteCampaign(self, seqid, iprot, oprot):args = deleteCampaign_args()args.read(iprot)iprot.readMessageEnd()result = deleteCampaign_result()self._handler.deleteCampaign(args.campaignId)oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllCampaigns(self, seqid, iprot, oprot):args = getAllCampaigns_args()args.read(iprot)iprot.readMessageEnd()result = getAllCampaigns_result()result.success = self._handler.getAllCampaigns()oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):args = getActiveBannersForMobileSite_args()args.read(iprot)iprot.readMessageEnd()result = getActiveBannersForMobileSite_result()result.success = self._handler.getActiveBannersForMobileSite()oprot.writeMessageBegin("getActiveBannersForMobileSite", 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, args.categoryId)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_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()try:result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)except CatalogServiceException, cex:result.cex = cexoprot.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.price, 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()def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):args = updateInsuranceDeclaredAmount_args()args.read(iprot)iprot.readMessageEnd()result = updateInsuranceDeclaredAmount_result()self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getFreebieForItem(self, seqid, iprot, oprot):args = getFreebieForItem_args()args.read(iprot)iprot.readMessageEnd()result = getFreebieForItem_result()result.success = self._handler.getFreebieForItem(args.itemId)oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):args = addOrUpdateFreebieForItem_args()args.read(iprot)iprot.readMessageEnd()result = addOrUpdateFreebieForItem_result()self._handler.addOrUpdateFreebieForItem(args.freebieItem)oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):args = addOrUpdateBrandInfo_args()args.read(iprot)iprot.readMessageEnd()result = addOrUpdateBrandInfo_result()self._handler.addOrUpdateBrandInfo(args.brandInfo)oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBrandInfo(self, seqid, iprot, oprot):args = getBrandInfo_args()args.read(iprot)iprot.readMessageEnd()result = getBrandInfo_result()result.success = self._handler.getBrandInfo()oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getStorePricing(self, seqid, iprot, oprot):args = getStorePricing_args()args.read(iprot)iprot.readMessageEnd()result = getStorePricing_result()result.success = self._handler.getStorePricing(args.itemId)oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getStorePricings(self, seqid, iprot, oprot):args = getStorePricings_args()args.read(iprot)iprot.readMessageEnd()result = getStorePricings_result()result.success = self._handler.getStorePricings(args.itemIds)oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateStorePricing(self, seqid, iprot, oprot):args = updateStorePricing_args()args.read(iprot)iprot.readMessageEnd()result = updateStorePricing_result()self._handler.updateStorePricing(args.sp, args.allColors)oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllAmazonListedItems(self, seqid, iprot, oprot):args = getAllAmazonListedItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllAmazonListedItems_result()result.success = self._handler.getAllAmazonListedItems()oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_searchAmazonItems(self, seqid, iprot, oprot):args = searchAmazonItems_args()args.read(iprot)iprot.readMessageEnd()result = searchAmazonItems_result()result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):args = getAmazonSearchResultCount_args()args.read(iprot)iprot.readMessageEnd()result = getAmazonSearchResultCount_result()result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):args = getCountForAmazonlistedItems_args()args.read(iprot)iprot.readMessageEnd()result = getCountForAmazonlistedItems_result()result.success = self._handler.getCountForAmazonlistedItems()oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAmazonItemDetails(self, seqid, iprot, oprot):args = getAmazonItemDetails_args()args.read(iprot)iprot.readMessageEnd()result = getAmazonItemDetails_result()result.success = self._handler.getAmazonItemDetails(args.itemId)oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateAmazonItemDetails(self, seqid, iprot, oprot):args = updateAmazonItemDetails_args()args.read(iprot)iprot.readMessageEnd()result = updateAmazonItemDetails_result()self._handler.updateAmazonItemDetails(args.amazonlisted)oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addAmazonItem(self, seqid, iprot, oprot):args = addAmazonItem_args()args.read(iprot)iprot.readMessageEnd()result = addAmazonItem_result()self._handler.addAmazonItem(args.amazonlisted)oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAsinItems(self, seqid, iprot, oprot):args = getAsinItems_args()args.read(iprot)iprot.readMessageEnd()result = getAsinItems_result()result.success = self._handler.getAsinItems()oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllFbaListedItems(self, seqid, iprot, oprot):args = getAllFbaListedItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllFbaListedItems_result()result.success = self._handler.getAllFbaListedItems()oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):args = getAllNonFbaListedItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllNonFbaListedItems_result()result.success = self._handler.getAllNonFbaListedItems()oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateItemInventory(self, seqid, iprot, oprot):args = updateItemInventory_args()args.read(iprot)iprot.readMessageEnd()result = updateItemInventory_result()result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):args = updateTimestampForAmazonFeeds_args()args.read(iprot)iprot.readMessageEnd()result = updateTimestampForAmazonFeeds_result()result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllParentCategories(self, seqid, iprot, oprot):args = getAllParentCategories_args()args.read(iprot)iprot.readMessageEnd()result = getAllParentCategories_result()result.success = self._handler.getAllParentCategories()oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addPageViewEvent(self, seqid, iprot, oprot):args = addPageViewEvent_args()args.read(iprot)iprot.readMessageEnd()result = addPageViewEvent_result()self._handler.addPageViewEvent(args.pageViewEvents)oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addCartEvent(self, seqid, iprot, oprot):args = addCartEvent_args()args.read(iprot)iprot.readMessageEnd()result = addCartEvent_result()self._handler.addCartEvent(args.cartEvents)oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addEbayItem(self, seqid, iprot, oprot):args = addEbayItem_args()args.read(iprot)iprot.readMessageEnd()result = addEbayItem_result()self._handler.addEbayItem(args.ebayItem)oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getEbayItem(self, seqid, iprot, oprot):args = getEbayItem_args()args.read(iprot)iprot.readMessageEnd()result = getEbayItem_result()result.success = self._handler.getEbayItem(args.listingId)oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateEbayItem(self, seqid, iprot, oprot):args = updateEbayItem_args()args.read(iprot)iprot.readMessageEnd()result = updateEbayItem_result()self._handler.updateEbayItem(args.ebayItem)oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAmazonListedItems(self, seqid, iprot, oprot):args = getAmazonListedItems_args()args.read(iprot)iprot.readMessageEnd()result = getAmazonListedItems_result()result.success = self._handler.getAmazonListedItems(args.offset, args.limit)oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):args = updateAmazonAttributesInBulk_args()args.read(iprot)iprot.readMessageEnd()result = updateAmazonAttributesInBulk_result()result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):args = getAllItemstoListOnFba_args()args.read(iprot)iprot.readMessageEnd()result = getAllItemstoListOnFba_result()result.success = self._handler.getAllItemstoListOnFba()oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):args = getAllItemstoListOnNonFba_args()args.read(iprot)iprot.readMessageEnd()result = getAllItemstoListOnNonFba_result()result.success = self._handler.getAllItemstoListOnNonFba()oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateAsin(self, seqid, iprot, oprot):args = updateAsin_args()args.read(iprot)iprot.readMessageEnd()result = updateAsin_result()self._handler.updateAsin(args.item)oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):args = addOrUpdateSnapdealItem_args()args.read(iprot)iprot.readMessageEnd()result = addOrUpdateSnapdealItem_result()result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getSnapdealItem(self, seqid, iprot, oprot):args = getSnapdealItem_args()args.read(iprot)iprot.readMessageEnd()result = getSnapdealItem_result()result.success = self._handler.getSnapdealItem(args.item_id)oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getSnapdealItemDetails(self, seqid, iprot, oprot):args = getSnapdealItemDetails_args()args.read(iprot)iprot.readMessageEnd()result = getSnapdealItemDetails_result()result.success = self._handler.getSnapdealItemDetails(args.item_id)oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllSnapdealItems(self, seqid, iprot, oprot):args = getAllSnapdealItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllSnapdealItems_result()result.success = self._handler.getAllSnapdealItems()oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getSnapdealItems(self, seqid, iprot, oprot):args = getSnapdealItems_args()args.read(iprot)iprot.readMessageEnd()result = getSnapdealItems_result()result.success = self._handler.getSnapdealItems(args.offset, args.limit)oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_searchSnapdealItems(self, seqid, iprot, oprot):args = searchSnapdealItems_args()args.read(iprot)iprot.readMessageEnd()result = searchSnapdealItems_result()result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCountForSnapdealItems(self, seqid, iprot, oprot):args = getCountForSnapdealItems_args()args.read(iprot)iprot.readMessageEnd()result = getCountForSnapdealItems_result()result.success = self._handler.getCountForSnapdealItems()oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):args = getSnapdealSearchResultCount_args()args.read(iprot)iprot.readMessageEnd()result = getSnapdealSearchResultCount_result()result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):args = getPrefferedInsurerForItem_args()args.read(iprot)iprot.readMessageEnd()result = getPrefferedInsurerForItem_result()result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):args = getSnapdealItembySkuAtSnapdeal_args()args.read(iprot)iprot.readMessageEnd()result = getSnapdealItembySkuAtSnapdeal_result()result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getProductFeedSubmit(self, seqid, iprot, oprot):args = getProductFeedSubmit_args()args.read(iprot)iprot.readMessageEnd()result = getProductFeedSubmit_result()try:result.success = self._handler.getProductFeedSubmit(args.catalogItemId)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addProductFeedSubmit(self, seqid, iprot, oprot):args = addProductFeedSubmit_args()args.read(iprot)iprot.readMessageEnd()result = addProductFeedSubmit_result()try:result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateProductFeedSubmit(self, seqid, iprot, oprot):args = updateProductFeedSubmit_args()args.read(iprot)iprot.readMessageEnd()result = updateProductFeedSubmit_result()try:result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):args = deleteProductFeedSubmit_args()args.read(iprot)iprot.readMessageEnd()result = deleteProductFeedSubmit_result()try:result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):args = getAllProductFeedSubmit_args()args.read(iprot)iprot.readMessageEnd()result = getAllProductFeedSubmit_result()try:result.success = self._handler.getAllProductFeedSubmit()except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):args = getMarketplacedetailsForItem_args()args.read(iprot)iprot.readMessageEnd()result = getMarketplacedetailsForItem_result()result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):args = updateMarketplaceAttributesForItem_args()args.read(iprot)iprot.readMessageEnd()result = updateMarketplaceAttributesForItem_result()result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCostingForMarketplace(self, seqid, iprot, oprot):args = getCostingForMarketplace_args()args.read(iprot)iprot.readMessageEnd()result = getCostingForMarketplace_result()result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):args = getMarketPlaceItemsForPriceUpdate_args()args.read(iprot)iprot.readMessageEnd()result = getMarketPlaceItemsForPriceUpdate_result()result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):args = updateMarketPlacePriceUpdateStatus_args()args.read(iprot)iprot.readMessageEnd()result = updateMarketPlacePriceUpdateStatus_result()self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source)oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateItemHoldInventory(self, seqid, iprot, oprot):args = updateItemHoldInventory_args()args.read(iprot)iprot.readMessageEnd()result = updateItemHoldInventory_result()self._handler.updateItemHoldInventory(args.itemHoldMap)oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):args = updateNlcAtMarketplaces_args()args.read(iprot)iprot.readMessageEnd()result = updateNlcAtMarketplaces_result()self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllFlipkartItems(self, seqid, iprot, oprot):args = getAllFlipkartItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllFlipkartItems_result()result.success = self._handler.getAllFlipkartItems()oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addOrUpdateFlipkartItem(self, seqid, iprot, oprot):args = addOrUpdateFlipkartItem_args()args.read(iprot)iprot.readMessageEnd()result = addOrUpdateFlipkartItem_result()result.success = self._handler.addOrUpdateFlipkartItem(args.flipkartitem)oprot.writeMessageBegin("addOrUpdateFlipkartItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getFlipkartItem(self, seqid, iprot, oprot):args = getFlipkartItem_args()args.read(iprot)iprot.readMessageEnd()result = getFlipkartItem_result()result.success = self._handler.getFlipkartItem(args.item_id)oprot.writeMessageBegin("getFlipkartItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getFlipkartItemDetails(self, seqid, iprot, oprot):args = getFlipkartItemDetails_args()args.read(iprot)iprot.readMessageEnd()result = getFlipkartItemDetails_result()result.success = self._handler.getFlipkartItemDetails(args.item_id)oprot.writeMessageBegin("getFlipkartItemDetails", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getFlipkartItems(self, seqid, iprot, oprot):args = getFlipkartItems_args()args.read(iprot)iprot.readMessageEnd()result = getFlipkartItems_result()result.success = self._handler.getFlipkartItems(args.offset, args.limit)oprot.writeMessageBegin("getFlipkartItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_searchFlipkartItems(self, seqid, iprot, oprot):args = searchFlipkartItems_args()args.read(iprot)iprot.readMessageEnd()result = searchFlipkartItems_result()result.success = self._handler.searchFlipkartItems(args.searchTerm, args.offset, args.limit)oprot.writeMessageBegin("searchFlipkartItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCountForFlipkartItems(self, seqid, iprot, oprot):args = getCountForFlipkartItems_args()args.read(iprot)iprot.readMessageEnd()result = getCountForFlipkartItems_result()result.success = self._handler.getCountForFlipkartItems()oprot.writeMessageBegin("getCountForFlipkartItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getFlipkartSearchResultCount(self, seqid, iprot, oprot):args = getFlipkartSearchResultCount_args()args.read(iprot)iprot.readMessageEnd()result = getFlipkartSearchResultCount_result()result.success = self._handler.getFlipkartSearchResultCount(args.searchTerm)oprot.writeMessageBegin("getFlipkartSearchResultCount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllFkItems(self, seqid, iprot, oprot):args = getAllFkItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllFkItems_result()result.success = self._handler.getAllFkItems()oprot.writeMessageBegin("getAllFkItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getFlipkartItemBySkyAtFlipkart(self, seqid, iprot, oprot):args = getFlipkartItemBySkyAtFlipkart_args()args.read(iprot)iprot.readMessageEnd()result = getFlipkartItemBySkyAtFlipkart_result()result.success = self._handler.getFlipkartItemBySkyAtFlipkart(args.sku)oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getMarketplaceHistory(self, seqid, iprot, oprot):args = getMarketplaceHistory_args()args.read(iprot)iprot.readMessageEnd()result = getMarketplaceHistory_result()result.success = self._handler.getMarketplaceHistory(args.source, args.offset, args.itemId)oprot.writeMessageBegin("getMarketplaceHistory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllFbbListedItems(self, seqid, iprot, oprot):args = getAllFbbListedItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllFbbListedItems_result()result.success = self._handler.getAllFbbListedItems()oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllFbbPricingItems(self, seqid, iprot, oprot):args = getAllFbbPricingItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllFbbPricingItems_result()result.success = self._handler.getAllFbbPricingItems()oprot.writeMessageBegin("getAllFbbPricingItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCountForMarketplaceHistory(self, seqid, iprot, oprot):args = getCountForMarketplaceHistory_args()args.read(iprot)iprot.readMessageEnd()result = getCountForMarketplaceHistory_result()result.success = self._handler.getCountForMarketplaceHistory(args.source, args.itemId)oprot.writeMessageBegin("getCountForMarketplaceHistory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getMarketplaceHistoryByDate(self, seqid, iprot, oprot):args = getMarketplaceHistoryByDate_args()args.read(iprot)iprot.readMessageEnd()result = getMarketplaceHistoryByDate_result()result.success = self._handler.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId)oprot.writeMessageBegin("getMarketplaceHistoryByDate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getPrivateDealDetails(self, seqid, iprot, oprot):args = getPrivateDealDetails_args()args.read(iprot)iprot.readMessageEnd()result = getPrivateDealDetails_result()result.success = self._handler.getPrivateDealDetails(args.item_id)oprot.writeMessageBegin("getPrivateDealDetails", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getPrivateDealItems(self, seqid, iprot, oprot):args = getPrivateDealItems_args()args.read(iprot)iprot.readMessageEnd()result = getPrivateDealItems_result()result.success = self._handler.getPrivateDealItems(args.offset, args.limit)oprot.writeMessageBegin("getPrivateDealItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllActivePrivateDeals(self, seqid, iprot, oprot):args = getAllActivePrivateDeals_args()args.read(iprot)iprot.readMessageEnd()result = getAllActivePrivateDeals_result()result.success = self._handler.getAllActivePrivateDeals(args.itemIds, args.daysDelta)oprot.writeMessageBegin("getAllActivePrivateDeals", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addOrUpdatePrivateDeal(self, seqid, iprot, oprot):args = addOrUpdatePrivateDeal_args()args.read(iprot)iprot.readMessageEnd()result = addOrUpdatePrivateDeal_result()result.success = self._handler.addOrUpdatePrivateDeal(args.privateDeal)oprot.writeMessageBegin("addOrUpdatePrivateDeal", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getPrivateDealsCatalogIds(self, seqid, iprot, oprot):args = getPrivateDealsCatalogIds_args()args.read(iprot)iprot.readMessageEnd()result = getPrivateDealsCatalogIds_result()try:result.success = self._handler.getPrivateDealsCatalogIds(args.beginIndex, args.totalItems)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getPrivateDealsCatalogIds", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getPrivateDealsCount(self, seqid, iprot, oprot):args = getPrivateDealsCount_args()args.read(iprot)iprot.readMessageEnd()result = getPrivateDealsCount_result()result.success = self._handler.getPrivateDealsCount()oprot.writeMessageBegin("getPrivateDealsCount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAmazonOutSyncItems(self, seqid, iprot, oprot):args = getAmazonOutSyncItems_args()args.read(iprot)iprot.readMessageEnd()result = getAmazonOutSyncItems_result()result.success = self._handler.getAmazonOutSyncItems(args.item_id)oprot.writeMessageBegin("getAmazonOutSyncItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllPrivateDealsComparison(self, seqid, iprot, oprot):args = getAllPrivateDealsComparison_args()args.read(iprot)iprot.readMessageEnd()result = getAllPrivateDealsComparison_result()result.success = self._handler.getAllPrivateDealsComparison()oprot.writeMessageBegin("getAllPrivateDealsComparison", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllSnapdealMarketplaceItem(self, seqid, iprot, oprot):args = getAllSnapdealMarketplaceItem_args()args.read(iprot)iprot.readMessageEnd()result = getAllSnapdealMarketplaceItem_result()result.success = self._handler.getAllSnapdealMarketplaceItem()oprot.writeMessageBegin("getAllSnapdealMarketplaceItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllFlipkartMarketplaceItem(self, seqid, iprot, oprot):args = getAllFlipkartMarketplaceItem_args()args.read(iprot)iprot.readMessageEnd()result = getAllFlipkartMarketplaceItem_result()result.success = self._handler.getAllFlipkartMarketplaceItem()oprot.writeMessageBegin("getAllFlipkartMarketplaceItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addCompetitorScraping(self, seqid, iprot, oprot):args = addCompetitorScraping_args()args.read(iprot)iprot.readMessageEnd()result = addCompetitorScraping_result()self._handler.addCompetitorScraping(args.competitorPricingMap)oprot.writeMessageBegin("addCompetitorScraping", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getPreviousCompetitorScraping(self, seqid, iprot, oprot):args = getPreviousCompetitorScraping_args()args.read(iprot)iprot.readMessageEnd()result = getPreviousCompetitorScraping_result()result.success = self._handler.getPreviousCompetitorScraping(args.delta)oprot.writeMessageBegin("getPreviousCompetitorScraping", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getUploadResultById(self, seqid, iprot, oprot):args = getUploadResultById_args()args.read(iprot)iprot.readMessageEnd()result = getUploadResultById_result()result.success = self._handler.getUploadResultById(args.uploadId)oprot.writeMessageBegin("getUploadResultById", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addAmazonPromotion(self, seqid, iprot, oprot):args = addAmazonPromotion_args()args.read(iprot)iprot.readMessageEnd()result = addAmazonPromotion_result()try:result.success = self._handler.addAmazonPromotion(args.amazonPromotions)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("addAmazonPromotion", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAmazonPromotion(self, seqid, iprot, oprot):args = getAmazonPromotion_args()args.read(iprot)iprot.readMessageEnd()result = getAmazonPromotion_result()result.success = self._handler.getAmazonPromotion(args.startDate, args.endDate)oprot.writeMessageBegin("getAmazonPromotion", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateAmazonPromotion(self, seqid, iprot, oprot):args = updateAmazonPromotion_args()args.read(iprot)iprot.readMessageEnd()result = updateAmazonPromotion_result()result.success = self._handler.updateAmazonPromotion(args.amazonPromotions)oprot.writeMessageBegin("updateAmazonPromotion", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_markPartiallyActive(self, seqid, iprot, oprot):args = markPartiallyActive_args()args.read(iprot)iprot.readMessageEnd()result = markPartiallyActive_result()result.success = self._handler.markPartiallyActive(args.itemId, args.categoryId)oprot.writeMessageBegin("markPartiallyActive", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateItemStateVat(self, seqid, iprot, oprot):args = updateItemStateVat_args()args.read(iprot)iprot.readMessageEnd()result = updateItemStateVat_result()result.success = self._handler.updateItemStateVat(args.itemId, args.statevat)oprot.writeMessageBegin("updateItemStateVat", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getExAffiliateItemInfo(self, seqid, iprot, oprot):args = getExAffiliateItemInfo_args()args.read(iprot)iprot.readMessageEnd()result = getExAffiliateItemInfo_result()result.success = self._handler.getExAffiliateItemInfo()oprot.writeMessageBegin("getExAffiliateItemInfo", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllItemstoListOnFbg(self, seqid, iprot, oprot):args = getAllItemstoListOnFbg_args()args.read(iprot)iprot.readMessageEnd()result = getAllItemstoListOnFbg_result()result.success = self._handler.getAllItemstoListOnFbg()oprot.writeMessageBegin("getAllItemstoListOnFbg", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllFbgListedItems(self, seqid, iprot, oprot):args = getAllFbgListedItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllFbgListedItems_result()result.success = self._handler.getAllFbgListedItems()oprot.writeMessageBegin("getAllFbgListedItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_checkServices(self, seqid, iprot, oprot):args = checkServices_args()args.read(iprot)iprot.readMessageEnd()result = checkServices_result()try:result.success = self._handler.checkServices(args.lines)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("checkServices", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addHsItem(self, seqid, iprot, oprot):args = addHsItem_args()args.read(iprot)iprot.readMessageEnd()result = addHsItem_result()self._handler.addHsItem(args.hsItems)oprot.writeMessageBegin("addHsItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getHsItem(self, seqid, iprot, oprot):args = getHsItem_args()args.read(iprot)iprot.readMessageEnd()result = getHsItem_result()result.success = self._handler.getHsItem(args.hsItemId)oprot.writeMessageBegin("getHsItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateHsItem(self, seqid, iprot, oprot):args = updateHsItem_args()args.read(iprot)iprot.readMessageEnd()result = updateHsItem_result()self._handler.updateHsItem(args.hsItem)oprot.writeMessageBegin("updateHsItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getPricingForDtr(self, seqid, iprot, oprot):args = getPricingForDtr_args()args.read(iprot)iprot.readMessageEnd()result = getPricingForDtr_result()result.success = self._handler.getPricingForDtr(args.catalogItemId)oprot.writeMessageBegin("getPricingForDtr", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllItemstoListOnFbd(self, seqid, iprot, oprot):args = getAllItemstoListOnFbd_args()args.read(iprot)iprot.readMessageEnd()result = getAllItemstoListOnFbd_result()result.success = self._handler.getAllItemstoListOnFbd()oprot.writeMessageBegin("getAllItemstoListOnFbd", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllFbdListedItems(self, seqid, iprot, oprot):args = getAllFbdListedItems_args()args.read(iprot)iprot.readMessageEnd()result = getAllFbdListedItems_result()result.success = self._handler.getAllFbdListedItems()oprot.writeMessageBegin("getAllFbdListedItems", 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 getItemsStatus_args:"""Attributes:- itemIds"""thrift_spec = (None, # 0(1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1)def __init__(self, itemIds=None,):self.itemIds = itemIdsdef 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.itemIds = [](_etype33, _size30) = iprot.readListBegin()for _i34 in xrange(_size30):_elem35 = iprot.readI64();self.itemIds.append(_elem35)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('getItemsStatus_args')if self.itemIds is not None:oprot.writeFieldBegin('itemIds', TType.LIST, 1)oprot.writeListBegin(TType.I64, len(self.itemIds))for iter36 in self.itemIds:oprot.writeI64(iter36)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 getItemsStatus_result:"""Attributes:- success- isex"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,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.MAP:self.success = {}(_ktype38, _vtype39, _size37 ) = iprot.readMapBegin()for _i41 in xrange(_size37):_key42 = iprot.readI64();_val43 = iprot.readBool();self.success[_key42] = _val43iprot.readMapEnd()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('getItemsStatus_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))for kiter44,viter45 in self.success.items():oprot.writeI64(kiter44)oprot.writeBool(viter45)oprot.writeMapEnd()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 getItems_args:"""Attributes:- item_ids"""thrift_spec = (None, # 0(1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1)def __init__(self, item_ids=None,):self.item_ids = item_idsdef 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.item_ids = [](_etype49, _size46) = iprot.readListBegin()for _i50 in xrange(_size46):_elem51 = iprot.readI64();self.item_ids.append(_elem51)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('getItems_args')if self.item_ids is not None:oprot.writeFieldBegin('item_ids', TType.LIST, 1)oprot.writeListBegin(TType.I64, len(self.item_ids))for iter52 in self.item_ids:oprot.writeI64(iter52)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 getItems_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,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.MAP:self.success = {}(_ktype54, _vtype55, _size53 ) = iprot.readMapBegin()for _i57 in xrange(_size53):_key58 = iprot.readI64();_val59 = Item()_val59.read(iprot)self.success[_key58] = _val59iprot.readMapEnd()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('getItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))for kiter60,viter61 in self.success.items():oprot.writeI64(kiter60)viter61.write(oprot)oprot.writeMapEnd()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 = [](_etype65, _size62) = iprot.readListBegin()for _i66 in xrange(_size62):_elem67 = Item()_elem67.read(iprot)self.success.append(_elem67)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 iter68 in self.success:iter68.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 = [](_etype72, _size69) = iprot.readListBegin()for _i73 in xrange(_size69):_elem74 = Item()_elem74.read(iprot)self.success.append(_elem74)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 iter75 in self.success:iter75.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 = [](_etype79, _size76) = iprot.readListBegin()for _i80 in xrange(_size76):_elem81 = Item()_elem81.read(iprot)self.success.append(_elem81)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 iter82 in self.success:iter82.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 = [](_etype86, _size83) = iprot.readListBegin()for _i87 in xrange(_size83):_elem88 = Item()_elem88.read(iprot)self.success.append(_elem88)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 iter89 in self.success:iter89.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- isAndroid"""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(6, TType.BOOL, 'isAndroid', None, None, ), # 6)def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):self.entityId = entityIdself.category = categoryself.brand = brandself.modelName = modelNameself.modelNumber = modelNumberself.isAndroid = isAndroiddef 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)elif fid == 6:if ftype == TType.BOOL:self.isAndroid = 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('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()if self.isAndroid is not None:oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)oprot.writeBool(self.isAndroid)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 getVatRates_args:"""Attributes:- itemId- categoryId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I64, 'categoryId', None, None, ), # 2)def __init__(self, itemId=None, categoryId=None,):self.itemId = itemIdself.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.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2: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('getVatRates_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.categoryId is not None:oprot.writeFieldBegin('categoryId', TType.I64, 2)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 getVatRates_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,TType.DOUBLE,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.MAP:self.success = {}(_ktype91, _vtype92, _size90 ) = iprot.readMapBegin()for _i94 in xrange(_size90):_key95 = iprot.readI64();_val96 = iprot.readDouble();self.success[_key95] = _val96iprot.readMapEnd()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('getVatRates_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))for kiter97,viter98 in self.success.items():oprot.writeI64(kiter97)oprot.writeDouble(viter98)oprot.writeMapEnd()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 = [](_etype102, _size99) = iprot.readListBegin()for _i103 in xrange(_size99):_elem104 = Item()_elem104.read(iprot)self.success.append(_elem104)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 iter105 in self.success:iter105.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 = [](_etype109, _size106) = iprot.readListBegin()for _i110 in xrange(_size106):_elem111 = Item()_elem111.read(iprot)self.success.append(_elem111)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 iter112 in self.success:iter112.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 = [](_etype116, _size113) = iprot.readListBegin()for _i117 in xrange(_size113):_elem118 = Item()_elem118.read(iprot)self.success.append(_elem118)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 iter119 in self.success:iter119.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 = [](_etype123, _size120) = iprot.readListBegin()for _i124 in xrange(_size120):_elem125 = iprot.readI64();self.success.append(_elem125)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 iter126 in self.success:oprot.writeI64(iter126)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 = [](_etype130, _size127) = iprot.readListBegin()for _i131 in xrange(_size127):_elem132 = Item()_elem132.read(iprot)self.success.append(_elem132)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 iter133 in self.success:iter133.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 = [](_etype137, _size134) = iprot.readListBegin()for _i138 in xrange(_size134):_elem139 = iprot.readI64();self.success.append(_elem139)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 iter140 in self.success:oprot.writeI64(iter140)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 = [](_etype144, _size141) = iprot.readListBegin()for _i145 in xrange(_size141):_elem146 = Item()_elem146.read(iprot)self.success.append(_elem146)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 iter147 in self.success:iter147.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 = [](_etype151, _size148) = iprot.readListBegin()for _i152 in xrange(_size148):_elem153 = iprot.readI64();self.success.append(_elem153)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 iter154 in self.success:oprot.writeI64(iter154)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 = [](_etype158, _size155) = iprot.readListBegin()for _i159 in xrange(_size155):_elem160 = Item()_elem160.read(iprot)self.success.append(_elem160)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 iter161 in self.success:iter161.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 = [](_etype165, _size162) = iprot.readListBegin()for _i166 in xrange(_size162):_elem167 = iprot.readI64();self.categories.append(_elem167)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 iter168 in self.categories:oprot.writeI64(iter168)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 = [](_etype172, _size169) = iprot.readListBegin()for _i173 in xrange(_size169):_elem174 = iprot.readI64();self.success.append(_elem174)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 iter175 in self.success:oprot.writeI64(iter175)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 = [](_etype179, _size176) = iprot.readListBegin()for _i180 in xrange(_size176):_elem181 = Category()_elem181.read(iprot)self.success.append(_elem181)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 iter182 in self.success:iter182.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 = [](_etype186, _size183) = iprot.readListBegin()for _i187 in xrange(_size183):_elem188 = Item()_elem188.read(iprot)self.success.append(_elem188)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 iter189 in self.success:iter189.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 = [](_etype193, _size190) = iprot.readListBegin()for _i194 in xrange(_size190):_elem195 = iprot.readString();self.success.append(_elem195)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 iter196 in self.success:oprot.writeString(iter196)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 = [](_etype200, _size197) = iprot.readListBegin()for _i201 in xrange(_size197):_elem202 = iprot.readI64();self.success.append(_elem202)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 iter203 in self.success:oprot.writeI64(iter203)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 = {}(_ktype205, _vtype206, _size204 ) = iprot.readMapBegin()for _i208 in xrange(_size204):_key209 = iprot.readI64();_val210 = [](_etype214, _size211) = iprot.readListBegin()for _i215 in xrange(_size211):_elem216 = iprot.readString();_val210.append(_elem216)iprot.readListEnd()self.success[_key209] = _val210iprot.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 kiter217,viter218 in self.success.items():oprot.writeI64(kiter217)oprot.writeListBegin(TType.STRING, len(viter218))for iter219 in viter218:oprot.writeString(iter219)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 addBanner_args:"""Attributes:- bannerCongregate"""thrift_spec = (None, # 0(1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1)def __init__(self, bannerCongregate=None,):self.bannerCongregate = bannerCongregatedef 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.bannerCongregate = BannerCongregate()self.bannerCongregate.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('addBanner_args')if self.bannerCongregate is not None:oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)self.bannerCongregate.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 addBanner_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('addBanner_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 updateBanner_args:"""Attributes:- banner"""thrift_spec = (None, # 0(1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1)def __init__(self, banner=None,):self.banner = bannerdef 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.banner = Banner()self.banner.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('updateBanner_args')if self.banner is not None:oprot.writeFieldBegin('banner', TType.STRUCT, 1)self.banner.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 updateBanner_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('updateBanner_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 getAllBanners_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('getAllBanners_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 getAllBanners_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.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 = [](_etype223, _size220) = iprot.readListBegin()for _i224 in xrange(_size220):_elem225 = Banner()_elem225.read(iprot)self.success.append(_elem225)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('getAllBanners_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter226 in self.success:iter226.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 deleteBanner_args:"""Attributes:- bannerName- bannerType"""thrift_spec = (None, # 0(1, TType.STRING, 'bannerName', None, None, ), # 1(2, TType.I32, 'bannerType', None, None, ), # 2)def __init__(self, bannerName=None, bannerType=None,):self.bannerName = bannerNameself.bannerType = bannerTypedef 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.bannerName = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.bannerType = 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('deleteBanner_args')if self.bannerName is not None:oprot.writeFieldBegin('bannerName', TType.STRING, 1)oprot.writeString(self.bannerName)oprot.writeFieldEnd()if self.bannerType is not None:oprot.writeFieldBegin('bannerType', TType.I32, 2)oprot.writeI32(self.bannerType)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 deleteBanner_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('deleteBanner_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 getBannerDetails_args:"""Attributes:- bannerName- bannerType"""thrift_spec = (None, # 0(1, TType.STRING, 'bannerName', None, None, ), # 1(2, TType.I32, 'bannerType', None, None, ), # 2)def __init__(self, bannerName=None, bannerType=None,):self.bannerName = bannerNameself.bannerType = bannerTypedef 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.bannerName = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.bannerType = 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('getBannerDetails_args')if self.bannerName is not None:oprot.writeFieldBegin('bannerName', TType.STRING, 1)oprot.writeString(self.bannerName)oprot.writeFieldEnd()if self.bannerType is not None:oprot.writeFieldBegin('bannerType', TType.I32, 2)oprot.writeI32(self.bannerType)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 getBannerDetails_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (Banner, Banner.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 = Banner()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('getBannerDetails_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 getActiveBanners_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('getActiveBanners_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 getActiveBanners_result:"""Attributes:- success"""thrift_spec = ((0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.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.MAP:self.success = {}(_ktype228, _vtype229, _size227 ) = iprot.readMapBegin()for _i231 in xrange(_size227):_key232 = iprot.readString();_val233 = [](_etype237, _size234) = iprot.readListBegin()for _i238 in xrange(_size234):_elem239 = Banner()_elem239.read(iprot)_val233.append(_elem239)iprot.readListEnd()self.success[_key232] = _val233iprot.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('getActiveBanners_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))for kiter240,viter241 in self.success.items():oprot.writeString(kiter240)oprot.writeListBegin(TType.STRUCT, len(viter241))for iter242 in viter241:iter242.write(oprot)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 addBannerMap_args:"""Attributes:- bannerMaps"""thrift_spec = (None, # 0(1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1)def __init__(self, bannerMaps=None,):self.bannerMaps = bannerMapsdef 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.bannerMaps = [](_etype246, _size243) = iprot.readListBegin()for _i247 in xrange(_size243):_elem248 = BannerMap()_elem248.read(iprot)self.bannerMaps.append(_elem248)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('addBannerMap_args')if self.bannerMaps is not None:oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))for iter249 in self.bannerMaps:iter249.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 addBannerMap_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('addBannerMap_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 updateBannerMap_args:"""Attributes:- bannerMap"""thrift_spec = (None, # 0(1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1)def __init__(self, bannerMap=None,):self.bannerMap = bannerMapdef 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.bannerMap = BannerMap()self.bannerMap.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('updateBannerMap_args')if self.bannerMap is not None:oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)self.bannerMap.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 updateBannerMap_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('updateBannerMap_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 deleteBannerMap_args:"""Attributes:- bannerName"""thrift_spec = (None, # 0(1, TType.STRING, 'bannerName', None, None, ), # 1)def __init__(self, bannerName=None,):self.bannerName = bannerNamedef 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.bannerName = 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('deleteBannerMap_args')if self.bannerName is not None:oprot.writeFieldBegin('bannerName', TType.STRING, 1)oprot.writeString(self.bannerName)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 deleteBannerMap_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('deleteBannerMap_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 getBannerMapDetails_args:"""Attributes:- bannerName- bannerType"""thrift_spec = (None, # 0(1, TType.STRING, 'bannerName', None, None, ), # 1(2, TType.I32, 'bannerType', None, None, ), # 2)def __init__(self, bannerName=None, bannerType=None,):self.bannerName = bannerNameself.bannerType = bannerTypedef 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.bannerName = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.bannerType = 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('getBannerMapDetails_args')if self.bannerName is not None:oprot.writeFieldBegin('bannerName', TType.STRING, 1)oprot.writeString(self.bannerName)oprot.writeFieldEnd()if self.bannerType is not None:oprot.writeFieldBegin('bannerType', TType.I32, 2)oprot.writeI32(self.bannerType)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 getBannerMapDetails_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.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 = [](_etype253, _size250) = iprot.readListBegin()for _i254 in xrange(_size250):_elem255 = BannerMap()_elem255.read(iprot)self.success.append(_elem255)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('getBannerMapDetails_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter256 in self.success:iter256.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 addBannerUri_args:"""Attributes:- bannerUriMappings"""thrift_spec = (None, # 0(1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1)def __init__(self, bannerUriMappings=None,):self.bannerUriMappings = bannerUriMappingsdef 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.bannerUriMappings = [](_etype260, _size257) = iprot.readListBegin()for _i261 in xrange(_size257):_elem262 = BannerUriMapping()_elem262.read(iprot)self.bannerUriMappings.append(_elem262)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('addBannerUri_args')if self.bannerUriMappings is not None:oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))for iter263 in self.bannerUriMappings:iter263.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 addBannerUri_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('addBannerUri_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 getUriMapping_args:"""Attributes:- bannerName- bannerType"""thrift_spec = (None, # 0(1, TType.STRING, 'bannerName', None, None, ), # 1(2, TType.I32, 'bannerType', None, None, ), # 2)def __init__(self, bannerName=None, bannerType=None,):self.bannerName = bannerNameself.bannerType = bannerTypedef 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.bannerName = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.bannerType = 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('getUriMapping_args')if self.bannerName is not None:oprot.writeFieldBegin('bannerName', TType.STRING, 1)oprot.writeString(self.bannerName)oprot.writeFieldEnd()if self.bannerType is not None:oprot.writeFieldBegin('bannerType', TType.I32, 2)oprot.writeI32(self.bannerType)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 getUriMapping_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.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 = [](_etype267, _size264) = iprot.readListBegin()for _i268 in xrange(_size264):_elem269 = BannerUriMapping()_elem269.read(iprot)self.success.append(_elem269)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('getUriMapping_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter270 in self.success:iter270.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 addCampaign_args:"""Attributes:- campaign"""thrift_spec = (None, # 0(1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1)def __init__(self, campaign=None,):self.campaign = campaigndef 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.campaign = Campaign()self.campaign.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('addCampaign_args')if self.campaign is not None:oprot.writeFieldBegin('campaign', TType.STRUCT, 1)self.campaign.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 addCampaign_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('addCampaign_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 getCampaigns_args:"""Attributes:- campaignName"""thrift_spec = (None, # 0(1, TType.STRING, 'campaignName', None, None, ), # 1)def __init__(self, campaignName=None,):self.campaignName = campaignNamedef 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.campaignName = 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('getCampaigns_args')if self.campaignName is not None:oprot.writeFieldBegin('campaignName', TType.STRING, 1)oprot.writeString(self.campaignName)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 getCampaigns_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.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 = [](_etype274, _size271) = iprot.readListBegin()for _i275 in xrange(_size271):_elem276 = Campaign()_elem276.read(iprot)self.success.append(_elem276)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('getCampaigns_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter277 in self.success:iter277.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 deleteCampaign_args:"""Attributes:- campaignId"""thrift_spec = (None, # 0(1, TType.I64, 'campaignId', None, None, ), # 1)def __init__(self, campaignId=None,):self.campaignId = campaignIddef 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.campaignId = 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('deleteCampaign_args')if self.campaignId is not None:oprot.writeFieldBegin('campaignId', TType.I64, 1)oprot.writeI64(self.campaignId)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 deleteCampaign_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('deleteCampaign_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 getAllCampaigns_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('getAllCampaigns_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 getAllCampaigns_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 = [](_etype281, _size278) = iprot.readListBegin()for _i282 in xrange(_size278):_elem283 = iprot.readString();self.success.append(_elem283)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('getAllCampaigns_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRING, len(self.success))for iter284 in self.success:oprot.writeString(iter284)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 getActiveBannersForMobileSite_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('getActiveBannersForMobileSite_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 getActiveBannersForMobileSite_result:"""Attributes:- success"""thrift_spec = ((0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.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.MAP:self.success = {}(_ktype286, _vtype287, _size285 ) = iprot.readMapBegin()for _i289 in xrange(_size285):_key290 = iprot.readString();_val291 = [](_etype295, _size292) = iprot.readListBegin()for _i296 in xrange(_size292):_elem297 = Banner()_elem297.read(iprot)_val291.append(_elem297)iprot.readListEnd()self.success[_key290] = _val291iprot.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('getActiveBannersForMobileSite_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))for kiter298,viter299 in self.success.items():oprot.writeString(kiter298)oprot.writeListBegin(TType.STRUCT, len(viter299))for iter300 in viter299:iter300.write(oprot)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 = [](_etype304, _size301) = iprot.readListBegin()for _i305 in xrange(_size301):_elem306 = Item()_elem306.read(iprot)self.success.append(_elem306)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 iter307 in self.success:iter307.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 = [](_etype311, _size308) = iprot.readListBegin()for _i312 in xrange(_size308):_elem313 = Item()_elem313.read(iprot)self.success.append(_elem313)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 iter314 in self.success:iter314.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 = [](_etype318, _size315) = iprot.readListBegin()for _i319 in xrange(_size315):_elem320 = iprot.readI64();self.success.append(_elem320)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 iter321 in self.success:oprot.writeI64(iter321)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 = [](_etype325, _size322) = iprot.readListBegin()for _i326 in xrange(_size322):_elem327 = iprot.readString();self.success.append(_elem327)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 iter328 in self.success:oprot.writeString(iter328)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 = [](_etype332, _size329) = iprot.readListBegin()for _i333 in xrange(_size329):_elem334 = iprot.readString();self.success.append(_elem334)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 iter335 in self.success:oprot.writeString(iter335)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 = [](_etype339, _size336) = iprot.readListBegin()for _i340 in xrange(_size336):_elem341 = Source()_elem341.read(iprot)self.success.append(_elem341)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 iter342 in self.success:iter342.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 = [](_etype346, _size343) = iprot.readListBegin()for _i347 in xrange(_size343):_elem348 = SourceItemPricing()_elem348.read(iprot)self.success.append(_elem348)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 iter349 in self.success:iter349.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 = [](_etype353, _size350) = iprot.readListBegin()for _i354 in xrange(_size350):_elem355 = iprot.readString();self.searchTerms.append(_elem355)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 iter356 in self.searchTerms:oprot.writeString(iter356)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 = [](_etype360, _size357) = iprot.readListBegin()for _i361 in xrange(_size357):_elem362 = Item()_elem362.read(iprot)self.success.append(_elem362)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 iter363 in self.success:iter363.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 = [](_etype367, _size364) = iprot.readListBegin()for _i368 in xrange(_size364):_elem369 = iprot.readString();self.searchTerms.append(_elem369)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 iter370 in self.searchTerms:oprot.writeString(iter370)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 = [](_etype374, _size371) = iprot.readListBegin()for _i375 in xrange(_size371):_elem376 = ProductNotificationRequest()_elem376.read(iprot)self.success.append(_elem376)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 iter377 in self.success:iter377.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- categoryId"""thrift_spec = (None, # 0(1, TType.I64, 'startDateTime', None, None, ), # 1(2, TType.I64, 'categoryId', None, None, ), # 2)def __init__(self, startDateTime=None, categoryId=None,):self.startDateTime = startDateTimeself.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.startDateTime = iprot.readI64();else:iprot.skip(ftype)elif fid == 2: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('getProductNotificationRequestCount_args')if self.startDateTime is not None:oprot.writeFieldBegin('startDateTime', TType.I64, 1)oprot.writeI64(self.startDateTime)oprot.writeFieldEnd()if self.categoryId is not None:oprot.writeFieldBegin('categoryId', TType.I64, 2)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 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 = [](_etype381, _size378) = iprot.readListBegin()for _i382 in xrange(_size378):_elem383 = ProductNotificationRequestCount()_elem383.read(iprot)self.success.append(_elem383)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 iter384 in self.success:iter384.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 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 = [](_etype388, _size385) = iprot.readListBegin()for _i389 in xrange(_size385):_elem390 = VoucherItemMapping()_elem390.read(iprot)self.success.append(_elem390)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 iter391 in self.success:iter391.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- stateId- price"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I64, 'stateId', None, None, ), # 2(3, TType.DOUBLE, 'price', None, None, ), # 3)def __init__(self, itemId=None, stateId=None, price=None,):self.itemId = itemIdself.stateId = stateIdself.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.I64:self.stateId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3: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.stateId is not None:oprot.writeFieldBegin('stateId', TType.I64, 2)oprot.writeI64(self.stateId)oprot.writeFieldEnd()if self.price is not None:oprot.writeFieldBegin('price', TType.DOUBLE, 3)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- cex"""thrift_spec = ((0, TType.DOUBLE, '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.DOUBLE:self.success = iprot.readDouble();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('getVatPercentageForItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.DOUBLE, 0)oprot.writeDouble(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 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 = [](_etype395, _size392) = iprot.readListBegin()for _i396 in xrange(_size392):_elem397 = Item()_elem397.read(iprot)self.success.append(_elem397)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 iter398 in self.success:iter398.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 = [](_etype402, _size399) = iprot.readListBegin()for _i403 in xrange(_size399):_elem404 = Item()_elem404.read(iprot)self.success.append(_elem404)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 iter405 in self.success:iter405.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- price- insurerId- quantity"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.DOUBLE, 'price', None, None, ), # 2(3, TType.I64, 'insurerId', None, None, ), # 3(4, TType.I64, 'quantity', None, None, ), # 4)def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):self.itemId = itemIdself.price = priceself.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.DOUBLE:self.price = iprot.readDouble();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.insurerId = iprot.readI64();else:iprot.skip(ftype)elif fid == 4: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.price is not None:oprot.writeFieldBegin('price', TType.DOUBLE, 2)oprot.writeDouble(self.price)oprot.writeFieldEnd()if self.insurerId is not None:oprot.writeFieldBegin('insurerId', TType.I64, 3)oprot.writeI64(self.insurerId)oprot.writeFieldEnd()if self.quantity is not None:oprot.writeFieldBegin('quantity', TType.I64, 4)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 = [](_etype409, _size406) = iprot.readListBegin()for _i410 in xrange(_size406):_elem411 = Insurer()_elem411.read(iprot)self.success.append(_elem411)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 iter412 in self.success:iter412.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 updateInsuranceDeclaredAmount_args:"""Attributes:- insurerId- amount"""thrift_spec = (None, # 0(1, TType.I64, 'insurerId', None, None, ), # 1(2, TType.DOUBLE, 'amount', None, None, ), # 2)def __init__(self, insurerId=None, amount=None,):self.insurerId = insurerIdself.amount = amountdef 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)elif fid == 2:if ftype == TType.DOUBLE:self.amount = 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('updateInsuranceDeclaredAmount_args')if self.insurerId is not None:oprot.writeFieldBegin('insurerId', TType.I64, 1)oprot.writeI64(self.insurerId)oprot.writeFieldEnd()if self.amount is not None:oprot.writeFieldBegin('amount', TType.DOUBLE, 2)oprot.writeDouble(self.amount)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 updateInsuranceDeclaredAmount_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('updateInsuranceDeclaredAmount_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 getFreebieForItem_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('getFreebieForItem_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 getFreebieForItem_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('getFreebieForItem_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 addOrUpdateFreebieForItem_args:"""Attributes:- freebieItem"""thrift_spec = (None, # 0(1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1)def __init__(self, freebieItem=None,):self.freebieItem = freebieItemdef 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.freebieItem = FreebieItem()self.freebieItem.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('addOrUpdateFreebieForItem_args')if self.freebieItem is not None:oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)self.freebieItem.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 addOrUpdateFreebieForItem_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('addOrUpdateFreebieForItem_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 addOrUpdateBrandInfo_args:"""Attributes:- brandInfo"""thrift_spec = (None, # 0(1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1)def __init__(self, brandInfo=None,):self.brandInfo = brandInfodef 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.brandInfo = BrandInfo()self.brandInfo.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('addOrUpdateBrandInfo_args')if self.brandInfo is not None:oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)self.brandInfo.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 addOrUpdateBrandInfo_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('addOrUpdateBrandInfo_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 getBrandInfo_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('getBrandInfo_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 getBrandInfo_result:"""Attributes:- success"""thrift_spec = ((0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.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.MAP:self.success = {}(_ktype414, _vtype415, _size413 ) = iprot.readMapBegin()for _i417 in xrange(_size413):_key418 = iprot.readString();_val419 = BrandInfo()_val419.read(iprot)self.success[_key418] = _val419iprot.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('getBrandInfo_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))for kiter420,viter421 in self.success.items():oprot.writeString(kiter420)viter421.write(oprot)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 getStorePricing_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('getStorePricing_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 getStorePricing_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (StorePricing, StorePricing.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 = StorePricing()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('getStorePricing_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 getStorePricings_args:"""Attributes:- itemIds"""thrift_spec = (None, # 0(1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1)def __init__(self, itemIds=None,):self.itemIds = itemIdsdef 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.itemIds = [](_etype425, _size422) = iprot.readListBegin()for _i426 in xrange(_size422):_elem427 = iprot.readI64();self.itemIds.append(_elem427)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('getStorePricings_args')if self.itemIds is not None:oprot.writeFieldBegin('itemIds', TType.LIST, 1)oprot.writeListBegin(TType.I64, len(self.itemIds))for iter428 in self.itemIds:oprot.writeI64(iter428)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 getStorePricings_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.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 = [](_etype432, _size429) = iprot.readListBegin()for _i433 in xrange(_size429):_elem434 = StorePricing()_elem434.read(iprot)self.success.append(_elem434)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('getStorePricings_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter435 in self.success:iter435.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 updateStorePricing_args:"""Attributes:- sp- allColors"""thrift_spec = (None, # 0(1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1(2, TType.BOOL, 'allColors', None, None, ), # 2)def __init__(self, sp=None, allColors=None,):self.sp = spself.allColors = allColorsdef 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.sp = StorePricing()self.sp.read(iprot)else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.allColors = 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('updateStorePricing_args')if self.sp is not None:oprot.writeFieldBegin('sp', TType.STRUCT, 1)self.sp.write(oprot)oprot.writeFieldEnd()if self.allColors is not None:oprot.writeFieldBegin('allColors', TType.BOOL, 2)oprot.writeBool(self.allColors)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 updateStorePricing_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('updateStorePricing_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 getAllAmazonListedItems_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('getAllAmazonListedItems_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 getAllAmazonListedItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype439, _size436) = iprot.readListBegin()for _i440 in xrange(_size436):_elem441 = Amazonlisted()_elem441.read(iprot)self.success.append(_elem441)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('getAllAmazonListedItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter442 in self.success:iter442.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 searchAmazonItems_args:"""Attributes:- searchTerm- offset- limit"""thrift_spec = (None, # 0(1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1(2, TType.I64, 'offset', None, None, ), # 2(3, TType.I64, 'limit', None, None, ), # 3)def __init__(self, searchTerm=None, offset=None, limit=None,):self.searchTerm = searchTermself.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.searchTerm = [](_etype446, _size443) = iprot.readListBegin()for _i447 in xrange(_size443):_elem448 = iprot.readString();self.searchTerm.append(_elem448)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('searchAmazonItems_args')if self.searchTerm is not None:oprot.writeFieldBegin('searchTerm', TType.LIST, 1)oprot.writeListBegin(TType.STRING, len(self.searchTerm))for iter449 in self.searchTerm:oprot.writeString(iter449)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 searchAmazonItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype453, _size450) = iprot.readListBegin()for _i454 in xrange(_size450):_elem455 = Amazonlisted()_elem455.read(iprot)self.success.append(_elem455)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('searchAmazonItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter456 in self.success:iter456.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 getAmazonSearchResultCount_args:"""Attributes:- searchTerm"""thrift_spec = (None, # 0(1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1)def __init__(self, searchTerm=None,):self.searchTerm = searchTermdef 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.searchTerm = [](_etype460, _size457) = iprot.readListBegin()for _i461 in xrange(_size457):_elem462 = iprot.readString();self.searchTerm.append(_elem462)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('getAmazonSearchResultCount_args')if self.searchTerm is not None:oprot.writeFieldBegin('searchTerm', TType.LIST, 1)oprot.writeListBegin(TType.STRING, len(self.searchTerm))for iter463 in self.searchTerm:oprot.writeString(iter463)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 getAmazonSearchResultCount_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('getAmazonSearchResultCount_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 getCountForAmazonlistedItems_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('getCountForAmazonlistedItems_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 getCountForAmazonlistedItems_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('getCountForAmazonlistedItems_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 getAmazonItemDetails_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('getAmazonItemDetails_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 getAmazonItemDetails_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.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 = Amazonlisted()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('getAmazonItemDetails_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 updateAmazonItemDetails_args:"""Attributes:- amazonlisted"""thrift_spec = (None, # 0(1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1)def __init__(self, amazonlisted=None,):self.amazonlisted = amazonlisteddef 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.amazonlisted = Amazonlisted()self.amazonlisted.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('updateAmazonItemDetails_args')if self.amazonlisted is not None:oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)self.amazonlisted.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 updateAmazonItemDetails_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('updateAmazonItemDetails_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 addAmazonItem_args:"""Attributes:- amazonlisted"""thrift_spec = (None, # 0(1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1)def __init__(self, amazonlisted=None,):self.amazonlisted = amazonlisteddef 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.amazonlisted = Amazonlisted()self.amazonlisted.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('addAmazonItem_args')if self.amazonlisted is not None:oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)self.amazonlisted.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 addAmazonItem_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('addAmazonItem_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 getAsinItems_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('getAsinItems_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 getAsinItems_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 = [](_etype467, _size464) = iprot.readListBegin()for _i468 in xrange(_size464):_elem469 = Item()_elem469.read(iprot)self.success.append(_elem469)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('getAsinItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter470 in self.success:iter470.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 getAllFbaListedItems_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('getAllFbaListedItems_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 getAllFbaListedItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype474, _size471) = iprot.readListBegin()for _i475 in xrange(_size471):_elem476 = Amazonlisted()_elem476.read(iprot)self.success.append(_elem476)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('getAllFbaListedItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter477 in self.success:iter477.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 getAllNonFbaListedItems_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('getAllNonFbaListedItems_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 getAllNonFbaListedItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype481, _size478) = iprot.readListBegin()for _i482 in xrange(_size478):_elem483 = Amazonlisted()_elem483.read(iprot)self.success.append(_elem483)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('getAllNonFbaListedItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter484 in self.success:iter484.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 updateItemInventory_args:"""Attributes:- itemId- holdInventory- defaultInventory"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I64, 'holdInventory', None, None, ), # 2(3, TType.I64, 'defaultInventory', None, None, ), # 3)def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):self.itemId = itemIdself.holdInventory = holdInventoryself.defaultInventory = defaultInventorydef 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.holdInventory = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.defaultInventory = 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('updateItemInventory_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.holdInventory is not None:oprot.writeFieldBegin('holdInventory', TType.I64, 2)oprot.writeI64(self.holdInventory)oprot.writeFieldEnd()if self.defaultInventory is not None:oprot.writeFieldBegin('defaultInventory', TType.I64, 3)oprot.writeI64(self.defaultInventory)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 updateItemInventory_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('updateItemInventory_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 updateTimestampForAmazonFeeds_args:"""Attributes:- type- sku- timestamp"""thrift_spec = (None, # 0(1, TType.STRING, 'type', None, None, ), # 1(2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2(3, TType.I64, 'timestamp', None, None, ), # 3)def __init__(self, type=None, sku=None, timestamp=None,):self.type = typeself.sku = skuself.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.STRING:self.type = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.LIST:self.sku = [](_etype488, _size485) = iprot.readListBegin()for _i489 in xrange(_size485):_elem490 = iprot.readI64();self.sku.append(_elem490)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 3: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('updateTimestampForAmazonFeeds_args')if self.type is not None:oprot.writeFieldBegin('type', TType.STRING, 1)oprot.writeString(self.type)oprot.writeFieldEnd()if self.sku is not None:oprot.writeFieldBegin('sku', TType.LIST, 2)oprot.writeListBegin(TType.I64, len(self.sku))for iter491 in self.sku:oprot.writeI64(iter491)oprot.writeListEnd()oprot.writeFieldEnd()if self.timestamp is not None:oprot.writeFieldBegin('timestamp', TType.I64, 3)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 updateTimestampForAmazonFeeds_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('updateTimestampForAmazonFeeds_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 getAllParentCategories_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('getAllParentCategories_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 getAllParentCategories_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 = [](_etype495, _size492) = iprot.readListBegin()for _i496 in xrange(_size492):_elem497 = Category()_elem497.read(iprot)self.success.append(_elem497)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('getAllParentCategories_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter498 in self.success:iter498.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 addPageViewEvent_args:"""Attributes:- pageViewEvents"""thrift_spec = (None, # 0(1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1)def __init__(self, pageViewEvents=None,):self.pageViewEvents = pageViewEventsdef 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.pageViewEvents = PageViewEvents()self.pageViewEvents.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('addPageViewEvent_args')if self.pageViewEvents is not None:oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)self.pageViewEvents.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 addPageViewEvent_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('addPageViewEvent_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 addCartEvent_args:"""Attributes:- cartEvents"""thrift_spec = (None, # 0(1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1)def __init__(self, cartEvents=None,):self.cartEvents = cartEventsdef 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.cartEvents = CartEvents()self.cartEvents.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('addCartEvent_args')if self.cartEvents is not None:oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)self.cartEvents.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 addCartEvent_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('addCartEvent_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 addEbayItem_args:"""Attributes:- ebayItem"""thrift_spec = (None, # 0(1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1)def __init__(self, ebayItem=None,):self.ebayItem = ebayItemdef 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.ebayItem = EbayItem()self.ebayItem.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('addEbayItem_args')if self.ebayItem is not None:oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)self.ebayItem.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 addEbayItem_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('addEbayItem_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 getEbayItem_args:"""Attributes:- listingId"""thrift_spec = (None, # 0(1, TType.STRING, 'listingId', None, None, ), # 1)def __init__(self, listingId=None,):self.listingId = listingIddef 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.listingId = 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('getEbayItem_args')if self.listingId is not None:oprot.writeFieldBegin('listingId', TType.STRING, 1)oprot.writeString(self.listingId)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 getEbayItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (EbayItem, EbayItem.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 = EbayItem()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('getEbayItem_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 updateEbayItem_args:"""Attributes:- ebayItem"""thrift_spec = (None, # 0(1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1)def __init__(self, ebayItem=None,):self.ebayItem = ebayItemdef 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.ebayItem = EbayItem()self.ebayItem.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('updateEbayItem_args')if self.ebayItem is not None:oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)self.ebayItem.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 updateEbayItem_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('updateEbayItem_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 getAmazonListedItems_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('getAmazonListedItems_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 getAmazonListedItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype502, _size499) = iprot.readListBegin()for _i503 in xrange(_size499):_elem504 = Amazonlisted()_elem504.read(iprot)self.success.append(_elem504)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('getAmazonListedItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter505 in self.success:iter505.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 updateAmazonAttributesInBulk_args:"""Attributes:- amazonlisted"""thrift_spec = (None, # 0(1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1)def __init__(self, amazonlisted=None,):self.amazonlisted = amazonlisteddef 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.MAP:self.amazonlisted = {}(_ktype507, _vtype508, _size506 ) = iprot.readMapBegin()for _i510 in xrange(_size506):_key511 = iprot.readI64();_val512 = Amazonlisted()_val512.read(iprot)self.amazonlisted[_key511] = _val512iprot.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('updateAmazonAttributesInBulk_args')if self.amazonlisted is not None:oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))for kiter513,viter514 in self.amazonlisted.items():oprot.writeI64(kiter513)viter514.write(oprot)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 updateAmazonAttributesInBulk_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('updateAmazonAttributesInBulk_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 getAllItemstoListOnFba_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('getAllItemstoListOnFba_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 getAllItemstoListOnFba_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype518, _size515) = iprot.readListBegin()for _i519 in xrange(_size515):_elem520 = Amazonlisted()_elem520.read(iprot)self.success.append(_elem520)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('getAllItemstoListOnFba_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter521 in self.success:iter521.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 getAllItemstoListOnNonFba_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('getAllItemstoListOnNonFba_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 getAllItemstoListOnNonFba_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype525, _size522) = iprot.readListBegin()for _i526 in xrange(_size522):_elem527 = Amazonlisted()_elem527.read(iprot)self.success.append(_elem527)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('getAllItemstoListOnNonFba_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter528 in self.success:iter528.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 updateAsin_args:"""Attributes:- item"""thrift_spec = (None, # 0(1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(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.MAP:self.item = {}(_ktype530, _vtype531, _size529 ) = iprot.readMapBegin()for _i533 in xrange(_size529):_key534 = iprot.readI64();_val535 = Item()_val535.read(iprot)self.item[_key534] = _val535iprot.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('updateAsin_args')if self.item is not None:oprot.writeFieldBegin('item', TType.MAP, 1)oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))for kiter536,viter537 in self.item.items():oprot.writeI64(kiter536)viter537.write(oprot)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 updateAsin_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('updateAsin_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 addOrUpdateSnapdealItem_args:"""Attributes:- snapdealitem"""thrift_spec = Nonedef __init__(self, snapdealitem=None,):self.snapdealitem = snapdealitemdef 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.snapdealitem = SnapdealItem()self.snapdealitem.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('addOrUpdateSnapdealItem_args')if self.snapdealitem is not None:oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)self.snapdealitem.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 addOrUpdateSnapdealItem_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('addOrUpdateSnapdealItem_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 getSnapdealItem_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('getSnapdealItem_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 getSnapdealItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.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 = SnapdealItem()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('getSnapdealItem_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 getSnapdealItemDetails_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('getSnapdealItemDetails_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 getSnapdealItemDetails_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.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 = SnapdealItemDetails()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('getSnapdealItemDetails_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 getAllSnapdealItems_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('getAllSnapdealItems_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 getAllSnapdealItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.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 = [](_etype541, _size538) = iprot.readListBegin()for _i542 in xrange(_size538):_elem543 = SnapdealItemDetails()_elem543.read(iprot)self.success.append(_elem543)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('getAllSnapdealItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter544 in self.success:iter544.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 getSnapdealItems_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('getSnapdealItems_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 getSnapdealItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.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 = [](_etype548, _size545) = iprot.readListBegin()for _i549 in xrange(_size545):_elem550 = SnapdealItemDetails()_elem550.read(iprot)self.success.append(_elem550)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('getSnapdealItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter551 in self.success:iter551.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 searchSnapdealItems_args:"""Attributes:- searchTerm- offset- limit"""thrift_spec = (None, # 0(1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1(2, TType.I64, 'offset', None, None, ), # 2(3, TType.I64, 'limit', None, None, ), # 3)def __init__(self, searchTerm=None, offset=None, limit=None,):self.searchTerm = searchTermself.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.searchTerm = [](_etype555, _size552) = iprot.readListBegin()for _i556 in xrange(_size552):_elem557 = iprot.readString();self.searchTerm.append(_elem557)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('searchSnapdealItems_args')if self.searchTerm is not None:oprot.writeFieldBegin('searchTerm', TType.LIST, 1)oprot.writeListBegin(TType.STRING, len(self.searchTerm))for iter558 in self.searchTerm:oprot.writeString(iter558)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 searchSnapdealItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.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 = [](_etype562, _size559) = iprot.readListBegin()for _i563 in xrange(_size559):_elem564 = SnapdealItemDetails()_elem564.read(iprot)self.success.append(_elem564)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('searchSnapdealItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter565 in self.success:iter565.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 getCountForSnapdealItems_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('getCountForSnapdealItems_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 getCountForSnapdealItems_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('getCountForSnapdealItems_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 getSnapdealSearchResultCount_args:"""Attributes:- searchTerm"""thrift_spec = (None, # 0(1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1)def __init__(self, searchTerm=None,):self.searchTerm = searchTermdef 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.searchTerm = [](_etype569, _size566) = iprot.readListBegin()for _i570 in xrange(_size566):_elem571 = iprot.readString();self.searchTerm.append(_elem571)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('getSnapdealSearchResultCount_args')if self.searchTerm is not None:oprot.writeFieldBegin('searchTerm', TType.LIST, 1)oprot.writeListBegin(TType.STRING, len(self.searchTerm))for iter572 in self.searchTerm:oprot.writeString(iter572)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 getSnapdealSearchResultCount_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('getSnapdealSearchResultCount_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 getPrefferedInsurerForItem_args:"""Attributes:- itemId- insurerType"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I32, 'insurerType', None, None, ), # 2)def __init__(self, itemId=None, insurerType=None,):self.itemId = itemIdself.insurerType = insurerTypedef 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.I32:self.insurerType = 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('getPrefferedInsurerForItem_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.insurerType is not None:oprot.writeFieldBegin('insurerType', TType.I32, 2)oprot.writeI32(self.insurerType)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 getPrefferedInsurerForItem_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('getPrefferedInsurerForItem_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 getSnapdealItembySkuAtSnapdeal_args:"""Attributes:- skuAtSnapdeal"""thrift_spec = Nonedef __init__(self, skuAtSnapdeal=None,):self.skuAtSnapdeal = skuAtSnapdealdef 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.skuAtSnapdeal = 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('getSnapdealItembySkuAtSnapdeal_args')if self.skuAtSnapdeal is not None:oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)oprot.writeString(self.skuAtSnapdeal)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 getSnapdealItembySkuAtSnapdeal_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.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 = SnapdealItem()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('getSnapdealItembySkuAtSnapdeal_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 getProductFeedSubmit_args:"""Attributes:- catalogItemId"""thrift_spec = (None, # 0(1, TType.I64, 'catalogItemId', None, None, ), # 1)def __init__(self, catalogItemId=None,):self.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.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('getProductFeedSubmit_args')if self.catalogItemId is not None:oprot.writeFieldBegin('catalogItemId', TType.I64, 1)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 getProductFeedSubmit_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.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 = ProductFeedSubmit()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('getProductFeedSubmit_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 addProductFeedSubmit_args:"""Attributes:- productFeedSubmit"""thrift_spec = (None, # 0(1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1)def __init__(self, productFeedSubmit=None,):self.productFeedSubmit = productFeedSubmitdef 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.productFeedSubmit = ProductFeedSubmit()self.productFeedSubmit.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('addProductFeedSubmit_args')if self.productFeedSubmit is not None:oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)self.productFeedSubmit.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 addProductFeedSubmit_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('addProductFeedSubmit_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 updateProductFeedSubmit_args:"""Attributes:- productFeedSubmit"""thrift_spec = (None, # 0(1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1)def __init__(self, productFeedSubmit=None,):self.productFeedSubmit = productFeedSubmitdef 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.productFeedSubmit = ProductFeedSubmit()self.productFeedSubmit.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('updateProductFeedSubmit_args')if self.productFeedSubmit is not None:oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)self.productFeedSubmit.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 updateProductFeedSubmit_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('updateProductFeedSubmit_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 deleteProductFeedSubmit_args:"""Attributes:- catalogItemId"""thrift_spec = (None, # 0(1, TType.I64, 'catalogItemId', None, None, ), # 1)def __init__(self, catalogItemId=None,):self.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.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('deleteProductFeedSubmit_args')if self.catalogItemId is not None:oprot.writeFieldBegin('catalogItemId', TType.I64, 1)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 deleteProductFeedSubmit_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('deleteProductFeedSubmit_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 getAllProductFeedSubmit_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('getAllProductFeedSubmit_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 getAllProductFeedSubmit_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.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 = [](_etype576, _size573) = iprot.readListBegin()for _i577 in xrange(_size573):_elem578 = ProductFeedSubmit()_elem578.read(iprot)self.success.append(_elem578)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('getAllProductFeedSubmit_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter579 in self.success:iter579.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 getMarketplacedetailsForItem_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('getMarketplacedetailsForItem_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 getMarketplacedetailsForItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.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 = MarketplaceItems()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('getMarketplacedetailsForItem_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 updateMarketplaceAttributesForItem_args:"""Attributes:- marketPlaceItem"""thrift_spec = (None, # 0(1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1)def __init__(self, marketPlaceItem=None,):self.marketPlaceItem = marketPlaceItemdef 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.marketPlaceItem = MarketplaceItems()self.marketPlaceItem.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('updateMarketplaceAttributesForItem_args')if self.marketPlaceItem is not None:oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)self.marketPlaceItem.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 updateMarketplaceAttributesForItem_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('updateMarketplaceAttributesForItem_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 getCostingForMarketplace_args:"""Attributes:- source- item_id"""thrift_spec = (None, # 0(1, TType.I64, 'source', None, None, ), # 1(2, TType.I64, 'item_id', None, None, ), # 2)def __init__(self, source=None, item_id=None,):self.source = sourceself.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.source = iprot.readI64();else:iprot.skip(ftype)elif fid == 2: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('getCostingForMarketplace_args')if self.source is not None:oprot.writeFieldBegin('source', TType.I64, 1)oprot.writeI64(self.source)oprot.writeFieldEnd()if self.item_id is not None:oprot.writeFieldBegin('item_id', TType.I64, 2)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 getCostingForMarketplace_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.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 = MarketplacePercentage()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('getCostingForMarketplace_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 getMarketPlaceItemsForPriceUpdate_args:"""Attributes:- source"""thrift_spec = (None, # 0(1, TType.I64, 'source', None, None, ), # 1)def __init__(self, source=None,):self.source = sourcedef 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.source = 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('getMarketPlaceItemsForPriceUpdate_args')if self.source is not None:oprot.writeFieldBegin('source', TType.I64, 1)oprot.writeI64(self.source)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 getMarketPlaceItemsForPriceUpdate_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.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 = [](_etype583, _size580) = iprot.readListBegin()for _i584 in xrange(_size580):_elem585 = MarketPlaceItemPrice()_elem585.read(iprot)self.success.append(_elem585)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('getMarketPlaceItemsForPriceUpdate_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter586 in self.success:iter586.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 updateMarketPlacePriceUpdateStatus_args:"""Attributes:- skulist- timestamp- source"""thrift_spec = (None, # 0(1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1(2, TType.I64, 'timestamp', None, None, ), # 2(3, TType.I64, 'source', None, None, ), # 3)def __init__(self, skulist=None, timestamp=None, source=None,):self.skulist = skulistself.timestamp = timestampself.source = sourcedef 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.skulist = [](_etype590, _size587) = iprot.readListBegin()for _i591 in xrange(_size587):_elem592 = iprot.readI64();self.skulist.append(_elem592)iprot.readListEnd()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.I64:self.source = 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('updateMarketPlacePriceUpdateStatus_args')if self.skulist is not None:oprot.writeFieldBegin('skulist', TType.LIST, 1)oprot.writeListBegin(TType.I64, len(self.skulist))for iter593 in self.skulist:oprot.writeI64(iter593)oprot.writeListEnd()oprot.writeFieldEnd()if self.timestamp is not None:oprot.writeFieldBegin('timestamp', TType.I64, 2)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()if self.source is not None:oprot.writeFieldBegin('source', TType.I64, 3)oprot.writeI64(self.source)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 updateMarketPlacePriceUpdateStatus_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('updateMarketPlacePriceUpdateStatus_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 updateItemHoldInventory_args:"""Attributes:- itemHoldMap"""thrift_spec = (None, # 0(1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1)def __init__(self, itemHoldMap=None,):self.itemHoldMap = itemHoldMapdef 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.MAP:self.itemHoldMap = {}(_ktype595, _vtype596, _size594 ) = iprot.readMapBegin()for _i598 in xrange(_size594):_key599 = iprot.readI64();_val600 = iprot.readI64();self.itemHoldMap[_key599] = _val600iprot.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('updateItemHoldInventory_args')if self.itemHoldMap is not None:oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))for kiter601,viter602 in self.itemHoldMap.items():oprot.writeI64(kiter601)oprot.writeI64(viter602)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 updateItemHoldInventory_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('updateItemHoldInventory_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 updateNlcAtMarketplaces_args:"""Attributes:- item_id- vendor_id- nlc"""thrift_spec = Nonedef __init__(self, item_id=None, vendor_id=None, nlc=None,):self.item_id = item_idself.vendor_id = vendor_idself.nlc = nlcdef 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.vendor_id = iprot.readI64();else:iprot.skip(ftype)elif fid == -1:if ftype == TType.DOUBLE:self.nlc = 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('updateNlcAtMarketplaces_args')if self.nlc is not None:oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)oprot.writeDouble(self.nlc)oprot.writeFieldEnd()if self.item_id is not None:oprot.writeFieldBegin('item_id', TType.I64, 1)oprot.writeI64(self.item_id)oprot.writeFieldEnd()if self.vendor_id is not None:oprot.writeFieldBegin('vendor_id', TType.I64, 2)oprot.writeI64(self.vendor_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 updateNlcAtMarketplaces_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('updateNlcAtMarketplaces_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 getAllFlipkartItems_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('getAllFlipkartItems_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 getAllFlipkartItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.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 = [](_etype606, _size603) = iprot.readListBegin()for _i607 in xrange(_size603):_elem608 = FlipkartItem()_elem608.read(iprot)self.success.append(_elem608)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('getAllFlipkartItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter609 in self.success:iter609.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 addOrUpdateFlipkartItem_args:"""Attributes:- flipkartitem"""thrift_spec = Nonedef __init__(self, flipkartitem=None,):self.flipkartitem = flipkartitemdef 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.flipkartitem = FlipkartItem()self.flipkartitem.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('addOrUpdateFlipkartItem_args')if self.flipkartitem is not None:oprot.writeFieldBegin('flipkartitem', TType.STRUCT, -1)self.flipkartitem.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 addOrUpdateFlipkartItem_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('addOrUpdateFlipkartItem_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 getFlipkartItem_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('getFlipkartItem_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 getFlipkartItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.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 = FlipkartItem()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('getFlipkartItem_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 getFlipkartItemDetails_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('getFlipkartItemDetails_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 getFlipkartItemDetails_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (FlipkartItemDetails, FlipkartItemDetails.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 = FlipkartItemDetails()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('getFlipkartItemDetails_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 getFlipkartItems_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('getFlipkartItems_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 getFlipkartItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.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 = [](_etype613, _size610) = iprot.readListBegin()for _i614 in xrange(_size610):_elem615 = FlipkartItemDetails()_elem615.read(iprot)self.success.append(_elem615)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('getFlipkartItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter616 in self.success:iter616.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 searchFlipkartItems_args:"""Attributes:- searchTerm- offset- limit"""thrift_spec = (None, # 0(1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1(2, TType.I64, 'offset', None, None, ), # 2(3, TType.I64, 'limit', None, None, ), # 3)def __init__(self, searchTerm=None, offset=None, limit=None,):self.searchTerm = searchTermself.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.searchTerm = [](_etype620, _size617) = iprot.readListBegin()for _i621 in xrange(_size617):_elem622 = iprot.readString();self.searchTerm.append(_elem622)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('searchFlipkartItems_args')if self.searchTerm is not None:oprot.writeFieldBegin('searchTerm', TType.LIST, 1)oprot.writeListBegin(TType.STRING, len(self.searchTerm))for iter623 in self.searchTerm:oprot.writeString(iter623)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 searchFlipkartItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.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 = [](_etype627, _size624) = iprot.readListBegin()for _i628 in xrange(_size624):_elem629 = FlipkartItemDetails()_elem629.read(iprot)self.success.append(_elem629)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('searchFlipkartItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter630 in self.success:iter630.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 getCountForFlipkartItems_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('getCountForFlipkartItems_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 getCountForFlipkartItems_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('getCountForFlipkartItems_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 getFlipkartSearchResultCount_args:"""Attributes:- searchTerm"""thrift_spec = (None, # 0(1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1)def __init__(self, searchTerm=None,):self.searchTerm = searchTermdef 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.searchTerm = [](_etype634, _size631) = iprot.readListBegin()for _i635 in xrange(_size631):_elem636 = iprot.readString();self.searchTerm.append(_elem636)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('getFlipkartSearchResultCount_args')if self.searchTerm is not None:oprot.writeFieldBegin('searchTerm', TType.LIST, 1)oprot.writeListBegin(TType.STRING, len(self.searchTerm))for iter637 in self.searchTerm:oprot.writeString(iter637)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 getFlipkartSearchResultCount_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('getFlipkartSearchResultCount_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 getAllFkItems_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('getAllFkItems_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 getAllFkItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.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 = [](_etype641, _size638) = iprot.readListBegin()for _i642 in xrange(_size638):_elem643 = FlipkartItemDetails()_elem643.read(iprot)self.success.append(_elem643)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('getAllFkItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter644 in self.success:iter644.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 getFlipkartItemBySkyAtFlipkart_args:"""Attributes:- sku"""thrift_spec = Nonedef __init__(self, sku=None,):self.sku = skudef 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.sku = 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('getFlipkartItemBySkyAtFlipkart_args')if self.sku is not None:oprot.writeFieldBegin('sku', TType.STRING, -1)oprot.writeString(self.sku)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 getFlipkartItemBySkyAtFlipkart_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.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 = FlipkartItem()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('getFlipkartItemBySkyAtFlipkart_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 getMarketplaceHistory_args:"""Attributes:- source- offset- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'source', None, None, ), # 1(2, TType.I64, 'offset', None, None, ), # 2(3, TType.I64, 'itemId', None, None, ), # 3)def __init__(self, source=None, offset=None, itemId=None,):self.source = sourceself.offset = offsetself.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.source = iprot.readI64();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.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('getMarketplaceHistory_args')if self.source is not None:oprot.writeFieldBegin('source', TType.I64, 1)oprot.writeI64(self.source)oprot.writeFieldEnd()if self.offset is not None:oprot.writeFieldBegin('offset', TType.I64, 2)oprot.writeI64(self.offset)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 getMarketplaceHistory_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.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 = [](_etype648, _size645) = iprot.readListBegin()for _i649 in xrange(_size645):_elem650 = MarketplaceHistory()_elem650.read(iprot)self.success.append(_elem650)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('getMarketplaceHistory_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter651 in self.success:iter651.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 getAllFbbListedItems_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('getAllFbbListedItems_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 getAllFbbListedItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype655, _size652) = iprot.readListBegin()for _i656 in xrange(_size652):_elem657 = Amazonlisted()_elem657.read(iprot)self.success.append(_elem657)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('getAllFbbListedItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter658 in self.success:iter658.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 getAllFbbPricingItems_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('getAllFbbPricingItems_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 getAllFbbPricingItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype662, _size659) = iprot.readListBegin()for _i663 in xrange(_size659):_elem664 = Amazonlisted()_elem664.read(iprot)self.success.append(_elem664)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('getAllFbbPricingItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter665 in self.success:iter665.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 getCountForMarketplaceHistory_args:"""Attributes:- source- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'source', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2)def __init__(self, source=None, itemId=None,):self.source = sourceself.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.source = iprot.readI64();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('getCountForMarketplaceHistory_args')if self.source is not None:oprot.writeFieldBegin('source', TType.I64, 1)oprot.writeI64(self.source)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 getCountForMarketplaceHistory_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('getCountForMarketplaceHistory_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 getMarketplaceHistoryByDate_args:"""Attributes:- source- startDate- endDate- offset- limit- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'source', None, None, ), # 1(2, TType.I64, 'startDate', None, None, ), # 2(3, TType.I64, 'endDate', None, None, ), # 3(4, TType.I64, 'offset', None, None, ), # 4(5, TType.I64, 'limit', None, None, ), # 5(6, TType.I64, 'itemId', None, None, ), # 6)def __init__(self, source=None, startDate=None, endDate=None, offset=None, limit=None, itemId=None,):self.source = sourceself.startDate = startDateself.endDate = endDateself.offset = offsetself.limit = limitself.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.source = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.startDate = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.endDate = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.offset = iprot.readI64();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.I64:self.limit = iprot.readI64();else:iprot.skip(ftype)elif fid == 6: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('getMarketplaceHistoryByDate_args')if self.source is not None:oprot.writeFieldBegin('source', TType.I64, 1)oprot.writeI64(self.source)oprot.writeFieldEnd()if self.startDate is not None:oprot.writeFieldBegin('startDate', TType.I64, 2)oprot.writeI64(self.startDate)oprot.writeFieldEnd()if self.endDate is not None:oprot.writeFieldBegin('endDate', TType.I64, 3)oprot.writeI64(self.endDate)oprot.writeFieldEnd()if self.offset is not None:oprot.writeFieldBegin('offset', TType.I64, 4)oprot.writeI64(self.offset)oprot.writeFieldEnd()if self.limit is not None:oprot.writeFieldBegin('limit', TType.I64, 5)oprot.writeI64(self.limit)oprot.writeFieldEnd()if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 6)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 getMarketplaceHistoryByDate_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.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 = [](_etype669, _size666) = iprot.readListBegin()for _i670 in xrange(_size666):_elem671 = MarketplaceHistory()_elem671.read(iprot)self.success.append(_elem671)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('getMarketplaceHistoryByDate_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter672 in self.success:iter672.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 getPrivateDealDetails_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('getPrivateDealDetails_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 getPrivateDealDetails_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (PrivateDeal, PrivateDeal.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 = PrivateDeal()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('getPrivateDealDetails_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 getPrivateDealItems_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('getPrivateDealItems_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 getPrivateDealItems_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 = [](_etype676, _size673) = iprot.readListBegin()for _i677 in xrange(_size673):_elem678 = Item()_elem678.read(iprot)self.success.append(_elem678)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('getPrivateDealItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter679 in self.success:iter679.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 getAllActivePrivateDeals_args:"""Attributes:- itemIds- daysDelta"""thrift_spec = (None, # 0(1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1(2, TType.I64, 'daysDelta', None, None, ), # 2)def __init__(self, itemIds=None, daysDelta=None,):self.itemIds = itemIdsself.daysDelta = daysDeltadef 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.itemIds = [](_etype683, _size680) = iprot.readListBegin()for _i684 in xrange(_size680):_elem685 = iprot.readI64();self.itemIds.append(_elem685)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.daysDelta = 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('getAllActivePrivateDeals_args')if self.itemIds is not None:oprot.writeFieldBegin('itemIds', TType.LIST, 1)oprot.writeListBegin(TType.I64, len(self.itemIds))for iter686 in self.itemIds:oprot.writeI64(iter686)oprot.writeListEnd()oprot.writeFieldEnd()if self.daysDelta is not None:oprot.writeFieldBegin('daysDelta', TType.I64, 2)oprot.writeI64(self.daysDelta)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 getAllActivePrivateDeals_result:"""Attributes:- success"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(PrivateDeal, PrivateDeal.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.MAP:self.success = {}(_ktype688, _vtype689, _size687 ) = iprot.readMapBegin()for _i691 in xrange(_size687):_key692 = iprot.readI64();_val693 = PrivateDeal()_val693.read(iprot)self.success[_key692] = _val693iprot.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('getAllActivePrivateDeals_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))for kiter694,viter695 in self.success.items():oprot.writeI64(kiter694)viter695.write(oprot)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 addOrUpdatePrivateDeal_args:"""Attributes:- privateDeal"""thrift_spec = (None, # 0(1, TType.STRUCT, 'privateDeal', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 1)def __init__(self, privateDeal=None,):self.privateDeal = privateDealdef 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.privateDeal = PrivateDeal()self.privateDeal.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('addOrUpdatePrivateDeal_args')if self.privateDeal is not None:oprot.writeFieldBegin('privateDeal', TType.STRUCT, 1)self.privateDeal.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 addOrUpdatePrivateDeal_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('addOrUpdatePrivateDeal_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 getPrivateDealsCatalogIds_args:"""Attributes:- beginIndex- totalItems"""thrift_spec = (None, # 0(1, TType.I64, 'beginIndex', None, None, ), # 1(2, TType.I64, 'totalItems', None, None, ), # 2)def __init__(self, beginIndex=None, totalItems=None,):self.beginIndex = beginIndexself.totalItems = totalItemsdef 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)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('getPrivateDealsCatalogIds_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()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 getPrivateDealsCatalogIds_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 = [](_etype699, _size696) = iprot.readListBegin()for _i700 in xrange(_size696):_elem701 = iprot.readI64();self.success.append(_elem701)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('getPrivateDealsCatalogIds_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter702 in self.success:oprot.writeI64(iter702)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 getPrivateDealsCount_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('getPrivateDealsCount_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 getPrivateDealsCount_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('getPrivateDealsCount_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 getAmazonOutSyncItems_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('getAmazonOutSyncItems_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 getAmazonOutSyncItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (AmazonOutOfSync, AmazonOutOfSync.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 = AmazonOutOfSync()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('getAmazonOutSyncItems_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 getAllPrivateDealsComparison_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('getAllPrivateDealsComparison_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 getAllPrivateDealsComparison_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(PdPriceComp, PdPriceComp.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 = [](_etype706, _size703) = iprot.readListBegin()for _i707 in xrange(_size703):_elem708 = PdPriceComp()_elem708.read(iprot)self.success.append(_elem708)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('getAllPrivateDealsComparison_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter709 in self.success:iter709.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 getAllSnapdealMarketplaceItem_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('getAllSnapdealMarketplaceItem_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 getAllSnapdealMarketplaceItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItem, SnapdealItem.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 = [](_etype713, _size710) = iprot.readListBegin()for _i714 in xrange(_size710):_elem715 = SnapdealItem()_elem715.read(iprot)self.success.append(_elem715)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('getAllSnapdealMarketplaceItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter716 in self.success:iter716.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 getAllFlipkartMarketplaceItem_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('getAllFlipkartMarketplaceItem_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 getAllFlipkartMarketplaceItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.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 = [](_etype720, _size717) = iprot.readListBegin()for _i721 in xrange(_size717):_elem722 = FlipkartItem()_elem722.read(iprot)self.success.append(_elem722)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('getAllFlipkartMarketplaceItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter723 in self.success:iter723.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 addCompetitorScraping_args:"""Attributes:- competitorPricingMap"""thrift_spec = (None, # 0(1, TType.MAP, 'competitorPricingMap', (TType.I64,None,TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 1)def __init__(self, competitorPricingMap=None,):self.competitorPricingMap = competitorPricingMapdef 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.MAP:self.competitorPricingMap = {}(_ktype725, _vtype726, _size724 ) = iprot.readMapBegin()for _i728 in xrange(_size724):_key729 = iprot.readI64();_val730 = CompetitorPricing()_val730.read(iprot)self.competitorPricingMap[_key729] = _val730iprot.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('addCompetitorScraping_args')if self.competitorPricingMap is not None:oprot.writeFieldBegin('competitorPricingMap', TType.MAP, 1)oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.competitorPricingMap))for kiter731,viter732 in self.competitorPricingMap.items():oprot.writeI64(kiter731)viter732.write(oprot)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 addCompetitorScraping_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('addCompetitorScraping_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 getPreviousCompetitorScraping_args:"""Attributes:- delta"""thrift_spec = (None, # 0(1, TType.I64, 'delta', None, None, ), # 1)def __init__(self, delta=None,):self.delta = deltadef 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.delta = 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('getPreviousCompetitorScraping_args')if self.delta is not None:oprot.writeFieldBegin('delta', TType.I64, 1)oprot.writeI64(self.delta)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 getPreviousCompetitorScraping_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.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 = [](_etype736, _size733) = iprot.readListBegin()for _i737 in xrange(_size733):_elem738 = CompetitorPricing()_elem738.read(iprot)self.success.append(_elem738)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('getPreviousCompetitorScraping_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter739 in self.success:iter739.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 getUploadResultById_args:"""Attributes:- uploadId"""thrift_spec = (None, # 0(1, TType.I64, 'uploadId', None, None, ), # 1)def __init__(self, uploadId=None,):self.uploadId = uploadIddef 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.uploadId = 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('getUploadResultById_args')if self.uploadId is not None:oprot.writeFieldBegin('uploadId', TType.I64, 1)oprot.writeI64(self.uploadId)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 getUploadResultById_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.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 = [](_etype743, _size740) = iprot.readListBegin()for _i744 in xrange(_size740):_elem745 = CompetitorPricing()_elem745.read(iprot)self.success.append(_elem745)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('getUploadResultById_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter746 in self.success:iter746.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 addAmazonPromotion_args:"""Attributes:- amazonPromotions"""thrift_spec = (None, # 0(1, TType.MAP, 'amazonPromotions', (TType.STRING,None,TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1)def __init__(self, amazonPromotions=None,):self.amazonPromotions = amazonPromotionsdef 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.MAP:self.amazonPromotions = {}(_ktype748, _vtype749, _size747 ) = iprot.readMapBegin()for _i751 in xrange(_size747):_key752 = iprot.readString();_val753 = AmazonPromotion()_val753.read(iprot)self.amazonPromotions[_key752] = _val753iprot.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('addAmazonPromotion_args')if self.amazonPromotions is not None:oprot.writeFieldBegin('amazonPromotions', TType.MAP, 1)oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.amazonPromotions))for kiter754,viter755 in self.amazonPromotions.items():oprot.writeString(kiter754)viter755.write(oprot)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 addAmazonPromotion_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRING,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 = [](_etype759, _size756) = iprot.readListBegin()for _i760 in xrange(_size756):_elem761 = iprot.readString();self.success.append(_elem761)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('addAmazonPromotion_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRING, len(self.success))for iter762 in self.success:oprot.writeString(iter762)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 getAmazonPromotion_args:"""Attributes:- startDate- endDate"""thrift_spec = (None, # 0(1, TType.I64, 'startDate', None, None, ), # 1(2, TType.I64, 'endDate', None, None, ), # 2)def __init__(self, startDate=None, endDate=None,):self.startDate = startDateself.endDate = endDatedef 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.startDate = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.endDate = 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('getAmazonPromotion_args')if self.startDate is not None:oprot.writeFieldBegin('startDate', TType.I64, 1)oprot.writeI64(self.startDate)oprot.writeFieldEnd()if self.endDate is not None:oprot.writeFieldBegin('endDate', TType.I64, 2)oprot.writeI64(self.endDate)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 getAmazonPromotion_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.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 = [](_etype766, _size763) = iprot.readListBegin()for _i767 in xrange(_size763):_elem768 = AmazonPromotion()_elem768.read(iprot)self.success.append(_elem768)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('getAmazonPromotion_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter769 in self.success:iter769.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 updateAmazonPromotion_args:"""Attributes:- amazonPromotions"""thrift_spec = (None, # 0(1, TType.LIST, 'amazonPromotions', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1)def __init__(self, amazonPromotions=None,):self.amazonPromotions = amazonPromotionsdef 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.amazonPromotions = [](_etype773, _size770) = iprot.readListBegin()for _i774 in xrange(_size770):_elem775 = AmazonPromotion()_elem775.read(iprot)self.amazonPromotions.append(_elem775)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('updateAmazonPromotion_args')if self.amazonPromotions is not None:oprot.writeFieldBegin('amazonPromotions', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.amazonPromotions))for iter776 in self.amazonPromotions:iter776.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 updateAmazonPromotion_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('updateAmazonPromotion_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 markPartiallyActive_args:"""Attributes:- itemId- categoryId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I64, 'categoryId', None, None, ), # 2)def __init__(self, itemId=None, categoryId=None,):self.itemId = itemIdself.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.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2: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('markPartiallyActive_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.categoryId is not None:oprot.writeFieldBegin('categoryId', TType.I64, 2)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 markPartiallyActive_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('markPartiallyActive_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 updateItemStateVat_args:"""Attributes:- itemId- statevat"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.MAP, 'statevat', (TType.I64,None,TType.DOUBLE,None), None, ), # 2)def __init__(self, itemId=None, statevat=None,):self.itemId = itemIdself.statevat = statevatdef 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.MAP:self.statevat = {}(_ktype778, _vtype779, _size777 ) = iprot.readMapBegin()for _i781 in xrange(_size777):_key782 = iprot.readI64();_val783 = iprot.readDouble();self.statevat[_key782] = _val783iprot.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('updateItemStateVat_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.statevat is not None:oprot.writeFieldBegin('statevat', TType.MAP, 2)oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.statevat))for kiter784,viter785 in self.statevat.items():oprot.writeI64(kiter784)oprot.writeDouble(viter785)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 updateItemStateVat_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('updateItemStateVat_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 getExAffiliateItemInfo_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('getExAffiliateItemInfo_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 getExAffiliateItemInfo_result:"""Attributes:- success"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ExclusiveAffiliateItemInfo, ExclusiveAffiliateItemInfo.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.MAP:self.success = {}(_ktype787, _vtype788, _size786 ) = iprot.readMapBegin()for _i790 in xrange(_size786):_key791 = iprot.readI64();_val792 = ExclusiveAffiliateItemInfo()_val792.read(iprot)self.success[_key791] = _val792iprot.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('getExAffiliateItemInfo_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))for kiter793,viter794 in self.success.items():oprot.writeI64(kiter793)viter794.write(oprot)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 getAllItemstoListOnFbg_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('getAllItemstoListOnFbg_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 getAllItemstoListOnFbg_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype798, _size795) = iprot.readListBegin()for _i799 in xrange(_size795):_elem800 = Amazonlisted()_elem800.read(iprot)self.success.append(_elem800)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('getAllItemstoListOnFbg_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter801 in self.success:iter801.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 getAllFbgListedItems_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('getAllFbgListedItems_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 getAllFbgListedItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype805, _size802) = iprot.readListBegin()for _i806 in xrange(_size802):_elem807 = Amazonlisted()_elem807.read(iprot)self.success.append(_elem807)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('getAllFbgListedItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter808 in self.success:iter808.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 checkServices_args:"""Attributes:- lines"""thrift_spec = (None, # 0(1, TType.MAP, 'lines', (TType.I64,None,TType.MAP,(TType.STRING,None,TType.I64,None)), None, ), # 1)def __init__(self, lines=None,):self.lines = linesdef 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.MAP:self.lines = {}(_ktype810, _vtype811, _size809 ) = iprot.readMapBegin()for _i813 in xrange(_size809):_key814 = iprot.readI64();_val815 = {}(_ktype817, _vtype818, _size816 ) = iprot.readMapBegin()for _i820 in xrange(_size816):_key821 = iprot.readString();_val822 = iprot.readI64();_val815[_key821] = _val822iprot.readMapEnd()self.lines[_key814] = _val815iprot.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('checkServices_args')if self.lines is not None:oprot.writeFieldBegin('lines', TType.MAP, 1)oprot.writeMapBegin(TType.I64, TType.MAP, len(self.lines))for kiter823,viter824 in self.lines.items():oprot.writeI64(kiter823)oprot.writeMapBegin(TType.STRING, TType.I64, len(viter824))for kiter825,viter826 in viter824.items():oprot.writeString(kiter825)oprot.writeI64(viter826)oprot.writeMapEnd()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 checkServices_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,TType.MAP,(TType.STRING,None,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.MAP:self.success = {}(_ktype828, _vtype829, _size827 ) = iprot.readMapBegin()for _i831 in xrange(_size827):_key832 = iprot.readI64();_val833 = {}(_ktype835, _vtype836, _size834 ) = iprot.readMapBegin()for _i838 in xrange(_size834):_key839 = iprot.readString();_val840 = iprot.readI64();_val833[_key839] = _val840iprot.readMapEnd()self.success[_key832] = _val833iprot.readMapEnd()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('checkServices_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.MAP, len(self.success))for kiter841,viter842 in self.success.items():oprot.writeI64(kiter841)oprot.writeMapBegin(TType.STRING, TType.I64, len(viter842))for kiter843,viter844 in viter842.items():oprot.writeString(kiter843)oprot.writeI64(viter844)oprot.writeMapEnd()oprot.writeMapEnd()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 addHsItem_args:"""Attributes:- hsItems"""thrift_spec = (None, # 0(1, TType.LIST, 'hsItems', (TType.STRUCT,(HsItem, HsItem.thrift_spec)), None, ), # 1)def __init__(self, hsItems=None,):self.hsItems = hsItemsdef 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.hsItems = [](_etype848, _size845) = iprot.readListBegin()for _i849 in xrange(_size845):_elem850 = HsItem()_elem850.read(iprot)self.hsItems.append(_elem850)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('addHsItem_args')if self.hsItems is not None:oprot.writeFieldBegin('hsItems', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.hsItems))for iter851 in self.hsItems:iter851.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 addHsItem_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('addHsItem_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 getHsItem_args:"""Attributes:- hsItemId"""thrift_spec = (None, # 0(1, TType.STRING, 'hsItemId', None, None, ), # 1)def __init__(self, hsItemId=None,):self.hsItemId = hsItemIddef 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.hsItemId = 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('getHsItem_args')if self.hsItemId is not None:oprot.writeFieldBegin('hsItemId', TType.STRING, 1)oprot.writeString(self.hsItemId)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 getHsItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (HsItem, HsItem.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 = HsItem()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('getHsItem_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 updateHsItem_args:"""Attributes:- hsItem"""thrift_spec = (None, # 0(1, TType.STRUCT, 'hsItem', (HsItem, HsItem.thrift_spec), None, ), # 1)def __init__(self, hsItem=None,):self.hsItem = hsItemdef 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.hsItem = HsItem()self.hsItem.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('updateHsItem_args')if self.hsItem is not None:oprot.writeFieldBegin('hsItem', TType.STRUCT, 1)self.hsItem.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 updateHsItem_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('updateHsItem_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 getPricingForDtr_args:"""Attributes:- catalogItemId"""thrift_spec = (None, # 0(1, TType.I64, 'catalogItemId', None, None, ), # 1)def __init__(self, catalogItemId=None,):self.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.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('getPricingForDtr_args')if self.catalogItemId is not None:oprot.writeFieldBegin('catalogItemId', TType.I64, 1)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 getPricingForDtr_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (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.STRUCT:self.success = Item()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('getPricingForDtr_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 getAllItemstoListOnFbd_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('getAllItemstoListOnFbd_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 getAllItemstoListOnFbd_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype855, _size852) = iprot.readListBegin()for _i856 in xrange(_size852):_elem857 = Amazonlisted()_elem857.read(iprot)self.success.append(_elem857)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('getAllItemstoListOnFbd_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter858 in self.success:iter858.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 getAllFbdListedItems_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('getAllFbdListedItems_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 getAllFbdListedItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.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 = [](_etype862, _size859) = iprot.readListBegin()for _i863 in xrange(_size859):_elem864 = Amazonlisted()_elem864.read(iprot)self.success.append(_elem864)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('getAllFbdListedItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter865 in self.success:iter865.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)