Rev 23310 | 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, ):passdef getBulkPricingForItems(self, itemIds):"""Parameters:- itemIds"""passdef addBulkPricingForItem(self, bulkItemPricing):"""Parameters:- bulkItemPricing"""passdef deleteBulkPricingForItemById(self, id):"""Parameters:- id"""passdef deleteBulkPricingForItem(self, item_id):"""Parameters:- item_id"""passdef getBulkPricingByItemId(self, item_id):"""Parameters:- item_id"""passdef updateBulkPricesOnProduction(self, item_id, bulkItemPricingList):"""Parameters:- item_id- bulkItemPricingList"""passdef getCartByValue(self, cartIds):"""Parameters:- cartIds"""passdef updateItemPricing(self, itemPricingList):"""Parameters:- itemPricingList"""passdef bulkUpdateCatalog(self, bulkUploadCatalog):"""Parameters:- bulkUploadCatalog"""passdef getWarrantyInfoForItem(self, catalogItemId, itemCondition):"""Parameters:- catalogItemId- itemCondition"""passdef getWarrantyInfoForItemList(self, catalogItemIds, itemCondition):"""Parameters:- catalogItemIds- itemCondition"""passdef getStateTaxRate(self, itemIds, stateId):"""Parameters:- itemIds- stateId"""passdef getIgstTaxRate(self, itemIds):"""Parameters:- itemIds"""passdef persistGstRate(self, stateGstRates):"""Parameters:- stateGstRates"""passdef getHsnCodesByCategory(self, categoryId):"""Parameters:- categoryId"""passdef getAllFofoDeals(self, itemIds, tagIds):"""Parameters:- itemIds- tagIds"""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");def getBulkPricingForItems(self, itemIds):"""Parameters:- itemIds"""self.send_getBulkPricingForItems(itemIds)return self.recv_getBulkPricingForItems()def send_getBulkPricingForItems(self, itemIds):self._oprot.writeMessageBegin('getBulkPricingForItems', TMessageType.CALL, self._seqid)args = getBulkPricingForItems_args()args.itemIds = itemIdsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBulkPricingForItems(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBulkPricingForItems_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getBulkPricingForItems failed: unknown result");def addBulkPricingForItem(self, bulkItemPricing):"""Parameters:- bulkItemPricing"""self.send_addBulkPricingForItem(bulkItemPricing)return self.recv_addBulkPricingForItem()def send_addBulkPricingForItem(self, bulkItemPricing):self._oprot.writeMessageBegin('addBulkPricingForItem', TMessageType.CALL, self._seqid)args = addBulkPricingForItem_args()args.bulkItemPricing = bulkItemPricingargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addBulkPricingForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addBulkPricingForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "addBulkPricingForItem failed: unknown result");def deleteBulkPricingForItemById(self, id):"""Parameters:- id"""self.send_deleteBulkPricingForItemById(id)return self.recv_deleteBulkPricingForItemById()def send_deleteBulkPricingForItemById(self, id):self._oprot.writeMessageBegin('deleteBulkPricingForItemById', TMessageType.CALL, self._seqid)args = deleteBulkPricingForItemById_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteBulkPricingForItemById(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteBulkPricingForItemById_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBulkPricingForItemById failed: unknown result");def deleteBulkPricingForItem(self, item_id):"""Parameters:- item_id"""self.send_deleteBulkPricingForItem(item_id)return self.recv_deleteBulkPricingForItem()def send_deleteBulkPricingForItem(self, item_id):self._oprot.writeMessageBegin('deleteBulkPricingForItem', TMessageType.CALL, self._seqid)args = deleteBulkPricingForItem_args()args.item_id = item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteBulkPricingForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteBulkPricingForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBulkPricingForItem failed: unknown result");def getBulkPricingByItemId(self, item_id):"""Parameters:- item_id"""self.send_getBulkPricingByItemId(item_id)return self.recv_getBulkPricingByItemId()def send_getBulkPricingByItemId(self, item_id):self._oprot.writeMessageBegin('getBulkPricingByItemId', TMessageType.CALL, self._seqid)args = getBulkPricingByItemId_args()args.item_id = item_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBulkPricingByItemId(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBulkPricingByItemId_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getBulkPricingByItemId failed: unknown result");def updateBulkPricesOnProduction(self, item_id, bulkItemPricingList):"""Parameters:- item_id- bulkItemPricingList"""self.send_updateBulkPricesOnProduction(item_id, bulkItemPricingList)return self.recv_updateBulkPricesOnProduction()def send_updateBulkPricesOnProduction(self, item_id, bulkItemPricingList):self._oprot.writeMessageBegin('updateBulkPricesOnProduction', TMessageType.CALL, self._seqid)args = updateBulkPricesOnProduction_args()args.item_id = item_idargs.bulkItemPricingList = bulkItemPricingListargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateBulkPricesOnProduction(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateBulkPricesOnProduction_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "updateBulkPricesOnProduction failed: unknown result");def getCartByValue(self, cartIds):"""Parameters:- cartIds"""self.send_getCartByValue(cartIds)return self.recv_getCartByValue()def send_getCartByValue(self, cartIds):self._oprot.writeMessageBegin('getCartByValue', TMessageType.CALL, self._seqid)args = getCartByValue_args()args.cartIds = cartIdsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCartByValue(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCartByValue_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCartByValue failed: unknown result");def updateItemPricing(self, itemPricingList):"""Parameters:- itemPricingList"""self.send_updateItemPricing(itemPricingList)return self.recv_updateItemPricing()def send_updateItemPricing(self, itemPricingList):self._oprot.writeMessageBegin('updateItemPricing', TMessageType.CALL, self._seqid)args = updateItemPricing_args()args.itemPricingList = itemPricingListargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateItemPricing(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateItemPricing_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemPricing failed: unknown result");def bulkUpdateCatalog(self, bulkUploadCatalog):"""Parameters:- bulkUploadCatalog"""self.send_bulkUpdateCatalog(bulkUploadCatalog)self.recv_bulkUpdateCatalog()def send_bulkUpdateCatalog(self, bulkUploadCatalog):self._oprot.writeMessageBegin('bulkUpdateCatalog', TMessageType.CALL, self._seqid)args = bulkUpdateCatalog_args()args.bulkUploadCatalog = bulkUploadCatalogargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_bulkUpdateCatalog(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = bulkUpdateCatalog_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.cex is not None:raise result.cexreturndef getWarrantyInfoForItem(self, catalogItemId, itemCondition):"""Parameters:- catalogItemId- itemCondition"""self.send_getWarrantyInfoForItem(catalogItemId, itemCondition)return self.recv_getWarrantyInfoForItem()def send_getWarrantyInfoForItem(self, catalogItemId, itemCondition):self._oprot.writeMessageBegin('getWarrantyInfoForItem', TMessageType.CALL, self._seqid)args = getWarrantyInfoForItem_args()args.catalogItemId = catalogItemIdargs.itemCondition = itemConditionargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getWarrantyInfoForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getWarrantyInfoForItem_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, "getWarrantyInfoForItem failed: unknown result");def getWarrantyInfoForItemList(self, catalogItemIds, itemCondition):"""Parameters:- catalogItemIds- itemCondition"""self.send_getWarrantyInfoForItemList(catalogItemIds, itemCondition)return self.recv_getWarrantyInfoForItemList()def send_getWarrantyInfoForItemList(self, catalogItemIds, itemCondition):self._oprot.writeMessageBegin('getWarrantyInfoForItemList', TMessageType.CALL, self._seqid)args = getWarrantyInfoForItemList_args()args.catalogItemIds = catalogItemIdsargs.itemCondition = itemConditionargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getWarrantyInfoForItemList(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getWarrantyInfoForItemList_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, "getWarrantyInfoForItemList failed: unknown result");def getStateTaxRate(self, itemIds, stateId):"""Parameters:- itemIds- stateId"""self.send_getStateTaxRate(itemIds, stateId)return self.recv_getStateTaxRate()def send_getStateTaxRate(self, itemIds, stateId):self._oprot.writeMessageBegin('getStateTaxRate', TMessageType.CALL, self._seqid)args = getStateTaxRate_args()args.itemIds = itemIdsargs.stateId = stateIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getStateTaxRate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getStateTaxRate_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getStateTaxRate failed: unknown result");def getIgstTaxRate(self, itemIds):"""Parameters:- itemIds"""self.send_getIgstTaxRate(itemIds)return self.recv_getIgstTaxRate()def send_getIgstTaxRate(self, itemIds):self._oprot.writeMessageBegin('getIgstTaxRate', TMessageType.CALL, self._seqid)args = getIgstTaxRate_args()args.itemIds = itemIdsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getIgstTaxRate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getIgstTaxRate_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getIgstTaxRate failed: unknown result");def persistGstRate(self, stateGstRates):"""Parameters:- stateGstRates"""self.send_persistGstRate(stateGstRates)self.recv_persistGstRate()def send_persistGstRate(self, stateGstRates):self._oprot.writeMessageBegin('persistGstRate', TMessageType.CALL, self._seqid)args = persistGstRate_args()args.stateGstRates = stateGstRatesargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_persistGstRate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = persistGstRate_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getHsnCodesByCategory(self, categoryId):"""Parameters:- categoryId"""self.send_getHsnCodesByCategory(categoryId)return self.recv_getHsnCodesByCategory()def send_getHsnCodesByCategory(self, categoryId):self._oprot.writeMessageBegin('getHsnCodesByCategory', TMessageType.CALL, self._seqid)args = getHsnCodesByCategory_args()args.categoryId = categoryIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getHsnCodesByCategory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getHsnCodesByCategory_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, "getHsnCodesByCategory failed: unknown result");def getAllFofoDeals(self, itemIds, tagIds):"""Parameters:- itemIds- tagIds"""self.send_getAllFofoDeals(itemIds, tagIds)return self.recv_getAllFofoDeals()def send_getAllFofoDeals(self, itemIds, tagIds):self._oprot.writeMessageBegin('getAllFofoDeals', TMessageType.CALL, self._seqid)args = getAllFofoDeals_args()args.itemIds = itemIdsargs.tagIds = tagIdsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllFofoDeals(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllFofoDeals_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFofoDeals 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_getAllFbdListedItemsself._processMap["getBulkPricingForItems"] = Processor.process_getBulkPricingForItemsself._processMap["addBulkPricingForItem"] = Processor.process_addBulkPricingForItemself._processMap["deleteBulkPricingForItemById"] = Processor.process_deleteBulkPricingForItemByIdself._processMap["deleteBulkPricingForItem"] = Processor.process_deleteBulkPricingForItemself._processMap["getBulkPricingByItemId"] = Processor.process_getBulkPricingByItemIdself._processMap["updateBulkPricesOnProduction"] = Processor.process_updateBulkPricesOnProductionself._processMap["getCartByValue"] = Processor.process_getCartByValueself._processMap["updateItemPricing"] = Processor.process_updateItemPricingself._processMap["bulkUpdateCatalog"] = Processor.process_bulkUpdateCatalogself._processMap["getWarrantyInfoForItem"] = Processor.process_getWarrantyInfoForItemself._processMap["getWarrantyInfoForItemList"] = Processor.process_getWarrantyInfoForItemListself._processMap["getStateTaxRate"] = Processor.process_getStateTaxRateself._processMap["getIgstTaxRate"] = Processor.process_getIgstTaxRateself._processMap["persistGstRate"] = Processor.process_persistGstRateself._processMap["getHsnCodesByCategory"] = Processor.process_getHsnCodesByCategoryself._processMap["getAllFofoDeals"] = Processor.process_getAllFofoDealsdef 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()def process_getBulkPricingForItems(self, seqid, iprot, oprot):args = getBulkPricingForItems_args()args.read(iprot)iprot.readMessageEnd()result = getBulkPricingForItems_result()result.success = self._handler.getBulkPricingForItems(args.itemIds)oprot.writeMessageBegin("getBulkPricingForItems", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addBulkPricingForItem(self, seqid, iprot, oprot):args = addBulkPricingForItem_args()args.read(iprot)iprot.readMessageEnd()result = addBulkPricingForItem_result()result.success = self._handler.addBulkPricingForItem(args.bulkItemPricing)oprot.writeMessageBegin("addBulkPricingForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteBulkPricingForItemById(self, seqid, iprot, oprot):args = deleteBulkPricingForItemById_args()args.read(iprot)iprot.readMessageEnd()result = deleteBulkPricingForItemById_result()result.success = self._handler.deleteBulkPricingForItemById(args.id)oprot.writeMessageBegin("deleteBulkPricingForItemById", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteBulkPricingForItem(self, seqid, iprot, oprot):args = deleteBulkPricingForItem_args()args.read(iprot)iprot.readMessageEnd()result = deleteBulkPricingForItem_result()result.success = self._handler.deleteBulkPricingForItem(args.item_id)oprot.writeMessageBegin("deleteBulkPricingForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBulkPricingByItemId(self, seqid, iprot, oprot):args = getBulkPricingByItemId_args()args.read(iprot)iprot.readMessageEnd()result = getBulkPricingByItemId_result()result.success = self._handler.getBulkPricingByItemId(args.item_id)oprot.writeMessageBegin("getBulkPricingByItemId", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateBulkPricesOnProduction(self, seqid, iprot, oprot):args = updateBulkPricesOnProduction_args()args.read(iprot)iprot.readMessageEnd()result = updateBulkPricesOnProduction_result()result.success = self._handler.updateBulkPricesOnProduction(args.item_id, args.bulkItemPricingList)oprot.writeMessageBegin("updateBulkPricesOnProduction", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCartByValue(self, seqid, iprot, oprot):args = getCartByValue_args()args.read(iprot)iprot.readMessageEnd()result = getCartByValue_result()result.success = self._handler.getCartByValue(args.cartIds)oprot.writeMessageBegin("getCartByValue", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateItemPricing(self, seqid, iprot, oprot):args = updateItemPricing_args()args.read(iprot)iprot.readMessageEnd()result = updateItemPricing_result()result.success = self._handler.updateItemPricing(args.itemPricingList)oprot.writeMessageBegin("updateItemPricing", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_bulkUpdateCatalog(self, seqid, iprot, oprot):args = bulkUpdateCatalog_args()args.read(iprot)iprot.readMessageEnd()result = bulkUpdateCatalog_result()try:self._handler.bulkUpdateCatalog(args.bulkUploadCatalog)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("bulkUpdateCatalog", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getWarrantyInfoForItem(self, seqid, iprot, oprot):args = getWarrantyInfoForItem_args()args.read(iprot)iprot.readMessageEnd()result = getWarrantyInfoForItem_result()try:result.success = self._handler.getWarrantyInfoForItem(args.catalogItemId, args.itemCondition)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getWarrantyInfoForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getWarrantyInfoForItemList(self, seqid, iprot, oprot):args = getWarrantyInfoForItemList_args()args.read(iprot)iprot.readMessageEnd()result = getWarrantyInfoForItemList_result()try:result.success = self._handler.getWarrantyInfoForItemList(args.catalogItemIds, args.itemCondition)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getWarrantyInfoForItemList", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getStateTaxRate(self, seqid, iprot, oprot):args = getStateTaxRate_args()args.read(iprot)iprot.readMessageEnd()result = getStateTaxRate_result()result.success = self._handler.getStateTaxRate(args.itemIds, args.stateId)oprot.writeMessageBegin("getStateTaxRate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getIgstTaxRate(self, seqid, iprot, oprot):args = getIgstTaxRate_args()args.read(iprot)iprot.readMessageEnd()result = getIgstTaxRate_result()result.success = self._handler.getIgstTaxRate(args.itemIds)oprot.writeMessageBegin("getIgstTaxRate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_persistGstRate(self, seqid, iprot, oprot):args = persistGstRate_args()args.read(iprot)iprot.readMessageEnd()result = persistGstRate_result()self._handler.persistGstRate(args.stateGstRates)oprot.writeMessageBegin("persistGstRate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getHsnCodesByCategory(self, seqid, iprot, oprot):args = getHsnCodesByCategory_args()args.read(iprot)iprot.readMessageEnd()result = getHsnCodesByCategory_result()try:result.success = self._handler.getHsnCodesByCategory(args.categoryId)except CatalogServiceException, cex:result.cex = cexoprot.writeMessageBegin("getHsnCodesByCategory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllFofoDeals(self, seqid, iprot, oprot):args = getAllFofoDeals_args()args.read(iprot)iprot.readMessageEnd()result = getAllFofoDeals_result()result.success = self._handler.getAllFofoDeals(args.itemIds, args.tagIds)oprot.writeMessageBegin("getAllFofoDeals", 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 = [](_etype51, _size48) = iprot.readListBegin()for _i52 in xrange(_size48):_elem53 = iprot.readI64();self.itemIds.append(_elem53)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 iter54 in self.itemIds:oprot.writeI64(iter54)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 = {}(_ktype56, _vtype57, _size55 ) = iprot.readMapBegin()for _i59 in xrange(_size55):_key60 = iprot.readI64();_val61 = iprot.readBool();self.success[_key60] = _val61iprot.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 kiter62,viter63 in self.success.items():oprot.writeI64(kiter62)oprot.writeBool(viter63)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 = [](_etype67, _size64) = iprot.readListBegin()for _i68 in xrange(_size64):_elem69 = iprot.readI64();self.item_ids.append(_elem69)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 iter70 in self.item_ids:oprot.writeI64(iter70)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 = {}(_ktype72, _vtype73, _size71 ) = iprot.readMapBegin()for _i75 in xrange(_size71):_key76 = iprot.readI64();_val77 = Item()_val77.read(iprot)self.success[_key76] = _val77iprot.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 kiter78,viter79 in self.success.items():oprot.writeI64(kiter78)viter79.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 = [](_etype83, _size80) = iprot.readListBegin()for _i84 in xrange(_size80):_elem85 = Item()_elem85.read(iprot)self.success.append(_elem85)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 iter86 in self.success:iter86.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 = [](_etype90, _size87) = iprot.readListBegin()for _i91 in xrange(_size87):_elem92 = Item()_elem92.read(iprot)self.success.append(_elem92)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 iter93 in self.success:iter93.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 = [](_etype97, _size94) = iprot.readListBegin()for _i98 in xrange(_size94):_elem99 = Item()_elem99.read(iprot)self.success.append(_elem99)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 iter100 in self.success:iter100.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 = [](_etype104, _size101) = iprot.readListBegin()for _i105 in xrange(_size101):_elem106 = Item()_elem106.read(iprot)self.success.append(_elem106)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 iter107 in self.success:iter107.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 = {}(_ktype109, _vtype110, _size108 ) = iprot.readMapBegin()for _i112 in xrange(_size108):_key113 = iprot.readI64();_val114 = iprot.readDouble();self.success[_key113] = _val114iprot.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 kiter115,viter116 in self.success.items():oprot.writeI64(kiter115)oprot.writeDouble(viter116)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 = [](_etype120, _size117) = iprot.readListBegin()for _i121 in xrange(_size117):_elem122 = Item()_elem122.read(iprot)self.success.append(_elem122)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 iter123 in self.success:iter123.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 = [](_etype127, _size124) = iprot.readListBegin()for _i128 in xrange(_size124):_elem129 = Item()_elem129.read(iprot)self.success.append(_elem129)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 iter130 in self.success:iter130.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 = [](_etype134, _size131) = iprot.readListBegin()for _i135 in xrange(_size131):_elem136 = Item()_elem136.read(iprot)self.success.append(_elem136)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 iter137 in self.success:iter137.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 = [](_etype141, _size138) = iprot.readListBegin()for _i142 in xrange(_size138):_elem143 = iprot.readI64();self.success.append(_elem143)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 iter144 in self.success:oprot.writeI64(iter144)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 = [](_etype148, _size145) = iprot.readListBegin()for _i149 in xrange(_size145):_elem150 = Item()_elem150.read(iprot)self.success.append(_elem150)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 iter151 in self.success:iter151.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 = [](_etype155, _size152) = iprot.readListBegin()for _i156 in xrange(_size152):_elem157 = iprot.readI64();self.success.append(_elem157)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 iter158 in self.success:oprot.writeI64(iter158)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 = [](_etype162, _size159) = iprot.readListBegin()for _i163 in xrange(_size159):_elem164 = Item()_elem164.read(iprot)self.success.append(_elem164)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 iter165 in self.success:iter165.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 = [](_etype169, _size166) = iprot.readListBegin()for _i170 in xrange(_size166):_elem171 = iprot.readI64();self.success.append(_elem171)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 iter172 in self.success:oprot.writeI64(iter172)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 = [](_etype176, _size173) = iprot.readListBegin()for _i177 in xrange(_size173):_elem178 = Item()_elem178.read(iprot)self.success.append(_elem178)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 iter179 in self.success:iter179.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 = [](_etype183, _size180) = iprot.readListBegin()for _i184 in xrange(_size180):_elem185 = iprot.readI64();self.categories.append(_elem185)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 iter186 in self.categories:oprot.writeI64(iter186)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 = [](_etype190, _size187) = iprot.readListBegin()for _i191 in xrange(_size187):_elem192 = iprot.readI64();self.success.append(_elem192)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 iter193 in self.success:oprot.writeI64(iter193)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 = [](_etype197, _size194) = iprot.readListBegin()for _i198 in xrange(_size194):_elem199 = Category()_elem199.read(iprot)self.success.append(_elem199)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 iter200 in self.success:iter200.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 = [](_etype204, _size201) = iprot.readListBegin()for _i205 in xrange(_size201):_elem206 = Item()_elem206.read(iprot)self.success.append(_elem206)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 iter207 in self.success:iter207.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 = [](_etype211, _size208) = iprot.readListBegin()for _i212 in xrange(_size208):_elem213 = iprot.readString();self.success.append(_elem213)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 iter214 in self.success:oprot.writeString(iter214)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 = [](_etype218, _size215) = iprot.readListBegin()for _i219 in xrange(_size215):_elem220 = iprot.readI64();self.success.append(_elem220)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 iter221 in self.success:oprot.writeI64(iter221)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 = {}(_ktype223, _vtype224, _size222 ) = iprot.readMapBegin()for _i226 in xrange(_size222):_key227 = iprot.readI64();_val228 = [](_etype232, _size229) = iprot.readListBegin()for _i233 in xrange(_size229):_elem234 = iprot.readString();_val228.append(_elem234)iprot.readListEnd()self.success[_key227] = _val228iprot.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 kiter235,viter236 in self.success.items():oprot.writeI64(kiter235)oprot.writeListBegin(TType.STRING, len(viter236))for iter237 in viter236:oprot.writeString(iter237)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 = [](_etype241, _size238) = iprot.readListBegin()for _i242 in xrange(_size238):_elem243 = Banner()_elem243.read(iprot)self.success.append(_elem243)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 iter244 in self.success:iter244.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 = {}(_ktype246, _vtype247, _size245 ) = iprot.readMapBegin()for _i249 in xrange(_size245):_key250 = iprot.readString();_val251 = [](_etype255, _size252) = iprot.readListBegin()for _i256 in xrange(_size252):_elem257 = Banner()_elem257.read(iprot)_val251.append(_elem257)iprot.readListEnd()self.success[_key250] = _val251iprot.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 kiter258,viter259 in self.success.items():oprot.writeString(kiter258)oprot.writeListBegin(TType.STRUCT, len(viter259))for iter260 in viter259:iter260.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 = [](_etype264, _size261) = iprot.readListBegin()for _i265 in xrange(_size261):_elem266 = BannerMap()_elem266.read(iprot)self.bannerMaps.append(_elem266)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addBannerMap_args')if self.bannerMaps is not None:oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))for iter267 in self.bannerMaps:iter267.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)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 = [](_etype271, _size268) = iprot.readListBegin()for _i272 in xrange(_size268):_elem273 = BannerMap()_elem273.read(iprot)self.success.append(_elem273)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 iter274 in self.success:iter274.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 = [](_etype278, _size275) = iprot.readListBegin()for _i279 in xrange(_size275):_elem280 = BannerUriMapping()_elem280.read(iprot)self.bannerUriMappings.append(_elem280)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 iter281 in self.bannerUriMappings:iter281.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 = [](_etype285, _size282) = iprot.readListBegin()for _i286 in xrange(_size282):_elem287 = BannerUriMapping()_elem287.read(iprot)self.success.append(_elem287)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 iter288 in self.success:iter288.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 = [](_etype292, _size289) = iprot.readListBegin()for _i293 in xrange(_size289):_elem294 = Campaign()_elem294.read(iprot)self.success.append(_elem294)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 iter295 in self.success:iter295.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 = [](_etype299, _size296) = iprot.readListBegin()for _i300 in xrange(_size296):_elem301 = iprot.readString();self.success.append(_elem301)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 iter302 in self.success:oprot.writeString(iter302)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 = {}(_ktype304, _vtype305, _size303 ) = iprot.readMapBegin()for _i307 in xrange(_size303):_key308 = iprot.readString();_val309 = [](_etype313, _size310) = iprot.readListBegin()for _i314 in xrange(_size310):_elem315 = Banner()_elem315.read(iprot)_val309.append(_elem315)iprot.readListEnd()self.success[_key308] = _val309iprot.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 kiter316,viter317 in self.success.items():oprot.writeString(kiter316)oprot.writeListBegin(TType.STRUCT, len(viter317))for iter318 in viter317:iter318.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 = [](_etype322, _size319) = iprot.readListBegin()for _i323 in xrange(_size319):_elem324 = Item()_elem324.read(iprot)self.success.append(_elem324)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 iter325 in self.success:iter325.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 = [](_etype329, _size326) = iprot.readListBegin()for _i330 in xrange(_size326):_elem331 = Item()_elem331.read(iprot)self.success.append(_elem331)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 iter332 in self.success:iter332.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 = [](_etype336, _size333) = iprot.readListBegin()for _i337 in xrange(_size333):_elem338 = iprot.readI64();self.success.append(_elem338)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 iter339 in self.success:oprot.writeI64(iter339)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 = [](_etype343, _size340) = iprot.readListBegin()for _i344 in xrange(_size340):_elem345 = iprot.readString();self.success.append(_elem345)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 iter346 in self.success:oprot.writeString(iter346)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 = [](_etype350, _size347) = iprot.readListBegin()for _i351 in xrange(_size347):_elem352 = iprot.readString();self.success.append(_elem352)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 iter353 in self.success:oprot.writeString(iter353)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 = [](_etype357, _size354) = iprot.readListBegin()for _i358 in xrange(_size354):_elem359 = Source()_elem359.read(iprot)self.success.append(_elem359)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 iter360 in self.success:iter360.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 = [](_etype364, _size361) = iprot.readListBegin()for _i365 in xrange(_size361):_elem366 = SourceItemPricing()_elem366.read(iprot)self.success.append(_elem366)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 iter367 in self.success:iter367.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 = [](_etype371, _size368) = iprot.readListBegin()for _i372 in xrange(_size368):_elem373 = iprot.readString();self.searchTerms.append(_elem373)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 iter374 in self.searchTerms:oprot.writeString(iter374)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 = [](_etype378, _size375) = iprot.readListBegin()for _i379 in xrange(_size375):_elem380 = Item()_elem380.read(iprot)self.success.append(_elem380)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 iter381 in self.success:iter381.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 = [](_etype385, _size382) = iprot.readListBegin()for _i386 in xrange(_size382):_elem387 = iprot.readString();self.searchTerms.append(_elem387)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 iter388 in self.searchTerms:oprot.writeString(iter388)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 = [](_etype392, _size389) = iprot.readListBegin()for _i393 in xrange(_size389):_elem394 = ProductNotificationRequest()_elem394.read(iprot)self.success.append(_elem394)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 iter395 in self.success:iter395.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 = [](_etype399, _size396) = iprot.readListBegin()for _i400 in xrange(_size396):_elem401 = ProductNotificationRequestCount()_elem401.read(iprot)self.success.append(_elem401)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 iter402 in self.success:iter402.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 = [](_etype406, _size403) = iprot.readListBegin()for _i407 in xrange(_size403):_elem408 = VoucherItemMapping()_elem408.read(iprot)self.success.append(_elem408)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 iter409 in self.success:iter409.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 = [](_etype413, _size410) = iprot.readListBegin()for _i414 in xrange(_size410):_elem415 = Item()_elem415.read(iprot)self.success.append(_elem415)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 iter416 in self.success:iter416.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 = [](_etype420, _size417) = iprot.readListBegin()for _i421 in xrange(_size417):_elem422 = Item()_elem422.read(iprot)self.success.append(_elem422)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 iter423 in self.success:iter423.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 = [](_etype427, _size424) = iprot.readListBegin()for _i428 in xrange(_size424):_elem429 = Insurer()_elem429.read(iprot)self.success.append(_elem429)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 iter430 in self.success:iter430.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 = {}(_ktype432, _vtype433, _size431 ) = iprot.readMapBegin()for _i435 in xrange(_size431):_key436 = iprot.readString();_val437 = BrandInfo()_val437.read(iprot)self.success[_key436] = _val437iprot.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 kiter438,viter439 in self.success.items():oprot.writeString(kiter438)viter439.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 = [](_etype443, _size440) = iprot.readListBegin()for _i444 in xrange(_size440):_elem445 = iprot.readI64();self.itemIds.append(_elem445)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 iter446 in self.itemIds:oprot.writeI64(iter446)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 = [](_etype450, _size447) = iprot.readListBegin()for _i451 in xrange(_size447):_elem452 = StorePricing()_elem452.read(iprot)self.success.append(_elem452)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 iter453 in self.success:iter453.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 = [](_etype457, _size454) = iprot.readListBegin()for _i458 in xrange(_size454):_elem459 = Amazonlisted()_elem459.read(iprot)self.success.append(_elem459)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 iter460 in self.success:iter460.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 = [](_etype464, _size461) = iprot.readListBegin()for _i465 in xrange(_size461):_elem466 = iprot.readString();self.searchTerm.append(_elem466)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 iter467 in self.searchTerm:oprot.writeString(iter467)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 = [](_etype471, _size468) = iprot.readListBegin()for _i472 in xrange(_size468):_elem473 = Amazonlisted()_elem473.read(iprot)self.success.append(_elem473)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 iter474 in self.success:iter474.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 = [](_etype478, _size475) = iprot.readListBegin()for _i479 in xrange(_size475):_elem480 = iprot.readString();self.searchTerm.append(_elem480)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 iter481 in self.searchTerm:oprot.writeString(iter481)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 = [](_etype485, _size482) = iprot.readListBegin()for _i486 in xrange(_size482):_elem487 = Item()_elem487.read(iprot)self.success.append(_elem487)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 iter488 in self.success:iter488.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 = [](_etype492, _size489) = iprot.readListBegin()for _i493 in xrange(_size489):_elem494 = Amazonlisted()_elem494.read(iprot)self.success.append(_elem494)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 iter495 in self.success:iter495.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 = [](_etype499, _size496) = iprot.readListBegin()for _i500 in xrange(_size496):_elem501 = Amazonlisted()_elem501.read(iprot)self.success.append(_elem501)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 iter502 in self.success:iter502.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 = [](_etype506, _size503) = iprot.readListBegin()for _i507 in xrange(_size503):_elem508 = iprot.readI64();self.sku.append(_elem508)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 iter509 in self.sku:oprot.writeI64(iter509)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 = [](_etype513, _size510) = iprot.readListBegin()for _i514 in xrange(_size510):_elem515 = Category()_elem515.read(iprot)self.success.append(_elem515)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 iter516 in self.success:iter516.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 = [](_etype520, _size517) = iprot.readListBegin()for _i521 in xrange(_size517):_elem522 = Amazonlisted()_elem522.read(iprot)self.success.append(_elem522)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 iter523 in self.success:iter523.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 = {}(_ktype525, _vtype526, _size524 ) = iprot.readMapBegin()for _i528 in xrange(_size524):_key529 = iprot.readI64();_val530 = Amazonlisted()_val530.read(iprot)self.amazonlisted[_key529] = _val530iprot.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 kiter531,viter532 in self.amazonlisted.items():oprot.writeI64(kiter531)viter532.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 = [](_etype536, _size533) = iprot.readListBegin()for _i537 in xrange(_size533):_elem538 = Amazonlisted()_elem538.read(iprot)self.success.append(_elem538)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 iter539 in self.success:iter539.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 = [](_etype543, _size540) = iprot.readListBegin()for _i544 in xrange(_size540):_elem545 = Amazonlisted()_elem545.read(iprot)self.success.append(_elem545)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 iter546 in self.success:iter546.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 = {}(_ktype548, _vtype549, _size547 ) = iprot.readMapBegin()for _i551 in xrange(_size547):_key552 = iprot.readI64();_val553 = Item()_val553.read(iprot)self.item[_key552] = _val553iprot.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 kiter554,viter555 in self.item.items():oprot.writeI64(kiter554)viter555.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 = [](_etype559, _size556) = iprot.readListBegin()for _i560 in xrange(_size556):_elem561 = SnapdealItemDetails()_elem561.read(iprot)self.success.append(_elem561)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 iter562 in self.success:iter562.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 = [](_etype566, _size563) = iprot.readListBegin()for _i567 in xrange(_size563):_elem568 = SnapdealItemDetails()_elem568.read(iprot)self.success.append(_elem568)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 iter569 in self.success:iter569.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 = [](_etype573, _size570) = iprot.readListBegin()for _i574 in xrange(_size570):_elem575 = iprot.readString();self.searchTerm.append(_elem575)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 iter576 in self.searchTerm:oprot.writeString(iter576)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 = [](_etype580, _size577) = iprot.readListBegin()for _i581 in xrange(_size577):_elem582 = SnapdealItemDetails()_elem582.read(iprot)self.success.append(_elem582)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 iter583 in self.success:iter583.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 = [](_etype587, _size584) = iprot.readListBegin()for _i588 in xrange(_size584):_elem589 = iprot.readString();self.searchTerm.append(_elem589)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 iter590 in self.searchTerm:oprot.writeString(iter590)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 = [](_etype594, _size591) = iprot.readListBegin()for _i595 in xrange(_size591):_elem596 = ProductFeedSubmit()_elem596.read(iprot)self.success.append(_elem596)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 iter597 in self.success:iter597.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 = [](_etype601, _size598) = iprot.readListBegin()for _i602 in xrange(_size598):_elem603 = MarketPlaceItemPrice()_elem603.read(iprot)self.success.append(_elem603)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 iter604 in self.success:iter604.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 = [](_etype608, _size605) = iprot.readListBegin()for _i609 in xrange(_size605):_elem610 = iprot.readI64();self.skulist.append(_elem610)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 iter611 in self.skulist:oprot.writeI64(iter611)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 = {}(_ktype613, _vtype614, _size612 ) = iprot.readMapBegin()for _i616 in xrange(_size612):_key617 = iprot.readI64();_val618 = iprot.readI64();self.itemHoldMap[_key617] = _val618iprot.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 kiter619,viter620 in self.itemHoldMap.items():oprot.writeI64(kiter619)oprot.writeI64(viter620)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 = [](_etype624, _size621) = iprot.readListBegin()for _i625 in xrange(_size621):_elem626 = FlipkartItem()_elem626.read(iprot)self.success.append(_elem626)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 iter627 in self.success:iter627.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 = [](_etype631, _size628) = iprot.readListBegin()for _i632 in xrange(_size628):_elem633 = FlipkartItemDetails()_elem633.read(iprot)self.success.append(_elem633)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 iter634 in self.success:iter634.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 = [](_etype638, _size635) = iprot.readListBegin()for _i639 in xrange(_size635):_elem640 = iprot.readString();self.searchTerm.append(_elem640)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 iter641 in self.searchTerm:oprot.writeString(iter641)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 = [](_etype645, _size642) = iprot.readListBegin()for _i646 in xrange(_size642):_elem647 = FlipkartItemDetails()_elem647.read(iprot)self.success.append(_elem647)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 iter648 in self.success:iter648.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 = [](_etype652, _size649) = iprot.readListBegin()for _i653 in xrange(_size649):_elem654 = iprot.readString();self.searchTerm.append(_elem654)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 iter655 in self.searchTerm:oprot.writeString(iter655)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 = [](_etype659, _size656) = iprot.readListBegin()for _i660 in xrange(_size656):_elem661 = FlipkartItemDetails()_elem661.read(iprot)self.success.append(_elem661)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 iter662 in self.success:iter662.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 = [](_etype666, _size663) = iprot.readListBegin()for _i667 in xrange(_size663):_elem668 = MarketplaceHistory()_elem668.read(iprot)self.success.append(_elem668)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 iter669 in self.success:iter669.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 = [](_etype673, _size670) = iprot.readListBegin()for _i674 in xrange(_size670):_elem675 = Amazonlisted()_elem675.read(iprot)self.success.append(_elem675)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 iter676 in self.success:iter676.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 = [](_etype680, _size677) = iprot.readListBegin()for _i681 in xrange(_size677):_elem682 = Amazonlisted()_elem682.read(iprot)self.success.append(_elem682)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 iter683 in self.success:iter683.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 = [](_etype687, _size684) = iprot.readListBegin()for _i688 in xrange(_size684):_elem689 = MarketplaceHistory()_elem689.read(iprot)self.success.append(_elem689)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 iter690 in self.success:iter690.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 = [](_etype694, _size691) = iprot.readListBegin()for _i695 in xrange(_size691):_elem696 = Item()_elem696.read(iprot)self.success.append(_elem696)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 iter697 in self.success:iter697.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 = [](_etype701, _size698) = iprot.readListBegin()for _i702 in xrange(_size698):_elem703 = iprot.readI64();self.itemIds.append(_elem703)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 iter704 in self.itemIds:oprot.writeI64(iter704)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 = {}(_ktype706, _vtype707, _size705 ) = iprot.readMapBegin()for _i709 in xrange(_size705):_key710 = iprot.readI64();_val711 = PrivateDeal()_val711.read(iprot)self.success[_key710] = _val711iprot.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 kiter712,viter713 in self.success.items():oprot.writeI64(kiter712)viter713.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 = [](_etype717, _size714) = iprot.readListBegin()for _i718 in xrange(_size714):_elem719 = iprot.readI64();self.success.append(_elem719)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 iter720 in self.success:oprot.writeI64(iter720)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 = [](_etype724, _size721) = iprot.readListBegin()for _i725 in xrange(_size721):_elem726 = PdPriceComp()_elem726.read(iprot)self.success.append(_elem726)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 iter727 in self.success:iter727.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 = [](_etype731, _size728) = iprot.readListBegin()for _i732 in xrange(_size728):_elem733 = SnapdealItem()_elem733.read(iprot)self.success.append(_elem733)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 iter734 in self.success:iter734.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 = [](_etype738, _size735) = iprot.readListBegin()for _i739 in xrange(_size735):_elem740 = FlipkartItem()_elem740.read(iprot)self.success.append(_elem740)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 iter741 in self.success:iter741.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 = {}(_ktype743, _vtype744, _size742 ) = iprot.readMapBegin()for _i746 in xrange(_size742):_key747 = iprot.readI64();_val748 = CompetitorPricing()_val748.read(iprot)self.competitorPricingMap[_key747] = _val748iprot.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 kiter749,viter750 in self.competitorPricingMap.items():oprot.writeI64(kiter749)viter750.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 = [](_etype754, _size751) = iprot.readListBegin()for _i755 in xrange(_size751):_elem756 = CompetitorPricing()_elem756.read(iprot)self.success.append(_elem756)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 iter757 in self.success:iter757.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 = [](_etype761, _size758) = iprot.readListBegin()for _i762 in xrange(_size758):_elem763 = CompetitorPricing()_elem763.read(iprot)self.success.append(_elem763)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 iter764 in self.success:iter764.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 = {}(_ktype766, _vtype767, _size765 ) = iprot.readMapBegin()for _i769 in xrange(_size765):_key770 = iprot.readString();_val771 = AmazonPromotion()_val771.read(iprot)self.amazonPromotions[_key770] = _val771iprot.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 kiter772,viter773 in self.amazonPromotions.items():oprot.writeString(kiter772)viter773.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 = [](_etype777, _size774) = iprot.readListBegin()for _i778 in xrange(_size774):_elem779 = iprot.readString();self.success.append(_elem779)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 iter780 in self.success:oprot.writeString(iter780)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 = [](_etype784, _size781) = iprot.readListBegin()for _i785 in xrange(_size781):_elem786 = AmazonPromotion()_elem786.read(iprot)self.success.append(_elem786)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 iter787 in self.success:iter787.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 = [](_etype791, _size788) = iprot.readListBegin()for _i792 in xrange(_size788):_elem793 = AmazonPromotion()_elem793.read(iprot)self.amazonPromotions.append(_elem793)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 iter794 in self.amazonPromotions:iter794.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 = {}(_ktype796, _vtype797, _size795 ) = iprot.readMapBegin()for _i799 in xrange(_size795):_key800 = iprot.readI64();_val801 = iprot.readDouble();self.statevat[_key800] = _val801iprot.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 kiter802,viter803 in self.statevat.items():oprot.writeI64(kiter802)oprot.writeDouble(viter803)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 = {}(_ktype805, _vtype806, _size804 ) = iprot.readMapBegin()for _i808 in xrange(_size804):_key809 = iprot.readI64();_val810 = ExclusiveAffiliateItemInfo()_val810.read(iprot)self.success[_key809] = _val810iprot.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 kiter811,viter812 in self.success.items():oprot.writeI64(kiter811)viter812.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 = [](_etype816, _size813) = iprot.readListBegin()for _i817 in xrange(_size813):_elem818 = Amazonlisted()_elem818.read(iprot)self.success.append(_elem818)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 iter819 in self.success:iter819.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 = [](_etype823, _size820) = iprot.readListBegin()for _i824 in xrange(_size820):_elem825 = Amazonlisted()_elem825.read(iprot)self.success.append(_elem825)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 iter826 in self.success:iter826.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 = {}(_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.lines[_key832] = _val833iprot.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 kiter841,viter842 in self.lines.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()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(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 = {}(_ktype846, _vtype847, _size845 ) = iprot.readMapBegin()for _i849 in xrange(_size845):_key850 = iprot.readI64();_val851 = {}(_ktype853, _vtype854, _size852 ) = iprot.readMapBegin()for _i856 in xrange(_size852):_key857 = iprot.readString();_val858 = iprot.readI64();_val851[_key857] = _val858iprot.readMapEnd()self.success[_key850] = _val851iprot.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 kiter859,viter860 in self.success.items():oprot.writeI64(kiter859)oprot.writeMapBegin(TType.STRING, TType.I64, len(viter860))for kiter861,viter862 in viter860.items():oprot.writeString(kiter861)oprot.writeI64(viter862)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 = [](_etype866, _size863) = iprot.readListBegin()for _i867 in xrange(_size863):_elem868 = HsItem()_elem868.read(iprot)self.hsItems.append(_elem868)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 iter869 in self.hsItems:iter869.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', (DtrPricing, DtrPricing.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 = DtrPricing()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 = [](_etype873, _size870) = iprot.readListBegin()for _i874 in xrange(_size870):_elem875 = Amazonlisted()_elem875.read(iprot)self.success.append(_elem875)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 iter876 in self.success:iter876.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 = [](_etype880, _size877) = iprot.readListBegin()for _i881 in xrange(_size877):_elem882 = Amazonlisted()_elem882.read(iprot)self.success.append(_elem882)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 iter883 in self.success:iter883.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 getBulkPricingForItems_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 = [](_etype887, _size884) = iprot.readListBegin()for _i888 in xrange(_size884):_elem889 = iprot.readI64();self.itemIds.append(_elem889)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('getBulkPricingForItems_args')if self.itemIds is not None:oprot.writeFieldBegin('itemIds', TType.LIST, 1)oprot.writeListBegin(TType.I64, len(self.itemIds))for iter890 in self.itemIds:oprot.writeI64(iter890)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 getBulkPricingForItems_result:"""Attributes:- success"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRUCT,(BulkItemPricing, BulkItemPricing.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 = {}(_ktype892, _vtype893, _size891 ) = iprot.readMapBegin()for _i895 in xrange(_size891):_key896 = iprot.readI64();_val897 = [](_etype901, _size898) = iprot.readListBegin()for _i902 in xrange(_size898):_elem903 = BulkItemPricing()_elem903.read(iprot)_val897.append(_elem903)iprot.readListEnd()self.success[_key896] = _val897iprot.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('getBulkPricingForItems_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))for kiter904,viter905 in self.success.items():oprot.writeI64(kiter904)oprot.writeListBegin(TType.STRUCT, len(viter905))for iter906 in viter905:iter906.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 addBulkPricingForItem_args:"""Attributes:- bulkItemPricing"""thrift_spec = (None, # 0(1, TType.STRUCT, 'bulkItemPricing', (BulkItemPricing, BulkItemPricing.thrift_spec), None, ), # 1)def __init__(self, bulkItemPricing=None,):self.bulkItemPricing = bulkItemPricingdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_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.bulkItemPricing = BulkItemPricing()self.bulkItemPricing.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('addBulkPricingForItem_args')if self.bulkItemPricing is not None:oprot.writeFieldBegin('bulkItemPricing', TType.STRUCT, 1)self.bulkItemPricing.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 addBulkPricingForItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (BulkItemPricing, BulkItemPricing.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 = BulkItemPricing()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('addBulkPricingForItem_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 deleteBulkPricingForItemById_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('deleteBulkPricingForItemById_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 deleteBulkPricingForItemById_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('deleteBulkPricingForItemById_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 deleteBulkPricingForItem_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('deleteBulkPricingForItem_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 deleteBulkPricingForItem_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('deleteBulkPricingForItem_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 getBulkPricingByItemId_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('getBulkPricingByItemId_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 getBulkPricingByItemId_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(BulkItemPricing, BulkItemPricing.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 = [](_etype910, _size907) = iprot.readListBegin()for _i911 in xrange(_size907):_elem912 = BulkItemPricing()_elem912.read(iprot)self.success.append(_elem912)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('getBulkPricingByItemId_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter913 in self.success:iter913.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 updateBulkPricesOnProduction_args:"""Attributes:- item_id- bulkItemPricingList"""thrift_spec = (None, # 0(1, TType.I64, 'item_id', None, None, ), # 1(2, TType.LIST, 'bulkItemPricingList', (TType.STRUCT,(BulkItemPricing, BulkItemPricing.thrift_spec)), None, ), # 2)def __init__(self, item_id=None, bulkItemPricingList=None,):self.item_id = item_idself.bulkItemPricingList = bulkItemPricingListdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_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.LIST:self.bulkItemPricingList = [](_etype917, _size914) = iprot.readListBegin()for _i918 in xrange(_size914):_elem919 = BulkItemPricing()_elem919.read(iprot)self.bulkItemPricingList.append(_elem919)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('updateBulkPricesOnProduction_args')if self.item_id is not None:oprot.writeFieldBegin('item_id', TType.I64, 1)oprot.writeI64(self.item_id)oprot.writeFieldEnd()if self.bulkItemPricingList is not None:oprot.writeFieldBegin('bulkItemPricingList', TType.LIST, 2)oprot.writeListBegin(TType.STRUCT, len(self.bulkItemPricingList))for iter920 in self.bulkItemPricingList:iter920.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 updateBulkPricesOnProduction_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('updateBulkPricesOnProduction_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 getCartByValue_args:"""Attributes:- cartIds"""thrift_spec = (None, # 0(1, TType.LIST, 'cartIds', (TType.I64,None), None, ), # 1)def __init__(self, cartIds=None,):self.cartIds = cartIdsdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_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.cartIds = [](_etype924, _size921) = iprot.readListBegin()for _i925 in xrange(_size921):_elem926 = iprot.readI64();self.cartIds.append(_elem926)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('getCartByValue_args')if self.cartIds is not None:oprot.writeFieldBegin('cartIds', TType.LIST, 1)oprot.writeListBegin(TType.I64, len(self.cartIds))for iter927 in self.cartIds:oprot.writeI64(iter927)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 getCartByValue_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 = [](_etype931, _size928) = iprot.readListBegin()for _i932 in xrange(_size928):_elem933 = iprot.readI64();self.success.append(_elem933)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('getCartByValue_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter934 in self.success:oprot.writeI64(iter934)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 updateItemPricing_args:"""Attributes:- itemPricingList"""thrift_spec = (None, # 0(1, TType.LIST, 'itemPricingList', (TType.STRUCT,(ItemPricing, ItemPricing.thrift_spec)), None, ), # 1)def __init__(self, itemPricingList=None,):self.itemPricingList = itemPricingListdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_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.itemPricingList = [](_etype938, _size935) = iprot.readListBegin()for _i939 in xrange(_size935):_elem940 = ItemPricing()_elem940.read(iprot)self.itemPricingList.append(_elem940)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('updateItemPricing_args')if self.itemPricingList is not None:oprot.writeFieldBegin('itemPricingList', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.itemPricingList))for iter941 in self.itemPricingList:iter941.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 updateItemPricing_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('updateItemPricing_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 bulkUpdateCatalog_args:"""Attributes:- bulkUploadCatalog"""thrift_spec = (None, # 0(1, TType.LIST, 'bulkUploadCatalog', (TType.STRUCT,(BulkUploadCatalog, BulkUploadCatalog.thrift_spec)), None, ), # 1)def __init__(self, bulkUploadCatalog=None,):self.bulkUploadCatalog = bulkUploadCatalogdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_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.bulkUploadCatalog = [](_etype945, _size942) = iprot.readListBegin()for _i946 in xrange(_size942):_elem947 = BulkUploadCatalog()_elem947.read(iprot)self.bulkUploadCatalog.append(_elem947)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('bulkUpdateCatalog_args')if self.bulkUploadCatalog is not None:oprot.writeFieldBegin('bulkUploadCatalog', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.bulkUploadCatalog))for iter948 in self.bulkUploadCatalog:iter948.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 bulkUpdateCatalog_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('bulkUpdateCatalog_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 getWarrantyInfoForItem_args:"""Attributes:- catalogItemId- itemCondition"""thrift_spec = (None, # 0(1, TType.I64, 'catalogItemId', None, None, ), # 1(2, TType.I32, 'itemCondition', None, None, ), # 2)def __init__(self, catalogItemId=None, itemCondition=None,):self.catalogItemId = catalogItemIdself.itemCondition = itemConditiondef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_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)elif fid == 2:if ftype == TType.I32:self.itemCondition = 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('getWarrantyInfoForItem_args')if self.catalogItemId is not None:oprot.writeFieldBegin('catalogItemId', TType.I64, 1)oprot.writeI64(self.catalogItemId)oprot.writeFieldEnd()if self.itemCondition is not None:oprot.writeFieldBegin('itemCondition', TType.I32, 2)oprot.writeI32(self.itemCondition)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getWarrantyInfoForItem_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.MAP, 'success', (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 = {}(_ktype950, _vtype951, _size949 ) = iprot.readMapBegin()for _i953 in xrange(_size949):_key954 = iprot.readString();_val955 = iprot.readI64();self.success[_key954] = _val955iprot.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('getWarrantyInfoForItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.STRING, TType.I64, len(self.success))for kiter956,viter957 in self.success.items():oprot.writeString(kiter956)oprot.writeI64(viter957)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 getWarrantyInfoForItemList_args:"""Attributes:- catalogItemIds- itemCondition"""thrift_spec = (None, # 0(1, TType.LIST, 'catalogItemIds', (TType.I64,None), None, ), # 1(2, TType.I32, 'itemCondition', None, None, ), # 2)def __init__(self, catalogItemIds=None, itemCondition=None,):self.catalogItemIds = catalogItemIdsself.itemCondition = itemConditiondef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_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.catalogItemIds = [](_etype961, _size958) = iprot.readListBegin()for _i962 in xrange(_size958):_elem963 = iprot.readI64();self.catalogItemIds.append(_elem963)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.itemCondition = 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('getWarrantyInfoForItemList_args')if self.catalogItemIds is not None:oprot.writeFieldBegin('catalogItemIds', TType.LIST, 1)oprot.writeListBegin(TType.I64, len(self.catalogItemIds))for iter964 in self.catalogItemIds:oprot.writeI64(iter964)oprot.writeListEnd()oprot.writeFieldEnd()if self.itemCondition is not None:oprot.writeFieldBegin('itemCondition', TType.I32, 2)oprot.writeI32(self.itemCondition)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getWarrantyInfoForItemList_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 = {}(_ktype966, _vtype967, _size965 ) = iprot.readMapBegin()for _i969 in xrange(_size965):_key970 = iprot.readI64();_val971 = {}(_ktype973, _vtype974, _size972 ) = iprot.readMapBegin()for _i976 in xrange(_size972):_key977 = iprot.readString();_val978 = iprot.readI64();_val971[_key977] = _val978iprot.readMapEnd()self.success[_key970] = _val971iprot.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('getWarrantyInfoForItemList_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.MAP, len(self.success))for kiter979,viter980 in self.success.items():oprot.writeI64(kiter979)oprot.writeMapBegin(TType.STRING, TType.I64, len(viter980))for kiter981,viter982 in viter980.items():oprot.writeString(kiter981)oprot.writeI64(viter982)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 getStateTaxRate_args:"""Attributes:- itemIds- stateId"""thrift_spec = (None, # 0(1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1(2, TType.I64, 'stateId', None, None, ), # 2)def __init__(self, itemIds=None, stateId=None,):self.itemIds = itemIdsself.stateId = stateIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_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 = [](_etype986, _size983) = iprot.readListBegin()for _i987 in xrange(_size983):_elem988 = iprot.readI64();self.itemIds.append(_elem988)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.stateId = 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('getStateTaxRate_args')if self.itemIds is not None:oprot.writeFieldBegin('itemIds', TType.LIST, 1)oprot.writeListBegin(TType.I64, len(self.itemIds))for iter989 in self.itemIds:oprot.writeI64(iter989)oprot.writeListEnd()oprot.writeFieldEnd()if self.stateId is not None:oprot.writeFieldBegin('stateId', TType.I64, 2)oprot.writeI64(self.stateId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getStateTaxRate_result:"""Attributes:- success"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(GstRate, GstRate.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 = {}(_ktype991, _vtype992, _size990 ) = iprot.readMapBegin()for _i994 in xrange(_size990):_key995 = iprot.readI64();_val996 = GstRate()_val996.read(iprot)self.success[_key995] = _val996iprot.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('getStateTaxRate_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))for kiter997,viter998 in self.success.items():oprot.writeI64(kiter997)viter998.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 getIgstTaxRate_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 = [](_etype1002, _size999) = iprot.readListBegin()for _i1003 in xrange(_size999):_elem1004 = iprot.readI64();self.itemIds.append(_elem1004)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('getIgstTaxRate_args')if self.itemIds is not None:oprot.writeFieldBegin('itemIds', TType.LIST, 1)oprot.writeListBegin(TType.I64, len(self.itemIds))for iter1005 in self.itemIds:oprot.writeI64(iter1005)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 getIgstTaxRate_result:"""Attributes:- success"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,TType.DOUBLE,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 = {}(_ktype1007, _vtype1008, _size1006 ) = iprot.readMapBegin()for _i1010 in xrange(_size1006):_key1011 = iprot.readI64();_val1012 = iprot.readDouble();self.success[_key1011] = _val1012iprot.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('getIgstTaxRate_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))for kiter1013,viter1014 in self.success.items():oprot.writeI64(kiter1013)oprot.writeDouble(viter1014)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 persistGstRate_args:"""Attributes:- stateGstRates"""thrift_spec = (None, # 0(1, TType.LIST, 'stateGstRates', (TType.STRUCT,(StateGstRate, StateGstRate.thrift_spec)), None, ), # 1)def __init__(self, stateGstRates=None,):self.stateGstRates = stateGstRatesdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_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.stateGstRates = [](_etype1018, _size1015) = iprot.readListBegin()for _i1019 in xrange(_size1015):_elem1020 = StateGstRate()_elem1020.read(iprot)self.stateGstRates.append(_elem1020)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('persistGstRate_args')if self.stateGstRates is not None:oprot.writeFieldBegin('stateGstRates', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.stateGstRates))for iter1021 in self.stateGstRates:iter1021.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 persistGstRate_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('persistGstRate_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 getHsnCodesByCategory_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('getHsnCodesByCategory_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 getHsnCodesByCategory_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(CategoryHsnCode, CategoryHsnCode.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 = [](_etype1025, _size1022) = iprot.readListBegin()for _i1026 in xrange(_size1022):_elem1027 = CategoryHsnCode()_elem1027.read(iprot)self.success.append(_elem1027)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('getHsnCodesByCategory_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter1028 in self.success:iter1028.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 getAllFofoDeals_args:"""Attributes:- itemIds- tagIds"""thrift_spec = Nonedef __init__(self, itemIds=None, tagIds=None,):self.itemIds = itemIdsself.tagIds = tagIdsdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_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 = [](_etype1032, _size1029) = iprot.readListBegin()for _i1033 in xrange(_size1029):_elem1034 = iprot.readI64();self.itemIds.append(_elem1034)iprot.readListEnd()else:iprot.skip(ftype)elif fid == -2:if ftype == TType.LIST:self.tagIds = [](_etype1038, _size1035) = iprot.readListBegin()for _i1039 in xrange(_size1035):_elem1040 = iprot.readI64();self.tagIds.append(_elem1040)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('getAllFofoDeals_args')if self.tagIds is not None:oprot.writeFieldBegin('tagIds', TType.LIST, -2)oprot.writeListBegin(TType.I64, len(self.tagIds))for iter1041 in self.tagIds:oprot.writeI64(iter1041)oprot.writeListEnd()oprot.writeFieldEnd()if self.itemIds is not None:oprot.writeFieldBegin('itemIds', TType.LIST, -1)oprot.writeListBegin(TType.I64, len(self.itemIds))for iter1042 in self.itemIds:oprot.writeI64(iter1042)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 getAllFofoDeals_result:"""Attributes:- success"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,TType.DOUBLE,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 = {}(_ktype1044, _vtype1045, _size1043 ) = iprot.readMapBegin()for _i1047 in xrange(_size1043):_key1048 = iprot.readI64();_val1049 = iprot.readDouble();self.success[_key1048] = _val1049iprot.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('getAllFofoDeals_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))for kiter1050,viter1051 in self.success.items():oprot.writeI64(kiter1050)oprot.writeDouble(viter1051)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)